* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: black;
}

.main {
    position: absolute;
    width: 100%;
    height: 100vh;
    background-image: url('/jons-portfolio-site/images/one_piece_map.jpg');
    background-size: contain; /* Ensures whole image fits */
    background-position: center; /* Centers it nicely */
    background-repeat: no-repeat; /* Prevents tiling */
    background-color: black; /* optional: fills empty space */

    transform-origin: center;
    /* animation: unfoldMap3 1.4s  cubic-bezier(0.775, 0, 0.18, 1) forwards; */
}

.wb-flag {
    position: relative;
    top: 15%;
    left: 90%;
    width: 150px;
}

.wb-flag2 {
    position: relative;
    top: 15%;
    left: -6.5%;
    width: 150px;
}

.main2 {
    position: relative;
    width: 100%;
    height: 100vh;
    background-image: url('/jons-portfolio-site/images/template.jpg');
    background-size: contain; /* Ensures whole image fits */
    background-position: center; /* Centers it nicely */
    background-repeat: no-repeat; /* Prevents tiling */
    background-color: black; /* optional: fills empty space */
}

.island {
    position: absolute;
    width: 100px; /* adjust as needed */
    transform: translate(-50%, -50%);
}

.display-text {
    position: absolute;
    /* width: 100px; */
    width: max-content;
    transform: translate(-50%, -50%);
    top: 90%;
    left: 50%;
    font-size: 60px;
    /* font-family: "system-ui", -apple-system, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; */
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(to right, black, #A51C1C
    ,#ECD759,#17dd64, white);
    background-size: 200%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    /* animation: animate-gradient 2.5s linear infinite; */
}

@keyframes animate-gradient {
    to {
        background-position: 200%;
    }
}

/* Position boat relative to islands */
/* Adjust "left" % to animate boat moving across the map. */
.boat {
   top: 67%;
   left: 10%;
   transition: none; /* prevents CSS from fighting JS */
}

/* About island (bottom-left area) */
.about {
    top: 68%;
    left: 26%;
}

/* Projects island (middle-left near circle) */
.projects {
    top: 34.5%;
    left: 46%;
}

/* Skills island (under "Pacifjcau") */
.skills {
    top: 66%;
    left: 62%;
}

/* Experience island (far right) */
.experience {
    width: 150px;
    top: 50%;
    left: 91%;
}

.flag1 {
    top: 65%;
    left: 27.45%;
    height: 55px;
    width: 45px;
}

.flag2 {
    top: 29.5%;
    left: 48%;
    height: 55px;
    width: 45px;
}

.flag3 {
   top: 62%;
   left: 61.5%;
   height: 55px;
   width: 45px;
}

.flag4 {
    top: 44.5%;
    left: 90%;
    height: 55px;
    width: 45px;
}

.flag1:hover, .flag2:hover, .flag3:hover, .flag4:hover {
    cursor: pointer;
}

/* SVG overlay */
.paths {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* allows clicking through */
}

/* Dotted path style */
.path {
    stroke: black; /* Color of dots */
    stroke-width: 2.5; /* Thickness of lines (tweak this) 0.2  */
    stroke-dasharray: 10 10; /* dot spacing */
    fill: none;

    vector-effect: non-scaling-stroke;
}

/* The image becomes just a background layer */
.template {
    width: 100%;
    height: 100vh;
    object-fit: contain;
    display: block;
}

.title {
    position: absolute;
    top: 9%;
    text-decoration: underline;
    font-weight: lighter;
    left: 50%;
    font-size: 40px;
    font-family: 'Ancizar Serif', serif;
    transform: translate(-50%, -50%);
    color: rgb(75, 37, 37);
}

.languages {
    position: absolute;
    font-family: 'Ancizar Serif', serif;
    text-decoration: underline;
    font-weight: 450;
    top: 16%;
    left: 30%;
}

.rct {
    text-decoration: none;
}

.languages-icons {
    position: absolute;
    left: 30%;
    /* top: 22%;
    left: 30%; */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

/* Each section positioned under headings */
.languages + .languages-icons {
    top: 20%;
    left: 30%;
}

.front-end + .languages-icons {
    position: absolute;
    top: 42%;
    left: 30%;
}

.back-end + .languages-icons {
    position: absolute;
    top: 62%;
    left: 30%;
}

.cloud + .languages-icons {
    position: absolute;
    top: 81%;
    left: 30%;
}

/* .languages-icons i {
    font-size: 40px; 
}

.languages-icons img {
    width: 40px;
    height: auto;
} */

.languages-icons img, 
.languages-icons i {
    width: 70px;
    height: 70px;
    object-fit: contain;
    transition: all 0.3s ease;
    /* animation: float 3.5s ease-in-out infinite; */
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
    100% {
        transform: translateY(0px);
    }
}

.languages-icons img:nth-child(1):hover, .languages-icons i:hover {
    transform: scale(1.3) rotate(5deg);
    filter: drop-shadow(0 0 10px gold);
}

.languages-icons img:nth-child(2):hover, .languages-icons i:hover {
    transform: scale(1.3) rotate(5deg);
    filter: drop-shadow(0 0 10px #A51C1C);
}

.languages-icons img:nth-child(3):hover, .languages-icons i:hover {
    transform: scale(1.3) rotate(5deg);
    filter: drop-shadow(0 0 10px #17DD64);
}

.languages-icons img:nth-child(4):hover, .languages-icons i:hover {
    transform: scale(1.3) rotate(5deg);
    filter: drop-shadow(0 0 10px #A51C1C);
}

.languages-icons img:nth-child(5):hover, .languages-icons i:hover {
    transform: scale(1.3) rotate(5deg);
    filter: drop-shadow(0 0 10px gold);
}

.languages-icons img:nth-child(6):hover, .languages-icons i:hover {
    transform: scale(1.3) rotate(5deg);
    filter: drop-shadow(0 0 10px #17dd64);
}

.going-merry {
    position: absolute;
    top: 35%;
    left: 70%;
}

.crew {
    position: absolute;
    top: 30%;
    height: 25%;
    width: 20%;
    border-radius: 2px;
    left: 5%;
}

/* .skills-container {
    position: relative;
    top: 18%;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;

    display: grid;
    gap: 60px;
} */

.skill-group h2 {
    color: rgb(75, 37, 37);
    font-family: 'Ancizar Serif', serif;
    margin-bottom: 20px;
    text-align: center;
}

.languages-python {
    position: absolute;
    font-family: 'Ancizar Serif', serif;
    text-decoration: underline;
    font-weight: 450;
    top: 16%;
    left: 30%;
}

.languages-js:hover, .languages-java:hover, .languages-python:hover, 
.languages-cpp:hover, .languages-cshp:hover, .languages-reactnative:hover,
.languages-flutter:hover, .languages-swift:hover, .languages-html5:hover,
.languages-css3:hover, .languages-nodejs:hover, .languages-asp:hover,
.languages-flask:hover, .languages-php:hover, .languages-kotlin:hover,
.languages-springboot:hover, .languages-firebase:hover, .languages-azure:hover  {
   cursor: pointer;
}

/* Base icon styling */
.languages img, 
.languages-icons i {
    /* position: relative; */
    width: 55px;
    height: 50px;
    object-fit: contain;
    /* height: auto; */
}

/* LANGUAGES ROW */
.languages-python, .languages-cpp,.languages-cshp,
.languages-js, .languages-java {
    top: 20px;
    left: 0;
}

/* FRONT-END ROW */
.languages-reactnative, .languages-flutter,
.languages-swift, .languages-html5, .languages-css3 
{
    top: 20px;
    left: 0;
}

/* Cloud Row */
.languages-firebase, 
.languages-azure {
    top: 20px;
    left: 0;
}

.front-end {
    position: absolute;
    font-family: 'Ancizar Serif', serif;
    font-weight: 450;
    text-decoration: underline;
    top: 37%;
    left: 30%;
} 

.back-end {
    position: absolute;
    font-family: 'Ancizar Serif', serif;
    text-decoration: underline;
    font-weight: 450;
    top: 57%;
    left: 30%;
}

.cloud {
    position: absolute;
    font-family: 'Ancizar Serif', serif;
    text-decoration: underline;
    font-weight: 450;
    top: 76%;
    left: 30%;
}

.profile-image {
    position: absolute;
    top: 14%;
    left: 41%;
    height: 35%;
    border-radius: 5px;

    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: all 0.8s ease-in-out;
}

/* This class gets added on load */
.profile-image.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.back-btn-img {
    position: absolute;
    top: 10%;
    left: 7%;
    height: 6%;
}

.main3 {
    position: relative;
    align-items: center;
    left: 30%;
}

.desc {
    position: absolute;
    display: relative;
    top: 80%;
    left: 50%;
    font-size: 26px;
    transform: translate(-50%, -50%);
    color: black;
    font-weight: 300;
    letter-spacing: .2px;
    font-family: "system-ui", -apple-system, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.link {
    position: absolute;
    top: 63%;
    text-transform: uppercase;
    font-size: 150%;
    left: 42%;
    text-decoration: none;
    color: rgb(75, 37, 37);
}

.link:hover {
    cursor: pointer;
    text-decoration: underline;
}

#github {
    color: rgba(0, 0, 0, 0);
    text-decoration: none;
}

#email {
    color: rgba(0, 0, 0, 0);
    box-shadow: 0 0 0px;
    text-decoration: none;
}


#linkedin {
    color: rgba(0, 0, 0, 0);
    text-decoration: none;
}

/* Main button styling */
.social-buttons {
    position: absolute;
    top: 51%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 40px;
}

/* Base button */
.social-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* gap: 15px; */

    /* padding: 15px 25px; */
    min-height: 10px;
    padding: 0 25px;
    width: 195px;

    border-radius: 50px; /* Rounded edges of button */
    background-color: white; /* Default state without hover */

    text-decoration: none;
    color: black; /* Sets the text colour to be black by default */

    font-size: 26px;
    font-family: serif;

    transition: all 0.3s ease;
    position: relative;
}

.social-btn:nth-child(2) {
    width: 210px;
}

.social-btn:hover {
    color: white;
}

.left {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Icon and text */
.social-btn i {
    font-size: 30px;
}

.social-btn span {
    flex: 1;
    text-align: left;
}

.char {
    height: 55px;
    width: auto;
    object-fit: contain;
    position: relative;
    margin-left: -1px;
}

.zoro {
    margin-left: -5px;
    top: -2px;
}

.sanji {
    margin-left: -12px;
}

.char1 {
    height: 55px;
    width: auto;
    object-fit: contain;
    position: relative;
    margin-left: -1px;
    left: 120px;

}

.luffy1 {

}


/* Github */
#github:hover {
    background-color: #A51C1C;
    color: white; 
}

/* Linkedin */
#linkedin:hover {
    background-color: #ECD759;
    color: white;
}

/* E-mail */
#email:hover {
    background-color: #17DD64;
    color: white;
}

.social-btn:hover i {
    color: white;
}

/* Character pop on hover */
.social-btn:hover {
    transform: scale(1.05);
}

.social-btn:hover .char {
    transform: scale(1.1);
}

#animated-text span {
    opacity: 0;
    display: inline-block;
    animation: fadeInLetter 0.6s ease forwards;
}

