

body {
    font-family: 'Arial', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    min-height: 100vh;
    background: rgb(49,13,66);
    background: -moz-linear-gradient(180deg, rgba(49,13,66,1) 0%, rgba(121,22,123,1) 100%);
    background: -webkit-linear-gradient(180deg, rgba(49,13,66,1) 0%, rgba(121,22,123,1) 100%);
    background: linear-gradient(180deg, rgba(49,13,66,1) 0%, rgba(121,22,123,1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#310d42",endColorstr="#79167b",GradientType=1);
    width: 100%;
}
#keyboard {
    margin-top: 5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 50%;
    margin-bottom: 5rem;

}
h1{

    color: var(--blue-light-opacity-1);
    margin-bottom: 5rem;
}
h2{
    color: var(--blue-light-opacity-1);
    margin-right: .3rem;
}

.key {
    padding: 1rem;
    border-radius: .2rem;
    border: 1px solid;
    background: var(--blue-light-opacity-2);
    color: var(--blue-light-opacity-1);
    margin-top: .5rem;
    width: 4rem;
    height: 3.5rem;
    font-size: small;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    
    
}


.key::before{
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    background: linear-gradient(#00ccff,#d500f9);
    animation: rotate 4s linear infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: -10;
}

.key::after{
    content: "";
    position: absolute;
    background: var(--dark);    
    inset: 1.5px;
    z-index: -10;
    
    
}
.row {
    display: grid;
    grid-template-columns: repeat(14, 1fr);
    width: 100%;
    justify-content: center;
    align-items: center;
    gap: .7rem;
}
.space{
    width: 20rem;
}
#Backspace{
    width: 7rem;
}
#Tab{
    width: 7rem;
}
#CapsLock{
    width: 5rem;
}
#Enter{
    width: 10rem;
}
.shift1{
    width: 11rem;
}

.pulso-clase{
    animation: pulse .9s alternate infinite;
}


.error-clase{
    animation: error .1s alternate;
}

.puntuacion{
    display: flex;
}
.perdiste{
    display: flex;
    flex-direction: column;
    border: black 1px solid;
    width: 20rem;
    height: 25rem;
    justify-content: center;
    align-items: center;
    position: absolute;
    animation: all ease 1s;
    transform: translateY(-100rem);
    display: none;
 

    
}
.perdiste button{
    width: 15rem;
    margin-top: 2rem;
}

.perdiste.mostrar{
    display: flex;
    animation: mostrar-perdiste .5s forwards;
  /* From https://css.glass */
    background: rgba(59, 157, 204, 0.54);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(3.3px);
    -webkit-backdrop-filter: blur(3.3px);
    border: 1px solid rgba(59, 157, 204, 1);

    z-index: 10;
}
@keyframes mostrar-perdiste{
    from{
        transform: translate(-100rem);
    }to{
        transform: translate(0);
    }
}

@keyframes error{
    from{
        transform: translate(-20px);
    }to{
        transform: translate(20px);
    }
}

@keyframes pulse{
    
    0%{
        transform: scale(1.07);
    }
    50%{
        transform: scale(1.0);
    }
    80%{
        transform:scale(.8);
    }
    
}

@keyframes vibrar{
    from{
        transform: translate(-10px);
    }to{
        transform: translate(10px);
    }
}

@keyframes color-fondo{
    from{
        background: (--black)
    }to{
        background: white;
    }
}

@keyframes rotate {
    from{
        transform: rotate(0deg)
    }to{
        transform: rotate(360deg);
    }
}

.corazon{
    width: 3rem;
    height: 3rem;
    margin: .3rem;
}
nav{
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}
header{
    position: fixed;
    top: 0;
    right: 0;
    margin: 2rem 2rem;
    width: 95%;
}

#control-volumen{
    -webkit-appearance: none;
    height: 3px;
    width: 100%;
    background-color: #ddd;
    border-radius: 5px;
    outline: none;
    border: none;
    margin: 0 1rem;
}

#imagen-volumen{
    height: 2rem;
    width: 2rem;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 13px;
    height: 13px;
    background: var(--blue-light-opacity-1);
    border-radius: 100%;
    border: none;
}
.volver-principal div{
    width: 100%;
 
}
.volver-principal a{
    text-decoration: none;
 
}

.container-volumen{
    display: flex;
    align-items: center;
}