﻿.fs-workout-details-container {
    width: 90%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    margin-inline: auto;
    border: 3px solid var(--fs-dark-purple);
    margin-top: max(65px,8.5%);
    padding:clamp(15px,2vw,40px);
}

.fs-workout-details-title {
    width: 100%;
    text-align: center;
    font-family: roboto-bold;
    font-size: clamp(25px,4vw,70px);
    color: var(--fs-dark-purple);
    margin-block:10px;
}

/*Workout Info*/

.fs-workout-info-wrapper{
    width:100%;
    display:grid;
    align-items:center;
    justify-content:center;
    gap:20px;
}

.fs-workout-info-img {
    grid-column: 1/3;
    width: 100%;
    height: 100%;
}

.fs-workout-info-brief-description {
    grid-column: 3/4;
    height: 100%;
    border: clamp(2px,0.2vw,4px) solid var(--fs-dark-purple);
    font-size: clamp(18px, 2vw, 30px);
    font-family: roboto-light;
    font-weight: bold;
    color: var(--fs-dark-brown);
    padding: 20px 10px;
    box-sizing: border-box;
    line-height:1.5
}

.fs-workout-info-description {
    grid-column: 1/4;
    font-size: clamp(14px, 2vw, 25px);
    font-family: roboto-light;
    font-weight: bold;
    line-height: 1.2;
}

.fs-workout-info-specs {
    grid-column: 1/4;
    display: flex;
    flex-flow:column wrap;
    justify-content:flex-start;
    align-items:flex-start;
    gap:20px;
    height: 280px;
    background-color: var(--fs-dark-purple);
    color: var(--fs-white);
    font-family: roboto-thin;
    font-weight: 100;
    font-size: clamp(14px, 2vw, 25px);
    border-radius: 30px;
    padding: clamp(20px,2.5vw,40px) clamp(20px,4vw,80px);
}

.fs-workout-info-spec {
    max-width:30%;
}

    .fs-workout-info-spec strong{
        font-family:roboto-bold;
    }

    .fs-workout-weekday-title {
        font-family: roboto-bold;
        font-size: clamp(37px,3vw,60px);
        color: var(--fs-dark-purple);
        width: 100%;
        text-align: start;
    }

    .fs-workout-weekday-title > span{
        font-family:roboto-light;
    }

    /*Workout Table*/

.fs-workout-table {
    width: 100%;
    text-align: center;
    border-collapse: collapse;
    font-family: roboto-medium;
    color: var(--fs-dark-purple);
    font-size: 25px;
}

.fs-workout-table caption{
    caption-side: bottom;
    font-family:roboto-light;
    font-weight:bolder;
    font-size:clamp(18px, 2vw, 25px);
    margin-top:20px;
    text-align:start;
}

    .fs-workout-table tr:has(th) {
        height: clamp(30px,4vw,70px);
    }

    .fs-workout-table tr:has(td) {
        height: clamp(30px,3.5vw,60px);
        border-bottom: 5px solid var(--fs-white);
    }

        .fs-workout-table tr:nth-child(odd):not(:first-child) {
            background-color: #CCCCCC;
        }

        .fs-workout-table tr:nth-child(even) {
            background-color: #E6E6E6;
        }

        .fs-workout-table th {
            border-collapse: collapse;
            background-color: var(--fs-dark-purple);
            color: var(--fs-white);
            font-size: clamp(20px, 2vw, 40px);
            font-family: Arial, Helvetica, sans-serif;
        }

            .fs-workout-table th:nth-child(1),
            .fs-workout-table td:nth-child(1) {
                max-width: 100px;
            }

        .fs-workout-table th:nth-child(4),
        .fs-workout-table td:nth-child(4) {
            border-color: transparent;
            background-color: var(--fs-white);
        }

        .fs-workout-table td a, .fs-workout-table td div {
            display: flex;
            justify-content: flex-start;
            align-items: center;
            width: 100%;
            gap: 20px;
            margin-left: 20px;
        }

        .fs-workout-table td a {
            color: var(--fs-dark-purple);

        }

        .has-media {
            text-decoration: underline;
        }

        .fs-workout-table td:not(:has(a)) img {
            visibility: hidden;
        }

        /* Style the checkbox container */
        .checkbox-container {
            display: inline-block;
            vertical-align: middle;
        }

    .checkbox-container input[type="checkbox"] {
        display: none;
    }

.custom-checkbox {
    width: 25px;
    height: 25px;
    background-color: white;
    border: 2px solid var(--fs-dark-purple); /* Green border */
    display: inline-block;
    position: relative;
}

    /* Style the custom checkmark */
    .custom-checkbox::after {
        content: ""; /* Checkmark character */
        background-color: #00D407; /* Green color */
        font-size: 18px;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        opacity: 0; /* Hide by default */
        width: 80%;
        height: 70%;
        transform-origin: bottom left;
        clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
    }

