html {
    font-size: 16px;
}
body {
    background-color: rgba(0, 0, 0, 0.815); 
    font-size:16px;
    text-align: justify;
}

@media (min-width: 768px) {
    body {
        background-color: lightblue;
        font-size: 16px;
    }
}

@media (min-width: 900px) {
  body {
      background-color: rgb(0, 0, 0);
      font-size: 16px;
  }
}

h1,
h2,
h3,
h4,
h5,
h6{
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.5rem;
}

/*NAVEGACION*/ 
.navigation {
  background-color: #FFF;
  display:flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between; 
  padding: 10px 20px;
  position: relative;
  z-index: 100; /* Keep navigation above images */
  margin-bottom: 20px; /* Add space below navigation */
}

.navigation-left {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.navigation h1 {
  margin-bottom: 0;
  font-size: 2.5rem; /* Increase font size */
}
.navigation p {
  margin-top: 10px;
  margin-bottom: 20px;
  margin-left: 0;
  font-size: 13px;
  color: #666;
}
.navigation>ul {
  list-style-type: none;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-top: auto;
  padding: 0;
  margin-bottom: 20px;
}
.navigation >ul>li>a {
  display: inline-block;
  padding: 5px;
  margin-right: 5px;
  background-color: #000000d2;
  color:#FFF;
  text-decoration: none;
}
.navigation >ul>li>a.activo{
  background-color:brown;
}
.navigation >ul>li>a:hover{
  background-color:rgb(129, 125, 131);
}
.navigation >ul>li>a:active{
  background-color:brown;
}

.logo {
  width: 50px;  /* Adjust this value to change logo size */
  height: auto;
  margin-left: 10px;
  vertical-align: middle;
}

@media (min-width: 768px) {
  .navigation {
    flex-direction: row;
  }
  .navigation > ul {
    margin-top: 20px;
    margin-bottom: 30px;
}
  .navigation >ul>li>a {
    font-size: 21px;
  }
}

/*home_interaction*/ 
.interaction {
  display: flex;
  width: calc(100% - 40px); /* Full width minus margins */
  margin: 20px;
  height: calc(100vh - 190px); /* viewport height minus navigation height and margins */
  justify-content: center;
  align-items: flex-start; /* Start from top */
  position: relative;
  z-index: 1;
  overflow: hidden;
  background-image: url('../assets/Obras/2023/Frontera insuperables/14.jpg');
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255, 255, 255, 0.144);
}
.interaction::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.082);  /* 50% white overlay */
  z-index: 0;
}
.interaction-button {
  position: relative;
  z-index: 10;
  padding: 10px 20px;
  background: rgba(0, 0, 0, 0.521);
  color: rgba(255, 255, 255, 0.904);
  border: none;
  cursor: pointer;
  border-radius: 5px;
}
.interaction img {
  position: absolute;
  transition: all 0.3s ease;
  z-index: 1;
  cursor: pointer;
}

.interaction img:hover {
  z-index: 100;
  transform: scale(1.1);
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.interaction img:active {
  opacity: 0.7;
  transform: scale(1.05);
}

/*WORKS*/ 
.container-works{
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  /*grid-template-rows:  repeat(2, 300px);*/ 
  grid-auto-columns: auto;
  column-gap: 20px;
  row-gap: 20px;
  margin-top: 5px;
}

@media (min-width: 768px) {
  .container-works{
    grid-template-columns: repeat(3, 1fr);
  }
}

.workbox{
  min-height: 50vh;
  max-height: 50vh;
  border: 1px solidrgba(0, 0, 0, 0.15);
  position: relative;
  color: white;
}
.workbox:hover{
  opacity:0.5;
}
.workbox:hover .texto{
  color:aqua;
}
.workbox img{
  width: 100%;
  height:100%;
  object-fit: cover;
  position: static; /* Override absolute positioning */
  opacity: 1; /* Override opacity */
}
.workbox .texto{
  position: absolute;
  top: 50%;
  width:100%;
  text-align: center;
}

/*About*/
.container-about {
  display: flex;
  background-color: #FFF;
  align-items: flex-start;
  justify-content: space-between;
  padding: 20px;
  margin: 20px auto;
  max-width: 1200px;
  border: 1px solid #ccc;
  min-height: 500px;
  margin-top: 90px;
}

.retrato-section,
.biografía-section,
.extrainfo-section {
  width: 33.33%;
  padding: 15px;
  min-height: 400px;
}

.retrato-section {
  border-right: 1px solid #eee;
}

.biografía-section {
  border-right: 1px solid #eee;
  padding: 20px;
}

.retrato-section img {
  width: 100%;
  height: auto;
  object-fit: contain;
  margin-top: 30px;
}
.extrainfo-section 
{
  text-align: left;
}
.container-about h2 {
  margin-bottom: 5;
}
.container-about p {
  margin-top: 0;
  font-size: 12px;
  color: #666;
}
@media (max-width: 768px) {
  .container-about {
    flex-direction: column;
    align-items: center;
    margin: 0 px; /* Add horizontal margins */
    padding: 10px; /* Add horizontal padding */
    margin-top: 5px;
  }
  .retrato-section,
  .biografía-section,
  .extrainfo-section {
    width: calc(100% - 40px); /* Account for margins */
    border-right: none;
    padding: 10px;
    margin: 10px 20px;
  }
  .extrainfo-section
  {
   text-align: left;
  }
}

/*contact*/
.contact-content {
  display: flex;
  background-color: #FFF;
  align-items: flex-start;
  justify-content: space-between;
  padding: 20px;
  margin: 20px auto;
  max-width: 1200px;
  border: 1px solid #ccc;
  min-height: 500px;
  margin-top: 90px;
}
.contact-info {
  width: 50%;
  padding: 20px;
  text-size-adjust: 9px;
  display: flex;
  flex-direction: column;
  justify-content: center;/* arriba y abajo */
  align-items: center;/* derecha y izuqierda */
  text-align: center;
  min-height: 500px;
}
.contact-info p {
  align-items: center;
  margin: 2px 5px; /* Reduce top/bottom margin to 2px */
  font-size: 14px;
  color: #666;
}
.contact-form {
  width: 50%;
  padding: 50px;
}
.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 8px;
  margin-top: 5px;
  box-sizing: border-box;
}
.contact-form input[type="submit"] {
  width: 100%;
  padding: 10px;
  background: #000;
  color: white;
  border: none;
  cursor: pointer;
  margin-top: 15px;
}

