/* These styles apply to the landing page */

.intro-img {
    background-image: url('/images/home-page.jpg');
}

.text-block {
    margin-left: 10px;
    margin-right: 10px;
    text-align:center;
}

/* This ensures the video sizing is responsive to the screen size to maintain the aspect ratio */
.video-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    box-shadow: 3px 5px 5px #0003;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.home-grid {
    align-items: center;
    justify-content: center;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    text-align: center;
    background-size: 100% 100%; /* Initial background size set to 100% */
    background-position: center; /* Center the image */
    transition: background-size 0.5s ease-in-out; /* Smooth transition */
    background-repeat: no-repeat; /* Prevent the image from repeating */
    box-shadow: 3px 5px 5px #0003;
    text-decoration: none;
    color: black;
}

.home-classes {
    min-height: 300px;
}

.home-comp {
    min-height: 450px;
}

.home-media {
    min-height: 450px;
}

.home-grid:hover {
    background-size: 120% 120%; /* Zoom the background image on hover */
}

.home-button {
    letter-spacing: 2px;
    text-transform: uppercase;
    background-color: #000;
    border-radius: 12px;
    padding: 10px;
    font-size: 14px;
    line-height: 26px;
    text-decoration: none;
    transition: background-color .4s, opacity .4s, color .4s;
    color: #fff;
    display: inline-block;
    text-align: center;
}

.home-button:hover {
    background-color: rgba(0, 0, 0, 0.5);
}

.gallery-button {
    opacity: 0;
    pointer-events: none;
}

.revolving-gallery {
    align-items: center;
    justify-content: center;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    text-align: center;
    background-size: 100% 100%; /* Initial background size set to 100% */
    background-position: center; /* Center the image */
    transition: background-image 1s ease-in-out, opacity 1s ease-in-out;
    background-repeat: no-repeat; /* Prevent the image from repeating */
    box-shadow: 3px 5px 5px #0003;
}

.revolving-gallery:hover .gallery-button {
    opacity: 1; /* Fade in */
    pointer-events: auto; /* Enable interaction */
}

.grid-3 {
    grid-template-columns: 1fr 1fr 1fr;
}

.grid-2 {
    grid-template-columns: 1fr 1fr;
}

.grid-elementary {
    background-image: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)), url('/images/elementary.jpg');
}

.grid-intermediate {
    background-image: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)), url('/images/intermediate.jpg');
}

.grid-advanced {
    background-image: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)), url('/images/home-advanced.jpg');
}

.grid-showcase {
    background-image: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)), url('/images/showcase.png');
}

.grid-competition {
    background-image: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)), url('/images/competition.png');
}

.mobile-button {
    display: none;
}

@media (max-width: 1040px) {

    .home-classes {
        min-height: 250px;
    }

    .home-comp {
        min-height: 350px;
    }

    .home-media {
        min-height: 350px;
    }

}

@media (max-width: 768px) {

    .grid-3 {
        grid-template-columns: 1fr;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .home-classes {
        min-height: 400px;
    }

    .home-comp {
        min-height: 400px;
    }

    .home-media {
        min-height: 400px;
    }

}

@media (max-width: 1024px) {
    .mobile-button {
        display: flex;
        margin: 5%;
        background-color: rgba(0, 0, 0, 0.5);
    }

    .gallery-button {
        opacity: 1;
        pointer-events: auto;
        margin: 5%;
        background-color: rgba(0, 0, 0, 0.5);
    }

    .revolving-gallery {
        justify-content: flex-end;
    }
}

@media (max-width: 500px) {

    .text-block {
        font-size: 14px;
        margin-right: 0px;
        margin-left: 0px;
    }

    .home-classes {
        min-height: 300px;
    }

    .home-comp {
        min-height: 300px;
    }

    .home-media {
        min-height: 300px;
    }
}

@media (max-width: 400px) {

    .home-classes {
        min-height: 250px;
    }

    .home-comp {
        min-height: 250px;
    }

    .home-media {
        min-height: 250px;
    }
}





