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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: white;
    margin: 0;
    padding: 0;
}

.game-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin: 20px auto;
    max-width: 900px;
}

.main-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 20px;
}

h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

#playerName {
    padding: 10px 15px;
    border: none;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}

#playerName::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

#playerName:focus {
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
}

button {
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    background: linear-gradient(45deg, #f093fb 0%, #f5576c 100%);
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

button:active {
    transform: translateY(0);
}

.score {
    font-size: 1.2em;
    font-weight: bold;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 25px;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#gameCanvas {
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.game-info {
    margin-top: 20px;
    text-align: center;
    font-size: 0.9em;
    opacity: 0.8;
}

.game-info p {
    margin: 5px 0;
}

.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;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-content h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

.modal-content p {
    font-size: 1.2em;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .game-container {
        padding: 10px;
        margin: 10px;
    }
    
    h1 {
        font-size: 2em;
    }
    
    #gameCanvas {
        width: 100%;
        max-width: 600px;
        height: auto;
    }
    
    .controls {
        flex-direction: column;
        gap: 10px;
    }
    
    #playerName, button, .score {
        width: 100%;
        max-width: 300px;
    }
}

/* Footer Styles */
.game-footer {
    width: 100vw;
    background: rgba(0, 0, 0, 0.3);
    border-top: 2px solid #B19CD9;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.footer-links-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    max-width: 600px;
    width: 100%;
}

.footer-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #E8D5F2;
    padding: 15px;
    border-radius: 10px;
    min-height: 80px;
    justify-content: center;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
}

.footer-link:hover {
    color: #FFD700;
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.2);
}

.footer-icon {
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 8px;
    display: block;
}

.footer-text {
    font-size: 0.9rem;
    font-weight: bold;
    text-align: center;
}

/* Mobile responsive footer */
@media (max-width: 600px) {
    .footer-link {
        padding: 10px;
        min-height: 70px;
    }
    
    .footer-icon {
        font-size: 1.5rem;
        margin-bottom: 5px;
    }
    
    .footer-text {
        font-size: 0.8rem;
    }
    
    .footer-links-container {
        gap: 20px;
    }
}
