:root {
    --primary: #FFB800;
    --secondary: #FFF5D6;
    --accent: #FF8A00;
    --text: #4A4A4A;
    --letter-spacing: 1.5rem;
    --honeycomb-size: 100px;
}

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

body {
    background: var(--secondary);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

/* Large Honeycomb Pattern */
.background-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: var(--secondary);
    background-image: repeating-linear-gradient(
        120deg,
        rgba(255, 184, 0, 0.1),
        rgba(255, 184, 0, 0.1) 1px,
        transparent 1px,
        transparent 60px
    ),
    repeating-linear-gradient(
        60deg,
        rgba(255, 184, 0, 0.1),
        rgba(255, 184, 0, 0.1) 1px,
        transparent 1px,
        transparent 60px
    ),
    linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.4),
        rgba(255, 245, 214, 0.4)
    );
    background-size: var(--honeycomb-size) calc(var(--honeycomb-size) * 1.73);
    animation: honeycombFloat 180s linear infinite;
}

.container {
    width: 100%;
    max-width: 1200px;
    padding: 2rem;
    text-align: center;
    position: relative;
    margin-top: 120px;
}

.word-display {
    margin-bottom: 3rem;
    position: relative;
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 
        0 10px 30px rgba(255, 184, 0, 0.1),
        0 1px 8px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(5px);
}

#currentWord {
    font-size: 7rem;
    font-weight: 600;
    letter-spacing: var(--letter-spacing);
    color: #000000;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: all 0.5s ease;
}

.word-exit {
    opacity: 0;
    transform: translateY(20px);
}

.word-enter {
    animation: wordEnter 0.5s ease-out forwards;
}

@keyframes wordEnter {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.letter {
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    transform-origin: center;
    color: #000000;
}

.letter:hover {
    transform: translateY(-5px);
}

/* Glowing effect for correct letters */
.letter[style*="color: rgb(76, 175, 80)"] {
    color: #4CAF50 !important;
    text-shadow: 0 0 15px rgba(76, 175, 80, 0.3);
}

/* Error effect for wrong letters */
.letter[style*="color: rgb(244, 67, 54)"] {
    color: #F44336 !important;
    text-shadow: 0 0 15px rgba(244, 67, 54, 0.3);
}

#spellingInput {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 0.5rem;
    font-size: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    width: 100px;
    text-align: center;
    transition: all 0.3s ease;
    text-transform: uppercase;
    background: transparent;
    opacity: 0.1;
    color: rgba(74, 74, 74, 0.2);
}

#spellingInput:focus {
    outline: none;
    opacity: 0.1;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: none;
    width: 100px;
}

#spellingInput::placeholder {
    color: rgba(74, 74, 74, 0.1);
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes honeycombFloat {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: var(--honeycomb-size) calc(var(--honeycomb-size) * 1.73);
    }
}

/* Responsive design */
@media (max-width: 768px) {
    #currentWord {
        font-size: 4rem;
        letter-spacing: 1rem;
    }
    
    .word-display {
        padding: 1rem;
        margin: 1rem;
    }

    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .contest-title {
        font-size: 1.2rem;
    }

    .container {
        margin-top: 160px;
    }
}

/* Add these styles to your existing CSS */

.dropdown {
    position: relative;
    margin-left: auto;
}

.dropbtn {
    background: transparent;
    color: var(--text);
    padding: 8px 16px;
    font-size: 24px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: white;
    min-width: 120px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.dropdown-content a {
    color: rgba(0, 0, 0, 0.7);
    padding: 8px 16px;
    text-decoration: none;
    display: block;
    font-size: 14px;
    transition: all 0.2s ease;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a:hover {
    background: rgba(0, 0, 0, 0.05);
}

.dropbtn:hover {
    color: rgba(0, 0, 0, 0.5);
}

/* Update the popup styles */
.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    animation: fadeIn 0.3s ease-out;
    width: 90%;
    max-width: 500px;
}

.popup-content {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    text-align: center;
}

.popup h3 {
    margin-bottom: 15px;
    color: #000000;
    font-size: 1.5rem;
    font-weight: 600;
}

.popup p {
    margin-bottom: 20px;
    color: #000000;
    font-size: 1.2rem;
    line-height: 1.6;
}

.popup button {
    background: var(--accent);
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1rem;
    padding: 8px 20px;
    border-radius: 30px;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.popup button:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.highlighted-word {
    color: var(--accent);
    font-weight: 600;
    padding: 0 4px;
    border-radius: 4px;
    background-color: rgba(255, 184, 0, 0.1);
}

@keyframes letterFlip {
    0% {
        transform: rotateX(180deg);
        opacity: 0;
    }
    100% {
        transform: rotateX(0);
        opacity: 1;
    }
}

/* Update the header styles */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to right, #ffffff, #fff5e6);
    padding: 1.5rem;
    box-shadow: 0 2px 15px rgba(255, 184, 0, 0.15);
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
}

.school-logo {
    height: 70px;
    width: auto;
    transition: transform 0.3s ease;
}

.school-logo:hover {
    transform: scale(1.05);
}

.contest-title {
    color: #2C3E50;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
    text-align: left;
}

.contest-title span {
    display: block;
    color: var(--accent);
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-top: 5px;
}

/* Update the responsive styles */
@media (max-width: 768px) {
    .header-content {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        padding: 0 1rem;
    }

    .contest-title {
        order: 2;
        width: 100%;
        margin: 1rem 0;
    }

    .dropdown {
        order: 1;
    }

    .contest-title {
        text-align: center;
        font-size: 1.5rem;
    }

    .contest-title span {
        font-size: 1.8rem;
    }

    .school-logo {
        height: 60px;
    }
}

/* Update the dropdown styles */
.dropdown-content {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#startScreen {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

#startButton {
    background: var(--accent);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.5rem;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 138, 0, 0.2);
}

#startButton:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 184, 0, 0.3);
}