
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    padding-top: 300px;
    font-family: Arial, sans-serif;
}

main.content {
    padding-top: 70px;
}

body.learn {
    padding-top: 70px; /* Adjust depending on your nav height */
}

@media (max-width: 480px) {
    main.content {
        
        padding-top: 120px; /* Extra space for stacked nav on mobile */
    }
    body.learn {
        padding-top: 120px;
        margin-top: 120px; /* Adjust depending on your nav height */
    }
}
/* Navbar */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    padding: 10px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    flex-wrap: wrap;
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0;
}

nav ul li {
    display: flex;
    align-items: center;
}

nav ul li a,
nav ul li#points-display {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    padding: 8px 12px;
    transition: 0.3s ease-in-out;
    white-space: nowrap;
}

nav ul li a:hover {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
}

nav ul li a.active {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 5px;
}

/* Points Style */
#points-display {
    font-weight: bold;
    color: #FFD700;
    padding-left: 15px;
}

/* Responsive Navbar */
@media (max-width: 768px) {
    nav {
        padding: 10px;
    }

    nav ul {
        gap: 10px;
    }

    nav ul li a,
    nav ul li#points-display {
        font-size: 1rem;
        padding: 6px 10px;
    }
}

@media (max-width: 480px) {
    nav {
        flex-direction: column;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        width: 100%;
        text-align: center;
    }

    nav ul li a,
    nav ul li#points-display {
        width: 100%;
        padding: 10px 0;
    }
}

/* Page-Specific Backgrounds */
.index {
    height: 100vh;
    width: 100vw;
    background: url('BG-Images/HomePG-BG.jpeg') no-repeat center center fixed;
    background-size: cover;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.about {
    height: 100vh;
    width: 100vw;
    background: url('BG-Images/Ridley-Rugby-Team.jpg') no-repeat center center fixed;
    background-size: cover;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.knowledge {
    height: 100vh;
    width: 100vw;
    background: url('BG-Images/getintorugby-ball.jpeg') no-repeat center center fixed;
    background-size: cover;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.learn {
    height: 100vh;
    width: 100vw;
    background: url('BG-Images/tileable-grass.jpg');
    background-size: auto;
    background-repeat: repeat;
    background-position: top left;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

/* Quiz Styles */
.quiz-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    width: 80%;
    max-width: 800px;
    margin: auto;
    padding: 20px;
    margin-top: 20px;
}

.quiz-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    padding: 20px;
    border-radius: 10px;
    transition: 0.3s;
    min-height: 100px;
    text-align: center;
    border-style: double;
    border-color: #e99657;
    border-width: 5px;
}

.quiz-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.quiz-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 800px;
    margin: auto;
    margin-top: 40px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    color: black;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-style: double;
    border-color: #e99657;
    border-width: 5px;
}

.question h3 {
    font-size: 28px;
    margin-bottom: 10px;
    color: #333;
    transition: opacity 0.5s ease-in-out;
}

.question img {
    width: 100%;
    max-width: 500px;
    height: auto;
    margin: 10px 0;
    border-radius: 8px;
}

.option {
    background: #ca6214;
    color: black;
    border: none;
    padding: 15px;
    font-size: 18px;
    margin: 5px;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    max-width: 300px;
    transition: 0.3s ease-in-out;
}

.option:hover {
    background: linear-gradient(to right, #e99657, #e98538);
    transform: scale(1.05);
}

.option.selected {
    background: black;
    color: white;
    font-weight: bold;
}

.submit-btn,
.return-btn {
    background: linear-gradient(to right, #eb7b24, #ca6214);
    color: black;
    border: none;
    padding: 12px 20px;
    font-size: 18px;
    margin-top: 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s ease-in-out;
}

.submit-btn:hover,
.return-btn:hover {
    background: linear-gradient(to right, #e99657, #e98538);
    transform: scale(1.05);
}

/* Lessons */
.lesson-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    width: 80%;
    max-width: 800px;
    /* padding: 20px; */
}

.lesson-box {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    padding: 20px;
    border-radius: 10px;
    transition: 0.3s;
    min-height: 100px;
    text-align: center;
    border-style: double;
    border-color: #e99657;
    border-width: 5px;
    text-decoration: none;
}

.lesson-box:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.lesson-img {
    border-radius: 8px;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 25px auto;
    width: 60%;
}

/* Utility */
.fade-out {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.fade-in {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

p {
    border: 1px solid black;
    margin: 25px 20%;
    border-radius: 25px;
    padding: 20px;
    background: linear-gradient(to right, #0faf15, #0a781b);
    text-align: center;
    font-size: 20px;
    font-family: "Lucida Console";
}


.title {
    padding-bottom: 30px;
    padding-top: 30px;
    color: white;
    text-shadow: 1px 1px 2px black, 0 0 25px #e99657, 0 0 5px #ca6214;
}


.points-display {
    display: flex;
    align-items: center;
    justify-content: center;
    background: black;
    color: #e99657;
    font-size: 20px;  /*1.2rem*/
    font-weight: bold;
    padding: 20px;
    border-radius: 10px;
    min-height: 100px;
    text-align: center;
    border-style: double;
    border-color: #e99657;
    border-width: 5px;
}