@font-face {
    font-family: 'Nasalization';
    src: url(../Kuiper\ game/Font/nasalization-2-cdnfonts/NASALIZA.TTF);
 
    font-family: 'Orbitron' ;
    src: url(../Font/Orbitron-VariableFont_wght.ttf);

    font-family:'QuickingRegular';
    src: url(../Font/QuickingRegular-gw5KY.otf);
}


        body {

            margin: 0;
            background-color: #f0f0f0;
            background-repeat: no-repeat;
            background-size: cover;
            background-image: url('Background.png');
            overflow: hidden;
        }

        #main-content {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            height: 100vh;
        }
        
        #game-container {
            position: relative;
            width: 100vw;
            height: 100vh;
            background-color: transparent;
            border: none;
        }
        
        #character {
            border-radius: 30%;
            position: absolute;
            width: 20px;
            height: 20px;
            top: 46.5%;
            left: 48.3%;
            transform: translate(-50%, -50%);
            z-index: 97 ;
        }
        #character img {
            top: -46.5%;
            left: -48.3%;
            width: 120%;
            height: 120%;
            display: block;
            transform: rotate(174deg);
            scale: 2.5;
        }

        .asteroid-element {
            position: absolute;
            background-size: cover;
            pointer-events: none;
            transition: transform 0.05s linear;
        }
        .bullet {
            position: absolute;
            width: 12px;
            height: 12px;
            background-color:  #ffcc00;
            border-radius: 50%;
            pointer-events: none;
            transform: translate(-50%, -50%);
     
            
        }
        .asteroid-hitbox {
            opacity: 0%;
            position: absolute;
            border: 2px solid rgba(0, 0, 255, 0.5);
            background-color: rgba(0, 0, 255, 0.1);
            pointer-events: none;
            z-index: 98;
        }
        .bullet-hitbox {
            opacity: 0%;
            position: absolute;
            border: 2px solid rgb(234, 0, 255);
            background-color: rgba(255, 0, 0, 0.1);
            pointer-events: none;
            z-index: 98;
        }
        .powerup-circle {
            position: absolute;
            width: 80px;
            height: 80px;
            transform: translateX(4px) translateY(5px);
            border-radius: 50%;
         
            box-shadow: 0 0 15px rgba(98, 0, 255, 0.8), inset 0px 0px 13px 0px rgb(98, 0, 255);
            pointer-events: none;
            z-index: 98;
            opacity: 0;
            transition: opacity 0.5s ease-in-out;
            display: flex;
            justify-content: center;
            align-items: center;
            color: #fff;
            font-weight: bold;
            font-size: 1.2em;
            background-size: cover;
            background-position: center;
        }
        .ship-hitbox {
            opacity: 0%;
            position: absolute;
            border: 2px solid rgba(0, 255, 0, 0.5);
            background-color: rgba(0, 255, 0, 0.1);
            pointer-events: none;
            z-index: 99;
        }
        .explosion-gif {
            position: absolute;
            background-image: url('Explotion.gif');
            background-size: cover;
            pointer-events: none;
            transform: translate(-50%, -50%);
            z-index: 99;
        }
        #game-over-screen {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgb(9 0 17 / 85%);
            color: white;
            display: none;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            z-index: 99;
            text-align: center;
        }
        #game-over-screen h1 {
                font-family:'Nasalization', sans-serif;
            font-size: 5em;
            margin: 0;
                text-shadow: #ffcc00 1px 0 20px;
    color:  rgb(255, 170, 13);
        }
        #game-over-screen button {
            border-radius: 50px;
                color:  rgb(255, 170, 13);
               font-family:'Nasalization', sans-serif;
            padding: 16px 36px;
            background: #0D0921;
      
            border: solid 5px #5d1dd5 ;
            padding: 20px 30px;
            font-size: 1.5em;
            cursor: pointer;

      transition: .3s;
 
            margin-top: 20px;
        }

           #game-over-screen button:hover {
 transform: scale(1.08);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
           }

                  #game-over-screen a:hover {
 transform: scale(1.08);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
           }

   #game-over-screen p {
         color: white;
 font-family: 'Orbitron';
