* {
    font-family: 'Montserrat', sans-serif; 
    margin: auto 0px;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #181D31;
    color: #E6DDC4;
}

/*barra de navegacion*/

.nav-bar {
    background-color: #181D31;
    display: flex;
    justify-content: space-between;
    align-items: center;  
    width: 100%;
}

.menu{
    display: flex;
    justify-content: space-around;
    width: 300px;
}

.menu-boton {
    list-style-type: none;
}


.link-menu {
    text-decoration: none;
    font-weight: 300;
    background-color: #E6DDC4;
    color:#181D31 ;
    padding: 10px;
    box-shadow: 2px 3px #678983;
    border-radius: 10px;
}

.menu-boton:active{
    transform: translate(3px, 2px);
}

.menu-boton:active > .link-menu{
    box-shadow:0px 0px ;
}

/*logo*/

.logo-animado {
    margin-right: 750px;
    margin-top: 8px;
}

/*animacion del logo*/

rect#monitor1, polygon#teclado1{
    animation: parte-1 ease-in 5s  ;
    animation-iteration-count:1 ;
}
    
rect#monitor2,polygon#teclado2 {
animation: parte-2 ease-in 5s  ;
animation-iteration-count:1 ;
}
@keyframes parte-1{
    0% {
    transform: translate(0,-10px);
    opacity:0;}
    20% {
    transform: translate(0,-10px);
    opacity:0;}
    30% {
    transform: translate(0,0);
    opacity:1;}
    90% {
    transform: translate(0,0);
    opacity:1;}
    
    100% {
    transform: translate(0,0);
    opacity:1;}
}       

@keyframes parte-2 {
    0% {
    transform: translate(0,-10px);
    opacity:0;}
    30% {
    transform: translate(0,-10px);
    opacity:0;}
    40% {
    transform: translate(0,0);
    opacity:1;}
    90% {
    transform: translate(0,0);
    opacity:1;}

    100% {
    transform:translate(0,0);
    opacity:1;}
}  

/*contenido del header*/

header {
    background: url(imagenes/codigo.jpg) 50% 0 fixed;
    background-size: cover;
    padding: 0px 100px;
    min-height: 500px;
    align-items: center;
    font-size: 28px;
    display: flex;
    justify-content: space-around;       
}

/*titulo de la pagina principal*/

h1 {
    color: #eeeeee;
    text-shadow: 2px 2px gray, 6px 6px black;
    animation: titulo 1s cubic-bezier(0.215, 0.610, 0.355, 1.000) both;
}

/*animacion del titulo*/

@keyframes titulo {
    0% {
      letter-spacing: -0.5em;
      transform: translateZ(-700px);
      opacity: 0;
    }
    40% {
      opacity: 0.5;
    }
    100% {
      transform: translateZ(0);
      opacity: 1;
    }
}

/* contenido principal y card*/

h2 {
    font-size:40px;
    text-align: center;
    color: #678983;
    text-shadow: 2px 2px black;
    margin-top: 40px;
}

.rompe-titulo {
    margin-bottom: 40px;
}

.cont-principal {
    display: flex;
    justify-content: space-evenly;
    width: 100%;
    gap: 20px;
    padding: 50px;
}

.card {
    width: 350px;
    height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    border: 6px solid #678983;
    background-color: #E6DDC4;
}

.desc-card {
    text-align: center;
    width: 90%;
    height: 30px;
    color:#181D31;
}
   
.img-card {
    width: 100%;
    margin: 0px; 
    border-bottom: 6px solid #678983;
}

/*botones*/

.boton-card {
    padding: 10px;
    width: 40%;
    margin-bottom: 20px;
    text-align: center;
    text-decoration: none;
    background-color: #181D31;
    border-radius: 10px;
    box-shadow: 2px 3px #678983;
    color:#F0F5E4
}

.boton-card:active{
    box-shadow: 0px 0px darkgray;
    transform: translate(3px, 2px);
}

/*contenido principal pagina historia*/

.cont-historia{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.card-historia {
    display: flex;
    align-items: center;
    padding:80px 50px;
    justify-content: space-around;
    background-color: linear-gradient(10% #E6DDC4,#181D31 100%);
    gap: 20px;
}

.text-historia{
    width: 45%;
}

.text-video {
    margin-bottom: 50px;
}

.contenedorVideo {
    align-items: center;
    padding: 100px 0px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.barra-video {
    background-color: #1d1d1d;
    padding: 2px 5px;
    display: flex;
    justify-content: space-between;
    border-radius: 10px
}

.botones-video {
    display: flex;
    gap: 20px;
}

.contenedor {
    padding: 5px;
    width: 65%;
    background-color: #678983;
    border-radius: 10px
}

/*video*/

#play,#pause,#mute,#volumeUp,#volumeDown {
    width: 70px;
 }

 .img-icon {
    width: 12px;
    height: 12px;
 }

#showTime{
    padding-top: 28px;
    padding-right: 10px;
    color: white;
}

.botonesVideo {
    font-weight: 300;
    background-color: #E6DDC4;
    color:#181D31 ;
    padding: 7px;
    box-shadow: 2px 3px #678983;
    border-radius: 10px;
} 

/*pagina del rompecabezas*/

.juego {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.fotos { 
    flex-direction: row;
    display: flex;   
}

.foto {
    width: 250px;
    height: 350px;
    display: flex;
    justify-content: center;
    text-align: center;
    align-items: center;
    border: 2px solid black;
    background-color: grey;
    transition: transform 0.3s ease;
}

.foto:hover{
    background-color: #1d1d1d;
    transform: scale(1.01);
}

.foto:hover>p{
    color: #E6DDC4;
}

#caja-imagenes{
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin: 40px;
    padding: 20px;
}

#caja-imagenes:hover {
    cursor: grab;
  }

#caja-imagenes:active {
  cursor: grabbing;
}

#imagen1,#imagen2,#imagen3{
    width: 275px;
    height: 400px;
}
.reinicio{
    display: flex;
    margin: auto;
    margin-bottom: 40px;
    padding: 10px 80px;
    cursor: pointer;
    border: none;
}

.reinicio:active{
    transform: translate(3px, 2px);
}
.reinicio:active {
    box-shadow:0px 0px ;
}

.mensaje {
    position: fixed;
    top: 40%;
    left: 40%;
    transform: translate(-50%, -50%);
    padding: 20px;
    background-color: #678983;
    border: 2px solid #181D31;
    border-radius: 10px;
    font-size: 20px;
    text-align: center;
    animation: salida-mens 2s ease-in both;
  }
  @keyframes salida-mens {
    0% {
      transform: rotate(0) scale(1);
      opacity: 1;
    }
    50% { 
        transform: rotate(0) scale(1);
        opacity: 1;
      }
    100% { 
      transform: rotate(-540deg) scale(0);
      opacity: 0;
    }
  }
.mensaje-felicitaciones {
    color: #181D31;
    font-weight: bold;
    width: 250px;
}

/*footer*/
   
footer {
    background-color: #678983;
    color: #181D31;
    padding:  40px;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    width:300px;
    height: 60px;
    display: flex;
    justify-content: space-between;   
}

.logo{
    height: 80px;
    animation: log-footer 1s cubic-bezier(0.455, 0.030, 0.515, 0.955) both;
}
  
@keyframes log-footer {
    0% {
      transform: rotateY(0);     
    }
    100% {
      transform: rotateY(360deg);
    }
}



    

