@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-align: center;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
}

h1 {
    font-size: 25px;
    margin-top: 20px;
    color: #343a40;
}

.counter p {
    font-size: 1.5em;
    margin: 10px 0;
}

.card {
    text-align: center;
}

.video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    margin: 0 auto;
}

video, canvas {
    border: 2px solid #ddd;
    border-radius: 8px;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

canvas {
    pointer-events: none;
    border-radius: 8px;
}

/* Spinner Styles */
#loading-spinner {
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#loading-spinner.hidden {
    opacity: 0;
    visibility: hidden;
}

#loading-spinner .spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Status Message Styles */
#status-message {
    opacity: 0;
    display: none;
    transition: opacity 0.5s ease;
    margin-bottom: 20px;
}

#status-message.visible {
    opacity: 1;
    display: block;
}

.highlight {
    animation: highlight 0.3s ease;
}

@keyframes highlight {
    from {
        background-color: yellow;
    }
    to {
        background-color: transparent;
    }
}

#start-workout {
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#start-workout.hidden {
  opacity: 0;
  display: none;
}



/* ======Another====== */

.custom-container{
    width: 90%;
    margin: 0px auto;
    padding-right: 182px;
}

.custom-grid{
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 15px;
}

.logo-box{
    width: 35%;
}

.side{
    position: fixed;
    top: 0;
    right: 0;
    width: 240px;
    height: 100vh;
    background-color:#b19544;
}

.btn{
    width: 200px;
    font-weight: 500;
    font-family: "Roboto", serif;
}

.card{
    height: 130px;
}

.card-body p, .card-body span{
    font-family: "Roboto", serif;
}

.card-body span{
    font-size: 14px;
}

.workout{
    display: grid;
    grid-template-columns: 1fr;
}



/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (max-width: 600px) {
    .custom-container{
        padding-right: 0;
    }
    .custom-grid{
        grid-template-columns: 1fr;
    }
    .side{
        display: none !important;
    }

    .logo-box{
        width: 80% !important;
    }

    .card-title{
        font-size: 16px;
    }

    .card-text{
        font-size: 20px;
    }
    .small{
        font-size: 14px;
    }
    .workout{
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .card-main:last-child{
        grid-column: 1 / -1;
    }
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 600px) and (max-width: 768px) {
    .custom-container{
        padding-right: 0;
    }
    .custom-grid{
        grid-template-columns: 1fr;
    }
    .side{
        display: none !important;
    }
    .logo-box{
        width: 70% !important;
    }
    .workout{
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
    }
}
/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 768px) and (max-width: 992px) {
    .logo-box{
        width: 60% !important;
    }
    .custom-container{
        padding-right: 0;
    }
    .side{
        display: none !important;
    }
}