font-size:1.5em;
    font-weight: bold;

   }
         #game-over-screen a {
            transition: .3s;
            border-radius: 50px;
                color:  rgb(255, 170, 13);
               font-family:'Nasalization', sans-serif;
     
            background: #0D0921;
      text-decoration: none;
            border: solid 5px #5C4882 ;
            padding: 20px 50px;
            font-size: 2em;
            cursor: pointer;

    
 
            margin-top: 20px;
        }
        .hidden {
            display: none;
        }
        #shield-element {
            position: absolute;
            width: 80px;
            height: 80px;
            border-radius: 50%;
            background-color: rgba(101, 5, 255, 0.3);
            border: 2px solid rgb(55, 0, 255);
            box-shadow: 0 0 10px 5px rgba(132, 65, 255, 0.6);
            pointer-events: none;
            z-index: 97;
            opacity: 0;
            transform: translate(-49%, -50%);
            transition: opacity 0.5s ease-in-out;
        }

        .super-shot-bullet {
            width: 25px;
            height: 25px;
            background-color: rgb(89, 0, 255);
            border-radius: 50%;
            position: absolute;
            pointer-events: none;
            transform: translate(-50%, -50%);
        }
        
        /* 2. NUEVA CLASE PARA LA SUPER BULLET CON IMAGEN (muhamad.svg) */
        .super-shot-image { 
            width: 50px; 
            height: 50px;
            background-size: cover;
            background-repeat: no-repeat;
            background-position: center;
            position: absolute;
            pointer-events: none;
    
        }

        #powerup-icons {
            position: absolute;
            top: 170px;
            left: 19px;
            display: flex;
            flex-direction: row;
            gap: 10px;
            z-index: 98;
            opacity: 80%;
        }
        .powerup-icon {
            width: 94px;
            height: 94px;
            background-size: contain;
            background-repeat: no-repeat;
            background-position: center;
            display: none;
        }

        .blinking {
            animation: blinker 0.5s linear infinite;
        }
        @keyframes blinker {
            50% {
                opacity: 0;
            }
        }

        #score-display {
    font-family: 'Nasalization';
            position: absolute;
            top: 90px;
            left: 10px;
            color: #ffd000;;
            font-size: 2.0em;
           
            z-index: 98;
            margin-top: 40px;
            margin-left: 20px;
        }

        .powerup-hitbox {
            opacity: 0%;
            position: absolute;
            border: 2px solid rgba(255, 255, 0, 0.5);
            background-color: rgba(255, 255, 0, 0.1);
            pointer-events: none;
            z-index: 97;
            border-radius: 50%;
        }



        #splash-screen {
 font-family: 'Orbitron';
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
         background: rgba(8, 0, 22, 0.66);
         backdrop-filter: blur(5px);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            color: white;
            z-index: 99;
            transition: .9s ease;

        }

         #splash-screen h3 { 
            margin-left: 20%;
            margin-right: 20%;
text-align: center;
font-size: 100%;
         }

          #splash-screen h2{ 
                color:  rgb(255, 170, 13);
            margin-left: 20%;
            margin-right: 20%;
text-align: center;
font-size: 200%;
         }

        #splash-screen h1 {
               font-family:'Nasalization', sans-serif;
            font-size: 3rem;
            margin-bottom: 20px;
    text-shadow: #ffcc00 1px 0 20px;
    color:  rgb(255, 170, 13);
        }

        #splash-screen p {

            font-size: 1rem;
            margin-bottom: 30px;
            max-width: 500px;
            text-align: center;
        }

        #enter-button {
                color:  rgb(255, 170, 13);
               font-family:'Nasalization', sans-serif;
            padding: 16px 36px;
            background: #0D0921;
      
            border: solid 5px #5d1dd5 ;

            border-radius: 50px;
            font-size: 1.5rem;
            cursor: pointer;
            transition: transform 0.3s, box-shadow 0.3s;
        }

        #enter-button:hover {
            transform: scale(1.05);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        }

        .TutoProps {

            width: 100%;

             height: 23%;
        }

        #credits {
        text-shadow: #3a24ff 1px 0 20px;
    font-family: 'Orbitron';
  
    font-size: 85%;
    color: #5900ff;

    z-index: 98;
  
        }

         #credits h1 {
          transition: .2s ease-out;
            opacity: 50%;
         }

         #credits h1:hover {
             opacity: 100%;
              color: #4c00ff;
         }

   #credits a {
    transition: .2s;
    text-decoration: none;
        color: rgb(255, 170, 13);;
               text-shadow:rgb(255, 170, 13) 1px 0 20px;
   }
   #credits a {
        opacity: 100%;
    }
  

          #credits a:active {

           color: rgb(255, 170, 13);;
               text-shadow:rgb(255, 170, 13) 1px 0 20px;
          }

    
#insClass {
    flex-direction: column;
    display: flex
;
    left: 0px;
    top: 100px;
    position: absolute;
    font-size: 20px;
    color: #ffcc00;
    font-family: 'Nasalization', sans-serif;
}
      /* Estilo base para cada bolita (partícula) */
        .particle {
            position: absolute;
            border-radius: 50%; /* Lo convierte en un círculo */
            
            /* Hacemos que la animación de movimiento y opacidad sea suave y fluida. */
            /* La duración (2.0s) controla qué tan rápido se disipa la explosión. */
            transition: transform 2.0s ease-out, opacity 2.0s ease-out;
            
            /* Posiciona todas las partículas en el punto central (0,0) inicialmente */
            top: 0;
            left: 0;
            /* Asegura que las partículas estén por encima de todo */
            z-index: 100; 
        }