/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(to bottom, #1c1c1c, #333333);
    transition: background 0.5s ease-in-out;
    background-attachment: fixed;
    background-size: cover;
    overflow: hidden;
}

.container {
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    padding: 20px;
    width: 80%;
    max-width: 600px;
    margin: 20px;
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out, background 0.5s ease-in-out;
}

.header-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 20px 20px 0 0;
}

.footer {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8em;
    color: rgba(255, 255, 255, 0.5);
}

.workout-display {
    text-align: center;
    width: 100%;
    transition: opacity 0.5s ease-in-out;
}

.workout-display img {
    width: 100%;
    max-width: 300px;
    height: auto;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin-bottom: 15px;
    transition: transform 0.5s ease-in-out, box-shadow 0.5s ease-in-out;
}

.workout-display img.animate {
    transform: scale(1.05);
}

h2 {
    font-size: 1.8em;
    margin: 10px 0;
    color: white;
    transition: color 0.5s ease-in-out;
}

p {
    font-size: 0.9em;
    color: white;
    margin: 5px 0;
    transition: color 0.5s ease-in-out;
}

.controls {
    display: flex;
    justify-content: space-around;
    width: 100%;
    margin-top: 20px;
}

.nav-button {
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    flex: 1;
    margin: 0 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.prev-button {
    background: #ff4081;
}

.next-button {
    background: #3f51b5;
}

.nav-button:hover {
    transform: scale(1.1);
}

.hidden {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(109.6deg, rgb(36, 45, 57) 11.2%, rgb(16, 37, 60) 51.2%, rgb(0, 0, 0) 98.6%);
    background-size: cover;
    filter: blur(2px);
    z-index: -1;
}

.day-filter {
    margin: 20px 0;
    padding: 10px;
    border-radius: 10px;
    border: none;
    background: red;
    color: white;
    font-size: 1em;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .container {
        width: 90%;
        max-width: 500px;
        padding: 15px;
    }

    h2 {
        font-size: 1.5em;
    }

    p {
        font-size: 0.8em;
    }

    .nav-button {
        padding: 8px;
        margin: 0 5px;
    }
}