/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

#game {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

#colors {
    display: grid;
    grid-template-columns: repeat(2, 120px);
    gap: 15px;
    margin: 20px;
    transform: rotate(45deg);
}

.color-btn {
    width: 120px;
    height: 120px;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.3);
}

.color-btn:hover {
    transform: scale(1.05);
}

#red {
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
}

#green {
    background: linear-gradient(135deg, #00b09b, #96c93d);
}

#blue {
    background: linear-gradient(135deg, #2193b0, #6dd5ed);
}

#yellow {
    background: linear-gradient(135deg, #f7971e, #ffd200);
}

#start-button {
    margin: 100px 0 0 0;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

#start-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.flash {
    animation: flashAnimation 0.5s ease-in-out;
}

@keyframes flashAnimation {
    0% { filter: brightness(1); }
    50% { filter: brightness(3); }
    100% { filter: brightness(1); }
}

/* Modal Styles */
#modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#modal-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    max-width: 400px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

#modal.hidden {
    opacity: 0;
    visibility: hidden;
}

#modal:not(.hidden) {
    opacity: 1;
    visibility: visible;
}

#modal-text {
    margin-bottom: 20px;
    font-size: 18px;
    color: #333;
}

#close-modal {
    padding: 10px 20px;
    background: #ff4b2b;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

#close-modal:hover {
    background: #ff6e52;
}

/* Prompt Modal */
#prompt-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#prompt-modal-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    max-width: 400px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

#prompt-modal.hidden {
    opacity: 0;
    visibility: hidden;
}

#prompt-modal:not(.hidden) {
    opacity: 1;
    visibility: visible;
}

#prompt-modal-text {
    margin-bottom: 20px;
    font-size: 18px;
    color: #333;
}

#prompt-input {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 20px;
    display: block;
    width: 100%;
}

#submit-prompt,
#close-prompt-modal {
    padding: 10px 20px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
    margin: 0 5px;
}

#submit-prompt:hover {
    background: #5469d4;
}

#close-prompt-modal:hover {
    background: #ff4b2b;
}

