/* ============================
    BASE / DESKTOP STYLES
============================= */

body {
    background-color: white;
    font-family: Arial, Helvetica, sans-serif;
}

h1 {
    font-size: large;
    color: black;
    text-align: center;
}

p {
    text-align: left;
    font-size: medium;
    font-weight: bolder;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    margin-right: 15px;
}

.nav-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #d6001c;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    margin: 5px;
    transition: background-color 0.3s ease;
}
.nav-button:hover {
    background-color: #00a00b;
}

.r18-final {
    width: 1250px;
    height: 600px;
    border-radius: 30px;
}

.training {
    width: 623px;
    border-radius: 20px;
    float: inline-start;
}

.rodrygo {
    border-radius: 20px;
    float: inline-end;
    width: 625px;
    height: 330px;
}

.sbtn {
    padding: 6px 12px;
    background-color: rgb(149, 241, 149);
    font-weight: bold;
}
.sbtn:hover {
    background-color: red;
}

.schedule1 {
    width: 120px;
    border-collapse: collapse;
    margin: 30px 0;
    font-size: 16px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.schedule1 th, .schedule1 td {
    border: 1px solid #000000;
    padding: 15px;
    text-align: center;
}

.legend-section {
    margin: 40px auto;
    padding: 20px;
    max-width: 1000px;
    font-family: 'Segoe UI', sans-serif;
}

.legend-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: flex-start;
}

.legend-video-box {
    flex: 1 1 560px;
}

.legend-video {
    width: 100%;
    height: 315px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.legend-caption {
    margin-top: 10px;
    font-style: italic;
    color: #555;
    text-align: center;
}

.legend-stats {
    flex: 1 1 300px;
}

.legend-stats ul {
    list-style: none;
    padding: 0;
    font-size: 16px;
}

.legend-stats li {
    margin-bottom: 10px;
    background-color: #f9f9f9;
    padding: 8px 12px;
    border-radius: 6px;
    box-shadow: 0 0 4px rgba(0,0,0,0.05);
}

/* ============================
    MOBILE RESPONSIVE (768px)
============================= */

@media (max-width: 768px) {

    html, body {
        max-width: 100%;
        overflow-x: hidden;
    }

    /* NAVBAR MOBILE */
    .nav {
        flex-direction: column;
        text-align: center;
        padding: 10px 0;
        width: 100%;
    }

    .nav-L, .nav-R {
        flex-direction: column;
        width: 100%;
        align-items: center;
        gap: 10px;
        margin: 0;
        padding: 0;
    }

    .nav-button {
        width: 80%;
        max-width: 300px;
        padding: 10px;
        font-size: 1rem;
    }

    .nav-logo img {
        width: 120px;
        margin-bottom: 10px;
    }

    /* IMAGES FIX */
    img,
    .r18-final,
    .training,
    .rodrygo {
        width: 100% !important;
        height: auto !important;
        float: none !important;
        display: block;
        margin: 10px auto;
    }

    /* TEXT */
    h1, h2, p {
        text-align: center;
        width: 100%;
        margin: auto;
    }

    p {
        font-size: 1rem;
        padding: 0 10px;
    }

    /* VIDEOS */
    iframe, video {
        width: 100% !important;
        height: auto !important;
    }

    /* LEGENDS SECTION */
    .legend-container {
        flex-direction: column;
        text-align: center;
    }
    .legend-video-box, .legend-stats {
        width: 100% !important;
    }

    /* FORMS */
    form, #login, #signup {
        width: 95%;
        margin: auto;
    }

    input, button, .sbtn {
        width: 100%;
        padding: 12px;
        box-sizing: border-box;
    }

    .login-container {
        width: 95%;
        margin: auto;
        padding: 15px;
    }

    /* TABLE */
    .schedule1 {
        width: 100%;
        font-size: 14px;
    }
    .schedule1 th, .schedule1 td {
        padding: 10px;
    }
}

/* ============================
    SMALL PHONES (480px)
============================= */

@media (max-width: 480px) {

    .nav-button {
        width: 90%;
        padding: 8px;
        font-size: 0.9rem;
    }

    h1 {
        font-size: 1.3rem;
    }

    p {
        font-size: 0.9rem;
    }
}
