@import url('https://fonts.cdnfonts.com/css/tt-firs-neue-trl');

body {
    background-image: url("img/background.webp");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 50% 0%;
    padding: 0;
    margin: 0;
    height: 100dvh;
    width: 100dvw;
    display: flex;
    color: white;
    font-family: 'TT Firs Neue Trl', sans-serif;
}

a {
    text-decoration: none;
    font-weight: 800;
    font-size: 1.5rem;
}

.container {
    position: relative;
    background: black;
    opacity: 0.75;
    margin: 5rem auto;
    border-radius: 50px;
    border: 5px orange solid;
    box-shadow: 10px 10px 10px 10px rgba(0, 0, 0, 0.5);
}

.title {
    text-align: center;
    font-size: 3rem;
    font-weight: 600;
    margin: 3rem 2rem 0 2rem;
}

.job-list {
    display: grid;
    grid-template-columns: 1fr auto auto;
    column-gap: 2rem;
    row-gap: 1rem;
    padding: 2rem;
    font-size: 1.2rem;
    
    & button {
        width: 80px;
        height: 35px;
        background-color: transparent;
        border-color: white;
        border-radius: 10px;
        aspect-ratio: 1/1;
        padding: 0;
        margin: 0;
        color: white;
        font-size: 1.2rem;

        &:hover {
            background-color: #b97534;
            color: black;
        }
    }
}

.logo {
    position: absolute;
    right: 2rem;
    bottom: 1rem;

    & img {
        width: 350px;
    }
}

.job-ad-window {
    background: linear-gradient(to bottom right, #000000, #333333);
    width: 100dvw;
    height: 100dvh;

    & h1 {
        color: orange;
        text-align: center;
    }
    
    & h3 {
        text-align: center;
    }
    
    & h2 {
        color: orange;
    }

    & p, li {
        font-size: 1.1rem;
    }
}

#info-modal-1, #info-modal-2, #info-modal-3 {
    position: fixed;
    top: 0;
    left: 0;
    height: 100dvh;
    width: 100dvw;
    background-color: rgba(0,0,0,.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal__window {
    position: relative;
    background: linear-gradient(to bottom right, #000000, #333333);
    padding: 0rem 2rem 1rem 2rem;
    border-radius: 30px;
    box-shadow: 10px 10px 10px 10px rgba(0, 0, 0, 0.5);

    & iframe {
        width: 90dvw;
        height: 90dvh;
        border: none;
    }
}

.modal__close {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: orange;
}

#info-modal-1:not(:target), #info-modal-2:not(:target), #info-modal-3:not(:target) {
    visibility: hidden;
    opacity: 0;
}

@media screen and (width < 400px) {
    .title {
        font-size: 1.5rem;
    }

    .job-list {
        font-size: 1rem;
        column-gap: 1rem;

        & button {
            height: 30px;
            width: 70px;
            font-size: 1rem;
        }
    }

    .container {
        margin: 0;
    }

    .job-ad-window {
        & h1 {
            font-size: 1.5rem;
        }
        
        & h2 {
            font-size: 1.2rem;
        }
        
        & h3 {
            font-size: 1.1rem;
        }

        & p, li {
            font-size: 1rem;
        }
    }
    
    .logo img {
        width: 175px;
    }
}

@media screen and (width < 700px) {
    .logo img {
        width: 175px;
    }

    .title {
        font-size: 1.8rem;
    }

    .container {
        margin: 1rem auto;
    }
}

@media screen and (height < 780px) {
    body {
        height: auto;
        background-size: 100dvw max(100dvh, 100%);
    }

    .logo img {
        width: 125px;
    }

    .title {
        font-size: 1.8rem;
        margin-top: 1rem;
    }

    .job-list {
        & button {
            font-size: 1rem;
            height: 30px;
            width: 70px;
        }
    }

    .container {
        margin: 1rem auto;
        width: 90dvw;
        height: 90dvh;
    }
}
