:root {
    /* tm-primary colors */
    --tm-primary-15: #fff3ff;
    --tm-primary-25: #feeffa;
    --tm-primary-50: #fcdff4;
    --tm-primary-100: #f9bfea;
    --tm-primary-200: #f6a0df;
    --tm-primary-300: #f380d5;
    --tm-primary-400: #f060ca;
    --tm-primary-500: #d856b6;
    --tm-primary-600: #c04da2;
    --tm-primary-700: #a8438d;
    --tm-primary-800: #903a79;
    --tm-primary-900: #783065;
    --tm-primary-950: #602651;
}
body {
    background-color: var(--tm-primary-50);
}
h5 {
    padding: 20px;
    text-align: center; /* Center the h5 element */
}
.media-section {
    display: none;
    padding: 20px;
    max-width: 1200px; /* Adjusted max-width to fit 3 images per row comfortably */
    margin: 0 auto;
}
.media-section.active {
    display: block;
    background-color: black;
    color: var(--tm-primary-500);
}
.media-content {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center; /* Center the content */
}
.media-content img {
    width: calc(33.33% - 6.66px); /* Approximately 1/3 width with gap adjustment */
    height: auto;
}
.media-content iframe {
    width: 80%; /* Video takes 80% of the screen width */
    height: 450px; /* Adjust height as needed */
    max-width: 960px; /* Optional: limit max width for large screens */
}
a {
    margin: 5px;
    padding: 10px 20px;
    cursor: pointer;
    color: var(--tm-primary-500) !important;
}
.media {
    background-color: black;
}
.buttons {
    display: flex;
    justify-content: space-around;
    padding: 10px;
    background-color: black;
}
.aboutus {
    padding: 20px;
}
.slideshow-container {
    max-width: 600px;
    width: 100%;
    position: relative;
    margin: auto;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}
.card {
    display: none;
    padding: 20px;
    background: linear-gradient(135deg, var(--tm-primary-800), var(--tm-primary-50));
    color: white;
    text-align: center;
    border-radius: 10px;
    animation: fade 3s ease-in-out;
}
.cards {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}
.card.active {
    display: block;
}
.card h2 {
    font-size: 1.8em;
    margin-bottom: 10px;
}
.card p {
    font-size: 1.2em;
    margin: 5px 0;
}
.card .medals {
    font-size: 1.5em;
    margin-top: 10px;
}
.nav-buttons {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}
.nav-buttons button {
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    font-size: 2em;
    padding: 10px;
    cursor: pointer;
    transition: background 0.3s;
}
.nav-buttons button:hover {
    background: rgba(0, 0, 0, 0.8);
}
ul {
    text-align: center; /* Center the list of links */
    list-style-type: none; /* Remove bullets */
    list-style-position: inside; /* Ensure bullets are centered with text */
    margin: 0 auto; /* Center the ul element */
    padding: 0;
}
@media (max-width: 900px) {
    .modal {
        display: none !important; /* Prevent modal from being displayed */
    }
    .media-content img {
        pointer-events: none; /* Disable click events on images */
        width: 70%; /* Changed to 70% for one image per row */
        height: auto;
    }
    .media-content {
        margin-top: 10px;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center; /* Center content on smaller screens */
    }
    .media-content iframe {
        width: 80%; /* Keep video at 80% width */
        height: 300px; /* Adjust height for smaller screens */
    }
}
@keyframes fade {
    from { opacity: 0; }
    to { opacity: 1; }
}
@media (max-width: 600px) {
    .card h2 {
        font-size: 1.5em;
    }
    .card p {
        font-size: 1em;
    }
    .nav-buttons button {
        font-size: 1.5em;
        padding: 8px;
    }
    .media-content iframe {
        width: 80%; /* Keep video at 80% width */
        height: 200px; /* Further adjust height for very small screens */
    }
}
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
}
.modal-content {
    margin: auto;
    display: block;
    max-width: 30%;
    border-radius: 10px;
}
.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #ffffff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}
.close:hover,
.close:focus {
    color: #ccc;
}

.icons{
    color: var(--tm-primary-500) !important; /* Links color set to primary-500 */
    text-decoration: none !important;
    padding: 0px !important; /* Space between social media icons */

}
