@font-face {
    font-family: 'Narrow';
    src: url('fonts/arialNarrow.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

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

body {
    font-family: 'Narrow';
    background-image: url(img/background_moron_web2.jpg.png);
}

html, body {
    height: 100vh; /* Mantiene el tamaño del body igual al de la pantalla */
    overflow: hidden;
    overflow-x: hidden;
}

#contenedor_hori{
    background-image: url(img/Subte_exp2.gif);
    background-size: cover;
    background-position: center 0vh;
    background-attachment: fixed;
}
.linea {
    width: 100%;
    height: 2.5px;
    background-color: black;
    position: absolute;
    top: 7.4%; /* Ajusta esto para que esté en la mitad del logo */
    left: 0;
    z-index: 0; /* Se mantiene detrás del logo */
}

.gif-container {
    position: relative; /* Para que el logo se posicione dentro */
    width: 33.33%;
    height: 100vh;
}

.gif-container img:first-child {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin-top: 10%;
}

.logo {
    position: absolute; 
    top: 2%;  /* Ajusta según el tamaño del logo */
    left: -200%;
    width: 600%; /* Ajusta el tamaño del logo */
    z-index: 1;  /* Se mantiene sobre la línea */
}

#fondo_subte, #fondo_fijo_subte{
    position: absolute;
    z-index: -1;
    width: 100%;
}


.puntos {
    position: relative;
    width: 100%; 
    max-width: 1920px; /* Ajusta según el tamaño de tu imagen */
    margin: auto;
}

#contenedorCanvas {
    text-align: center;
  }
  canvas {
    display: block;
    margin: auto;
  }

  #contenedorCanvas2{
    display: none;
  }
@keyframes aparecer {
    0% { opacity: 0; transform: scale(0.5); } /* Invisible y pequeño */
    100% { opacity: 1; transform: scale(1); } /* Visible y normal */
}
.punto {
    position: absolute;
    font-family: "Arial Narrow", Arial, sans-serif;
    font-size: 40px;
    font-weight: bold;
    text-decoration: none;
    color: rgb(255, 255, 255);
    background: white;
    padding: 3px 6px;
    border-radius: 50px;
    -webkit-text-stroke: 1px rgb(0, 0, 0);; /* Borde negro */
    color:  rgb(231, 59, 60);

    opacity: 1; /* Inicialmente invisible */
    animation: aparecer 0.5s ease-out forwards;
    animation-delay: 1s; /* Retraso de 3 segundos */
}
#punto_2{
    position: absolute;
    font-family: "Arial Narrow", Arial, sans-serif;
    font-size: 30px;
    font-weight: bold;
    text-decoration: none;
    color: rgb(255, 255, 255);
    background: rgb(255, 255, 255); /* Fondo con ligera transparencia */
    border: 1px solid black; /* Borde negro al marco */
    padding: 3px 6px;
    border-radius: 50px;
    -webkit-text-stroke: 1px rgb(0, 0, 0);; /* Borde negro */
    color:  rgb(231, 59, 60);

}


.punto:hover {
    color: white; /* Asegura que el texto sea visible */
    background: rgba(255, 255, 255, 0.9); /* Fondo con ligera transparencia */
    border: 1px solid black; /* Borde negro al marco */
    -webkit-text-stroke: 1px rgb(255, 94, 94); /* Borde negro */
    color: rgb(255, 94, 94);;
}
/* Ubicar cada texto en su respectiva punta */
.punto1 { top: 22vh; left: 44vw; }  
.punto2 { top: 21.5vh; left: 72.5vw; }  
.punto3 { top: 48.3vh; left: 76vw; }  
.punto4 { top: 85.8vh; left: 59vw; }  
.punto5 { top: 72vh; left: 83.5vw; }  
.punto6 { top: 85.8vh; left: 42.5vw;}  
.punto7 { top: 80vh; left: 90vw;}  

/* Contenedor que agrupa la barra y el texto */
#contenedor_barra {
    position: absolute;
    top: 80vh;
    left: 96.8vw;
    width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    transition: left 1.5s ease-out; 
}

/* Imagen de la barra */
#barra_juego {
    width: 40vw;  /* Ajusta según sea necesario */
    height: auto;
    display: block;
}

/* Texto dentro de la barra */
#texto_crear {
    left: 54%;
    top: 61%;
    position: absolute;

    font-weight: bold;
    z-index: 4;  /* Asegura que esté sobre la imagen */
}

/* Animación al pasar el mouse */
#contenedor_barra:hover {
    left: 70vw;
}


#contenedor_ver{
    display: none;
}




