* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,
html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: Arial, sans-serif;
}

#background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('background.jpg');
  
    background-size: cover;
    background-position: center;
    z-index: -1;
}


#modeSelection {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 40px;
 
}

.mode-button {
    width: 200px;
   
    height: 70px;

    font-size: 1.5em;

    border: none;
    border-radius: 10px;
  
    background-color: #007BFF;
 
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);

}

.mode-button:hover {
    background-color: #0056b3;
  
    transform: scale(1.05);
  
}

#shooter {
    width: 60px;
    height: 60px;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-image: url('shooter.png');
  
    background-size: contain;
    background-repeat: no-repeat;
}

.letter {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 215, 0, 0.9);
    position: absolute;
    text-align: center;
    line-height: 40px;
    font-size: 20px;
    font-weight: bold;
    color: #333;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(255, 215, 0, 0.7);
    user-select: none;
}

.bullet {
    width: 10px;
    height: 20px;
    background-color: #ff4136;
    position: absolute;
    border-radius: 2px;
    box-shadow: 0 0 5px rgba(255, 0, 0, 0.7);
}

#info {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #ffffff;
    font-size: 1.5em;
    text-shadow: 1px 1px 2px #000;
}

#infoText {
    margin-right: 10px;
}

.control-button {
    position: fixed;
    bottom: 20px;
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.7);
    font-size: 24px;
    font-weight: bold;
    color: #000;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    user-select: none;
    z-index: 10;
}

#leftButton {
    left: 20px;
}

#rightButton {
    right: 20px;
}

.control-button:active {
    background-color: rgba(255, 255, 255, 1);
}

@media (max-width: 900px) {

   
    #modeSelection {
        gap: 30px;
       
    }

    .mode-button {
        width: 160px;
      
        height: 60px;
        
        font-size: 1.3em;
      
    }

    #shooter {
        width: 50px;
        height: 50px;
    }

    .letter {
        width: 35px;
        height: 35px;
        font-size: 18px;
        line-height: 35px;
    }

    .bullet {
        width: 8px;
        height: 16px;
    }

    #info {
        font-size: 1.2em;
    }

    .control-button {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    #leftButton {
        left: 15px;
    }

    #rightButton {
        right: 15px;
    }
}

@media (max-width: 600px) {

   
    #modeSelection {
        gap: 20px;
        
    }

    .mode-button {
        width: 140px;
    
        height: 50px;
  
        font-size: 1.1em;
       
    }

    #shooter {
        width: 40px;
        height: 40px;
    }

    .letter {
        width: 30px;
        height: 30px;
        font-size: 16px;
        line-height: 30px;
    }

    .bullet {
        width: 6px;
        height: 12px;
    }

    #info {
        font-size: 1em;
    }

    .control-button {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    #leftButton {
        left: 10px;
    }

    #rightButton {
        right: 10px;
    }
}