.experiments-overview-container{
    display: grid;
    grid-template-columns: 20% 20% 20% 20% 20%;
    /*width: 80vw;*/
    padding-left: 5vh;
    padding-right: 10%;
    padding-bottom: 6vh;
    column-gap: 2vw;
    row-gap: 6vh;
    max-width: 2000px;
    position: absolute;
}

.experiment-overview-container{
    /*display: block;
    border-radius: 10%;
    height: 15vh;
    min-height: 75px;
    cursor:pointer;*/
}

.experiment-overview-title{
    display: block;
    text-align: center;
    z-index: 2;
    color: white;
    padding-top: 5px;
    margin-bottom: 5px;
}

.experiment-image-locked {
    position: relative;
    text-align: center;
    line-height: 100%;
}

.experiment-image-locked img{
    /*filter: blur(5px);*/
    filter: grayscale(100%);

}

.overview-page-title-container {
    width:100%;
    position: absolute;
    height:100%;
    object-fit: scale-down;
    margin-top: 40px;
}

.experiment-overview-page {
    width:100%; height:60%; object-fit: scale-down;
}

.switch-button-container {
    position: absolute;
    top: 4vh;
    right: 7vw;

}

.switch-button {
    background-color: black;
    color: white;
    padding: 10px 15px;
    display: inline-block;
    font-size: 16px;
    text-decoration: none;
    transition-duration: 0.4s;
    border: 2px solid black;
    border-radius: 5px;
    cursor: pointer;
    z-index: 5;
}

.switch-button:hover {
    background-color: white;
    border: 2px solid black;
    color: black;
}

.ai .switch-button {
    border: 2px solid #008CBA;
    background-color: #008CBA;
    color: white;
}

.ai .switch-button:hover {
    background-color: white;
    border: 2px solid #008CBA;
    color: black;
}

.experiment-image {
    position: relative;
    text-align: center;
    line-height: 100%;
    cursor: pointer;
    border: none;
    box-sizing: border-box;  /* Ensures padding and border are included in the element's total width and height */
    border-radius: 10px;
    transition: transform 0.5s linear; /* Smooth transition for scaling */
}

.experiment-image .experiment-image-img{
    transition: all 0.5s linear;
}
.experiment-image-locked .experiment-image-img{
    transition: all 0.5s linear;
}
/* Hover effect on the image container */
.experiment-image:hover {
    transform: scale(1.1); /* Scale both the container and the image */
}

.experiment-image:hover .experiment-image-img {
    opacity: 0.1;
}
.experiment-image-img:focus {
    outline: 3px solid #1a73e8;
    outline-offset: 4px;
    border-radius: 10px;
}

.banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-top: 60px solid #4caf50; /* Triangle height */
    border-right: 60px solid transparent; /* Triangle width */
    color: white;
    z-index: 10;
    font-size: 10px;
    border-radius: 10px 0 0 0; /* Rounding the top-right corner */
}


/* Icon inside the banner */
.banner-icon {
    position: absolute;
    top: -50px;
    left: 10px;
    font-size: 20px; /* Adjust icon size */
    color: white;
    z-index: 10;
}

/* Completed banner (green) */
.completed-banner {
    border-top-color: #4caf50; /* Green for success */
}

/* In Progress banner (yellow) */
.in-progress-banner {
    border-top-color: #ff9800; /* Orange for in progress */
}

