/* General Body Style */
body {
    font-family: 'Comic Sans MS', cursive, sans-serif;
    text-align: center;
    background-color: #f9f9f9;
    margin: 0;
    padding: 0;
}

/* Menu with Background */
.menu {
    margin-top: 50px;
    background-image: url('background_1.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    height: 100vh; /* Full height */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Frame for Text and Buttons */
.menu-frame {
    background-color: rgba(255, 255, 255, 0.8); /* Faded white frame */
    border: 3px solid #00BFFF; /* Highlighted border for visibility */
    border-radius: 15px;
    padding: 30px;
    width: 80%;
    max-width: 500px;
    text-align: center;
    box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
}

/* Menu Title */
.title {
    font-size: 36px;
    color: #FF6347;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Instructions */
.instructions {
    font-size: 18px;
    margin-bottom: 30px;
    color: #333;
}

/* Buttons within Frame */
.menu-buttons button {
    padding: 15px 30px;
    margin: 10px;
    font-size: 20px;
    font-weight: bold;
    background-color: #00BFFF;
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}

.menu-buttons button:hover {
    background-color: #1E90FF;
    box-shadow: 3px 3px 7px rgba(0, 0, 0, 0.3);
}

/* Game Background */
.game {
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin-top: 30px;
    width: 80%;
    max-width: 800px;
    background-image: url('background_2.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    padding: 20px;
    border-radius: 10px;
}

/* History Section Background */
.history-section {
    flex: 1;
    padding: 20px;
    background-color: rgba(240, 248, 255, 0.8); /* Semi-transparent overlay */
    border-left: 2px solid #87ceeb;
}

.history-section h3 {
    color: #4682b4;
    margin-bottom: 10px;
}

#history {
    text-align: left;
    font-size: 18px;
    line-height: 1.8;
}

.vertical-problem {
    margin: 20px auto;
}

.number, .operator {
    font-size: 32px;
    margin: 5px;
}

.equal-line {
    border: none;
    border-top: 3px solid #000;
    margin: 10px 0;
    width: 50%;
    margin-left: auto;
    margin-right: auto;
}

.answer-input {
    font-size: 20px;
    padding: 10px;
    border: 2px solid #32CD32;
    border-radius: 5px;
    width: 100px;
    text-align: center;
}

.submit-button {
    margin-top: 10px;
    padding: 10px 25px;
    font-size: 18px;
    font-weight: bold;
    background-color: #32CD32;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}

.submit-button:hover {
    background-color: #228B22;
    box-shadow: 3px 3px 7px rgba(0, 0, 0, 0.3);
}

.feedback-message {
    font-size: 20px;
    color: #FF4500;
    margin-top: 15px;
}
