/* body */
body {
    margin: 0;
    padding: 0;
    width: 99vw;
    min-height: 100vh;
    box-sizing: border-box;
    scroll-behavior: smooth;
    font-family: Akaya;
    display: flex;
    flex-direction: column;
    cursor: default;
}
html {
    scroll-behavior: smooth;
}

/* fonts */
@font-face {
    font-family: Comic_neue;
    src: url(../../miscellaneous/fonts/Comic_Neue/ComicNeue-Regular.ttf) format('truetype');
}
@font-face {
    font-family: Akaya;
    src: url(../../miscellaneous/fonts/Akaya_Telivigala/AkayaTelivigala-Regular.ttf) format('truetype');
}
@font-face {
    font-family: Averia;
    src: url(../../miscellaneous/fonts/Averia_Gruesa_Libre/AveriaGruesaLibre-Regular.ttf) format('truetype');
} 

.main {
    width: 100%;
    box-sizing: border-box;
    background-color: #9faf91;
    margin: 50px;
    padding: 20px;
}

/* header */
header {
    padding: 0.5rem 2vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    position: fixed;
    width: 100%;
    box-sizing: border-box;
    background-color: #FCFCFC;
    color: #2A2B2E;
    box-shadow: 0 60px 80px rgba(0, 0, 0, 0.1);
}
header a img {
    min-height: 80px;
    height: 10vw;
    margin-left: 40px;
}
header a {
    text-decoration: none;
    color: #2A2B2E;
}
header nav .active {
    color: #bacaad;
}
header nav .lang {
    text-decoration: underline;
}
header nav .line {
    width: 1.7px;
    height: 4vh;
    background-color: #2A2B2E;
    margin: 0;
    display: inline-block;
    vertical-align: middle;
}
header nav a {
    color: #2A2B2E;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0 2vw;
    font-size: 2vw;
}
@media (max-width: 1000px) {
    header nav a{
        font-size: 2.4vw;
    }
}
@media (max-width: 650px) {
    header nav a{
        font-size: 3vw;
    }
    .main {
        margin: 0;
    }
}
header nav a:hover {
    color: #bacaad;
    font-size: 2vw;
}
header .nav-mobile, header .nav-toggle {
    display: none;
}
@media (max-width: 550px) {
    header nav, header .nav-mobile {
        display: none;
    }
    header .nav-mobile.show {
        display: flex;
    }
    header .nav-toggle {
        display: block; /* Show toggle button */
        font-size: 2.5rem;
        background: none;
        border: none;
        color: #2A2B2E;
        cursor: pointer;
        width: 80px;
        box-sizing: border-box;
    }
    .nav-mobile {
        font-size: 1.4rem;
        display: none;
        flex-direction: column;
        position: absolute;
        top: 85px; /* Adjust to match your navbar height */
        left: 35%;
        width: calc(100% - 40px);
        background-color: #bacaad;
        padding: 10px;
        z-index: 1000;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Add shadow for depth */
        box-sizing: border-box;
    }
    .nav-mobile .mobile-nav-link {
        text-decoration: none;
        color: #2A2B2E;
        padding: 15px 20px;
        border-bottom: 1px solid #465947;
        transition: background-color 0.3s ease, color 0.3s ease;
    }
    .nav-mobile .mobile-nav-link:last-child {
        border-bottom: none; /* Remove border for the last item */
    }
    .nav-mobile .mobile-nav-link:hover {
        background-color: #465947;
        color: #FCFCFC;
    }
}

/* main */
main {
    display: flex;
    flex: 1;
    justify-content: center;
    width: 100%;
    margin-top: var(--header-height, 60px); /* fallback value in case variable isn't set */
    background-color: #FCFCFC;
    box-sizing: border-box;
}
  
#goUpBtn {
    display: none;            /* Hidden by default */
    position: fixed;
    bottom: 50px;
    right: 20px;
    z-index: 99;              /* Make sure it stays on top */
    background-color: #2A2B2E;
    color: white;
    border: none;
    outline: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background-color 0.3s ease;
  }
  
  #goUpBtn:hover {
    background-color: #465947;
  }
  

/* footer */
footer {
    background-color: #FCFCFC;
    box-shadow: 0 -60px 80px rgba(0, 0, 0, 0.1);
    display: grid;
    grid-template-columns: 1fr auto 1fr; /* Three columns: left spacer, center, right */
    align-items: center;
    margin: 0;
    user-select: none;
}
.socialsFooter {
    margin-left: 20px;
    display: flex;
    justify-content: left;
    align-items: center;
    gap: 10px; 
    height: 100%;        
}
.socialsFooter a {
    display: inline-block;
    transition: transform 0.3s ease;
}
.socialsFooter a:hover {
    transform: scale(1.15);
}
.socialsFooter img {
    width: 30px;   
    height: 30px;   
    object-fit: contain; 
}
footer p a {
    text-decoration: none;
    color: #2A2B2E;
}
footer .copy {
    grid-column: 2;
    text-align: center;
    padding: 15px 0;
    margin: 0;
    font-size: clamp(0.9rem, 1vw, 4rem);
}
footer p:last-child {
    grid-column: 3;
    justify-self: end;
    padding: 0 20px;
    margin: 0;
    font-size: clamp(0.8rem, 0.8vw, 4rem);
}

#logoutBtn {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #f44336; /* red background */
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    z-index: 1000;
    transition: background-color 0.3s ease;
}
#logoutBtn:hover {
  background-color: #d32f2f;
}
@media (max-width: 1200px) {
    #logoutBtn {
        top: 10px;
        right: 10px;
        padding: 8px 12px;
        font-size: 1vw;
    }
}
@media (max-width: 400px) {
    #logoutBtn {
        top: 10px;
        right: 10px;
        padding: 8px 12px;
        font-size: 1.5vw;
    }
}



