@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans&family=Amiri:wght@400;700&family=Readex+Pro:wght@300;400;500&display=swap');

@media (max-width: 1024px) {
    html { font-size: 15px; }
}
@media (max-width: 855px) {
    html { font-size: 14px; }
}
@media (max-width: 685px) {
    html { font-size: 13px; }
}
@media (max-width: 480px) {
    html { font-size: 12px; }
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}


nav {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    border-bottom: 2px solid #E4E0C4;
}
.logo {
    width: 5rem;
    margin: 0 3.5rem;
    background: radial-gradient(circle, #311f01ad 0%, rgba(0,0,0,0) 65%);
}
.dark-nav>.logo {
    background: radial-gradient(circle, #FFEAC9 0%, rgba(0,0,0,0) 75%);
}
.nav-list {
    list-style: none;
    display: flex;
    width: max-content;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
    padding: 1rem 0;
    font: 300 1rem 'Readex Pro';
}
.nav-icon {
    display: none;
    padding: 0.7rem;
    text-align: center;
}
.nav-item, .translate {
    margin: 0.5rem 0;
}
.translate {
    font-family: 'Josefin Sans';
}
.nav-item>a, .translate>a {
    padding: 1rem 2rem;
    margin: 1rem ;
    height: min-content;
    cursor: pointer;
    color: #E4E0C4;
    text-decoration: none;
    background-image: linear-gradient(#E4E0C4, #E4E0C4);
    background-size: 0% 0.1em;
    background-position-y: 80%;
    background-position-x: 100%;
    background-repeat: no-repeat;
    transition: background-size 200ms ease-in-out;
}
.nav-item>a:hover, .nav-item>a:focus, .nav-item>a:active,
.translate>a:hover, .translate>a:focus, .translate>a:active, .active>a {
    background-size: 100% 0.1em;
    background-position-x: 0%;
}
.dark-nav {
    border-color: #1b1917;
}
.dark-nav .nav-item>a, .dark-nav>.translate>a {
    color: #1b1917;
    background-image: linear-gradient(#1b1917, #1b1917);
}

@media screen and (max-width: 1110px) {
    .translate>a { padding: 1rem; }
    .nav-item>a { padding: 1rem 1.5rem; }
    .logo { margin: 0 2rem; }
}
@media screen and (max-width: 905px) {
    .translate>a { padding: 0.5rem; }
    .nav-item>a { padding: 0.5rem; }
    .logo { margin: 0.5rem 1rem; }
}
@media screen and (max-width: 650px) {
    .nav-item>a { margin: 1rem 0.5rem; }
}
@media screen and (max-width: 600px) {
    nav {
        font-size: 2rem;
        position: absolute;
        left: 0;
        width: 100%;
        height: 0;
        padding-top: 6rem;
        z-index: 100;
        flex-direction: column;
        background: linear-gradient(180deg, #1d1308 0%, #3c2810 100%);
        border: none;
        transform: translateY(-1000px);
        transition: all 400ms ease-in-out;
    }
    .translate { padding-bottom: 2rem; }
    .translate>a {
        padding: 1rem 0.8rem;
        font-size: 1.5rem;
    }
    .nav-list {
        font-size: 1.5rem;
        flex-direction: column;
        padding: 0;
    }
    .nav-item {
        padding: 1rem 2rem;
        text-align: center;
    }
    .logo { display: none; }
    .nav-icon>a {
        display: inline-block;
        padding: 0.5rem;
    }
    .nav-icon>a>img {
        width: 2.8rem;
    }
    .nav-icon {
        position: absolute;
        z-index: 150;
        width: 90%;
        display: flex;
        justify-content: space-between;
        left: 50%;
        transform: translateX(-50%);
        border-bottom: 2px solid #E4E0C4;
    }
    .sm-logo {
        background: radial-gradient(circle, #311f01d7 0%, rgba(0,0,0,0) 75%);
    }
    .contactBody>.nav-icon {
        border-color: #1b1917;
    }
    .contactBody .sm-logo {
        background: none
    }
    .dark-nav .nav-item>a, .dark-nav>.translate>a {
        color: #E4E0C4;
        background-image: linear-gradient(#E4E0C4, #E4E0C4);
    }
    .nav-icon>.sm-logo>img {
        width: 6.5rem;
    }
    .contact > img { max-width: 2rem; }
}


.contact-box {
    display: none;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    height: 100vh;
    width: 100vw;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 150;
}
#contactPopup {
    padding: 2em 1em;
    display: flex;
    flex-direction: column;
    position: relative;
    height: min-content;
    width: max-content;
    font: 400 1.5rem 'Readex Pro';
    background-color: #f5f1ec;
    box-shadow: 0 0 10em black;
}
#contactPopup>span {
    position: absolute;
    right: 0.3em;
    top: 0.3em;
}
#contactPopup>span>img {
    padding: 0.5em;
    width: 2.1em;
    border-radius: 50%;
    transition: all 100ms ease-in-out;
}
#contactPopup>span>img:hover {
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.3);
}
#contactPopup>p {
    padding: 1.5rem;
    text-align: right;
}
#contactPopup>a {
    margin: 0 1em;
    padding: 0.5em;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    font-size: 1.2rem;
    color: rgba(0, 0, 0, 0.9);
    text-decoration: none;
}
#contactPopup img {
    margin: 0.3rem;
    width: 1.5rem;
}
#contactHeading {
    padding: 0 1em;
    font: 300 2.2rem 'Amiri';
    border-bottom: 1px solid black;
}


