@font-face {
    font-family: 'CalSans';
    src: url('fonts/CalSans-Regular.ttf') format('truetype');
  }

body{
    background-color: #121212;
    /*background-image: url('img/ev_1/bg1.png');*/
    font-family: 'CalSans', sans-serif;
}

/*body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('img/ev_1/bg1.png');
  background-size: cover;
  background-position: center;
  filter: blur(10px);
  z-index: -1;
}*/

p{
    font-size: 20px;
    color: rgb(207, 216, 74);
    margin: 10px;
    margin-top: 30px;
    margin-left: 60px;
    margin-right: 60px;
}

.p_vd{
    margin-left: 40px;
    margin-top: 5px;
    font-size: 18px;
    color: #ffb656; 
}

#intro{
    margin-bottom: 70px;
}

/* Add this class when animation ends */
.interactable {
pointer-events: auto;
}

h2 {
    font-size: 30px;
    text-align: center;
    color: #FFD369; 
}

h3 {
   margin-left: 15px;
    color: #FFD369;  
    font-size: 20px;
}

.sintesis {
    color: #ff711f; 
    font-size: 40px;
    font-weight: bold;
}

.v_p{
    color: #ff8138; 
    font-size: 20px;
    font-weight: bold;
}

h4 {
    margin: 20px;
    color: #B0BEC5; 
    font-size: 1.1em;
}

li{
    font-size: 18px;
    color: #ffb656; 
}

#cursor{
    z-index: 2;
    position: absolute;
    left: 35%;
    animation: upDown 2s ease-in-out infinite;
    transition:  1s ease;
    rotate: 150deg;
    width: 50px;
}

@keyframes upDown {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-24px); /* move up */
    }
}

#mono1,
#mono2,
#humano {
    filter: invert(10%);
    cursor: pointer;
}

/* Set initial widths */
#mono1 {
    width: 180px;
}

#mono2 {
    width: 210px;
}

#humano {
    width: 240px;
}

.ev_img {
  transition: transform 0.3s ease;
}

.ev_img.shrink {
  transform: scale(0.8);
}

.ev_img.grow {
  transform: scale(1.2);
}


.image-container#container1 {
    text-align: center;
    padding: 20px;
    height: 245px; /* Slightly larger than your largest image's hover size */
    overflow: hidden;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.synthesis-section {
    display: none; /* Initially hide all sections */
    overflow-y: auto;
    padding: 20px;
}

.placeholder {
    height: 400px; /* height of expanded image */
    visibility: hidden;
}

#test_button_n, #test_button_p, #test_button_c {
    font-family: 'CalSans', sans-serif;
    margin-left: 20%;
    color: rgb(255, 255, 255);
    background-color: #7e5929;
    padding: 12px 20px;
    font-size: 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    width:fit-content;
    margin-top: 20px;
}


.menu {
    display: flex;
    gap: 30px;
    background-color: #1b1b1b;
    padding: 15px 30px;
    justify-content: center;
    align-items: center;
    font-family: 'CalSans', sans-serif;
}

.menu a,
.menu .menu-title {
    text-decoration: none;
    color: #FFD369;
    font-size: 20px;
    transition: color 0.3s ease, font-size 0.3s ease-in-out;
    cursor: pointer;
}

.menu a:hover,
.menu .menu-title:hover {
    text-decoration: underline;
    font-size: 21px;
    color: #FF8C42;
}


.menu .menu-title {
    cursor: default;
    position: relative;
}

/* Submenu container */
.submenu-container {
    position: relative;
}

/* Submenu dropdown */
.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #2a2a2a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    padding: 10px 0;
    flex-direction: column;
    z-index: 10;
    border-radius: 6px;
}

/* Submenu links */
.submenu a {
    color: #ffb656;
    padding: 10px 20px;
    display: block;
    white-space: nowrap;
    transition: background 0.3s ease;
}

.submenu a:hover {
    background-color: #3a3a3a;
}

/* Show submenu on hover */
.submenu-container:hover .submenu {
    display: flex;
}


.visible {
    display: inline-block;
    transition: transform 1s ease-in-out;
    position: relative;
}

.appear {
    display: inline-block;
    opacity: 0;
    position: absolute;
    left: 0;
    top: 0;
    pointer-events: none;
    transition: transform 1s ease-in-out, opacity 1s ease-in-out;
}

/* Move visible letters on hover */
#tts_container:hover #t1 {
    transform: translateX(-21vw); /* Move T to the left */
}

#tts_container:hover #t2 {
    transform: translateX(-7vw);  /* Move T to the center */
}

#tts_container:hover #t3 {
    transform: translateX(2.5vw); /* Move S to the right */
}

/* Appear fade in with transition synchronized */
#tts_container:hover #a1 {
    opacity: 1;
    transform: translateX(-17.5vw); /* Match position of #t1 */
    transition: opacity 1s ease-in 1.5s, transform 1s ease-in-out; /* Delay opacity */
}

#tts_container:hover #a2 {
    opacity: 1;
    transform: translateX(-4.5vw);  /* Match position of #t2 */
    transition: opacity 1s ease-in 1.5s, transform 1s ease-in-out; /* Delay opacity */
}

#tts_container:hover #a3 {
    opacity: 1;
    transform: translateX(7vw); /* Match position of #t3 */
    transition: opacity 1s ease-in 1.5s, transform 1s ease-in-out; /* Delay opacity */
}

.pair {
    display: inline-block;
    position: relative;
}

#tts_container {
    text-align: center; /* Center the inline-block child */
    display: flex;
    justify-content: center;
    align-items: center;
}

div h1 {
    font-size: 100px;
    color: #c87100;
    padding: 0;
    margin: 0;
    display: flex; /* Use flex to make children align inline */
    position: relative;
}

#title{ /* Initially hide all sections */
    overflow-y: auto;
    margin: 20px 0 -10px 20px;

}


h1 {
    font-size: 80px;
    color: #FFD369; 
    padding: 0;
    margin: 0;
    display: flex; /* Use flex to make children align inline */
    position: relative;
}

#obje{
    font-size: 60px;
    color: #FFD369; 
    padding: 0;
    margin: 0;
    display: flex; /* Use flex to make children align inline */
    position: relative;
}

#bullet_p{
    margin: 30px;
    margin-left: 6%;
}

@media (max-width: 890px) {
  #tts_container:hover #t1,
  #tts_container:hover #t2,
  #tts_container:hover #t3 {
    transform: none !important;
  }

  #tts_container:hover #a1,
  #tts_container:hover #a2,
  #tts_container:hover #a3 {
    opacity: 0 !important;
    transform: none !important;
    transition: none !important;
  }
}
