/* ==========================================================================
   General Body Styles
   ========================================================================== */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #181818;
    color: #e0e0e0;
}

/* ==========================================================================
   Reaction Test Container
   ========================================================================== */
.reaction-test {
    width: 100%;
    min-height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    top: unset;
    left: unset;
    overflow: visible;
    z-index: 1;
}

/* ==========================================================================
   Content Area
   ========================================================================== */
.reaction-test .content {
    width: 80vw;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.reaction-test .reaction-area {
    width: 100%;
    height: 400px;
    background: #222;
    border: 2px solid #333;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s;
}

.reaction-test .reaction-area.ready {
    background: #ff0000;
}

.reaction-test .reaction-area.active {
    background: #00ff00;
}

.reaction-test .reaction-area p {
    font-size: 1.2rem;
    color: #e0e0e0;
    margin: 0;
    text-align: center;
}

.reaction-test .results-display {
    font-size: 0.9rem;
    color: #e0e0e0;
    background: rgba(30, 30, 30, 0.95);
    padding: 6px 12px;
    border-radius: 5px;
    display: flex;
    gap: 15px;
}

.reaction-test .results-display span {
    font-weight: bold;
    color: #00ff00;
}

/* ==========================================================================
   Menu
   ========================================================================== */
.reaction-test .menu {
    position: absolute;
    top: 50%;
    left: -50px;
    transform: translateY(-50%);
    background: rgba(30, 30, 30, 0.95);
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.reaction-test .menu-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.reaction-test .menu select,
.reaction-test .menu button {
    padding: 8px 12px;
    background: #333;
    color: #e0e0e0;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s;
    width: 100%;
    box-sizing: border-box;
}

.reaction-test .menu select:hover,
.reaction-test .menu button:hover {
    background: #555;
}

.reaction-test .difficulty-control {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.reaction-test .difficulty-control label {
    font-size: 0.9rem;
    color: #e0e0e0;
}

.reaction-test .difficulty-control select {
    padding: 6px;
    background: #444;
    color: #e0e0e0;
    border: none;
    border-radius: 5px;
    font-size: 0.9rem;
}

.reaction-test .difficulty-control select:focus {
    outline: none;
    background: #555;
}

/* ==========================================================================
   Stats Display
   ========================================================================== */
.reaction-test .stats-display {
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: #e0e0e0;
}

.reaction-test .stats-display h3 {
    font-size: 1rem;
    margin: 0 0 5px 0;
    color: #ffffff;
}

.reaction-test .stats-display p {
    margin: 0;
    font-size: 0.9rem;
}

.reaction-test .stats-display span {
    font-weight: bold;
    color: #00ff00;
}

.reaction-test .stats-display button {
    margin-top: 5px;
}
