
body {
  font-family: arial;
  padding: 20px;
  margin: 0;
}

#content {
  scroll-behavior: smooth;
  margin-top: 50px;
  font-family:'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif
}

nav {
  background-color: #333;
  color: white;
  padding: 0;
  text-align: center;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

nav ul li {
  display: inline-block;
  margin-right: 20px;
}

nav ul li:last-child {
  margin-right: 0;
}

.active a {
  background: black;
  color: yellow;
}

nav a {
  text-decoration: none;
  display: inline-block;
  color: white;
  font-size: 15px;
  font-weight: bold;
  padding: 8px;
  transition: background-color 0.3s ease;
}

nav a:hover {
  background-color: #555;
}

video {
  display: block;
  width: 100%;
  height: auto;
  cursor: pointer;
}

video:not(:hover) {
  /* display: none; */
}

.video-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 800px;
  margin: 0 0 20px 0;
}

.video-thumbnail {
  position: relative;
  width: calc(33.33% - 15px); 
}

.video-thumbnail:hover video {
  display: block;
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
}
section {
  max-width: 800px;
  padding: 5px 20px;
  margin: 20px auto;
  background-color: #f9f9f9;
  border: 1px solid #ccc;
}

h2 {
  width: auto;
  border-bottom: 2px solid black;
}

#section1 {
  background: url(img/yo.png);
  background-repeat: no-repeat;
  background-position: 400%;
  margin-top: 80px;
  position: relative;
}

#section1 span {
  display: inline-block;
  width: 80px;
  font-weight: bold;
}

#section1 .subtitle {
  text-align: right;
  padding-top: 28px;
  padding-right: 20px;
  font-size: 20px;
  font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}


#section1 img {
  position: absolute;
  max-width: 800px;
  width: 100%;
  top: -50px;
}

.bloque {
  padding: 5px 0;
  border-bottom: 1px solid #888;
}

.bloque:last-child {
  border-bottom: none;
}

#video1modal, 
#video2modal, 
#video3modal {
  border-radius: 25px;
  padding: 25px;
  max-width: 800px;
  height: 90%;
  overflow: hidden;
  position: fixed;
}
.modal .content {
  overflow-y: auto;
  box-sizing: border-box;
  height: 88%;
}
#video1modal button, 
#video2modal button , 
#video3modal button  {
  transition: all .5s;
  cursor: pointer;
  position: absolute;
  top: 20px;
  right: 20px;
  border: none !important;
  background: black;
  color: white;
  border-radius: 50px;
  width: 25px;
  height: 25px;
  font-size: 20px;
}
#video1modal button:hover, 
#video2modal button:hover , 
#video3modal button:hover {
  background: yellow;
  color: black;
  border: none !important;
}
#video1modal h2, 
#video2modal h2, 
#video3modal h2 {
  border: none;
}
#video1modal h2 a, 
#video2modal h2 a, 
#video3modal h2 a {
  transition: all .5s;
  text-decoration: none;
  display: inline-block;
  background: black;
  color: yellow;
  padding: 5px 25px;
  margin: 5px 0;
  width: auto;
  border-radius: 0;
}
#video1modal h2 a:hover, 
#video2modal h2 a:hover , 
#video3modal h2 a:hover  {
  background: yellow;
  color: black;
  padding: 5px 550px 5px 25px;
  border-radius: 0 20px 20px 0;
}

#backdrop {
  display: none;
  position: fixed;
  background: rgba(0,0,0,.5);
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: 2;
}
#section5 h3 a {
  text-decoration: none;
  color: yellow;
  background: black;
  margin-top: 0px;
  padding: 5px 8px;
}
#section5 .item { 
  clear: both;

}
.bloque {
  clear: both;
}

#section5 .item img {
  width: 200px;
  height: auto;
  margin: -5px 5px 20px 0 ;
  float: left;
}

/* Small screens (e.g., mobile phones) */
@media (max-width: 767px) {
  body {
    width: 100%;
    font-size: 4vw; /* Adjust the font size for better readability on small screens */
  }

  #section1 span {
    display: block;
    width: auto;
    font-weight: bold;
  }
  
  #content {
    width: 100%;
    padding: 0;
  }

  nav ul {
    display: none; /* Hide the navigation menu on small screens */
  }
  #vimeo {
    width: 100%;
  }
  /* You may need to adjust other styles as well based on your specific design */
}
