/* Container and layout styles */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.cards-container {
    display: grid;
    grid-template-columns: 300px 1fr 300px;
    gap: 20px;
    margin-top: 20px;
    align-items: start;
}

.card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    height: 600px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.game-content {
    flex: 1;
    overflow-y: auto;
    padding-right: 10px;
}

.coin-chart-container {
    width: 100%;
    height: 250px;
    position: relative;
    margin: 10px 0;
}

#coinChart {
    max-width: 100%;
    height: 100% !important;
    margin: 0 auto;
}

.coin-count {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 32px;
    font-weight: bold;
    color: #333;
    z-index: 1;
}

.stats {
    text-align: center;
    margin-bottom: 10px;
}

.timer-container {
    text-align: center;
    margin-top: 20px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.timer-display {
    font-size: 48px;
    font-weight: bold;
    color: #333;
    font-family: monospace;
    margin: 0;
    padding: 10px;
}

.timer-label {
    font-size: 18px;
    color: #666;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Input styles */
.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    color: #666;
}

.input-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Button styles */
.button-container {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

button {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 5px;
    background-color: #007bff;
    color: white;
    cursor: pointer;
    transition: background-color 0.2s;
}

button:hover {
    background-color: #0056b3;
}

button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Smiley styles */
.smiley {
    width: 150px;
    height: 150px;
    background-color: #FFD700;
    border-radius: 50%;
    position: relative;
    margin: 20px auto;
    transition: all 0.3s ease;
}

.smiley:before,
.smiley:after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: #000;
    border-radius: 50%;
    top: 40px;
    animation: blink 4s infinite;
}

.smiley:before {
    left: 40px;
}

.smiley:after {
    right: 40px;
}

.smiley .mouth {
    position: absolute;
    width: 70px;
    height: 35px;
    border: 10px solid #000;
    border-radius: 0 0 120px 120px;
    border-top: 0;
    bottom: 30px;
    left: 35px;
    transition: all 0.3s ease;
}

/* Smiley states */
.smiley.happy {
    background-color: #90EE90;
}

.smiley.happy .mouth {
    border-radius: 0 0 120px 120px;
    border-top: 0;
    bottom: 30px;
}

.smiley.neutral {
    background-color: #FFD700;
}

.smiley.neutral .mouth {
    height: 10px;
    border-radius: 0;
    bottom: 40px;
}

.smiley.sad {
    background-color: #FFB6C1;
    animation: shake 0.5s infinite;
}

.smiley.sad .mouth {
    border-radius: 120px 120px 0 0;
    border-bottom: 0;
    border-top: 10px solid #000;
    top: 80px;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    animation: slideIn 0.3s ease-out;
}

.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.modal-button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s;
}

.modal-button.primary {
    background-color: #28a745;
    color: white;
}

.modal-button.primary:hover {
    background-color: #218838;
}

.modal-button.secondary {
    background-color: #6c757d;
    color: white;
}

.modal-button.secondary:hover {
    background-color: #5a6268;
}

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

@keyframes slideIn {
    from { transform: translate(-50%, -60%); opacity: 0; }
    to { transform: translate(-50%, -50%); opacity: 1; }
}

@keyframes blink {
    0%, 48%, 52%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.1); }
}

@keyframes shake {
    0%, 100% { transform: scale(0.95) translateX(0); }
    25% { transform: scale(0.95) translateX(-5px); }
    75% { transform: scale(0.95) translateX(5px); }
}
