body {
    font-family: 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif;
    background: #f5f6fa;
    margin: 0;
    padding: 0;
    color: #222;
    min-height: 100vh;
}

header {
    background-color: #343a40;
    color: #fff;
    padding: 1.5rem 0;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

main {
    max-width: 900px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

h1, h2, h3 {
    color: #343a40;
    margin-top: 0;
}

a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #0056b3;
    text-decoration: underline;
}

button, .btn {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 0.6em 1.2em;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    transition: background 0.2s;
}

button:hover, .btn:hover {
    background-color: #0056b3;
}

input, textarea, select {
    padding: 0.5em;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
    margin-bottom: 1em;
    width: 100%;
    box-sizing: border-box;
}

footer {
    text-align: center;
    padding: 1rem 0;
    background: #f1f3f5;
    color: #888;
    position: fixed;
    width: 100%;
    bottom: 0;
    left: 0;
}

#chat-container {
    width: 420px;
    margin: 48px auto 0 auto;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px 0 rgba(0,0,0,0.08);
    padding: 32px 28px 20px 28px;
    border: 1px solid #ececec;
    position: relative;
}

#chat-box {
    height: 340px;
    overflow-y: auto;
    border: none;
    border-radius: 12px;
    padding: 18px;
    background: #1a4eb6;
    margin-bottom: 18px;
    box-shadow: 0 1px 4px 0 rgba(0,0,0,0.03);
}

.message {
    margin: 14px 0;
    padding: 14px 20px;
    border-radius: 16px;
    max-width: 85%;
    word-break: break-word;
    font-size: 1.08em;
    background: #f1f2f6;
    box-shadow: 0 1px 4px 0 rgba(0,0,0,0.04);
    transition: background 0.3s, box-shadow 0.3s;
}
.user {
    background: #e9f1fb;
    color: #222;
    align-self: flex-end;
    margin-left: auto;
    box-shadow: 0 1px 4px 0 rgba(0,0,0,0.06);
}
.backend {
    background: #f7f8fa;
    color: #222;
    align-self: flex-start;
    margin-right: auto;
    box-shadow: 0 1px 4px 0 rgba(0,0,0,0.04);
}

#input-area {
    display: flex;
    gap: 10px;
}
#user-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1.1em;
    background: #fff;
    color: #222;
    outline: none;
    box-shadow: 0 1px 4px 0 rgba(0,0,0,0.03);
    transition: border 0.2s, box-shadow 0.2s;
}
#user-input:focus {
    border: 1.5px solid #0071e3;
    box-shadow: 0 0 0 2px #e3f0fd;
}
#send-btn {
    padding: 12px 28px;
    border: none;
    background: linear-gradient(90deg, #e3eafc 0%, #d1e3fa 100%);
    color: #0071e3;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 1px 4px 0 rgba(0,0,0,0.04);
    transition: background 0.2s, color 0.2s;
}
#send-btn:hover {
    background: #0071e3;
    color: #fff;
}

#start-quiz-btn {
    width: 100%;
    margin: 24px auto 0 auto;
    padding: 16px 0;
    background: #0071e3;
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 1.2em;
    font-family: 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: 0 2px 8px 0 rgba(0,113,227,0.08);
    transition: background 0.2s, box-shadow 0.2s;
}
#start-quiz-btn:hover {
    background: #005bb5;
}

::-webkit-scrollbar {
    width: 8px;
    background: #f1f2f6;
}
::-webkit-scrollbar-thumb {
    background: #e0e0e0;
    border-radius: 8px;
}

@media (max-width: 1300px) {
    #chat-container {
        width: 80vw !important;
        min-width: 0 !important;
        max-width: 98vw !important;
        margin: 0 auto !important;
        border-radius: 10px !important;
        box-shadow: 0 2px 12px rgba(0,0,0,0.08) !important;
        padding: 0 !important;
    }
    #chat-box {
        font-size: 1.1rem !important;
        min-height: 40vh !important;
        max-height: 60vh !important;
        padding: 10px !important;
    }
    #input-area {
        flex-direction: row;
        gap: 8px;
        padding: 10px;
    }
    #user-input {
        font-size: 1.1rem;
        width: 70% !important;
        min-width: 0 !important;
        box-sizing: border-box;
    }
    #send-btn, #movie-quiz-btn, #games-quiz-btn {
        font-size: 1.1rem;
        padding: 10px 0;
        width: 28%;
        margin: 2px 0;
    }
    #quiz-select {
        margin-bottom: 10px !important;
    }
}

@media (max-width: 900px) {
    #chat-container {
        width: 96vw !important;
        min-width: 0 !important;
        max-width: 100vw !important;
        margin: 0 auto !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        padding: 0 !important;
    }
    #chat-box {
        font-size: 1rem !important;
        min-height: 35vh !important;
        max-height: 50vh !important;
        padding: 6px !important;
    }
    #input-area {
        flex-direction: column;
        gap: 6px;
        padding: 6px;
    }
    #user-input {
        font-size: 1rem;
        width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box;
    }
    #send-btn, #movie-quiz-btn, #games-quiz-btn {
        font-size: 1rem;
        padding: 8px 0;
        width: 100%;
        margin: 2px 0;
    }
    #quiz-select {
        margin-bottom: 6px !important;
    }
}

@media (max-width: 600px) {
    #author-label {
        font-size: 1.3rem;
        padding: 4px 10px;
        top: 4px;
        left: 6px;
    }
    #chat-container {
        width: 98vw !important;
        min-width: 0 !important;
        max-width: 100vw !important;
        margin: 0 auto !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        padding: 0 !important;
    }
    #chat-box {
        font-size: 1.2rem !important;
        min-height: 40vh !important;
        max-height: 50vh !important;
        padding: 8px !important;
    }
    #input-area {
        flex-direction: column;
        gap: 8px;
        padding: 8px;
    }
    #user-input {
        font-size: 1.2rem;
        width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box;
        padding: 12px;
    }
    #send-btn, #movie-quiz-btn, #games-quiz-btn, #indian-movie-quiz-btn {
        font-size: 1.2rem;
        padding: 12px 0;
        width: 100%;
        margin: 3px 0;
    }
    #quiz-select {
        margin-bottom: 8px !important;
    }
    .message {
        font-size: 1.2rem !important;
        padding: 8px !important;
        margin: 4px 0 !important;
    }
}

#author-label {
    position: fixed;
    top: 10px;
    left: 20px;
    font-size: 2rem;
    font-family: 'Orbitron', Arial, sans-serif;
    color: #222;
    background: rgba(255,255,255,0.7);
    padding: 6px 18px;
    border-radius: 10px;
    z-index: 1000;
    font-weight: bold;
}

#progress {
    position: fixed;
    top: 10px;
    right: 20px;
    font-size: 1.5rem;
    font-family: 'SF Pro Display', Arial, sans-serif;
    color: #222;
    background: rgba(255,255,255,0.7);
    padding: 6px 18px;
    border-radius: 10px;
    z-index: 1000;
    font-weight: bold;
}


