/* Header styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background-color: rgba(30, 30, 30, 0.9);
    z-index: 1000;
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.back-button {
    color: #BA68C8;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    padding: 8px 16px;
    border: 2px solid #BA68C8;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.back-button:hover {
    background-color: #BA68C8;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(186, 104, 200, 0.3);
}

/* Main content styles */
body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    padding-top: 60px;
    font-family: Arial, sans-serif;
    background-color: #121212;
    color: #ffffff;
}

h1 {
    margin-bottom: 30px;
    color: #BA68C8;
}

.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    width: 90%;
    max-width: 1200px;
    margin-bottom: 40px;
}

.exercise {
    background-color: #1e1e1e;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    text-align: center;
    transition: transform 0.3s ease;
}

.exercise:hover {
    transform: translateY(-5px);
}

h2 {
    color: #9C27B0;
    margin-top: 0;
}

input[type="number"],
input[type="submit"] {
    display: block;
    margin: 10px auto;
    width: 80%;
    max-width: 250px;
}

input[type="number"] {
    padding: 10px;
    border: none;
    border-radius: 4px;
    background-color: #333;
    color: #fff;
}

input[type="submit"] {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    background-color: #6200ea;
    color: #fff;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

input[type="submit"]:hover {
    background-color: #3700b3;
}

[id$="-result-container"] {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
    background-color: #333;
}

[id$="-result"] {
    margin: 0;
    color: #fff;
    font-size: 16px;
}

#chances-counter {
    color: #ff9800;
    font-weight: bold;
    margin-bottom: 15px;
}

#roulette-result {
    min-height: 60px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
    }
    
    .header {
        padding: 10px;
    }
    
    .back-button {
        font-size: 14px;
        padding: 6px 12px;
    }
}