body {
    background-color: #2573c0;
}

footer {
    height: 90px;
}

#header-nav,
#header-nav a,
#header-nav a:link,
#header-nav a:visited {
    color: #F0F7EE;
}

#header-nav a:hover {
    color: #251605;
}

.hamburger-nav {
    color: #F0F7EE;
}

.language-toggle a {
    color: #F0F7EE;
}

.language-toggle a:hover {
    color: #251605;
}

.category {
    display: flex;
    flex-wrap: wrap;
    font-size: 18px;
    gap: 20px;
    justify-content: center;
    margin-top: 25px;
    margin-bottom: 30px;

}

.category-item {
    padding: 20px;
    border: 2px solid #b7d7fc;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
    color: #b7d7fc;
    font-size: 20px;
}

.category-item:hover {
    background-color: #e7e4e4;
    color: #8aa1bb;
    box-shadow: 0 0 20px #e7e4e4,
                0 0 80px #e7e4e4,
                0 0 160px #e7e4e4;
    border: 2px solid #e7e4e4;
    transition-delay: .2s;
    transform: scale(1.05);
}

.highlight-banknote {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    height: 450px;
    transition: grid-template-columns 0.6s ease-in-out;
}

.box {
    position: relative;
    overflow: hidden;
    transition: transform 0.6s ease-in-out, filter 0.6s ease-in-out;
}

.box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.6s ease-in-out;
}

#box-1 img {
    object-position: 47%;
}

#box-2 img {
    object-position: 32.5%;
}

#box-3 img {
    object-position: 55%;
}

#box-4 img {
    object-position: 66%;
}

#box-5 img {
    object-position: 40%;
}

#box-6 img {
    object-position: 50%;
}

#box-7 img {
    object-position: 40%;
}

.box:hover img {
    filter: grayscale(0%) opacity(100%);
}

.overlay {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%) translateY(30px);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 15px;
    font-size: 14px;
    text-transform: uppercase;
    opacity: 0;
    transition: all 400ms;
    border-radius: 10px;
}

.box:hover .overlay {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.highlight-banknote:hover .box {
    filter: grayscale(100%) opacity(30%);
}

.highlight-banknote .box:hover {
    filter: grayscale(0%) opacity(100%);
    transform: scale(1.05);
}

/* Dynamically expand hovered box */
.highlight-banknote:has(.box:hover) {
    grid-template-columns: 5fr 1fr 1fr 1fr 1fr 1fr 1fr;
}

.highlight-banknote:has(.box:nth-child(2):hover) {
    grid-template-columns: 1fr 5fr 1fr 1fr 1fr 1fr 1fr;
}

.highlight-banknote:has(.box:nth-child(3):hover) {
    grid-template-columns: 1fr 1fr 5fr 1fr 1fr 1fr 1fr;
}

.highlight-banknote:has(.box:nth-child(4):hover) {
    grid-template-columns: 1fr 1fr 1fr 5fr 1fr 1fr 1fr;
}

.highlight-banknote:has(.box:nth-child(5):hover) {
    grid-template-columns: 1fr 1fr 1fr 1fr 5fr 1fr 1fr;
}

.highlight-banknote:has(.box:nth-child(6):hover) {
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 5fr 1fr;
}

.highlight-banknote:has(.box:nth-child(7):hover) {
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 5fr;
}

/* Text Overlay */
.box::after {
    content: attr(data-text);
    position: absolute;
    bottom: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 400ms;
}

.box:hover::after {
    opacity: 1;
    transform: translateY(0);
}

.highlight-coin {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 10px;
}

.coin-box {
    display: flex;
    flex-direction: row;
    position: relative;
    width: 400px;
    height: 200px;
    gap: 2px;
    transition: transform 0.6s ease-in-out;
}

.coin-box img {
    width: 50%;
    height: 100%;
    object-fit: contain;
    image-rendering: auto;
}

.coin-overlay {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%) translateY(30px);
    background: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 6px 10px;
    font-size: 15px;
    border-radius: 8px;
    opacity: 0;
    transition: all 0.6s ease;
    white-space: nowrap;
}

