body {
    font-family: 'Arial', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
    background-color: #f0f8ff;
}

#game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
    visibility: hidden; 
}

#level-info {
    display: flex;
    justify-content: space-between;
    width: 800px;
    margin-bottom: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    background-color: rgba(255, 255, 255, 0.7);
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

#current-level {
    color: #3a57a6;
}

#jumps-left {
    color: #e63946;
}

#game-canvas {
    border: 2px solid #333;
    background-color: #c4e8ff;
    cursor: pointer;
}

#controls {
    margin-top: 15px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

button {
    padding: 8px 15px;
    margin: 0 5px;
    border: none;
    border-radius: 5px;
    background-color: #4b6cc1;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #3a57a6;
}

#message {
    margin-top: 15px;
    height: 30px;
    font-size: 1.5rem;
    font-weight: bold;
    color: #3a57a6;
}

#instructions {
    width: 800px;
    padding: 10px;
    background-color: #e8f1ff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    font-size: 0.9rem;
    margin-top: 10px;
}

#instructions h2 {
    margin-top: 0;
    margin-bottom: 5px;
    color: #3a57a6;
    font-size: 1.2rem;
}

#instructions p {
    margin: 5px 0;
}

.instruction-details {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #3a57a6;
}

.instruction-item {
    width: 30%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px;
    background-color: rgba(255, 255, 255, 0.5);
    padding: 8px;
    border-radius: 8px;
}

.instruction-image {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-bottom: 5px;
}

.instruction-item p {
    text-align: center;
    margin: 3px 0;
    font-size: 0.8rem;
}

#start-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 10;
    background-image: url('background.png');
    background-size: cover;
    background-position: center;
}

#start-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

#start-screen h1 {
    font-size: 4rem;
    color: white;
    text-shadow: 3px 3px 5px #000, -3px -3px 5px #000;
    margin-bottom: 30px;
}

#start-btn {
    padding: 12px 30px;
    font-size: 1.5rem;
    background-color: #4b6cc1;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
}

#start-btn:hover {
    background-color: #3a57a6;
    transform: scale(1.05);
}

.volume-control {
    display: flex;
    align-items: center;
    margin-left: 15px;
}

.volume-control label {
    margin-right: 5px;
    color: #3a57a6;
    font-weight: bold;
}

#volume-slider {
    width: 100px;
    cursor: pointer;
}