@import url('https://fonts.googleapis.com/css2?family=Host+Grotesk:ital,wght@0,300..800;1,300..800&display=swap');

@font-face {
    font-family: 'Soligant';
    src: url('../font/Soligant.ttf') format('truetype'),
         url('../font/Soligant.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
   background-color: light-dark(#f5f4f0, #21242b);
    color: light-dark(#21211f,#eee);
}

.unity-container {
    position: absolute;
    width: 100%;
    height: 100vh;
       cursor: pointer;
    margin: auto;
    top: 0; 
    left: 0;
    padding: 0;
    z-index:-1;
  }
  
  #unity-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
     cursor: pointer;
  }

.containerIntro {
    margin: auto;
    width: 90%;
    height: 80vh;
        background-color: rgba(132, 132, 132, 0.29);
        box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
        backdrop-filter: blur(5.2px);
        -webkit-backdrop-filter: blur(5.2px);
        border-radius: 2rem;
        border: 2px solid rgba(255, 255, 255, 0.18);
   z-index: 2;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-direction: column;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-family: "Host Grotesk", sans-serif;
}


.intro h1 {
    margin: auto;
    margin-left: 1rem;
   font-size: 3.2rem;
   font-weight: 600;
   text-align: left;
    
    
}



.intro h2 {
   
    color: white;
    font-size: 0.9rem;
    font-weight: 200;
    text-align: left;
    width: 72%;
    margin-left: 1rem; 
 
}

.intro h3 {
    color: white;
    margin: auto;
    margin-top: 14rem;
    margin-left: 1rem;
    text-align: left;
    font-size: 1.2rem;
    font-weight: 400;
    

}
.intro h3, .intro h1, .intro h2 {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.intro h3.show, .intro h1.show, .intro h2.show {
    opacity: 1;
    transform: translateY(0);
}
#loading {
   
   width: 200px; 
   height: 44px;
  margin-left: 1rem;
   
   margin-top: 13rem; 
    text-align: left;
}

#loading h3{ 
font-weight: 200;
font-size: 0.8rem;
text-align: left;
}


.contactMenuBola {
    margin: auto;
    width: 260px; 
    height: 50px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0.2rem 1.6rem;
    position: absolute;  
   top: 80%;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 4rem;
    backdrop-filter: blur(5.2px);
    -webkit-backdrop-filter: blur(5.2px);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.10);
    border: 2px solid rgba(230, 230, 230, 0.33); 
}

.icon-social {
    width: 1.2rem;
    height: 1..2rem;
    font-size: 1rem;
    cursor: pointer; 
    border-radius: 1rem;
    display: flex;
    direction: column;
    justify-content: center;
    align-items: center;
}
.icon-social img{
    width: 1rem;
    height: 1rem;
    color: green;
}
.icon-skip {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1rem;
    cursor: pointer;
    
    border-radius: 1rem;
    display: flex;
    direction: column;
    justify-content: center;
    align-items: center;
}
.icon-skip p {
    margin-right: 0.8rem;
}

.icon-skip img{
    width: 1.2rem;
    height: 1.2rem;
    color: white;
}

.icon-social:hover {
    background-color: rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.75);
}
.contactMenuBola a {
    text-decoration: none;
    color: white;
}

.btnProjects {
    margin: 1rem auto;
    width: 160px; 
    height: 40px;
    padding: 0.2rem 1.6rem;
    border-radius: 4rem;
    position: fixed;
    left: 50%;
    bottom: 20%;
    transform: translateX(-50%);
    background-color: rgba(255, 255, 255, 0.18);
    color: white;
    font-size: 0.9rem;
    font-weight: 200;
    z-index: 4;
    font-family: "Host Grotesk", sans-serif;
    text-align: center;
    font-weight:500;
    cursor: pointer;
    backdrop-filter: blur(5.2px);
    -webkit-backdrop-filter: blur(5.2px);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.10);
    border: 2px solid rgba(230, 230, 230, 0.33); 
}
.btnProjects:hover{
        background-color: rgba(60, 59, 59, 0.18);
        color: rgba(255, 255, 255, 0.75);
        font-family: 'Soligant', serif;
    font-size: 1rem;
    }

     .jumpToIntro{
    width: 6rem;
    height: 3rem;
    position:absolute;  
    bottom:4%;
    right:6.5%;
    display: flex;
  justify-content: center; 
  align-items: center; 
  text-align: center;
    border-radius: 4rem;
       font-family: "Host Grotesk", sans-serif;
    backdrop-filter: blur(5.2px);
    -webkit-backdrop-filter: blur(5.2px);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.10);
    border: 2px solid rgba(230, 230, 230, 0.33); 
}

