* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
}

.container {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.game-info {
    display: flex;
    justify-content: space-around;
    margin-bottom: 2rem;
    font-size: 1.2rem;
    font-weight: bold;
}

.simon-board {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    background: #333;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 10px;
    padding: 10px;
}

.color-btn {
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid #333;
    position: relative;
    overflow: hidden;
}

.color-btn:hover {
    transform: scale(1.05);
}

.color-btn.active {
    transform: scale(0.95);
    filter: brightness(1.5);
}

#red {
    background: linear-gradient(45deg, #ff6b6b, #ee5a52);
    grid-column: 1;
    grid-row: 1;
}

#blue {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    grid-column: 2;
    grid-row: 1;
}

#green {
    background: linear-gradient(45deg, #45b7d1, #96c93d);
    grid-column: 1;
    grid-row: 2;
}

#yellow {
    background: linear-gradient(45deg, #f9ca24, #f0932b);
    grid-column: 2;
    grid-row: 2;
}

.center-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: #333;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border: 5px solid #555;
}

.center-circle button {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.center-circle button:hover {
    background: #45a049;
    transform: scale(1.05);
}

.controls {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.control-btn {
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.control-btn:hover {
    background: #ee5a52;
    transform: scale(1.05);
}

.control-btn.active {
    background: #4CAF50;
}

.message {
    font-size: 1.2rem;
    font-weight: bold;
    min-height: 30px;
    margin-top: 1rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 15% auto;
    padding: 2rem;
    border-radius: 20px;
    width: 80%;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    margin-top: -1rem;
    margin-right: -1rem;
}

.close:hover {
    color: white;
}

#name-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

#name-form label {
    font-weight: bold;
}

#name-form input {
    padding: 10px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    text-align: center;
}

#name-form button {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

#name-form button:hover {
    background: #45a049;
    transform: scale(1.05);
}

#highscores-list {
    margin-top: 1rem;
    text-align: left;
}

.highscore-item {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    margin: 5px 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    font-weight: bold;
}

.highscore-item:nth-child(1) {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #333;
}

.highscore-item:nth-child(2) {
    background: linear-gradient(45deg, #c0c0c0, #e5e5e5);
    color: #333;
}

.highscore-item:nth-child(3) {
    background: linear-gradient(45deg, #cd7f32, #daa520);
    color: #333;
}

/* Responsive Design */
@media (max-width: 600px) {
    .simon-board {
        width: 300px;
        height: 300px;
    }
    
    .center-circle {
        width: 100px;
        height: 100px;
    }
    
    .center-circle button {
        font-size: 0.7rem;
        padding: 6px 12px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .game-info {
        font-size: 1rem;
    }
    
    .controls {
        flex-direction: column;
        align-items: center;
    }
    
    .control-btn {
        width: 200px;
    }
}

/* Animation for correct sequence */
@keyframes correct {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.correct-animation {
    animation: correct 0.3s ease;
}

/* Animation for wrong sequence */
@keyframes wrong {
    0% { transform: scale(1); }
    25% { transform: scale(1.1) rotate(5deg); }
    50% { transform: scale(1.1) rotate(-5deg); }
    75% { transform: scale(1.1) rotate(5deg); }
    100% { transform: scale(1); }
}

.wrong-animation {
    animation: wrong 0.5s ease;
} 