/*
    Main Image
*/
@font-face {
    font-family: 'Enchanted Land';
    font-style: normal;
    font-weight: normal;
    src: local('Enchanted Land'), url('./fonts/enchanted_land.otf') format('truetype');
}

.main-video {
    position: absolute;
    box-sizing: border-box;
    object-fit: cover;
    width: 100%;
    height: 38rem;
    z-index: -999;
}

.main-image {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 38rem;
}

.main-image-text {
    text-align: center;
    color: var(--text-colour-light);
}

.main-image-text:first-child {
    font-size: 96px;
    font-size: 6rem;
    text-align: center;
    font-family: var(--motto-font);
    font-weight: var(--motto-weight);
}

/*
    Body
*/

div[title="ildens-rise-title"] {
    font-size: 128px;
    font-size: 8rem;
    font-family: "Enchanted Land";
    font-weight: var(--motto-weight);
    display: flex;
    justify-content: center;
    margin-top: 8rem;
    color: #470948;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

div[title="ildens-rise-container"] {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin-top: 4rem;
    margin-left: 8rem;
}

div[title="desc-and-buttons"] {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

div[title="ildens-rise-desc"] {
    padding: 0 8rem;
    font-size: 24px;
    font-size: 1.5rem;
    color: var(--text-colour-dark);
}

div[title="ildens-rise-buttons"] {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
}

button[title="Ilden's Rise"] {
    background-color: var(--button-colour-alt);
}

/*
    Media Queries
*/

@media (min-width: 2560px) {

    /* Large screens (1440p, 4K, etc) */

    .main-video {
        height: 48rem;
    }

    .main-image {
        height: 48rem;
    }

}

@media (max-width: 1700px) {

    div[title="ildens-rise-desc"] {
        padding-left: 3rem;
        padding-right: 3rem;
    }

}

@media (max-width: 1500px) {
    
    div[title="ildens-rise-container"] {
        flex-direction: column;
        margin-right: 8rem;
    }

    div[title="ildens-rise-desc"] {
        padding-top: 2rem;
        width: 800px;
    }

}

@media (max-width: 1280px) {

    .main-video {
        src: url("video/games-main-video-mobile.mp4");
    }

}

@media (max-width: 900px) {

    div[title="ildens-rise-title"] {
        font-size: 6rem;
        text-align: center;
    }

    div[title="video-container"] iframe {
        width: 600px;
        height: 360px;
    }

    div[title="ildens-rise-desc"] {
        width: 600px;
        padding-left: 0;
        padding-right: 0;
    }

}

@media (max-width: 600px) {

    div[title="video-container"] iframe {
        width: 400px;
        height: 240px;
    }

    div[title="ildens-rise-desc"] {
        width: 400px;
    }

    div[title="ildens-rise-buttons"] {
        width: 400px;
    }

}

@media (max-width: 400px) {

    div[title="video-container"] iframe {
        width: 250px;
        height: 120px;
    }

    div[title="ildens-rise-desc"] {
        width: 250px;
    }

    div[title="ildens-rise-buttons"] {
        width: 300px;
    }

    div[title="ildens-rise-buttons"] button {
        padding: 1rem;
    }

}