@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@300..700&family=Jua&family=Noto+Sans:ital,wght@0,100..900;1,100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Fredoka', sans-serif;
}

body {
    line-height: 1.6;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    background-color: #ffffff;
    color: #1e293b;
}

/* Burger Menu Styles */
.burger-menu {
    display: none;
    align-content: center;
    
    margin-right: 2rem;
}

.burger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: #333;
    border-radius: 3px;
    transition: all 0.3s ease;
}

nav {
    position: fixed;
    display: flex;
    justify-content: space-between;
    gap: 50px;
    top: 0;
    left: 0;
    width: 100%;
    border-bottom: 1px #E1E1E1 solid;
    background-color: #ffffff;
    z-index: 1000;
    height: 70px;
}

.logo-container {
    display: flex;
    align-items: center;
    margin-left: 2rem;
  
}

.logo-container img {
    width: 170px;
    height: auto;
}

.nav-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    height: 100%;
}

.nav-btn a {
    text-decoration: none;
    font-size: 1rem;
    margin: 0 2rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.nav-btn {
    color: rgb(0, 0, 0);
}

.btn:hover {
    color: #2c97df;
}

.ai-btn {
    color: #272727;
    background: linear-gradient(to right, #f1c1ff, #c1ffc6);
    
}

.ai-btn:hover {
    background: linear-gradient(to right, #fed4ff, #e7ffc0);
    color: #161616;
}

.header {
    text-align: center;
    margin-bottom: 1rem;
    padding: 2rem 0;
}

.header h1 {
    margin-top: 50px;
    font-size: 3rem;
    font-weight: 500;
    color: #0f172a;
    letter-spacing: -0.025em;
}

.search-container {
    margin-bottom: 2rem;
    position: relative;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.search-container input {
    width: 100%;
    padding: 1rem 3rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    background-color: #ffffff;
    transition: all 0.3s ease;
}

.search-container input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 4px 12px -1px rgba(99, 102, 241, 0.2);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.category-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.category-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.category-content {
    padding: 1.5rem;
}

.category-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #0f172a;
}

.category-content p {
    color: #64748b;
    font-size: 0.95rem;
}

.difficulty-container {
    max-width: 600px;
    margin: 2rem auto;
    text-align: center;
}

.difficulty-container h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #0f172a;
}

.difficulty-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.difficulty-button {
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    color: #1e293b;
}

.difficulty-button:hover {
    background-color: #6366f1;
    color: #ffffff;
    border-color: #6366f1;
    box-shadow: 0 4px 12px -1px rgba(99, 102, 241, 0.2);
}

.quiz-container {
    max-width: 800px;
    margin: 0 auto;
    background: #ffffff;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.quiz-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    font-weight: 500;
    color: #64748b;
}

.question-container {
    margin-bottom: 1.5rem;
}

.question-container h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
    color: #0f172a;
}

.answer-button {
    display: block;
    width: 100%;
    padding: 1rem 1.5rem;
    margin: 0.75rem 0;
    text-align: left;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
    color: #1e293b;
}

.answer-button:hover {
    background-color: #f8fafc;
    border-color: #6366f1;
}

.answer-button.selected {
    background-color: #818cf8;
    border-color: #6366f1;
    color: #ffffff;
}

.next-button {
    padding: 0.75rem 1.5rem;
    background-color: #6366f1;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    width: 100%;
    margin-top: 1rem;
}

.next-button:enabled:hover {
    background-color: #4f46e5;
}

.next-button:disabled {
    background-color: #e2e8f0;
    cursor: not-allowed;
}

.back-button {
    padding: 0.75rem 1rem;
    background: none;
    border: none;
    color: #6366f1;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    transition: color 0.2s ease;
}

.back-button:hover {
    color: #4f46e5;
}

.completion-container {
    text-align: center;
    padding: 3rem;
    background: #f9fffd;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 2rem auto;
}

.completion-container h2 {
    color: #0f172a;
    font-weight: 500;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.completion-score {
    font-size: 3rem;
    font-weight: 600;
    color: #6366f1;
    margin: 1.5rem 0;
}

.completion-message {
    color: #64748b;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.hidden {
    display: none;
}

@media (max-width: 768px) {
    body {
        padding: 1rem;
    }

    .header h1 {
        font-size: 2rem;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .difficulty-grid {
        grid-template-columns: 1fr;
    }

    .quiz-container {
        padding: 1rem;
    }

    .completion-container {
        padding: 1.5rem;
    }
}

@media screen and (max-width: 1000px) {
    .burger-menu {
        display: block; 
        position: relative;
        z-index: 1001;
    }

    .nav-btn {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: white;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 2rem;
        transition: right 0.3s ease;
    }

    .nav-btn.active {
        right: 0; 
    }

    .nav-btn a {
        margin: 1rem 0;
        font-size: 1.2rem;
    }

    /* Animate burger menu */
    .burger-menu.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .burger-menu.active span:nth-child(2) {
        opacity: 0;
    }

    .burger-menu.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}