/* Get "Varela Round" font */
@import url('https://fonts.googleapis.com/css2?family=Varela+Round&display=swap');


/* Main Margin and Padding */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Classes */

header,
body * {
    color: #222;
    margin: 0;
    padding: 0;
}

header,
body {
    height: 100%;
    margin: 0;
    padding: 0;
}

header {
    position: relative;
    width: 100%;
    padding: 2rem 1rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20%;
}

header.header-wide {
    min-height: 100vh;
}

header.header-small {
    min-height: 30vh;
}

header.header-small h1 {
    padding: 2rem 4rem;
    border-radius: 20px;
    font-size: 4rem;
}

body {
    height: 100vh;
    font-family: 'Varela Round', sans-serif;
    background-color: #fff;
    color: #222;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-items: center;
}

main#body {
    flex: 1 0 auto;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-items: center;
    flex-direction: column;
    width: 70%;
    padding: 1rem 0;
}

footer {
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px solid #aaa;
    width: 100%;
}

footer a {
    color: #144;
    text-decoration: none;
    transition: 0.3s;
}

footer a:hover {
    color: rgb(34, 138, 138);
}

footer table {
    border-spacing: 3rem 0.2rem;
}

footer tr {
    text-align: left;
}

.container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    max-width: 100%;
    padding: 2rem;
    border-radius: 20px;
}

/* IDs */

#up-button {
    opacity: 1;
    width: 3rem;
    aspect-ratio: 1/1;
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#up-button:hover {
    transform: scale(1.1);
}

#up-button img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#up-button.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.8);
    /* subtle shrink when hidden */
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#header-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    pointer-events: none;
}

#scroll-down-button {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%) scale(1);
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    animation-duration: 2s;
    transition: transform 0.3s ease;
}

#scroll-down-button:hover {
    transform: translateX(-50%) scale(1.1);
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {

    header.header-wide,
    header.header-small {
        min-height: fit-content;
        padding: 2rem 1rem;
    }

    header.header-small h1 {
        font-size: 2.5rem;
        padding: 1rem 2rem;
    }

    main#body {
        width: 80%;
    }

    footer {
        flex-direction: column;
        text-align: center;
    }

    footer table {
        border-spacing: 1rem 0.5rem;
    }

    .container {
        flex-direction: column;
        width: 100%;
        padding: 1rem;
    }

    #scroll-down-button {
        visibility: hidden;
    }

    #up-button {
        width: 2.5rem;
        bottom: 1rem;
        right: 1rem;
    }
}