/* How to Play section styles */
.how-to-play-section {
    background: rgba(0, 0, 0, 0.7);
    border-radius: 12px;
    padding: 30px;
    margin: 40px auto;
    max-width: 1200px;
}

/* Page container for standalone How to Play page */
.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.page-header {
    text-align: center;
    margin-bottom: 30px;
    color: #fff;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.8;
}

.how-to-play-section h2 {
    color: #fff;
    text-align: center;
    margin-bottom: 20px;
    font-size: 2rem;
}

.how-to-play-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.basics-container {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .basics-container {
        flex-direction: column;
    }
}

.gameplay-text {
    flex: 1;
    color: #fff;
}

.gameplay-text p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.gameplay-text ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.gameplay-text li {
    margin-bottom: 8px;
}

.demo-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.demo-canvas-container {
    position: relative;
    width: 300px;
    height: 480px;
}

#demo-canvas {
    background-color: rgba(0, 0, 0, 0.6);
    border: 1px solid #444;
}

.demo-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
    width: 100%;
}

.demo-controls button {
    padding: 8px 12px;
    background: #8033FF;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.demo-controls button:hover {
    background: #6527cc;
}

/* Powerups section */
.powerups-section {
    color: #fff;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.powerups-section h3 {
    margin-bottom: 20px;
    text-align: center;
}

.powerups-section p {
    text-align: center;
    margin-bottom: 20px;
}

.powerups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.powerup-card {
    background: rgba(40, 40, 40, 0.8);
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: center;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.powerup-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.powerup-card.active {
    border: 2px solid #8033FF;
    box-shadow: 0 0 10px rgba(128, 51, 255, 0.5);
}

.powerup-icon {
    width: 40px;
    height: 40px;
    background: #8033FF;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    font-weight: bold;
    font-size: 18px;
    color: white;
    text-shadow: 1px 1px 1px black;
}

.powerup-details h4 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
}

.powerup-details p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

.back-to-home {
    text-align: center;
    margin-top: 30px;
}
