@font-face {
    font-family: "NotoSans";
    src: url("/NotoSans/NotoSans-VariableFont_wdth_wght.ttf") format("truetype");
}

@font-face {
    font-family: "TwemojiCountryFlags";
    src: url("/TwemojiCountryFlags/TwemojiCountryFlags.woff2") format("woff2");
}

:root {
    --footer-color: #8e8e8e;
    --primary-blue: #002e67;
    --secondary-blue: #e7f1f8;
    --alternative-blue: #2783c0;
    --default-width: 85%;
    --tablet-width: 75vw;
    --desktop-width: 75vw;
    --media-query-tablet: 1080px;
    --media-query-desktop: 1400px;
}

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

body {
    font-family: "TwemojiCountryFlags", "NotoSans";
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 600;
}

h1 {
    font-size: clamp(1.4rem, 0.5437rem + 1.947vw, 2.369rem);
    margin-bottom: 2.369rem;
}

h2 {
    font-size: clamp(1.3rem, 0.5437rem + 1.947vw, 1.777rem);
    margin-bottom: 1.777rem;
}

h3 {
    font-size: clamp(1.2rem, 0.5437rem + 1.947vw, 1.333rem);
    margin-bottom: 1.333rem;
}

h4 {
    font-size: clamp(1rem, 0.5437rem + 1.947vw, 1.25rem);
    margin-bottom: 1.2rem;
}

p,
span,
li,
a,
button {
    font-weight: normal;
    font-size: clamp(0.9rem, 0.5437rem + 1.947vw, 1.2rem);
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
}

.selected,
a:hover {
    cursor: pointer;
    border-bottom: 1px solid white;
}

.navigation-menu {
    list-style: none;
}

.navigation-item {
    margin-top: 0.75em;
}

button {
    background: none;
    color: white;
    border: none;
}

button:hover {
    cursor: pointer;
}

/* button:focus {
  border: 1px solid var(--primary-blue);
  border-radius: 20%;
} */

section {
    padding: 2em;
}

/* General Structure */
.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

.section-container {
    width: var(--default-width);
    margin: 0 auto;
}

/* Navigation */
header {
    width: 100%;
    background-image: url("statics/header-background-new.png");
    background-color: var(--primary-blue);
    padding: 1em 0 3em;
    margin-bottom: 1.5em;
    position: sticky;
    top: 0;
    z-index: 2;
    max-height: min-content;
    box-shadow: 1px 11px 28px -15px rgba(66, 68, 90, 1);
}

.header-container {
    display: flex;
    align-items: center;
    width: var(--default-width);
    margin: 0 auto;
    justify-content: space-between;
}

.logo-container {
    width: 100%;
}

.logo-link {
    display: block;
    width: 50%;
    margin: auto 0;
}

.logo-link:hover {
    border-bottom: none;
}

.logo {
    width: 90%;
    max-width: 300px;
    margin: 0 auto;
    height: unset;
}

#desktop-navigation {
    display: none;
}

#mobile-navigation {
    position: absolute;
    height: 100vh;
    width: var(--default-width);
    top: 0;
    left: -100%;
    background-color: var(--primary-blue);
    transition: ease-in-out 0.2s;
    box-shadow: 14px 5px 15px -5px rgba(0, 0, 0, 0.75);
    z-index: 1;
}

.mobile-languages-selector {
    width: 100%;
    background-color: var(--alternative-blue);
    padding: 0.75em 0;
    position: absolute;
    bottom: 0;
    left: 0;
    text-align: center;
    z-index: 0;
    box-shadow: 0px 15px 15px -5px rgba(0, 0, 0, 0.75);
}

.hamburger-container {
    width: 100%;
    padding: 1em;
}

.hamburger {
    text-align: center;
    display: block;
}

.close {
    width: 100%;
    text-align: end;
    z-index: 2;
}

.mobile-navigation-items {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: 3em;
}

.mobile-navigation-item {
    padding: 1em;
    border-bottom: 2px solid var(--alternative-blue);
    text-align: start;
}

.map-link,
.footer-navigation-link,
.desktop-navigation-link,
.mobile-navigation-link {
    color: white;
    text-decoration: none;
}

.mobile-navigation-button {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.navigation-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: var(--default-width);
}

.primary-navigation,
.secondary-navigation {
    width: 100%;
}

.primary-navigation-menu,
.secondary-navigation-menu {
    display: flex;
    justify-content: space-between;
}

.primary-navigation-item {
    color: white;
    cursor: pointer;
}

.primary-navigation-item:hover {
    text-decoration: unset;
    color: white;
    cursor: pointer;
}

.selected-language {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: clamp(0.7rem, 0.4437rem + 1vw, 0.9rem);
}

.selected-language-value {
    font-weight: bold;
    font-size: clamp(0.7rem, 0.4437rem + 1vw, 0.9rem);
}

.custom-select-options-container {
    background-color: var(--alternative-blue);
    padding: 0 1.5em 0.75em;
    overflow-y: scroll;
    max-height: 20vh;
    position: absolute;
    right: 0;
    visibility: hidden;
    opacity: 0;
    width: 100%;
    transition: ease-in-out 0.2s;
    box-shadow: 0px 15px 15px -5px rgba(0, 0, 0, 0.75);
}

.custom-select-options {
    width: var(--default-width);
    margin: 0 auto;
    columns: 2;
}

.custom-select-options-item {
    margin-right: 0.75em;
    margin-bottom: 0.75em;
}

/* Home Page */
.map-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.map-img {
    display: none;
    width: 100%;
    object-fit: contain;
}

.continents-list-container {
    width: 100%;
    text-align: center;
}

.continents-list {
    list-style: none;
    line-height: 2.5rem;
}

.continents-map {
    flex: 1;
    max-width: 650px;
}