/* Show the checkmark when checkbox is checked */
.checkbox-container input[type="checkbox"]:checked + .custom-checkbox::after {
    opacity: 1;
}

.fs-workout-weekday-description{
    font-family:roboto-light;
    font-size:clamp(14px, 2vw, 30px);
    color:var(--fs-dark-purple);
    font-weight:bolder;
    width:100%;
    margin-top: -1%;
}

.fs-workout-details-progress-section, .fs-workout-details-exercises-section {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
	padding-bottom: 50px;
}

.fs-workout-details-section-title {
    width: 100%;
    text-align: center;
    font-family: roboto-bold;
    font-size: clamp(30px,3vw,60px);
    color: var(--fs-dark-purple);
    margin-block: clamp(20px,2vw,30px);
}

.fs-workout-details-navigation{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:clamp(15px, 2vw, 30px);
    font-size:clamp(16px, 2vw, 30px);
    color:var(--fs-dark-purple);
}

.fs-workout-details-navigation a{
    width:clamp(20px,2vw,40px);
}

    .fs-workout-details-navigation a img{
        width:100%;
    }

    .fs-workout-details-progress-section progress {
        width: 100%;
        height: 100%;
        border-radius: 28px;
        border: 1px solid var(--fs-dark-purple);
    }

    .fs-workout-details-progress-section progress::-webkit-progress-bar {
        background-color: transparent;
        border-radius: 12px;
    }

    .fs-workout-details-progress-section progress[value]::-webkit-progress-value {
        background-color: var(--fs-orange);
        height: 100%;
        border-radius: 28px;
    }

.fs-workout-reset-button{
    background-color:var(--fs-red);
    color:var(--fs-white);
    font-size:clamp(14px, 1vw, 20px);
    margin-top:20px;
}

.fs-workout-progress {
    width: clamp(260px, 80%, 2000px);
    height: clamp(15px, 2vw, 30px);
    margin-block: 30px;
}

/*Workout Video*/

.fs-workout-video-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(0,0,0,.4);
    overflow-y: auto;
}

.fs-workout-video-modal {
    position:relative;
    width: clamp(500px,40%,800px);
    height: clamp(300px,50vh,800px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--fs-white);
    border-radius: clamp(40px,3vw,70px);
    border: 1px solid #707070;
    padding: clamp(15px,2.5vw,4px);
    box-sizing:border-box;
}

.fs-workout-video-modal-close-btn{
    position:absolute;
    top:-50px;
    right:30px;
    width: 35px;
    height:40px;
    display:flex;
    flex-direction:column;
    justify-content:flex-start;
    align-items:center;
    border:none;
    background-color:transparent;
}

    .fs-workout-video-modal-close-btn:before, .fs-workout-video-modal-close-btn:after {
        content:'';
        position: absolute;
        top: 20px;
        left: 0;
        width: 100%;
        height: 5px;
        transform: rotate(55deg);
        background-color: var(--fs-white);
    }

    .fs-workout-video-modal-close-btn:after {
        left: unset;
        right: 0;
        transform: rotate(125deg);
    }

        .fs-workout-video-modal video {
            width: clamp(250px,60%,500px);
            border: none;
        }

.week-video-img {
    width: 80%;
    height: 80%;
}

@media screen and (max-width:1500px){
    .fs-workout-table{
        font-size:20px;
    }
}

@media screen and (max-width:1200px){
    .fs-workout-table{
        font-size:18px;
    }
}

@media screen and (max-width:768px) {

        .fs-workout-video-modal {
            width: clamp(300px,70%,800px);
            height: clamp(300px,40vh,800px);
        }

        .fs-workout-info-brief-description {
        margin:unset;
    }

    .fs-workout-info-description {
        margin:unset;
    }

    .fs-workout-info-spec {
        max-width: 50%;
    }
        .fs-workout-table {
            font-size: 16px;
        }

        .fs-workout-table td img {
            display: none;
        }

        .fs-workout-table td:nth-child(4) {
            background-color: transparent;
        }

        .fs-workout-table th:nth-child(4){
            background-color:var(--fs-dark-purple);
        }

        .fs-workout-info-img {
            grid-column: 1/4;
        }

        .fs-workout-info-brief-description {
            grid-column: 1/4;
        }

        .custom-checkbox {
            width: 15px;
            height: 15px;
        }
}

@media screen and (max-width:480px) {
    .fs-workout-table {
        font-size: 14px;
    }
        .fs-workout-table th{
            max-height:50px;
        }
}