/* mobile first min-width sets base and content is adapted to computers. */
@media (min-width: 100px) {
    #exercise-container{
        margin-bottom: 40px;
    }
    #exercise-container details {
        width: 100%;
    }

    .exercise-grid {
        display: inline-grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        /*display: flex;*/
        /*flex-wrap: wrap;*/
        width: 100%;
        gap: 20px;
        justify-content: center;
        padding: 20px;
        /*border: 1px solid #ccc;*/
    }

    .exercise-grid > div {
        /*background: rgba(255, 255, 255, .1);*/
        background: rgba(180, 159, 145, 0.1);
        border-radius: 20px;
        padding: 15px;
        /*width: 100%;*/
        position: relative;
    }

    .exercise-grid > div:hover {
        /*background: rgba(255, 255, 255, .15);*/
        background: rgba(255, 193, 152, 0.1);
        cursor: pointer;
    }

    .exercise-grid h4 {
        margin: 0px 0 10px 5px;
        /*color: #d5d5d5;*/
        text-align: left;
    }

    .exercise-grid > div video {
        width: 100%;
        height: auto;
        display: block;
        border-radius: 10px;
        z-index: 1;
    }

    #exercise-timer-input{
        background: transparent;
        border: none;
        border-bottom: 2px dashed var(--secondary-text-color);
        width: 50px;
        color: var(--primary-text-color);
        text-align: center;
    }

    #exercise-timer{
        color: var(--secondary-text-color);
        font-size: 0.9rem;
        font-weight: bold;
    }

    /*.exercise-grid > div img {*/
    /*    position: absolute;*/
    /*    top: 12px;*/
    /*    right: 16px;*/
    /*    width: 25px;*/
    /*    display: none; !* Hide the icon by default *!*/
    /*}*/

    .exercise-grid > div #exercise-timer {
        position: absolute;
        top: 15px;
        right: 0;
        margin-right: 15px;
        width: fit-content;
        display: none; /* Hide the icon by default */
    }

    .exercise-grid .selected-exercise #exercise-timer {
        display: block; /* Show the timer when the parent div has the selected-exercise class */
    }

    .selected-exercise {
        outline: 3px solid var(--accent-color);
    }

    .video-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        /*background: rgba(0, 0, 0, 0.9);*/
        background: rgba(0, 0, 0, 0.4);
        /*background: rgba(255, 255, 255, .1);*/
        backdrop-filter: blur(5px);
        z-index: 2;
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 20px;
        /*border: 2px solid #212121;*/
        /*box-shadow: 0px 0px 15px #1f1f1f;*/
        /*box-shadow: 0px 0px 15px #333333;*/
        /*box-shadow: 0px 0px 10px #494949;*/
        /* Add more styles as needed (color, opacity, etc.) */
    }
    .video-overlay:hover{
        /*background: rgba(0, 0, 0, 0.3);*/
        /*background: rgba(255, 255, 255, .1);*/
        box-shadow: 0px 0px 15px var(--accent-color);

    }
    .video-overlay:hover h3{
        /*color: #ffffff;*/
        /*color: var(--accent-color);*/
        background: var(--accent-color);
        filter: brightness(1.5);
    }
    .video-overlay h3{
        color: #a8a7a7;
        color: var(--accent-color);
        color: var(--background-color);
        padding: 3px 10px;
        /*color: #8a4f28;*/

        /*text-shadow: 0px 0px 5px black;*/
        background: black;
        background: #9b9b9b;

    }

    .selected-exercise .video-overlay {
        display: none;
    }


}

@media (min-width: 641px) {
}

@media (min-width: 800px) {
    #exercise-container {
        width: 80%;
    }
}