/* Para pantallas menores a 768px (ejemplo: móviles) */
@media (max-width: 1000px) {
    html, body {
        height: 100vh; /* Mantiene el tamaño del body igual al de la pantalla */
        margin: 0;
        padding: 0;
        overflow: hidden;
        overflow-x: hidden;
    }

    body {
        background-size: cover;
        background-position: center -4vh; /* Ajusta la imagen de fondo */
        background-attachment: fixed;
    }
    
    /* Contenedor horizontal oculto en móviles */
    #contenedor_hori {
        display: none;
    }

 
    /* Contenedor vertical visible en móviles */
    #contenedor_ver {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 100vh; /* Asegura que ocupe toda la pantalla */
        width: 100%;
        min-height: 100vh;
        overflow: hidden; /* Previene scroll extra */
        background-image: url(img/Subte_resp_exp1.gif);
        background-size: cover;
        background-position: center top;
        background-attachment: fixed;
    }

    /* Estilos para el logo */
    

    /* Estilos para el cubo */
    .cubo {
        position: absolute; 
        top: -32%; /* Ajusta la distancia desde abajo */
        width: 100%; 
        z-index: 0; /* Se mantiene detrás de otros elementos */
    }

    .gif_piece {
        position: absolute; 
        width: 70vw; /* Escala al ancho de la pantalla */
        height: auto; /* Mantiene la proporción */
        object-fit: cover;
        top:60vh; /* Posiciona en el borde superior */
        left: -13%; /* Centra el punto de rotación */
        transform-origin: top ; /* Ajusta el origen de la transformación */
        z-index: 0;
        opacity: 0; /* Inicialmente invisible */
    animation: aparecer 0.4s ease-out forwards;
    animation-delay: 0.8s; /* Retraso de 3 segundos */
    }

    .puntos{
        margin-top: -40%;
}

    .punto {
        position: absolute;
    font-family: "Arial Narrow", Arial, sans-serif;
    font-size: 40px;
    font-weight: bold;
    text-decoration: none;
    
    background: white;
    border: 1px solid black; /* Borde negro al marco */
    padding: 3px 6px;
    border-radius: 50px;
    -webkit-text-stroke: 1px rgb(0, 0, 0);; /* Borde negro */
    color:  rgb(231, 59, 60);

    opacity: 0; /* Inicialmente invisible */
    animation: aparecer 0.4s ease-out forwards;
    animation-delay: 0.8s; /* Retraso de 3 segundos */
    }

    .punto1 { top: 30vh; left: 10vw; font-size: 120%;} 
    .punto2 { top: 17vh; left: 7vw; font-size: 120%;}  
    .punto3 { top: 48.5vh; left: 5vw; font-size: 120%;}  
    .punto4 { top: 72vh; left: 65vw;  font-size: 100%;}  
    .punto5 { top: 45vh; left: 70vw;font-size: 120%; }  
    .punto6 { top: 83vh; left: 68vw; font-size: 110%;}
    .punto7 { top: 20vh; left: 70vw;font-size: 100%; 
    } 



    

    #contenedor_barra {
        position: absolute;
        top: 25vh; left: 50%;
        width: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 3;
        transition: left 1.5s ease-out; 
        opacity: 0; /* Inicialmente invisible */
    animation: aparecer 0.4s ease-out forwards;
    animation-delay: 0.8s; /* Retraso de 3 segundos */
    }

    #texto_crear {

        left: 28%;
        top: 30%;
        position: absolute;
        
        font-weight: bold;
        z-index: 4;  /* Asegura que esté sobre la imagen */
    }
       /* Imagen de la barra */
       #barra_juego {

        width:60%;  /* Ajusta según sea necesario */
        height:auto;

        }   

        .contenedor_logo {
            display: flex;
            flex-direction: column; /* Organiza los elementos en columna (logo arriba, título abajo) */
            align-items: center; /* Centra horizontalmente */
            justify-content: center; /* Centra verticalmente */
            width: 100%;
            max-width: 100vw;
            padding: 20px 10px;
            position: relative;
            gap: 10px; /* Espacio entre logo y título */
        }
        
        .logo_res {
            width: 100%; /* Ajusta el tamaño de forma responsiva */
            height: auto;
        }
        
        .title {
            align-self: flex-end; /* Alinea el título a la derecha */
            top: 20vh;
            font-family: 'Narrow', sans-serif;
            font-size: 1.2rem;
            text-align: right;
            
            border-radius: 50px;
            -webkit-text-stroke: 0px rgb(0, 0, 0);
            color: rgb(0, 0, 0);
           
        }
        
    
}