.coin-box:hover .coin-overlay {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Optional hover effect */
.coin-box:hover {
    transform: scale(1.05);
}

.coin-box:hover img {
    filter: brightness(0.8);
}

.container-top {
    width: 90%;
    margin: auto;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 0 10px #8CC1FE,
                0 0 20px #8CC1FE,
                0 0 30px #8CC1FE;
    margin-top: 25px;
    backdrop-filter: blur(0px);
    background-color: rgba(12, 12, 12, 0.8);
}

.container-highlight {
    width: 90%;
    margin: auto;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 0 10px #8CC1FE,
                0 0 20px #8CC1FE,
                0 0 30px #8CC1FE;
    margin-top: 25px;
    backdrop-filter: blur(3px);
    background-color: rgba(0, 0, 0, 0.9);
}

.container {
    width: 90%;
    margin: auto;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 0 10px #B6D8FF,
                0 0 20px #B6D8FF,
                0 0 30px #B6D8FF;
    margin-top: 25px;
    backdrop-filter: blur(3px);
    background-color: rgba(7, 47, 95, 0.5);
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #d1e5ff;
}

::-webkit-scrollbar-thumb {
    background: #1f2733;
    border-radius: 10px;
}

h1 {
    text-align: center; 
    font-size: 42px; 
    color: #b7d7fc;
}

h2 {
    text-align: center; 
    font-size: 33px;
    color: #b7d7fc;
}

h3 {
    text-align: center; 
    font-size: 30px;
    margin-top: 35px;
    margin-bottom: 5px;
    color: #468fcb;
}

h4 {
    margin-right: 15px;
    font-size: 21px;
    color: rgb(230, 226, 226);
    margin-top: 20px;
    margin-bottom: 10px;
}

h5 {
    margin-right: 15px;
    font-size: 18px;
    color: rgb(230, 226, 226);
    margin-top: 10px;
    margin-bottom: 20px;
}

p {
    font-size: 21px;
    margin-left: 15px;
    margin-right: 15px;
    margin-top: 10px;
    margin-bottom: 10px;
    color: rgb(230, 226, 226);
}

ul {
    list-style: none;
    font-size: 21px;
    margin-top: 0;
    margin-bottom: 10px;
    margin-right: 5px;
    padding: 0 0 0 30px;
    color: rgb(230, 226, 226);
}

ul li::before {
    left: -1em;
    position: relative;
}

#top_btn {
    color: #072F5F;
}

#top_btn:hover {
    background-color: #072F5F;
    color: whitesmoke;
}

.regions-wrapper {
    width: 90%;
    margin: auto;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 0 10px #B6D8FF, 
                0 0 20px #B6D8FF, 
                0 0 30px #B6D8FF;
    margin-top: 30px;
    backdrop-filter: blur(3px);
    background: rgba(7, 47, 95, 0.5);
}

.regions-heading {
    text-align: center;
    font-size: 42px;
}

.regions-wrapper h2:first-of-type {
    margin-top: 0;
}

.continent-panels {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    padding: 30px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.continent-panel {
    padding: 30px;
    color: #b7d7fc;
    border: 2px solid #b7d7fc;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    font-size: 21px;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.continent-panel:hover {
    background: #e7e4e4;
    color: #8aa1bb;
    box-shadow: 0 0 20px #e7e4e4,
                0 0 80px #e7e4e4,
                0 0 160px #e7e4e4;
    border: 2px solid #e7e4e4;
    transition-delay: .2s;
    transform: scale(1.05);
}

.back-button {
    margin-bottom: 20px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    position: absolute;
    z-index: 10;
    margin-left: 3%;
    margin-top: 2.5%;
    transition: all 0.3s;
    font-family: 'Times New Roman', Times, serif;
}

.back-button:hover {
    background: black;
    color: white;
    transition-delay: .2s;
    transform: scale(1.05);
}

@media (max-width: 700px) {
    #header-nav {
        background-color: #141618;  
    }

    #header-nav,
    #header-nav a,
    #header-nav a:link,
    #header-nav a:visited {
        color: whitesmoke;
    }

    .highlight-banknote {
        height: 250px;
        gap: 3px;
    }

    #box-1 img {
        object-position: 47%;
    }

    #box-2 img {
        object-position: 41%;
    }

    #box-3 img {
        object-position: 60%;
    }

    #box-4 img {
        object-position: 62%;
    }

    #box-5 img {
        object-position: 36%;
    }

    #box-6 img {
        object-position: 46%;
    }

    #box-7 img {
        object-position: 47%;
    }

    .overlay {
        bottom: 5px;
        padding: 5px 4px;
        font-size: 9px;
        border-radius: 6px;
    }

    .highlight-coin {
        flex-direction: column;
        align-items: center;
    }

    .coin-box {
        width: 90vw;
        height: auto;
    }

    .coin-box img {
        width: 50%;
        height: auto;
    }

    .coin-overlay {
        font-size: 14px;
        bottom: 5px;
        transform: translateX(-50%) translateY(20px);
    }

    .coin-box:hover {
        transform: scale(1.025);
    }

    h1 {
        font-size: 33px; 
        margin: 18px 0px;
    }
    
    h2 {
        font-size: 27px;
        margin: 15px 0px;
    }

    h3 {
        font-size: 27px;
        margin-top: 25px;
    }
    
    h4 {
        font-size: 18px;
        margin: 10px;
    }

    h5 {
        font-size: 15px;
        margin: 10px;
    }

    p {
        font-size: 18px;
        margin: 10px 15px;
    }
    
    ul {
        font-size: 18px;
        margin-bottom: 10px;
        margin-right: 5px;
        padding: 0 0 0 30px;
    }

    .category-item {
        padding: 15px;
        font-size: 18px;
    }

    .continent-panel {
        padding: 15px;
        font-size: 18px;
    }

    .back-button {
        padding: 9px 15px;
        font-size: 12px;
        margin-left: 0;
        margin-top: 0.5%;
    }
} 