@font-face {
    font-family: "Montserrat";
    src: url(https://fonts.google.com/specimen/Montserrat);
}

:root{
    --main-red: #6a040f;
    --main-redlight: #910904;
    --main-blue: #000a23;
    --main-bluelight:#02152b;
    --main-blueOff:#042a4b;
    --main-orange:#dc2f02;
    --main-white: #aaaca1;
    --main-yellow: #ffba08;
    --main-mangoo: #f48c06;
  }

*{

    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family:"Monserrat", sans-serif ;
}


body{
    height: 100vh;
    margin: 2vw 10vw;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: var(--main-blue);
}

main{
    z-index: 1;
    border-radius: 30px;
    background-color:var(--main-bluelight) ;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

header{
    margin: 2vw;
    color: white;
    animation-name: textoAparece;
    animation-duration: 3s;
}

header h1{
    margin: 10px 0;
    text-align: center;
}

header p{
    color: var(--main-yellow);
    font-weight: 900;
}

@keyframes textoAparece {
    to{
        opacity: 1;
    }
    from{
        opacity: 0;
    }
}

 section{
    animation-name: textoAparece;
    animation-duration: 3s;
    display: grid;
    justify-content: center;
    align-items: center;
    grid-template-columns: repeat(4, 1fr);
 }

 a{
    margin: 2vw;
    background-color: var(--main-blueOff);
    display: flex;
    color: white;
    text-decoration: none;
    border-radius: 20px;
    padding: 3vw;
    text-align: center;
    justify-content: center;
    align-items: center;
    transition: background-color 1s;
 }

 a:hover{
    background-color: var(--main-yellow);
    transform: scale(1.01);
    color: black;
    font-weight: bolder;
 }


 .burbujas{
    z-index: 0;
    top: 0;
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    animation-name: burbujas;
    animation-duration: 2s;
    animation-iteration-count: infinite;
    animation-direction: alternate-reverse;
 }

 .burbujas:nth-of-type(odd){
    background-color: var(--main-yellow);
    animation-delay: 1s;
 }

 .burbujas:nth-of-type(even){
    background-color: var(--main-mangoo);
 }

 .burbujas:nth-of-type(1){
    left: 2%;
 }

 .burbujas:nth-of-type(2){
    left: 22%;
 }

 .burbujas:nth-of-type(3){
    left: 42%;
 }

 .burbujas:nth-of-type(4){
    left: 62%;
 }

 .burbujas:nth-of-type(5){
    left: 82%;
 }
 
 .burbujas:nth-of-type(6){
    left: 88%;
 }

 @keyframes burbujas {
    to{
        opacity: 0.5;
    }
    from{
        opacity: 0.5;
        width: 2%;
        height: 2%;
        transform: translateY(1000px);
    }
 }

 @media (max-width:500px) {
   header{
      text-align: center;   
   }

   body{
      padding: 5vw;
   }

   main{
      padding: 5vw;
   }

   section{
      width: 100%;
      display: flex;
      justify-content: center;
      align-items: center;
      flex-direction: column;
   }

   a{
      width: 100%;
      margin: 2vw;
   }
 }