/*
This stylesheet contains any customized styling required by the page.
*/

body {
    background-color: #111;

    font-family: monospace;
    padding: 0;
    margin: 0;

    display: flex;
    flex-direction: column;
    color: #f0f0f0;
}

a {
    text-decoration: none;
}

a:visited {
    color: #f0f0f0;
}

main {
    position: relative;
    height: 100vh;
}

#page-title {
    font-family: monospace;
    margin: 0;
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#page-title>h1 {
    font-size: 1.6em;
    margin: 0;
}

#page-title>h2 {
    font-size: 1.1em;
    margin: 0;
    text-align: center;
}

#page-get-in-touch {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#page-get-in-touch>a,
.dialog-close-button {
    background-color: #f0f0f0;
    font-weight: 700;
    opacity: 0.6;
    color: #111;
    border: none;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 1rem;
    transition: all 0.3s ease-in-out;
}

#page-get-in-touch>a:hover {
    opacity: 0.8;
    padding: 0.7rem 1.2rem;
    animation: rainbow 6s linear 0s infinite;
}

#page-footer {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, -50%);
}

#page-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#page-footer ul {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
}

#page-footer ul li {
    font-size: 0.8rem;
    color: #f0f0f0;
    padding: 1rem;
}

#page-footer ul a {
    color: #f0f0f0;
    opacity: 0.3;
    transition: all 0.3s ease-in-out;
}

#page-footer ul a:hover {
    color: #f0f0f0;
    opacity: 1;
}

#background {
    height: 100vh;
    background-image: url("../assets/background.jpg");
    background-size: cover;
    background-position: center;

    background-attachment: fixed;

    filter: brightness(0.5);
}

.blink {
    animation: blink 0.9s steps(1, start) infinite;
}

@keyframes blink {

    from,
    to {
        color: transparent;
    }

    50% {
        color: #f0f0f0;
    }
}

@keyframes rainbow {

    from,
    to {
        background-color: #f0f0f0;
    }

    10% {
        background-color: orange;
    }

    30% {
        background-color: red;
    }

    50% {
        background-color: yellow;
    }

    70% {
        background-color: green;
    }

    90% {
        background-color: blue;
    }
}

/* Modal classes */
.modal {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    z-index: 10;

    max-width: 100vw;
    max-height: 90vh;
    height: auto;

    background-color: rgba(0, 0, 0, 0.9);
}

.modal-body {
    overflow: auto;
    flex-grow: 1;

    padding: 1rem;
}

.dialog-close-button {
    margin: 0.8rem 1rem;
    width: fit-content;
    align-self: center;
}

.dialog-close-button:hover {
    opacity: 0.8;
}

.is-active {
    display: flex;
}