body {
    margin: 0;
    font-family: Arial;
    background: #00334d;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.container {
    display: flex;
    gap: 20px;
    width: 95%;
    max-width: 1000px;
}

.game {
    flex: 4;
    background: #000000;
    padding: 20px;
    border-radius: 12px;
}

.ladder {
    width: 125px;
    background: #1f2937;
    padding: 10px;
    border-radius: 12px;
    height: fit-content;
    font-size: 16px;
    font-weight: bold;
}

.ladder div {
    padding: 6px;
    border-radius: 6px;
}

.active {
    background: gold;
    color: black;
    font-weight: bold;
}

.questionnumber {
    margin: 20px 0;
    width: 40px;
    margin-top: 15px;
    padding: 5px;
    min-height: 20px;
    border-radius: 8px;
    background: #1f2937;
    color: #ff0000;
    font-size: 20px;
    font-weight: bold;
    
}

.question {
    margin: 20px 0;
    margin-top: 15px;
    padding: 12px;
    min-height: 20px;
    border-radius: 8px;
    background: #1f2937;
    color: #ffffff;
    font-size: 22px;
    font-weight: bold;

}


.options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    
}


button.option {
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: #1f2937;
    color: #ff9900;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    text-align: left;
    padding-left: 15px;
}

button.option:hover { background: #374151; }

.correct { background: green !important; }
.wrong { background: red !important; }
.hidden { visibility: hidden; }

.option.selected{
    border:3px solid purple;
    box-shadow:0 0 15px purple;
}

#FinalBtn{
    background:#000000;
    padding: 6px;
    border: none;
    border-radius: 8px;
    color: #ff9900;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    margin-left: 55px;
}

#yesFinalBtn{
    background:#22c55e;
    padding: 6px;
    border: none;
    border-radius: 8px;
    color: #000000;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    text-align: center;

}

#noFinalBtn{
    background:#ef4444;
    padding: 6px;
    border: none;
    border-radius: 8px;
    color: #000000;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    text-align: center;

}

.controls {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.controls button {
    padding: 10px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: #2563eb;
    color: white;
}

.controls button:disabled {
    background: #555;
}

.feedback {
    margin-top: 15px;
    padding: 12px;
    min-height: 20px;
    border-radius: 8px;
    background: #1f2937;
    color: #cbd5e1;
    font-size: 18px;
    font-weight: bold;
}


.hidden {
    display: none;
}

.alert {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px 40px;
    border-radius: 12px;
    font-size: 46px;
    font-weight: bold;
    z-index: 999;
    text-align: center;
    background: rgba(0,0,0,0.85);
    border: 2px solid white;
}

.alert.correct {
    color: #22c55e;
    border-color: #22c55e;
}

.alert.wrong {
    color: #ef4444;
    border-color: #ef4444;
}


#endGameBtn {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1000;

    padding: 10px 14px;
    border: none;
    border-radius: 8px;

    background: #ef4444;
    color: white;
    font-size: 14px;
    cursor: pointer;
}

#endGameBtn:hover {
    background: #dc2626;
}


.intro {
    position: fixed;
    inset: 0;
    background: #000000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    z-index: 9999;
    text-align: center;
}

.intro h1 {
    font-size: 42px;
    margin-bottom: 10px;
}

.intro p {
    font-size: 18px;
    margin-bottom: 20px;
    color: #cbd5e1;
}

.intro button {
    padding: 12px 24px;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 10px;
    background: purple;
    color: white;
    cursor: pointer;
}

.intro button:hover {
    background: #16a34a;
}

.ladder div {
    padding: 6px;
    border-radius: 6px;
}

.ladder div[style*="#ff0066"] {
    text-shadow: 0 0 8px #ff0066;
}
