/* Reset some default browser styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Roboto", sans-serif;
    line-height: 1.6;
    /*background-color: #f0f0f0;*/
    background-color: #f5f5f5;
    color: #000000;

    /*
    .roboto-<uniquifier> {
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    font-weight: <weight>;
    font-style: normal;
    font-variation-settings:
        "wdth" 100;
    }
    */
}

/* Header styling */
.header {
    /* background-color: #4e4e4e; */
    background-color: #f5f5f5;
    color: #000000;
    padding: 10px;
    text-align: center;

    border-bottom: #9e9e9e solid 1px;
}

header h1 {
    font-size: 2.5em;
}

.header-image {
    width: 115px;
    border-radius: 15px;
    border: 1px solid black;
    padding: 5px;
    background-color: #fff;
}

.header-div {
    display: flex;                 /* Ensure child elements are in a row */
    justify-content: space-between; /* Distribute space between logo and buttons */
    align-items: center;           /* Center items vertically */
}

.header-logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-logo-a {
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-buttons {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.header-button-a {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 20px;
    width: 50px;
    height: 50px;
}

.header-about-img,
.header-language-img,
.header-login-img {
    width: 50px;
    height: 50px;
    border-radius: 50px;
    border: solid #000 1px;
}

/* Navigation styling */
.nav-main {
    background-color: #f5f5f5;
    color: #000000;
    border-bottom: #9e9e9e solid 1px;
    text-align: center;

    padding-top: 10px;
    padding-bottom: 10px;
}

nav ul {
    list-style-type: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin-right: 25px;
    margin-left: 25px;
}

nav ul li a {
    color: #000000;
    font-weight: bold;
    font-size: 1.1em;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color .5s ease-in;
}

nav ul li a:hover {
    border-bottom-color: #000;
}


/* 
=====================================
Modal CSS:
=====================================
*/

    /* ===== MODAL OVERLAY ===== */
.modal {
    position: fixed;
    inset: 0; /* top:0 right:0 bottom:0 left:0 */
    background: rgba(0, 0, 0, 0.5); /* dark overlay */
    display: none; /* hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 9999; /* above everything */
}

/* ===== MODAL BOX ===== */
.modal-content {
    width: 33vw;   /* 1/3 of viewport width */
    height: 25vh;  /* 1/3 of viewport height */
    background: #ffffff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: top;
    animation: fadeInScale 0.25s ease;
}

/* Close button */
#closeModal {
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 26px;
    cursor: pointer;
    color: #666;
    transition: 0.2s ease;
}

#closeModal:hover {
    color: #000;
}

/* Animation */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}