*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px; 
}

body {
  background-color: #1E1E1E;
  color: white;
  line-height: 1.6;
}

#main-page {
  position: relative;
  width: 100%;
  height: 100%;
}

#main-page img {
  width: 100%;
  max-height: 100vh;
  object-fit: cover;
}

#ambovo-prod {
  position: relative;
  background: linear-gradient(120deg, #1E1E1E, rgba(53, 52, 52, 0.848));
  width: 100vw;
}

#ambovo-prod img {
  width: 100%;
  object-fit: cover;
}

.specific-text {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  max-width: 50%;
  padding: 10% 2rem 2rem;
  z-index: 1;
  color: white;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.51);
}

.specific-text h3 {
  font-size: clamp(2rem, 5vw, 4rem);
  margin-bottom: 3rem;
  line-height: 1.2;
}

.specific-text p {
  font-size: 1.1rem;
}

.specific-text ul {
  margin: 1.5rem 0;
  padding-left: 1rem;
  font-size: 1rem;
  line-height: 1.6;
}

.buttons-container {
  display: flex;
  gap: 1rem;
  margin-top: 4rem;
}

.buttonOne, .buttonTwo {
  display: inline-block;
  padding: 1.3rem 1.5rem;
  width: 220px;
  font-size: 1.2rem;
  border-radius: 25px;
  text-align: center;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease-in;
  white-space: normal;
  word-break: break-word;
}

.buttonOne {
  background-color: #27b35a;
  color: white;
  border: 2px solid #27b35a;
}

.buttonOne:hover {
  background-color: white;
  color: #27b35a;
  border-color: white;
}

.buttonTwo {
  background-color: white;
  color: #27b35a;
  border: none;
}

.buttonTwo:hover {
  background-color: #27b35a;
  color: white;
}

#rendu-section {
  background-color: #1E1E1E;
  color: white;
}

.rendu-container {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.ambovo-rendu {
  display: flex;
  width: 100vw;
  height: 40vw;
}

.rendu, .rendu-txt {
  flex: 1;
}

.rendu img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#double-rendu {
  display: flex;
  gap: 1.5rem;
  width: 100%;
  height: 100%;
  padding: 1rem 2rem;
}

#double-rendu img {
  flex: 1;
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: contain;
  border-radius: 8px;
}

.rendu-txt {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 2rem;
}

#ambovo-white {
  background-color: white;
  color: #1E1E1E;
}

.rendu-txt h3 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  padding: 2rem 0;
  line-height: 1.3;
  color: #10b610;
}

.rendu-txt p, .rendu-txt ul {
  font-size: 1.1rem;
}

.rendu-txt ul {
  padding-left: 1.5rem;
}

.rendu-txt li {
  margin-bottom: 0.5rem;
}

#next-main {
  background-color: #1E1E1E;
  width: 100%;
  height: 60vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: 3rem;
  padding-bottom: 2rem;
}

.ambovo-vidTitle {
  padding: 3rem;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  color: #10b610;
}

.detail-video {
  display: flex;
  align-items: center;
  width: 70%;
  height: 100%;
}

.detail-video iframe {
  border-radius: 15px;
  width: 100%;
  height: 100%;
}

/* responsive ambovo */
@media (max-width: 1100px) {
  .specific-text {
    position: static;
    max-width: 100%;
    
  }

  .buttons-container {
    flex-direction: column;
    align-items: center;
  }

  .buttonOne, .buttonTwo {
    min-width: 200px;
    width: auto;
  }
  
  .ambovo-rendu {
    flex-direction: column;
    height: auto;
  }

  #double-rendu {
    align-items: center;
    padding: 1rem;
    height: auto;
  }

  #double-rendu img {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    margin-bottom: 1rem;
  }

  #next-main{
    
  }

  .detail-video{
    width: 70%;
    height: 50vw;
  }

  .detail-video iframe{
    height: 100%;
  }
}

@media (max-width: 768px) {
  .specific-text {
    position: static;
    max-width: 100%;
    padding: 2rem 1rem;
    background-color: #1E1E1E;
    text-align: center;
  }

  #main-page img {
    height: auto;
  }

  .specific-text h3 {
    font-size: 1.8rem;
  }

  .specific-text p {
    font-size: 1rem;
  }

  .buttons-container {
    justify-content: center;
  }

  .buttonOne, .buttonTwo {
    min-width: 160px;
    padding: 0.8rem 1rem;
  }

  .rendu img {
    object-fit: cover;
    display: block;
  }

  .rendu-txt h3 {
    font-size: 1.8rem;
    padding: 1rem 0;
  }

  #double-rendu img {
    height: 250px;
    object-fit: cover;
  }

  #next-main {
    height: auto;
  }

  .detail-video{
    width: 100%;
    height: 450px;
  }

}

@media (max-width: 480px) {
  .buttons-container {
    flex-direction: column;
    align-items: center;
  }

  .buttonOne, .buttonTwo {
    font-size: 0.9rem;
    padding: 0.8rem 1rem;
  }

  .rendu {
    max-width: 100%;
  }

  #double-rendu{
    flex-direction: column;
    padding: 0;
    
  }

  #double-rendu img {
    border-radius: 0%;
  }

  .rendu-txt h3 {
    font-size: 1.2rem;
    line-height: 1.4;
  }

  .rendu-txt p,
  .specific-text p,
  .rendu-txt ul {
    font-size: 0.9rem;
  }

  .ambovo-vidTitle h3 {
    font-size: 1.2rem;
  }

  #next-main{

  }

  .detail-video{
    width: 100%;
    height: 300px;
  }

  .detail-video iframe{
    border-radius: 0%;
    height: 100%;  
  }

}
