body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    margin: 0;
    padding: 20px;
}

#game-container {
    max-width: 900px;
    margin: 0 auto;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

h1 {
    text-align: center;
    color: #333;
}

#main-display {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
}

/* Smartphone Styles */
#smartphone {
    width: 300px;
    height: 600px;
    background-color: #1a1a1a;
    border-radius: 30px;
    padding: 20px;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
    box-sizing: border-box;
    flex-shrink: 0;
}

#phone-frame {
    background-color: #ffffff;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    padding: 15px;
    box-sizing: border-box;
}

#phone-screen {
    height: 100%;
    overflow-y: auto;
}

.notification {
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

#money-notification { background-color: #e8f5e9; }
#fame-notification { background-color: #e3f2fd; }
#health-notification { background-color: #ffebee; }
#fitness-notification { background-color: #fff3e0; }

.notification h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
}

.resource-bar, .health-bar {
    height: 10px;
    background-color: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
    margin-top: 5px;
}

.resource-fill, .health-fill {
    height: 100%;
    width: 50%;
    transition: width 0.3s ease;
}

#money-fill { background-color: #4CAF50; }
#fame-fill { background-color: #2196F3; }
#health-fill { background-color: #F44336; }
#fitness-fill { background-color: #FF9800; }

/* Game Content Styles */
#game-content {
    flex-grow: 1;
    max-width: 500px;
    display: flex;
    flex-direction: column;
}

/* Needs Pyramid Styles */
#needs-pyramid {
    width: 80%;
    height: auto;
    position: relative;
    margin-bottom: 20px;
    left: -5px;
}

.need-level {
    position: relative;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid #ccc;
    display: flex;
    align-items: center;
    padding: 0 15px;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.need-level:hover {
    transform: translateX(10px);
    box-shadow: -5px 5px 10px rgba(0,0,0,0.1);
}

#self-actualization {
    width: 60%;
    margin-left: auto;
    margin-right: auto;
    background-color: #FFC107;
}

#esteem {
    width: 70%;
    margin-left: auto;
    margin-right: auto;
    background-color: #FF9800;
}

#love-belonging {
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    background-color: #FF5722;
}

#safety {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    background-color: #F44336;
}

#physiological {
    width: 100%;
    background-color: #E91E63;
}

.need-label {
    flex: 2;
    font-weight: bold;
    font-size: 14px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.need-bar {
    flex: 1;
    height: 10px;
    background-color: rgba(0,0,0,0.1);
    border-radius: 5px;
    overflow: hidden;
    margin-left: 10px;
}

.need-fill {
    height: 100%;
    width: 50%;
    background-color: rgba(0,0,0,0.3);
    transition: width 0.3s ease;
}

/* Action Buttons */
#actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

#actions button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#actions button:hover {
    background-color: #45a049;
}

/* Status Effects, Score Display, and Message Styling */
#status-effects, #score-display, #message {
    margin-top: 20px;
    padding: 15px;
    background-color: #f0f0f0;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

#status-effects:hover, #score-display:hover, #message:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

#status-effects {
    background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
}

#score-display {
    background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%);
}

#message {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}

#status-effects h3, #score-display h3, #message h3 {
    margin-top: 0;
    color: #333;
    font-size: 1.2em;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

#status-effects p, #score-display p, #message p {
    margin: 10px 0;
    color: #444;
    font-size: 1em;
    line-height: 1.4;
    text-align: center;
}

/* Animation for new status effects */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#status-effects p {
    animation: fadeInUp 0.5s ease-out;
}

/* Styling for the score */
#score-display .score {
    font-size: 2em;
    font-weight: bold;
    color: #2196F3;
    text-align: center;
    margin: 10px 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

/* Styling for the life status */
#score-display .life-status {
    font-size: 1.2em;
    font-weight: bold;
    text-align: center;
    margin: 10px 0;
    padding: 5px 10px;
    border-radius: 20px;
    display: inline-block;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(33, 150, 243, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(33, 150, 243, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(33, 150, 243, 0);
    }
}

/* Message styling */
#message {
    font-weight: bold;
    text-align: center;
    font-size: 1.1em;
    color: #333;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Output Section */
#output-section {
    display: flex;
    flex-direction: column;
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
    #main-display {
        flex-direction: column;
    }

    #smartphone, #game-content {
        width: 100%;
        max-width: none;
    }

    #status-effects, #score-display, #message {
        margin-top: 10px;
        padding: 10px;
    }

    #score-display .score {
        font-size: 1.5em;
    }

    #score-display .life-status {
        font-size: 1em;
    }

    #status-effects p, #score-display p, #message {
        margin: 5px 0;
    }
}