.currency-button {
    color: black;
    grid-row: 3/4;
    text-align: center;
}
.currency-button-text {
    margin: 0.75rem;
    grid-column: 1/-1;
}

.currency-button:hover {
    border-bottom: 3px solid var(--primary-blue);
    cursor: pointer;
    box-shadow: 0px 13px 30px -9px rgba(66, 68, 90, 1);
}

.read-more-button {
    color: var(--primary-blue);
    padding: 0;
    margin: 0;
}

.read-more-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
}

/* Privacy Policy Page */
.privacy-policy-list {
    padding-left: 2rem;
}

.privacy-policy-list-item {
    margin-bottom: 1.2rem;
}

/* Currency */
.currency-container {
    margin-top: 2em;
    display: grid;
    grid-template-columns: 1fr;
}

.currency-block {
    display: grid;
    color: black;
    border: 3px solid var(--primary-blue);
    margin-bottom: 2em;
    margin-right: 1em;
    align-items: center;
    grid-template-columns: repeat(4, 1fr);
    cursor: pointer;
    transition: ease-in-out 0.2s;
}

.currency-block:hover {
    border-bottom: 3px solid var(--primary-blue);
    cursor: pointer;
    box-shadow: 0px 13px 30px -9px rgba(66, 68, 90, 1);
}

.currency-separator {
    border-right: 3px solid var(--primary-blue);
    height: 100%;
    margin: 0 0.5em 0 1em;
}

.country-flag,
.currency-icon,
.currency-name {
    margin: 0;
    text-align: center;
}

.country-flag,
.currency-icon {
    width: 100%;
    font-weight: bold;
    border-right: 3px solid var(--primary-blue);
    grid-column: 1 / 2;
    font-size: 2em;
}

.currency-icon {
    color: var(--primary-blue);
}

.currency-iso {
    font-size: 0.75rem;
    margin-right: 1em;
}

.currency-iso-country {
    font-size: 0.75rem;
    margin-right: 1em;
}

.currency-button-text,
.currency-name {
    display: block;
    text-align: start;
    margin-left: clamp(0.5rem, 0.5437rem + 1.947vw, 0.95rem);
    /*font-size: clamp(1.15rem, 0.5437rem + 1.947vw, 1.444rem);*/
    font-weight: 600;
    color: var(--primary-blue);
}

.currency-main {
    font-size: clamp(1.15rem, 0.5437rem + 1.947vw, 1.444rem);
}

.currency-name {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    grid-column: 2 / 5;
}

/* Sections */
.currency-section {
    background-color: var(--secondary-blue);
}

.map-section {
    background-color: var(--primary-blue);
    color: white;
}

/* Information Table */
.information-title {
    font-size: 3rem;
    margin-bottom: 1em;
}

.information-title > .iso,
.icon {
    font-size: 2.5rem;
}

.information-container {
    padding: 1em 0;
}

.information-field {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-bottom: 2em;
    border-bottom: 3px solid var(--primary-blue);
    padding-bottom: 1em;
}

.information-tag {
    /*width: 15%;*/
    width: 100%;
}

.information-value {
    width: 100%;
}

.information-value-ul {
    list-style-type: none;
    columns: 2;
}

/* Footer */
footer {
    background-color: var(--footer-color);
    color: white;
    padding: 2em 0;
    width: 100%;
}

.footer-container {
    margin: 0 auto;
    width: var(--default-width);
    display: flex;
    flex-direction: column;
    text-align: center;
}

.summary-info-title {
    margin-bottom: 1.1em;
}

.sitemap-container {
    display: flex;
    justify-content: space-around;
    margin-top: 25px;
}

/* Media Queries */
@media screen and (min-width: 1080px) {
    .section-container,
    .navigation-container {
        width: var(--tablet-width);
    }

    .primary-navigation-menu,
    .secondary-navigation-menu {
        justify-content: space-between;
    }

    .primary-navigation-menu {
        margin-top: 1rem;
        min-width: 280px;
    }

    .footer-container {
        flex-direction: row;
        text-align: left;
        width: var(--tablet-width);
    }

    .summary-info-container,
    .sitemap-container {
        width: 50%;
    }

    .currency-container {
        grid-template-columns: repeat(2, 1fr);
        width: 100%;
    }

    .map-img {
        display: block;
        width: 100%;
    }

    .continents-list-container {
        width: 30%;
        text-align: start;
    }
}

@media screen and (min-width: 1500px) {
    header {
        padding: 1em 0;
    }

    .logo-link {
        display: block;
        width: 50%;
        margin: 0;
    }

    .section-container,
    .navigation-container {
        width: var(--desktop-width);
    }

    .header-container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    #desktop-navigation {
        display: inherit;
        max-width: max-content;
    }

    .navigation-item {
        margin-top: 0;
    }

    .secondary-navigation-menu {
        justify-content: right;
    }

    .mobile-languages-selector,
    #mobile-navigation {
        display: none;
    }

    .hamburger {
        display: none;
    }

    .footer-container {
        flex-direction: row;
        text-align: left;
    }

    .currency-container {
        grid-template-columns: repeat(3, 1fr);
        max-width: 100%;
    }

    .desktop-languages-selector {
        position: relative;
        margin-top: 1em;
    }

    .custom-select-options-container {
        position: absolute;
        width: 370px;
        margin-top: 0.5em;
        padding-top: 0.75em;
    }

    .custom-select-options-item > a {
        font-size: clamp(0.4rem, 0.3rem + 1vw, 0.9rem);
    }

    .information-field {
        flex-direction: row;
        justify-content: space-between;
    }

    .information-tag {
        max-width: 25%;
    }

    .information-value {
        flex: 2;
        max-width: 70%;
    }

    .information-value-ul {
        columns: 3;
    }
}
