body {
    font-family: 'Arial', sans-serif;
    background: #1a0000;
    color: #fff;
    margin: 0;
    padding: 0;
}

#header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #330000;
    box-shadow: 0 0 20px #ff0000;
    position: sticky;
    top: 0;
    z-index: 100;
}

#header h1 {
    margin: 0;
    font-size: 22px;
    text-shadow: 0 0 10px #ff0000;
}

#header button {
    background: #ff0000;
    color: #fff;
    border: 2px solid #ff5555;
    padding: 7px 12px;
    cursor: pointer;
    font-weight: bold;
    border-radius: 5px;
    text-shadow: 0 0 5px #ff9999;
    box-shadow: 0 0 10px #ff0000;
    transition: 0.3s;
}

#header button:hover {
    box-shadow: 0 0 20px #ff5555;
    border-color: #ff0000;
}

#testContainer {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    padding: 0 10px;
}

#userForm, #questionBox {
    background: #330000;
    padding: 25px;
    border-radius: 15px;
    width: 100%;
    max-width: 500px;
    text-align: center;
    border: 2px solid #ff0000;
    box-shadow: 0 0 20px #ff0000;
}

#userForm input {
    display: block;
    margin: 12px auto;
    padding: 10px;
    width: 85%;
    border-radius: 8px;
    border: 2px solid #ff5555;
    background: #440000;
    color: #fff;
}

#userForm button, #nextQuestion {
    background: #ff0000;
    color: #fff;
    border: 2px solid #ff5555;
    padding: 10px 20px;
    margin-top: 15px;
    cursor: pointer;
    font-weight: bold;
    border-radius: 8px;
    box-shadow: 0 0 15px #ff5555;
    transition: 0.3s;
}

#userForm button:hover, #nextQuestion:hover {
    box-shadow: 0 0 25px #ff9999;
}

#questionBox #options {
    margin-top: 20px;
}

.optionBtn {
    display: block;
    background: #440000;
    margin: 8px 0;
    padding: 12px;
    border: 2px solid #ff5555;
    width: 100%;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.optionBtn:hover {
    background: #550000;
    box-shadow: 0 0 20px #ff5555;
}

.optionBtn.selected {
    background: #ff5555;
    color: #330000;
    border-color: #ff0000;
    box-shadow: 0 0 25px #ff9999;
}

.hidden { display: none; }

/* Sidebar */
#sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background: #330000;
    padding: 20px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 200;
    border-left: 2px solid #ff0000;
    box-shadow: -5px 0 20px #ff0000;
}

#sidebar.show { transform: translateX(0); }

#resultsList div {
    padding: 10px;
    margin: 6px 0;
    background: #440000;
    border-radius: 8px;
    border: 1px solid #ff5555;
    box-shadow: 0 0 10px #ff5555;
    text-align: left;
}

#closeSidebar {
    background: #ff0000;
    color: #fff;
    border: 2px solid #ff5555;
    padding: 7px 12px;
    cursor: pointer;
    font-weight: bold;
    border-radius: 5px;
    margin-bottom: 10px;
}
#closeSidebar:hover { box-shadow: 0 0 20px #ff5555; }