* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    overflow: hidden;
}

#game-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 100vh;
    max-height: 600px;
    overflow: hidden;
    border: 2px solid #333;
}

#sky {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #87CEEB, #E0F6FF);
}

.sun {
    position: absolute;
    width: 80px;
    height: 80px;
    background: #FFD700;
    border-radius: 50%;
    top: 50px;
    right: 100px;
    box-shadow: 0 0 50px #FFD700;
}

.cloud {
    position: absolute;
    background: white;
    border-radius: 50px;
    opacity: 0.8;
}

.cloud1 {
    width: 100px;
    height: 40px;
    top: 80px;
    left: 100px;
}

.cloud2 {
    width: 120px;
    height: 50px;
    top: 150px;
    left: 300px;
}

.cloud3 {
    width: 90px;
    height: 35px;
    top: 100px;
    left: 500px;
}

#game-area {
    position: absolute;
    width: 100%;
    height: calc(100% - 50px);
    top: 0;
}

#ground {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 50px;
    background: #4CAF50;
    background-image: 
        linear-gradient(45deg, #388E3C 25%, transparent 25%),
        linear-gradient(-45deg, #388E3C 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #388E3C 75%),
        linear-gradient(-45deg, transparent 75%, #388E3C 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

/* Suppression des pseudo-éléments pour la silhouette */
#ground::before,
#ground::after {
    display: none;
}

.brick {
    position: absolute;
    width: 50px;
    height: 20px;
    background: #FF6B6B;
    cursor: pointer;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    padding: 20px;
    margin: -20px;
}

#score, #lives {
    position: absolute;
    top: 20px;
    font-size: 20px;
    color: #333;
    font-weight: bold;
}

#score {
    left: 20px;
}

#lives {
    right: 20px;
}

#start-screen {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
}

#start-screen h1 {
    color: #333;
    margin-bottom: 20px;
}

#start-screen h2 {
    color: #333;
    margin: 20px 0 10px 0;
    font-size: 1.2em;
}

#start-screen p {
    color: #666;
}

#start-screen ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

#start-screen li {
    color: #666;
    padding: 5px 0;
    font-size: 1.1em;
}

#start-screen li:first-child {
    color: #FFD700;
    font-weight: bold;
}

#start-screen li:nth-child(2) {
    color: #C0C0C0;
}

#start-screen li:nth-child(3) {
    color: #CD7F32;
}

/* Styles pour mobile */
@media (max-width: 768px) {
    #game-container {
        height: 100vh;
        max-height: none;
        border: none;
    }

    .brick {
        width: 60px; /* Briques plus grandes sur mobile */
        height: 25px;
        padding: 25px; /* Hitbox plus grande sur mobile */
        margin: -25px;
    }

    #score, #lives {
        font-size: 24px; /* Texte plus grand sur mobile */
        padding: 10px;
    }

    #start-screen {
        width: 90%;
        max-width: 400px;
        padding: 30px;
    }

    #start-screen h1 {
        font-size: 2em;
    }

    #start-screen p {
        font-size: 1.2em;
    }

    #start-screen li {
        font-size: 1.3em;
        padding: 8px 0;
    }
} 