/* General Styles */
body {
    font-family: 'Comic Sans MS', cursive, sans-serif;
    text-align: center;
    background: linear-gradient(135deg, #FFD700, #FF69B4);
    color: white;
    margin: 0;
    padding: 20px;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.2);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    margin-right: 30px;
}

.logo a {
    font-size: 1.8em;
    font-weight: bold;
    text-decoration: none;
    color: white;
}

ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

ul li a {
    text-decoration: none;
    color: white;
    font-size: 1.2em;
    transition: 0.3s;
}

ul li a:hover {
    color: yellow;
}

/* Lessons Section */
.lesson-title {
    margin-top: 100px;
    font-size: 2.5em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.lesson-container {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

/* Lesson Boxes */
.lesson-box {
    width: 300px;
    height: 210px;
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    font-size: 1.5em;
    font-weight: bold;
    color: white;
    cursor: pointer;
    transition: transform 0.3s, background 0.3s;
    margin-bottom: 20px;
}

/* Level 1 - Active */
.level-1 {
    background: #32CD32;
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.3);
}
.level-1, h2 {
    margin-left: 50px;
   
}

.level-1:hover {
    transform: scale(1.1);
}




.level-2 {
    background: #32CD32;
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.3);
    
}
.level-2, h2 {
    margin-left: 50px;
}

.level-2:hover {
    transform: scale(1.1);
}



.lesson-box p {
    margin-top: -5px;
    
}
    
.lesson-box {
     /* existing styles... */
     overflow: hidden;
     word-wrap: break-word;
    display: flex;
    flex-direction: column;
     justify-content: center;
     align-items: center;
    }
    

button {
    background-color: #ff6f61;
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 10px;
    display: block;
    width: 80%;
    text-align: center;
    margin-left: 30px;
}

button:hover {
    background-color: #ff3b3b;
}

/* Exam Button Style */
.exam-btn {
    background-color: #007bff;
}

.exam-btn:hover {
    background-color: #0056b3;
    
}

/* ===== General Nav Styling ===== */
nav {
    position: relative;
}

/* Default Menu Icon (Hidden on Large Screens) */
.menu-icon {
    display: none;
    font-size: 30px;
    cursor: pointer;
    color: white;
    position: absolute;
    top: 20px;
    right: 20px;
}


/* Desktop Navigation (Default Visible) */
.nav-menu {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: center;
    gap: 20px;
}

.nav-menu li {
    display: inline;
}

.nav-menu a {
    text-decoration: none;
    color: white;
    font-size: 18px;
}


.footer-container img {
    width: 80px;  /* Adjust size as needed (e.g. 80px, 100px, 120px) */
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 50px; /* Optional: makes the image edges rounded */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
}

.footer-container img:hover {
    transform: scale(1.05); /* Optional: subtle zoom on hover */
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
    .logo a {
        font-size: 1.6em;
    }

    ul li a {
        font-size: 1em;
    }

    .lesson-title {
        font-size: 2.2em;
    }

    .lesson-container {
        gap: 30px;
    }

    .lesson-box {
        width: 250px;
        height: 180px;
    }
}

@media (max-width: 768px) {
    .nav {
        flex-direction: column;
    }

    .lesson-title {
        font-size: 2em;
    }

    .lesson-container {
        gap: 20px;
        flex-direction:row;
    }

    .lesson-box {
        width: 90%;
        height: auto;
        margin: 0 auto 20px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .lesson-title {
        font-size: 1.8em;
    }

    .lesson-container {
        gap: 15px;
    }

    .lesson-box {
        width: 80%;
        height: auto;
        padding: 15px;
    }
}


/* Footer Styling */
footer {
    background: linear-gradient(135deg, #ffcc00, #ff4081);
    color: white;
    text-align: center;
    padding: 20px 0;
    font-family: 'Comic Sans MS', sans-serif;
    margin-top: 50px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.footer-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.footer-logo {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 10px;
}

.footer-social a img {
    width: 30px;
    height: 30px;
    margin: 0 8px;
    transition: 0.3s ease;
}

.footer-social a img:hover {
    transform: scale(1.2);
}

.footer-copyright {
    font-size: 14px;
    margin-top: 10px;
    opacity: 0.8;
}

.footer-social a {
    font-size: 24px;
    color: white;
    margin: 0 10px;
    transition: 0.3s;
}

.footer-social a:hover {
    color: #ffcc00;
    transform: scale(1.2);
}

.lesson-box.locked {
    opacity: 0.6; /* Make it appear faded */
    pointer-events: none; /* Disable clicks */
    
  }
  
  .lesson-box.locked .exam-btn{
      background-color: grey;
  }



  @media screen and (max-width: 768px) {
    /* Hide menu by default */
    .nav-menu {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -250px; /* Hide off-screen */
        width: 250px;
        height: 100vh;
        background: rgba(255, 111, 97, 0.95); /* Semi-transparent background */
        box-shadow: -5px 0px 10px rgba(0, 0, 0, 0.2);
        padding-top: 60px;
        text-align: left;
        transition: right 0.4s ease-in-out;
    }

    .nav-menu li {
        display: block;
        padding: 15px 25px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    }

    .nav-menu a {
        font-size: 20px;
        color: white;
        display: block;
    }

    /* Show menu when active */
    .show-menu {
        right: 0;
    }

    /* Style for the menu icon */
    .menu-icon {
        display: block;
        font-size: 30px;
        cursor: pointer;
        color: white;
        position: absolute;
        top: 15px;
        right: 20px;
        z-index: 1000;
    }
    body {
        font-family: 'Comic Sans MS',  sans-serif;}
}

.logo img {
    height: 60px;
    width: 60px;
    border-radius: 50%; /* Makes the logo circular */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
}

.logo img:hover {
    transform: scale(1.1) rotate(5deg);
}