.contactContainer {
    position: fixed;
    display: flex;
    align-items: center;
    right: 0;
    top: 70%;
    z-index: 100;
    height: max-content;
}
.contactButton {
    border-bottom-left-radius: 10%;
    border-top-left-radius: 10%;
    cursor: pointer;
    background-color: #ebcea8;
    transition: all 300ms ease-in-out;
    padding: 0.9rem 1rem;
    animation: 2s pulse infinite;
}
.contactButton>img {
    max-width: 2rem;
}
.contactButton:hover {
    animation: none;
    background-color: #eed4b1;
}
@keyframes pulse {
    from{background-color: #eed4b1}
    50%{background-color: #c2a887}
    to{background-color: #eed4b1}
}
@media screen and (max-width: 680px) {
    .contactButton>img { max-width: 2.6rem; }
}


footer {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-evenly;
    border-top: 2px solid rgb(43, 29, 20);
    padding: 3rem;
    background-color: #6b5332;
    color: rgb(255, 250, 239);
}
footer a {
    padding-top: 0.5rem;
    text-decoration: none;
    color: #EFFAFF;
    font: 400 0.8rem 'Readex Pro';
    transition: all 200ms ease-in-out;
}
footer a:hover {
    color: #c9c4bc;
}
.footer-content {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-evenly;
    width: 65vw;
}
@media (max-width: 680px) {
    footer { flex-direction: column; }
    footer>a {
        margin: 0 auto;
        margin-bottom: 1rem;
    }
    .footer-content { width: 100%; }
    .footer-content>div { width: 33vw; }
}
@media (max-width: 500px) {
    footer {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}
@media (max-width: 380px) {
    .footer-content { flex-wrap: wrap; }
    .footer-content>div { width: 40vw; }
}
.footer-1, .footer-2, .footer-3, .footer-4 {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    height: min-content;
    padding: 0 1rem;
    margin-bottom: 2rem;
}
.footer-1>img {
    width: 5rem;
    margin: 1rem;
}
.footer-1>h4 {
    font: 400 1.2rem 'Amiri';
    color: #EFFAFF;
}
.footer-3>div {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
}
.footer-link {
    display: block;
    padding: 0;
    font: 400 1rem 'Readex Pro';
    color: #EFFAFF;
}
