/*
    Main Image
*/

.main-image {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 38rem;
    background-image: url("images/shaders-main-image.jpg");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.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);
}



/*
    Shader Category Headings
*/

.shader-category {
    width: fit-content;
    margin: 10rem auto 0 auto;
    padding-bottom: 1rem;
    text-align: center;
    font-size: 56px;
    font-size: 3.5rem;
    font-family: var(--motto-font);
    font-weight: var(--motto-weight);
    color: var(--text-colour-dark);
    border-bottom: 3px solid var(--link-hover-colour);
}

/* Pull the first showcase block up toward its category heading. */
.shader-category + .overview-section,
.shader-category + .overview-section-mirrored {
    margin-top: 4rem;
}



/*
    Overview Section
*/

.overview-section {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 16rem;
    margin-bottom: 12rem;
    margin-left: min(12vw, 20%);
    margin-right: min(12vw, 20%);
}

.overview-section-mirrored {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 12rem;
    margin-bottom: 12rem;
    margin-left: min(12vw, 20%);
    margin-right: min(12vw, 20%);
}

.overview-section img, .overview-section-mirrored img {
    width: 630px;
    /*height: 354px;*/
    object-fit: cover;
}

.overview-section-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    margin-left: min(5vw, 10%);
    margin-right: min(1vw, 1%);
}

.overview-section-info-mirrored {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    margin-left: min(1vw, 1%);
    margin-right: min(5vw, 10%);
}

.overview-section-title {
    font-size: 40px;
    font-size: 2.5rem;
    text-align: left;
    margin-bottom: 1rem;
    font-family: var(--motto-font);
    font-weight: var(--motto-weight);
}

.overview-section-text {
    font-size: 24px;
    font-size: 1.5rem;
    line-height: 160%;
    text-align: left;
    font-family: var(--text-font);
    font-weight: var(--text-weight);
    color: var(--text-colour-dark);
}



/*
    Overview section buttons
*/

div[title="overview-section-buttons-title"] {
    font-size: 32px;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 3rem;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
    font-family: var(--title-font);
    font-weight: var(--title-weight);
}

.overview-section-buttons {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

.store-button-outer {
    margin-left: 4rem;
    margin-right: 4rem;
}


/*
    Media Queries
*/

@media (min-width: 3840px) {

    .overview-section img, .overview-section-mirrored img {
        width: 1000px;
        height: auto;
    }

}

@media (min-width: 2560px) {

    /* Large screens (1440p etc) */

    .main-image {
        background-image: url("images/shaders-main-image-4K.jpg");
        height: 48rem;
    }

    .overview-section-info, .overview-section-info-mirrored {
        max-width: 50%;
    }

}

@media (max-width: 1600px) {

    /* Reduce the margins on (slightly) smaller screens. */

    .overview-section {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 10rem;
        margin-bottom: 10rem;
        margin-left: min(8vw, 10%);
        margin-right: min(8vw, 10%);
    }

    .overview-section-mirrored {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 10rem;
        margin-bottom: 10rem;
        margin-left: min(8vw, 10%);
        margin-right: min(8vw, 10%);
    }
    
    .overview-section-info {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        margin-left: min(5vw, 10%);
        margin-right: min(1vw, 1%);
    }
    
    .overview-section-info-mirrored {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        margin-left: min(1vw, 1%);
        margin-right: min(5vw, 10%);
    }

}

@media (max-width: 1400px) {

    .overview-section {
        flex-direction: column-reverse;
        margin-top: 7rem;
        margin-bottom: 7rem;
    }

    .overview-section-mirrored {
        flex-direction: column;
        margin-top: 7rem;
        margin-bottom: 7rem;
    }
    
    .overview-section-info {
        align-items: center;
        margin-bottom: 3rem;
        margin-left: min(5vw, 10%);
        margin-right: min(5vw, 10%);
    }
    
    .overview-section-info-mirrored {
        align-items: center;
        margin-bottom: 3rem;
        margin-left: min(5vw, 10%);
        margin-right: min(5vw, 10%);
    }

    .overview-section-title {
        text-align: center;
    }
    
    .overview-section-text {
        text-align: center;
    }

}

@media (max-width: 800px) {

    /* Mobile layout */

    .main-image {
        background-image: url("images/shaders-main-image-mobile.jpg");
        height: 32rem;
    }
    
    .main-image-text :first-child {
        font-size: 72px;
        font-size: 4.5rem;
    }

    .store-button-outer {
        margin-left: 2rem;
        margin-right: 2rem;
    }

    .overview-section a img, .overview-section-mirrored a img {
        width: 100%;
        height: 100%;
    }
}

@media (max-width: 500px) {

    /* Extremely small screens */
    
    .main-image-text :first-child {
        font-size: 64px;
        font-size: 4rem;
    }

    .store-button-outer {
        margin-left: 0.5rem;
        margin-right: 0.5rem;
    }
}

@media (max-width: 450px) {

    .overview-section-buttons {
        flex-direction: column;
        gap: 2rem;
    }

    .store-button-outer {
        margin: 0;
    }

}