.jumpToIntro a{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
      margin: 0;
    padding: 0;
    color: white;
     text-decoration: none;
    font-family: "Host Grotesk", sans-serif;
    cursor: pointer;
    line-height: 1;
    font-size: 1em; 
    transition: background 0.2s, opacity 0.2s;
}
.jumpToIntro a:hover{
        background-color: rgba(60, 59, 59, 0.18);
        border-radius: 4rem;
          opacity:0.8;
    }

@media (min-width: 1080px) {
    
    body{
        background-image: url(/img/anil-unsplash.jpg);
        background-repeat: no-repeat;
        background-size: cover;
    
    }
    .unity-container {
        position: fixed; /* Cambiamos a fixed para que ocupe todo el viewport */
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        overflow: hidden;
        margin: 0;
        padding: 0;
        z-index: -1; /* Adjusted z-index to place it behind other elements */
    }
    #unity-canvas {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: #000;
      }
    
      
      .containerIntro {
        width: 70%;
        height: 80vh;
        background-color: rgba(132, 132, 132, 0.29);
        box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
        backdrop-filter: blur(5.2px);
        -webkit-backdrop-filter: blur(5.2px);
    
        display: flex;
        justify-content: flex-start;
        align-items: flex-start;
        flex-direction: column;
    
        /* Métodos para centrar */
        position: absolute; /* Cambiamos a absolute para posicionarlo respecto a un ancestro posicionado (el body) */
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    
        z-index: 1;
    }

    #loading {
  margin-left: 1.5rem;
   margin-top: 12rem; 
}


.intro h1 {
    font-size: 4rem;
    font-weight: 600;
    margin-left: 1.5rem;
}
.intro h2 {
    color: white;
     margin-left: 1.5rem;
     width:100%;
     font-size: 1rem;
}
.intro h3 {
    margin-left: 1.5rem;
}


.contactMenuBola{
    width: 40px;
    height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
  padding: 0.2rem 1.6rem;
    position:absolute;  
    top: 40%;
    right:4%;
    left: initial;
 border-radius: 4rem;
 backdrop-filter: blur(5.2px);
-webkit-backdrop-filter: blur(5.2px);
box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.10);
border: 2px solid rgba(230, 230, 230, 0.33); 
}
.icon-social {
      width: 2.5rem;
    height: 2.5rem;
    font-size: 1rem;
    cursor: pointer;
    border-radius:1rem;
    display: flex;
    direction: column;
    justify-content: center;
    align-items: center; 
}
.icon-social img{
    width: 1.2rem;
    height: 1.2rem;
    color: white;
}
.icon-skip img{
    width: 1.2rem;
    height: 1.2rem;
    color: white;
}
.icon-social:hover {
    background-color:rgba(255, 255, 255, 0.09);
    color: rgba(255, 255, 255, 0.75);
    border-radius:30rem;
     width: 2.5rem;
    height: 2.5rem;
  
}
.contactMenuBola a{
    text-decoration: none;
    color: white;
}

.btnProjects {
    margin: auto;
    width: 160px; 
    height: 40px;
    padding: 0.2rem 1.6rem;
border-radius: 4rem;
position: absolute;
left: 50%;
top: 85vh;
transform: translateX(-50%);
    background-color: rgba(255, 255, 255, 0.18);
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    z-index:4;
    font-family: "Host Grotesk", sans-serif;
    text-align: center;
    cursor: pointer;
    backdrop-filter: blur(5.2px);
    -webkit-backdrop-filter: blur(5.2px);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.10);
    border: 2px solid rgba(230, 230, 230, 0.33); 
}
    

.btnProjects:hover{
    background-color: rgba(60, 59, 59, 0.18);
    color: rgba(255, 255, 255, 0.75);
    font-family: 'Soligant', serif;
    font-size: 1rem;
    }

.jumpToIntro{
    width: 6rem;
    height: 3rem;
    position:absolute;  
    bottom:4%;
    right:6.5%;
    padding: 0;
    display: flex;
  justify-content: center;
  align-items: center; 
  font-family: "Host Grotesk", sans-serif;
    border-radius: 4rem;
    backdrop-filter: blur(5.2px);
    -webkit-backdrop-filter: blur(5.2px);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.10);
    border: 2px solid rgba(230, 230, 230, 0.33); 
}

.jumpToIntro a{
     display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0;
    line-height: 1;
}

.jumpToIntro a:hover{
        background-color: rgba(60, 59, 59, 0.18);  
           font-family: 'Soligant', serif;
        opacity: 0.8;
        border-radius: 4rem;
       
    }
 }