html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}

#index-header {
    width: 100%;
    margin: 20px 0 0 0;
}

#buttons-container {
    display: flex;
    gap: 10px;
    width: fit-content;
    margin: 0 20px 0 auto;
}

#theme-container {
    display: block;
    width: 45px;
    height: 45px;
}

#theme-button:hover + #theme-tooltip {
    transform: translate(-90px, 0) scale(1);
}

#theme-tooltip {
    transform-origin: 75% 0%;
    transform: translate(-90px, -30px) scale(0);
}

#main-container {
    display: block;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 5%;
    flex: 1 0 auto;
}

#logo {
    display: block;
    width: 45vw;
    max-width: 220px;
    min-width: 80px;
    margin: 0 auto;
    transition: width 0.3s ease-out;
}

h1 {
    font-family: Commissioner, Arial, sans-serif;
    font-weight: 600;
    font-size: clamp(2rem, 12vw, 4rem);
    text-align: center;
    margin-top: 40px;
    transition: color 0.1s ease-out;
}

body.dark h1 {
    color: #FFFFFF;
}

body.light h1 {
    color: #181818;
}

p {
    display: block;
    font-family: Inter, Arial, sans-serif;
    font-size: clamp(0.9rem, 5vw, 1.3rem);
    color: #FFFFFF;
    text-align: center;
    margin-top: 20px;
    transition: all 0.1s ease-out;
}

body.dark p {
    color: #FFFFFF;
    font-weight: 200;
}

body.light p {
    color: #181818;
    font-weight: 300;
}

#login-button {
    display: block;
    margin: min(60px, 20%) auto 0 auto;
    border: none;
    border-radius: 0.5rem;
    width: 60vw;
    max-width: 260px;
    height: 15vw;
    max-height: 45px;
    font-family: Inter, Arial, sans-serif;
    font-size: clamp(0.5rem, 5vw, 0.9rem);
    background-color: #2AEA73;
    cursor: pointer;
    transition: all 0.1s ease-out;
}

body.dark #login-button:hover {
    background-color: #FFFFFF;
}

body.light #login-button:hover {
    background-color: #181818;
    color: #FFFFFF;
}

footer {
    display: block;
    position: static;
    font-family: Inter, Arial, sans-serif;
    font-weight: 300;
    font-size: clamp(0.5rem, 5vw, 0.9rem);
    width: 100%;
    text-align: center;
    margin: 20px 0 30px 0;
    flex-shrink: 0;
}

footer span {
    display: block;
    margin-bottom: 10px;
}

body.dark footer span {
    color: #cccccc;
}

body.light footer span {
    color: #181818;
}

footer span a {
    text-underline-offset: 4px;
}

footer span a:hover {
    text-decoration: underline;
}

body.dark footer a {
    color: #6acf91;
    font-weight: 400;
}

body.light footer a {
    color: #1bac53;
    font-weight: 500;
}

footer #links-container {
    display: flex;
    justify-content: center;
    gap: 20px;
}

footer #links-container a {
    padding: 5px 10px;
    border-radius: 5px;
    text-decoration: none;
}

body.dark footer #links-container a:hover {
    background-color: #2c2c2c;
}

body.light footer #links-container a:hover {
    background-color: #dddddd;
}

/* Index vertical Media Queries */

@media screen and (height <= 750px) {
    #logo {
        width: 120px;
    }

    h1 {
        font-size: clamp(2rem, 12vw, 2.5rem);
        margin-top: 30px;
    }

    p {
        font-size: clamp(0.9rem, 5vw, 1.1rem);
    }

    #login-button {
        max-width: 200px;
        height: 40px;
        margin: 50px auto 0 auto;
    }

    footer {
        font-size: clamp(0.5rem, 5vw, 0.7rem);
    }

    #about-dialog {
        max-width: 600px !important;
    }
}

@media screen and (height <= 750px) and (width <= 480px) {
    #login-button {
        max-width: 200px;
        height: 35px;
        margin: min(60px, 10%) auto 0 auto;
    }
}