:root {
    --primary-color: #FF9ECD;
    --secondary-color: #B5E6FF;
    --accent-color: #FFE5A5;
    --text-color: #4A4A4A;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial Rounded MT Bold', Arial, sans-serif;
    background-color: #FFF5F8;
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 2rem;
}

h1 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

header p {
    color: var(--text-color);
    font-size: 1.1rem;
}

.button-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
    margin-bottom: 2rem;
}

.cry-button {
    background-color: white;
    border: none;
    border-radius: 15px;
    padding: 1.5rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 6px var(--shadow-color);
}

.cry-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px var(--shadow-color);
}

.cry-button.playing {
    transform: scale(0.98);
    background-color: var(--accent-color);
}

.sound-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.meaning {
    font-size: 1rem;
    color: var(--text-color);
}

footer {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.8;
}

/* Color variations for buttons */
.cry-button:nth-child(1) { background-color: var(--primary-color); }
.cry-button:nth-child(2) { background-color: var(--secondary-color); }
.cry-button:nth-child(3) { background-color: var(--accent-color); }
.cry-button:nth-child(4) { background-color: #FFCCE5; }
.cry-button:nth-child(5) { background-color: #E5F5FF; }
.cry-button:nth-child(6) { background-color: #FF6B6B; } /* Red color for stop button */

/* Make text white for better contrast on colored buttons */
.cry-button .sound-text,
.cry-button .meaning {
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Media query for larger screens */
@media (min-width: 768px) {
    .button-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    h1 {
        font-size: 2.5rem;
    }
}

/* Add these to your existing CSS */
.offline-indicator {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #FF9ECD;
    color: white;
    text-align: center;
    padding: 8px;
    font-size: 14px;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    z-index: 1000;
}

body.offline .offline-indicator {
    transform: translateY(0);
}

.cry-button.loading {
    opacity: 0.7;
    cursor: wait;
}

.cry-button.sound-unavailable {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Add loading indicator */
.cry-button.loading::after {
    content: "Loading...";
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: rgba(0, 0, 0, 0.5);
}

/* Add to your existing footer styles */
footer a {
    color: var(--primary-color);
    text-decoration: none;
    transition: opacity 0.2s;
}

footer a:hover {
    opacity: 0.8;
}

/* Add these to your existing CSS */
.stop-button {
    grid-column: 1 / -1; /* Make it full width */
}

.stop-button:hover {
    transform: scale(0.98);
    background-color: #FF5252;
}

@media (min-width: 768px) {
    .stop-button {
        grid-column: 1 / 3; /* Span both columns on larger screens */
    }
}

/* Version styling */
.version {
    font-size: 0.8em;
    color: #888;
    margin-top: 5px;
}

/* Update notification styling */
.update-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #fff;
    border: 2px solid #ff9eb6;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 250px;
}

.update-notification p {
    margin: 0 0 10px 0;
    font-size: 14px;
    text-align: center;
}

#update-button {
    background-color: #ff9eb6;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    cursor: pointer;
    font-weight: bold;
    margin-bottom: 8px;
    width: 100%;
}

#update-button:hover {
    background-color: #ff7a9c;
}

#dismiss-update {
    background-color: transparent;
    color: #888;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 12px;
    width: 100%;
}

#dismiss-update:hover {
    background-color: #f5f5f5;
}