/* Main container for the calculator */
.calculator-container {
    width: 100%;
    margin-top: 1rem;
}

/* Result display box */
.result-box {
    background-color: rgba(0,0,0,0.2);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

.result-box .content-subtitle {
    font-family: 'Roboto', sans-serif;
    letter-spacing: normal;
    font-size: 1.2rem;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
    margin: 0 0 0.5rem 0;
}

.result-box .edge-value {
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 2px;
    font-size: 3.5rem;
    font-weight: bold;
    min-height: 50px;
    margin: 0;
}

.result-box .edge-text {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    margin: 0.5rem 0 0 0;
}

/* Color coding for the edge value */
.positive-edge { color: #f87171; } /* Red for casino advantage */
.negative-edge { color: #4ade80; } /* Green for player advantage */

/* Grid for the rules */
.rules-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

/* Individual rule box */
.rule-box {
    background-color: rgba(0,0,0,0.2);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.75rem;
}

.rule-box label {
    font-weight: 700;
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
}

/* Styling for dropdowns */
.rule-box select {
    background-color: rgba(255,255,255,0.9);
    color: #222;
    border: 2px solid transparent;
    border-radius: 5px;
    padding: 8px 10px;
    font-size: 1rem;
    width: 100%;
    cursor: pointer;
}
.rule-box select:focus {
    outline: none;
    border-color: var(--gold-accent);
}

/* Styling for custom radio buttons */
.radio-group {
    display: flex;
    gap: 10px;
}

.radio-group label {
    flex: 1;
    position: relative;
    display: block;
}

.radio-group input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.radio-group span {
    display: block;
    background-color: rgba(0,0,0,0.3);
    color: rgba(255,255,255,0.7);
    padding: 8px 10px;
    border-radius: 5px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.radio-group input[type="radio"]:checked + span {
    background-color: var(--gold-accent);
    color: #000;
    font-weight: 700;
}

/* Responsive grid for larger screens */
@media (min-width: 768px) {
    .rules-grid {
        grid-template-columns: 1fr 1fr;
    }
}
