/* Reset and Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: 'Comic Sans MS', cursive, sans-serif;
    overflow: hidden;
    background-color: #ffffe0; /* Light Light Yellow Background */
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100vh;
    position: relative;
}
h1 {
    color: #2c3e50;
    margin: 20px 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}
/* Score Display */
#score {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 24px;
    color: #2c3e50;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0px 0px 10px rgba(0,0,0,0.3);
    z-index: 5;
}
/* Definitions Overlay */
#definitionsOverlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}
#definitionsBox {
    background-color: #FFFACD;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
    width: 90%;
    max-height: 90%;
    overflow-y: auto;
}
#definitionsBox h2 {
    margin-bottom: 15px;
    text-align: center;
    color: #2c3e50;
    font-size: 24px;
}
#instructionsSection {
    margin-bottom: 20px;
}
#instructionsSection p {
    color: #2c3e50;
    font-size: 18px;
    text-align: center;
}
#termsSection {
    margin-bottom: 20px;
}
#termsSection ul {
    list-style: none;
    padding-left: 0;
}
#termsSection li {
    margin-bottom: 10px;
    color: #2c3e50;
    font-size: 18px;
}
.btn {
    display: block;
    width: 200px;
    margin: 0 auto;
    padding: 15px;
    background-color: #32CD32;
    color: white;
    text-align: center;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 20px;
}
.btn:hover {
    background-color: #228B22;
}
/* Game Container */
#gameContainer {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: #fffacd; /* Light Light Yellow Background */
    display: none;
    overflow: hidden;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.1);
}
/* Platform */
#platform {
    position: absolute;
    left: 50%;
    top: 80%;
    transform: translate(-50%, -50%);
    width: 100px; /* Reduced width */
    height: 80px;
    background-color: #2c3e50;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0px 0px 20px rgba(0,0,0,0.5);
    font-weight: bold;
    font-size: 16px; /* Reduced font size */
    padding: 2px 4px; /* Reduced padding */
}
#platform .abbreviation {
    font-size: 20px; /* Reduced font size */
    margin-bottom: 2px; /* Reduced margin */
}
#platform .fullTerm {
    font-size: 14px; /* Reduced font size */
    text-align: center;
    display: none; /* Hidden by default */
}
/* Falling Boxes */
.fallingBox {
    position: absolute;
    width: 176px; /* Increased width by 10% from 160px */
    height: 138px; /* Increased height by 5% from 132px */
    background-color: #e74c3c;
    color: #fff;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 15px;
    border: 3px solid #fff;
    font-size: 16px; /* Reduced font size */
    font-weight: bold;
    box-shadow: 0px 0px 15px rgba(0,0,0,0.5);
    padding: 5px; /* Minimized padding */
}
/* Frown and Smile Faces */
#frownFace, #smileFace {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 100px;
    border: 5px solid;
    border-radius: 50%;
    padding: 30px;
    display: none;
    z-index: 4;
    background-color: white;
    text-align: center;
    box-shadow: 0px 0px 20px rgba(0,0,0,0.7);
}
#frownFace {
    color: red;
    border-color: red;
}
#smileFace {
    color: green;
    border-color: green;
}
/* Firework Animation */
.firework {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: #f1c40f;
    border-radius: 50%;
    animation: explode 0.5s ease-out forwards;
}
@keyframes explode {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(5); opacity: 0; }
}
/* Restart Button */
#restartButton {
    position: absolute;
    top: 70%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
}

/* Input Section Styles */
#inputSection {
    margin-bottom: 20px;
}

#termsInput {
    width: 100%;
    height: 200px;
    padding: 10px;
    font-size: 16px;
    border: 2px solid #2c3e50;
    border-radius: 5px;
    resize: vertical;
    margin-bottom: 10px;
}