/* General Styles */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #c43d3d; /* Light gray-blue background */
    color: #333;
}

.main-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    margin-top: 120px;
    margin-bottom: 50px;
    background: #ffffff; /* White background for content */
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.banner {
    margin-bottom: 20px;
    margin-top: 5px;
    width: 100%;
    overflow: hidden;
}

.header-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.header-image:hover {
    transform: scale(1.05);
}

.workout-program {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.section {
    margin-bottom: 30px;
}

h1 {
    color: #1e90ff;
    margin-bottom: 15px;
    font-size: 2.5rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

h2 {
    color: #ff6347;
    margin-bottom: 10px;
    font-size: 1.8rem;
}

h3 {
    color: #20b2aa;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

ul {
    list-style-type: disc;
    margin-left: 20px;
}

li {
    margin-bottom: 15px;
}

.tip {
    font-size: 1rem;
    color: #888;
    margin-top: 5px;
    font-style: italic;
}

/* Message Styles */
.message {
    background-color: #1e90ff;
    color: #ffffff;
    text-align: center;
    padding: 15px;
    border-top: 3px solid #ffffff;
    position: fixed;
    bottom: 0;
    width: 300px;
    font-size: 1.1rem;
    font-weight: bold;
    display: none; /* Hidden by default */
    transition: opacity 0.5s ease;
    z-index: 9999;
    align-self: center;
}

.square-container {
    display: grid; /* Enable grid layout */
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* Create responsive columns */
    gap: 20px; /* Add space between squares */
    margin-top: 20px; /* Add margin if needed */
}


.square {
    width: 250px;
    height: 250px;
    background-color: #ffffff;
    border: 1px solid #ddd;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 10px;
    overflow: hidden;
}

.square a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.square img {
    width: 100%;
    height: 70%;
    object-fit: cover;
    border-bottom: 1px solid #ddd;
}

.title {
    padding: 10px 0;
    font-size: 1.2rem;
    text-align: center;
    color: #007bff;
    font-weight: 600;
}

.title2 {
    display: none;
}

.square:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

@media (max-width: 500px) {
    ul {
        padding-left: 0;
    }

    .square-container {
        gap: 10px;
        padding: 10px;
        margin-bottom: 50px;
        margin-left: 15%;
    }

    .square {
        width: 80%;
        height: 240px;
    }

    .square img {
        height: 95%;
    }

    .title {
        display: none;
    }

    .title2 {
        display: block;
        padding-top: 5px;
        padding-bottom: 30px;
        font-size: 1.2rem;
        text-align: center;
        color: #007bff;
        font-weight: 600;
    }
}

@media (max-width: 380px) {
    .square {
        width: 80%;
    }
}

@media (max-width: 350px) {
    .square {
        width: 80%;
        height: 200px;
    }

    .square-container {
        margin-left: 10%;
    }
}