/* General Styles */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

#calculator-container {
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-color: #f0f0f0;
    position: relative;
    width: 100%;
}

/* Level Selection Styles */
#level-container {
    position: absolute;
    top: 20px;
    right: 20px;
}

#options-button {
    padding: 10px;
    font-size: 16px;
    border-radius: 5px;
    border: none;
    background-color: #2196F3;
    color: white;
    cursor: pointer;
}

#level-menu {
    position: absolute;
    top: 50px;
    right: 0;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 1001;
    width: 120px;
}

.level-option {
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.level-option.active {
    background-color: #e0e0e0;
    font-weight: bold;
}

/* Operation Selection Styles */
.step-title {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

#buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.operation-btn {
    font-size: 24px;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background-color: #4CAF50;
    color: white;
    cursor: pointer;
}

/* Number Input Styles */
#number-input {
    display: none;
}

#display-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

#operation-display {
    font-size: 36px;
    color: rgb(0, 0, 0);
    height: 40px;
    margin-bottom: 10px;
    font-weight: bold;
}

#display {
    font-size: 64px;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    min-width: 240px;
    text-align: center;
    color: rgb(0, 0, 0);
    font-weight: bold;
}

#back-button {
    padding: 10px 20px;
    background-color: #f44336;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 20px;
}

/* Score Display Styles */
#score-display {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.score-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.score-label {
    font-size: 14px;
    color: #666;
}

.score-value {
    font-size: 24px;
    font-weight: bold;
    margin: 0;
}

/* Responsive Styles */
@media (max-width: 768px) {
    #display {
        font-size: 48px;
        min-width: 200px;
    }
    
    #operation-display {
        font-size: 28px;
    }
    
    .operation-btn {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    #display {
        font-size: 36px;
        min-width: 160px;
    }
    
    #operation-display {
        font-size: 24px;
    }
    
    .score-value {
        font-size: 20px;
    }
}
