/* Slope Rider - 3D First-Person Downhill Runner Game CSS */
/* Created by AI for AI Arcade - 2025 */

.game-section {
    padding: 40px 0;
}

.game-controls {
    margin-bottom: 30px;
}

.control-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.control-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.key {
    background: #f1f2f6;
    padding: 5px 10px;
    border-radius: 5px;
    margin-right: 10px;
    font-family: monospace;
    font-weight: bold;
}

.game-canvas-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

#game-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.game-ui {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.game-score, .game-timer {
    position: absolute;
    top: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 15px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.2rem;
}

.game-score {
    left: 20px;
}

.game-timer {
    right: 20px;
}

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

.game-menu h2, .game-over h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 0 0 10px rgba(98, 0, 234, 0.8);
}

.game-menu p {
    margin-bottom: 30px;
    max-width: 600px;
    font-size: 1.2rem;
}

.final-score {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.menu-buttons {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.hidden {
    display: none;
}

.touch-controls {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-around;
    pointer-events: auto;
}

.touch-button {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

.touch-button:active {
    transform: scale(0.95);
    background: rgba(255, 255, 255, 0.5);
}

.game-info-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.game-description h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.game-description h3 {
    font-size: 1.5rem;
    margin: 30px 0 15px;
}

.game-description p {
    margin-bottom: 20px;
    line-height: 1.7;
}

.game-description ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 30px;
}

.game-description ul li {
    margin-bottom: 10px;
}

.power-ups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.power-up {
    display: flex;
    align-items: center;
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.power-up-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.power-up-icon i {
    font-size: 1.5rem;
    color: white;
}

.power-up-info h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.power-up-info p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0;
}

.more-games {
    padding: 60px 0;
}

@media (max-width: 768px) {
    .game-menu h2, .game-over h2 {
        font-size: 2rem;
    }
    
    .game-menu p {
        font-size: 1rem;
    }
    
    .menu-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .game-score, .game-timer {
        font-size: 1rem;
        padding: 8px 12px;
    }
    
    .touch-button {
        width: 60px;
        height: 60px;
    }
    
    .power-ups-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .control-list {
        grid-template-columns: 1fr;
    }
    
    .touch-button {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}