.experiment-overlay {
    position: absolute;
    left: 0;
    top: 0;
    background-color: transparent;
    height: 100%;
    width: 100%;
    padding: 0 10px;
    transition: background-color 0.5s linear;
    border-radius: 10px;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.experiment-image:hover .experiment-overlay{
    background-color: rgba(0, 0, 0, 0.25);
}
.experiment-image-locked:hover .experiment-overlay{
    background-color: rgba(0, 0, 0, 0.25);
}


/* Move .experiment-overlay span to the end for specificity and override */

.lesson-plan-span {
    font-size: 8px;

}

.lesson-video-span {
    font-size: 8px;
}

.experiment-image span {
    z-index: 5;
    position: absolute;
    width: 80%;
    left: 10%;
    top: 10%;
    height:80%;
    overflow: hidden;
    color: orange;
    opacity: 0;
    transition: all 0.5s linear;
    pointer-events: none;
}

.experiment-image-locked span {
    z-index: 5;
    position: absolute;
    width: 80%;
    left: 10%;
    top: 10%;
    height:80%;
    overflow: hidden;
    color: orange;
    opacity: 0;
    transition: all 0.5s linear;
    pointer-events: none;
    text-shadow: 1px 1px 0 #000;
}

/* Ensure overlay text is fully visible */
.experiment-overlay span {
    position: static !important;
    width: auto !important;
    height: auto !important;
    left: auto !important;
    top: auto !important;
    overflow: visible !important;
    pointer-events: none;
    margin: 0;
}

.experiment-image:hover span {
    opacity: 1;
}
.experiment-image-locked:hover span {
    opacity: 1;
}
.experiment-lesson-plan {
    position: absolute;
    z-index: 10;
    width: 40px;
    top: -20px;
    left: 18vw;
    transform: rotate(-20deg);
    transition: transform 0.5s linear;
    background-color: black;
    border-radius: 5px;
}

.experiment-lesson-plan:hover {
    transform: rotate(20deg);
    transform: scale(2, 2);
}

.experiment-lesson-plan img {
    box-shadow: none;
    transition: opacity 0.5s ease; /* Smooth transition for fading effect */
}

.experiment-lesson-plan:hover img {
    opacity: 0.2; /* Fade to 50% opacity on hover */
}

.experiment-lesson-plan:focus {
    outline: 3px solid #1a73e8;
    outline-offset: 4px;
    border-radius: 10px;
}

.experiment-lesson-video {
    position: absolute;
    z-index: 10;
    width: 50px;
    top: -20px;
    left: 1vw;
    transition: transform 0.5s linear;
    border-radius: 5px;
}

.experiment-lesson-video:hover {
    transform: scale(2, 2);
}

.experiment-lesson-video img {
    box-shadow: none;
}

.experiment-lesson-video:focus {
    outline: 3px solid #1a73e8;
    outline-offset: 4px;
    border-radius: 10px;
}


@media(max-width: 1600px){
    .experiments-overview-container {
        grid-template-columns: 25% 25% 25% 25%;
    }
}
@media(max-width: 900px){
    .experiments-overview-container {
        grid-template-columns: 30% 30% 30%;
    }
    .experiment-lesson-plan {
        left: 21vw;
    }
}
@media(max-width: 600px){
    .experiments-overview-container {
        grid-template-columns: 50% 50%;
    }
    .experiment-lesson-plan {
        left: 30vw;
    }
}

@media(min-width: 2500px){
    .experiments-overview-container {
        margin: auto;
    }

}
@media(max-height: 700px){
/*    .experiment-overview-container {
        height: 100px;
    }
    .experiments-overview-container {
        row-gap: 25px;
    }*/
}

@media(max-height: 900px){
    .experiment-overview-page {
        /*margin-top: 100px;*/
    }
}

@media(min-width: 1550px) {
    .experiment-lesson-plan {
        left: 18vw;
    }
}

@media(min-width: 1600px) {
    .experiment-lesson-plan {
        left: 15vw;
    }

}@media(min-width: 2500px) {
    .experiment-lesson-plan {
        left: 375px;
    }
}

/* Hack the Bank: Center and enlarge tiles for exactly two tiles only */
body.hack-the-bank .experiments-overview-container:has(> .experiment-overview-container:nth-child(2):last-child) {
    display: flex !important;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    padding-left: 0;
    padding-right: 0;
    max-width: 100%;
    position: relative;
}
body.hack-the-bank .experiments-overview-container:has(> .experiment-overview-container:nth-child(2):last-child) > .experiment-overview-container {
    flex: 0 1 400px;
    max-width: 400px;
    min-width: 300px;
}