@keyframes fadeInLetter {
    from {
        opacity: 0;
        transform: translateY(5px); /* subtle lift */
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Projects section layout */
.projects-section {
    position: relative;
    margin-top: -700px; /* pushes below H1 */
    display: flex;
    justify-content: center;
    width: 100%;
}

/* GRID like real dev portfolios */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 320px);
    gap: 75px;
}

/* Custom Border Control */
:root {
    --card-border: 2px; /* CHANGE THIS VALUE anytime */
}

.cd-title, .cd-name {
    color: #A51C1C;
    font-weight: bold;
    font-family: "system-ui", -apple-system, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.cd-title, .cd-title2, .cd-title3 {
    position: relative;
    top: -50px;
}

.cd-name, .cd-name2, .cd-name3 {
    position: relative;
    top: -10%;
}

.cd-name {
    position: relative;
    top: -10%;
}

.desc-para, .desc-para2, .desc-para3 {
    font-family: "system-ui", -apple-system, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
    position: relative;
    top: -10%;
}

/* .desc-para2 {
    font-family: "system-ui", -apple-system, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
    position: relative;
    top: -15%;
}

.desc-para3 {
    font-family: "system-ui", -apple-system, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
    position: relative;
    top: -15%;
} */

.cd-title2, .cd-name2 {
    color: #ECD759;
    font-weight: bold;
    font-family: "system-ui", -apple-system, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.cd-title3, .cd-name3 {
    color: #00FF55;
    font-weight: bold;
    font-family: "system-ui", -apple-system, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}


/* Card BASE style */
.project-card {
    background: rgba(0, 0, 0, 0.85);
    border-radius: 14px;
    padding: 25px;
    min-height: 550px;
    width: 370px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    border: var(--card-border) solid;
    transition: all 0.3s ease;

    backdrop-filter: blur(6px);
}

/* Colors per card */
.project-card.red {
    border-color: #A51C1C;
}

.project-card.yellow {
    border-color: #ECD759;
}

.project-card.green {
    border-color: #00FF55;
}

/* Text */
.project-card h3 {
    font-size: 13px;
    letter-spacing: 1px;
    opacity: 0.7;
}

.project-card h2 {
    font-size: 22px;
    margin: 10px 0;
}

.project-card p {
    font-size: 14px;
    color: #aaa;
    line-height: 1.5;
}

/* View button */
.view-btn {
    position: relative;
    top: -10%;
    margin-top: 20px;
    text-decoration: none;
    font-family: "system-ui", -apple-system, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 600;
    transition: 0.3s;
}

/* Match button color with card */
.project-card.red .view-btn {
    color: #A51C1C;
}

.project-card.yellow .view-btn {
    color: #ECD759;
}

.project-card.green .view-btn {
    color: #00FF55;
}

/* Hover effects (one piece theme) */
.project-card:hover {
    transform: translateY(-10px) scale(1.03);
}

/* Glow per theme */
.project-card.red:hover {
    box-shadow: 0 0 25px #A51C1C;
}

.project-card.yellow:hover {
    box-shadow: 0 0 25px #ECD759;
}

.project-card.green:hover {
    box-shadow: 0 0 25px #00FF55;
}

/* Button hover */
.project-card.red .view-btn:hover {
    text-shadow: 0 0 10px #A51C1C;
    text-decoration: underline;
}

.project-card.yellow .view-btn:hover {
    text-shadow: 0 0 10px #ECD759;
    text-decoration: underline;
}

.project-card.green .view-btn:hover {
    text-shadow: 0 0 10px #00FF55;
    text-decoration: underline;
}

/* Floating animation */
/* .project-card {
    animation: floatCard 4s ease-in-out infinite;
}

.project-card:nth-child(2) {
    animation-delay: 0.5s;
}

.project-card:nth-child(3) {
    animation-delay: 1s;
}

@keyframes floatCard {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
} */

.project-icons {
    display: flex;
    position: relative;
    top: -8%;
    gap: 12px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.project-icons img {
    position: relative;
    width: 28px;
    height: 28px;
    object-fit: contain;
    transform: 0.3s ease;
}

.project-img {
    position: relative;
    top: -8%;
}

.project-icons img:hover {
    cursor: pointer;
    transform: scale(1.2);
}

.experiences-section {
    margin-top: -760px; /* Pushes everything below title */
    display: flex;
    justify-content: center;
}

.experiences {
    width: 70%;
    display: flex;
    flex-direction: column;
    gap: 25px;

}

.exp-card:nth-child(1) {
    background: white(0, 0, 0, 0.85);
    padding: 30px;
    border-radius: 14px;
    font-family: "system-ui", -apple-system, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
    border: 2px solid #A51C1C;

    box-shadow: 0 0 20px rgba(165, 28, 28, 0.4);
    backdrop-filter: blur(6px);

    transition: 0.3s;
}

.exp-card:nth-child(2) {
    background: white(0, 0, 0, 0.85);
    padding: 30px;
    border-radius: 14px;
    font-family: "system-ui", -apple-system, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
    border: 2px solid #ECD759;

    box-shadow: 0 0 20px rgba(165, 28, 28, 0.4);
    backdrop-filter: blur(6px);

    transition: 0.3s;
}

.exp-card:nth-child(3) {
    background: white(0, 0, 0, 0.85);
    padding: 30px;
    border-radius: 14px;
    font-family: "system-ui", -apple-system, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
    border: 2px solid #00FF55;

    box-shadow: 0 0 20px rgba(165, 28, 28, 0.4);
    backdrop-filter: blur(6px);

    transition: 0.3s;
}

.exp-card:nth-child(1):hover {
    cursor: pointer;
    transform: scale(1.02);
    box-shadow: 0 0 30px #A51C1C;
}

.exp-card:nth-child(2):hover {
    cursor: pointer;
    transform: scale(1.02);
    box-shadow: 0 0 30px #ECD759;
}


.exp-card:nth-child(3):hover {
    cursor: pointer;
    transform: scale(1.02);
    box-shadow: 0 0 30px #00FF55;
}


.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.duration {
    font-size: 16px;
    opacity: 0.8;
}

.exp-card ul {
    padding-left: 20px;
}

.exp-card li {
    margin-bottom: 8px;
    color: black;
}
/* 
.page-transition {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;

    background: url('/jons-portfolio-site/images/one_piece_map.jpg');
    background-size: cover;
    background-position: center;

    transform-origin: center;

    
    transform: scaleX(0.05) scaleY(0.2);
    filter: blue(2px) contrast(1.2);

    opacity: 1;
    transition: transform 1.2s ease-in-out, filter 1.2s ease-in-out, opacity 0.6s ease-in-out;

} */

/* OPEN STATE */
/* .page-transition.open {
    transform: scaleX(1) scaleY(1);
    filter: blur(0px) contrast(1);
    opacity: 0;
} */

.page-transition {
    position: fixed;
    inset: 0;
    z-index: 9999;
    perspective: 1200px;
    pointer-events: none;
}

/* both halves */
.page-transition .left,
.page-transition .right {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;

    background-image: url(/jons-portfolio-site/images/one_piece_map.jpg);
    background-size: cover;
    /* background-position: center;

    transform-origin: center;

    
    transform: scale(0.05);
    opacity: 1;

    filter: blur(8px); */
}

.page-transition .left {
    left: 0;
    transform-origin: right;
}
.page-transition .right {
    right: 0;
    transform-origin: left;
}

.page-transition.closed .left {
    transform: rotateY(90deg);
}

.page-transition.closed .right {
    transform: rotateY(-90deg);
}

/* OPEN (expand like unfoldind) */

.page-transition.open {
    transform: scale(1);
    filter: blur(0px);
    transition: transform 1.2s cubic-bezier(0.77, 0, 0.18, 1), filter 1.2s ease;
}

/* CLOSE (roll back in center) */
.page-transition.closed {
    transform: scale(0.05);
    filter: blur(8px);
    transition: transform 1.0s cubic-bezier(0.77, 0, 0.18, 1), filter 0.6s ease;
}

.mute-btn {
    position: absolute;
    top: 12%;
    right: 5%;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s ease;
}

.mute-btn:hover {
    transform: scale(1.1);
    background: rgba(0, 0, 0, 0.85);
}

.mute-btn2 {
    position: absolute;
    top: 12%;
    right: 5%;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s ease;
}

.mute-btn2:hover {
    transform: scale(1.1);
    background: rgba(0, 0, 0, 0.85);
}

.map-container {
    position: relative;
    width: 100%;
    height: 100vh;

    /* transform-origin: center center;

    /* Start state */
    /* transform: scaleY(0.05) scaleX(0.2); */
    /* transform-style: preserve-3d; */ 
    /* filter: blur(6px); */

    /* animation: unfoldMap3 1.4s cubic-bezier(0.77, 0, 0.18, 1) forwards; */

    perspective: 1200px;
    overflow: hidden;
}

.map-half {
    position: absolute;
    width: 100%;
    height: 50%;
    overflow: hidden;
}

/* Image inside halves */
.map-half img {
    width: 100%;
    height: 100vh;
    object-fit: cover;
}

.map-half.top {
    top: 0;
    transform-origin: bottom center;
}

.map-half.top img {
    transform: translateY(0);
}

.map-half.bottom {
    bottom: 0;
    transform-origin: top center;
}

.map-half.bottom img {
    transform: translateY(-50%);
}

.map-half.top {
    animation: openTop 1.4s cubic-bezier(0.77, 0, 0.18, 1) forwards;
}

.map-half.bottom {
    animation: openBottom 1.4s cubic-bezier(0.77, 0, 0.18, 1) forwards;
}

/* Animation */

@keyframes openTop {
    0% {
        transform: rotateX(-90deg);
    }
    60% {
        transform: rotateX(10deg); /* slight overshoot */
    }
    100% {
        transform: rotateX(0deg);
    }
}

@keyframes openBottom {
    0% {
        transform: rotateX(90deg);
    }
    60% {
        transform: rotateX(-10deg);
    }
    100% {
        transform: rotateX(0deg);
    }
}

@keyframes unfoldMap {
    0% {
        transform: scaleY(0.05) scaleX(0.2);
        filter: blur(6px);
    }
    60% {
        transform: scaleY(1.05) scaleX(1.02); /* Slight over shot or premium feel*/
        filter: blur(2px);
    }
    100% {
        transform: scaleY(1) scaleX(1);
        filter: blur(0);
    }
}

@keyframes unfoldMap2 {
    0% {
        transform: scaleY(0.05) rotateX(80deg);
        /* opacity: 0; */
    }
    100% {
        transform: scaleY(1) rotateX(0deg);
        /* opacity: 1; */
    }
}

@keyframes unfoldMap3 {
    0% {
        transform: scaleY(0.02) scaleX(0.25);
        filter: blur(8px);
        opacity: 0.5;
    }
    40% {
        transform: scaleY(0.6) scaleX(0.9);
        filter: blur(4px);
    }
    70% {
        transform: scaleY(1.08) scaleX(1.02); /* slight overshoot */
        filter: blur(1px);
    }
    100% {
        transform: scaleY(1) scaleX(1);
        filter: blur(0);
        opacity: 1;
    }
    
}

.map-instruction {
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);

    padding: 18px 28px;
    border-radius: 14px;

    /* Glass effect (same as exp cards) */
    background-color: #e1d298;
    backdrop-filter: 0.0.20px rgba(0, 0, 0, 0.6);

    border: 2px solid black;

    /* Text styling */
    color: black; /* parchment vibe */
    font-size: 20px;
    letter-spacing: 1px;
    text-align: center;

    /* One Piece font feel */
    font-family: 'Treasure Map Deadhand', 'Cinzel', serif;

    /* Slight glow */
    text-shadow: 0 0 6px rgba(255, 220, 150, 0.4);

    z-index: 10;

    animation: floatText 4s ease-in-out infinite;
}

@keyframes floatText {
    0%, 100% {
        transform: translate(-50%, 0);
    }
    50% {
        transform: translate(-50%, -6px);
    }
}

.mute-container {
    position: absolute;
    top: 20%;
    right: 5%;
}

/* Tooltip bubble */
.mute-tooltip {
    position: absolute;
    bottom: 65px;
    left: 55%;
    transform: translateX(-80%);

    background: rgba(20, 20, 20, 0.9);
    color: white;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 14px;

    white-space: nowrap;

    /* subtle glow like UI */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);

    /* bounce animation */
    animation: floatTooltip 3s ease-in-out infinite;
}

/* tooltip arrow */
.mute-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);

    border-width: 6px;
    border-style: solid;
    border-color: rgba(20, 20, 20, 0.9) transparent transparent transparent;
}

@keyframes floatToolTip {
    0%, 100% {
        transform: translate(-50%, 0);
    }
    50% {
        transform: translate(-50%, -6px);
    }
}