@media (max-width: 768px) {
  .contact-content {
      flex-direction: column;
      align-items: center;
      padding: 20px;
      align-items: center;
      gap: 10px; /* Reduce space between sections */
      margin-top: 5px;
  }
  .contact-info,
  .contact-form {
      width: 70%;
      margin: 0 auto;
  }
  .contact-info{
      margin-bottom: 0%;
  }
  .contact-form {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .contact-form form {
    width: 100%;
    max-width: 500px;
  }
}

/*scrollable*/
.scrollable-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 20px;
  max-width: 1200px;
  margin: 5px auto; /* Center horizontally */
}
.content-container > * {
  margin: 0;
  padding: 0;
}
/* CSS to display the image */
.image-container {
  width:100%;
  margin-right: 5px;
  min-height: 400px;
  position: relative;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.image-container > img {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.visible {
  opacity: 1 !important;
}
.slider-controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  transform: translateY(-50%);
  pointer-events: none;
}
.slider-controls button {
  pointer-events: auto;
  background-color: rgba(0, 0, 0, 0.5);
  border: none;
  color: rgba(255, 255, 255, 0.719);
  padding: 10px;
  cursor: pointer;
  border-radius: 50%;
  transition: background-color 0.3s;
}
.slider-controls button:hover {
  background-color: rgba(61, 59, 59, 0.664);
}

/* CSS for the video */
.video-container {
  width: 100%;
  margin-top: 5px; 
}
.video-container iframe {
  width: 100%;
  height: 600px;
  border: none;
}
@media (max-width: 768px) {
  .content-container {
    gap: 5px;

}
  .image-container {
    margin: 0;
    margin-bottom: 5px;  /* Reduce space after images */
  }
  .video-container {
    margin: 0;
    margin-top: 5px;
  }
  .video-container iframe {
    max-height: 350px;
    margin-top: 0;
  }
}

/* CSS for the content */
.content-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
  background-color: white;
  border: 1px solid #ccc;
  position: relative; 
  /*min-height: 300px;*/
  margin-bottom: 20px;
}
.content-top {
  display: flex;
  gap: 20px;
  margin-bottom: 60px; /* Add space for technical section */
}
.title-section {
  width: 30%;
  padding-right: 10px;
  border-right: 1px solid #eee;
  position: relative;
}
.title-section h4 {
  margin: 0;
  margin-top: 5px;
  margin-left: 5px;
  margin-right: 5px;
  margin-bottom: 30px; /* Add space below title */
  text-align: left;
}
.description-section {
  width: 70%;
  overflow-y: auto;
}
.technical-section {
  width: calc(100% - -20px); /* Match title width minus padding */
  position: relative; /* Change from absolute to relative */
  margin-top: 10px; /* Space between title and technical info */
  margin-right: 5px;
  left: -35px;
  line-height: 1.5;
}
.content-container p {
  margin-top: 5px;
  margin-left: 5px;
  margin-right: 5px;
  font-size: 14px;
  color: #666;
}
.technical-section ul {
  list-style-type: none;
  margin-top: 0;
  font-size: 12px;
  color: #666;
}

@media (max-width: 768px) {
  .content-container {
    display: flex;
    flex-direction: column;
    padding: 20px;
  }
  .content-top {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}
  .title-section,
  .description-section,
  .technical-section {
    width: 100%;
    border-right: none;
    margin-bottom: 20px;
  }
  .technical-section{
    text-align: left; /* Add left alignment */
    margin-top: 20px;
  }
  .description-section {
    font-size: 8px;
  }
}

/* footer */
.footer {
  text-align: center;
  padding: 10px 0;
  color: #a5a3a3e3;
  font-size: 14px;
  background-color: rgba(0, 0, 0, 0);
  min-height: 40px;
  width: 100%;
  position: relative; /* position: fixed;*/
  bottom: 0;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  margin: 0;
}
