@import url('https://fonts.googleapis.com/css2?family=Pixelify+Sans:wght@600;700&display=swap');

@font-face {
    font-family: 'pixelfy'; 
    src: url('https://fonts.googleapis.com/css2?family=Pixelify+Sans&display=swap') format('truetype'); 
}

#main {
    border: solid 1px black;
    width: 90em;
    height: 50em;
    margin: 0 auto;
    position: relative;
    top: 50px;
    background-size: cover;
    background-image: url('../assets/background/image.jpg');
    animation: test 3s;
    animation-iteration-count: infinite;
}

@keyframes test {
    0% {
        top: 5px;
    }

    50% {
        top: 0px;
    }

    100% {
        top: 5px;

    }
}

/* Estadisticas generales de la partida */
#status {
    width: 80em;
    margin: 0 auto;
    height: 2.5em;
    display: flex;
}

/* Cada estadistica */
.stats {
    height: 55px;
    width: 200px;
    margin: 0 auto;
    font-weight: 800;
    color: black;
    font-family: 'pixelify sans', sans-serif;
    border-radius: 20px 20px 10px 10px;
    filter: drop-shadow(10px 10px 4px black);
    display: grid;
    align-items: center;
    text-align: center;

}

/* Stats Banners */

#health {

    background-image: url('../assets/background/rojo.png');
    background-size: cover;

}

#score {

    background-image: url('../assets/background/amarillo.png');
    background-size: cover;

}

#bullets {

    background-image: url('../assets/background/azul.png');
    background-size: cover;

}



/*imagenes stats*/
/* #heart{

    z-index: 4;
    
} */

/* Zona de juego  */
#game{
    display: flex;
    width: 100em;
    height: 90em;
    margin: 0 auto;
    position: relative;
    top: 500px;
    overflow: visible;
    z-index: 1;

}

/* Web en negro para no sangrar los ojos :) */
html {
    background-color: black;
}

/* Pantalla de menú */
#pre-game {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: solid 1px black;
    width: 90em;
    height: 60em;
    margin: 0 auto;
    position: absolute;
    background-size: contain;
    background-image: url('../assets/background/9SYf0EO.png');
    z-index: 5;

}

/* botones */
.btn {
    /* padding: 20px 30px 20px 30px; */
    box-sizing: border-box;
    width: 10em;
    height: 5em;
    background-image: linear-gradient(to right bottom, #ff0000, #ff5800, #ff8300, #ffa700, #ffc800, #ffb900, #ffa900, #ff9a00, #ff4933, #ff006e, #e100b7, #0017ff);
    color: rgb(0, 55, 254);
    margin-top: 20px;
    font-size: 25px;
    font-weight: 800;
    font-family: 'pixelify sans', sans-serif;
    filter: drop-shadow(10px 10px 4px black);
    border: solid 1px white;
    border-radius: 20px;

}

/* efecto para los botones */
.btn:hover {
    background: radial-gradient(green, black);
    color: yellow;
    font-weight: 800;
}

/*Cuadro de menu */
#menu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-image: url('../assets/menu/Dropped\ image.png');
    background-size: cover;
    width: 16.8em;
    height: 10.5em;
    font-size: 58px;
    margin-bottom: 1.5em;
    font-weight: 800;
    color: rgb(212, 255, 0);
    font-family: 'pixelify sans', sans-serif;
    border-top-left-radius: 100px;
    border-bottom-right-radius: 100px;
    filter: drop-shadow(50px 80px 1000px black);

}

/* ESTO */

#tutorial-image {
    position: absolute;
    z-index: 10;
    left: 27.5em;
    top: 10em;
    display: none;
    margin: 0 auto;
}

/* ESTO */
#tutorial-image img {
    width: 35em;
    filter: drop-shadow(10px 10px 4px black);
}

/* ESTO */
#close-tutorial {
    position: absolute;
    margin: 0 auto;
    width: 50px;
    height: 40px;
    left:20em; 
    color:red;
    

}

#sam {
    position: absolute;
    background-image: url('../assets/background/Sam.png');
    background-size: cover;
    z-index: 2;
}

.enemy {
    position: absolute;
    background-image: url('../assets/background/Enemy.png');
    background-size: cover;
}

.bullet {
    background-size: cover;
    position: absolute;
    z-index: 1;
    background: linear-gradient(0.25turn, yellow, red);
    border-radius: 15px;
    padding-left: 15px;


}

#pause {
    margin: 0 auto;
    position: absolute;
    display: flex;
    justify-content: center;
    top: 20em;
    left: 35em;
    background-color: rgba(128, 128, 128, 0.524);
    padding: 30px 40px 30px 40px;
    font-weight: 800;
    color: white;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    border-radius: 20px 20px 10px 10px;
    filter: drop-shadow(10px 10px 4px black);
    width: 200px;
}

#boss {

    background-image: url('../assets/background/Boss.png');
    background-size: cover;
    position: absolute;
}

#defeat {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: 'pixelify sans', sans-serif;
    background-image: url('../assets/background/defeat.png');
    position: absolute;
    background-size: cover;
    width: 90em;
    height: 50em;
    bottom: 60px;
    color: white;
}

#dtext {
    font-size: 120px;
    color: white;
    font-family: 'pixelify sans', sans-serif;
    
    background-color: rgba(0, 0, 0, 0.565);

}

#end {
    background-color: rgba(0, 0, 0, 0.629);
    color: red;
    padding: 20px 20px 20px 20px;
    border: solid 1px red;
    font-size: 32px;
    font-family: 'pixelify sans', sans-serif;
    border-radius: 20px;
    
}

#end:hover {
    background-color: white;
    color: red
}

#wtxt {
    font-size: 120px;
    color: yellow;
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    background-color: blue;

}

#win {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-image: url('../assets/background/win.jpg');
    position: absolute;
    font-family: 'pixelify sans', sans-serif;
    font-weight: 600;
    background-size: cover;
    width: 90em;
    height: 50em;
    bottom: 0px;
    color: yellow;
}

#iwin {
    font-size: 10em;
    background-color: rgba(0, 0, 255, 0.498);
    border: solid 1px black;
    font-family: 'pixelify sans', sans-serif;
}

#wreset {
    background-color: rgba(0, 0, 255, 0.362);
    color: yellow;
    padding: 20px 20px 20px 20px;
    font-weight: 800;
    font-size: 32px;
    border-radius: 20px;
    font-weight: 600;
    border: none;
    filter: drop-shadow(90px);
    font-family: 'pixelify sans', sans-serif;

}

#enemy {
    background-color: red;
    width: 50px;
    height: 50px;
}

#enemy {
    background-color: red;
    width: 50px;
    height: 50px;
}


/* Ronboide para la calle - Bonus */
/* border-right: 60px solid transparent;
    border-left: 60px solid transparent;
    border-bottom: 100px solid #428bca; */