body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

header {
    background-color: #333;
    color: #fff;
    padding: 1rem 0;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

header h1 {
    margin: 0;
    font-size: 2rem;
}

header p {
    margin: 0.5rem 0 0;
    font-size: 1rem;
    opacity: 0.8;
}

main {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.game-container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.game-stats {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 500px;
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: bold;
}

.score, .high-score {
    background-color: #f8f9fa;
    padding: 8px 15px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.canvas-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 500px;
    margin: 0 auto;
    border: 2px solid #333;
    border-radius: 4px;
    background-color: #f0f0f0;
}

#gameCanvas {
    display: block;
    width: 100%;
    height: 100%;
    background-color: #222;
}

.game-message {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    text-align: center;
    display: none;
}

.game-message h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.game-message p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

#restart-button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#restart-button:hover {
    background-color: #45a049;
}

.game-controls {
    width: 100%;
    max-width: 500px;
    margin-top: 20px;
}

.control-group {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.control-button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.control-button:hover {
    background-color: #45a049;
}

#pause-button {
    background-color: #2196F3;
}

#pause-button:hover {
    background-color: #0b7dda;
}

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

.setting {
    display: inline-block;
    margin: 0 10px;
}

.setting label {
    margin-right: 5px;
}

.setting select {
    padding: 5px 10px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.mobile-controls {
    display: none;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

.mobile-control-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 5px 0;
}

.direction-button {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s;
}

.direction-button:hover {
    background-color: #555;
}

.info-section {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin: 20px 0;
}

.info-section h2 {
    color: #333;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.info-section h3 {
    color: #444;
    margin-top: 20px;
}

.info-section ul, .info-section ol {
    padding-left: 20px;
}

.info-section li {
    margin-bottom: 8px;
}

.note {
    background-color: #f8f9fa;
    border-left: 4px solid #4CAF50;
    padding: 15px;
    margin-top: 20px;
    border-radius: 0 4px 4px 0;
}

.note h4 {
    margin-top: 0;
    color: #4CAF50;
}

/* Ad Container Styling */
.ad-container {
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
    padding: 15px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    overflow: hidden;
    min-height: 100px;
}

.ad-bottom {
    margin-top: 30px;
    background-color: #f9f9f9;
    border-top: 3px solid #4CAF50;
}

footer {
    text-align: center;
    padding: 1rem 0;
    background-color: #333;
    color: #fff;
    margin-top: 30px;
}

footer a {
    color: #fff;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .canvas-container {
        height: 350px;
    }
    
    .mobile-controls {
        display: flex;
    }
    
    .game-stats {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .canvas-container {
        height: 300px;
    }
    
    .game-message h2 {
        font-size: 1.5rem;
    }
    
    .game-message p {
        font-size: 1rem;
    }
    
    .control-group {
        flex-direction: column;
        align-items: center;
    }
    
    .control-button {
        width: 100%;
    }
} 
