﻿* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

#container {
  display: flex;
  flex-wrap: wrap;
  height: 100%;
}

#left-side {
  width: 100%;
  height:100%;
  background-image:url("Mejorar la eficiencia de la industria de la restauracion.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 20px;
  color: white;
}

#left-content {
  color: white;
  font-family: Arial, sans-serif;
}



#left-heading {
  font-size: 2vw;
  margin-bottom: 7px;
  
}

#left-text {
  font-size: 1.7vw;
  line-height: 1.2;
  margin-bottom: 20px;
}

#right-side {
  width: 100%;
  height:49%;
  display: flex;
  flex-wrap: wrap;
  background-color: #333333;
}

.theme {
  width: 100%;
  height: 61vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-family: Arial, sans-serif;
  cursor: pointer;
  position: relative;
  background-color: #333333;
}

.theme h3 {
  font-size: 0.9vw;
  margin-top: 20px;
  color: #CCCCCC;
  position: relative;
  z-index: 1;
}

.theme video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.active {
  border: 2px solid blue;
}

.video-container {
  width: 97%;
  height: 50%;
  padding-bottom: 100%; 
  position: relative;
}

.video-title {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 10px;
  color: #FFFFFF;
  font-size: 1vw;
}

.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}



@media screen and (min-width: 480px) {
  #left-side {
    width: 50%;
    height:100%;
  }


  #right-side {
    width: 50%;
    height: 100%;
  }

  .theme {
    width: 50%;
    height: 50%;
  }
   .theme h3 {
    font-size: 0.8vw;
  }
  .video-title {
    font-size: 0.7vw;
  }
}


@media screen and (max-width: 767px) {
  /* 在小屏幕上使用更小的字体大小 */
  .theme h3 {
    font-size: 0.8vw;
  }
  
  /* 重新定位 video-title，避免文字重叠 */
  .video-title {
    bottom: 0;
  }
  
  /* 在 iPhone 12 上使用单独的样式规则 */
  @media only screen 
    and (min-device-width: 375px) 
    and (max-device-width: 812px) 
    and (-webkit-min-device-pixel-ratio: 3) {
      /* 在 iPhone 12 上使用更小的字体大小 */
      .theme h3 {
        font-size: 0.7vw;
      }
      
      /* 重新定位 video-title，避免文字重叠 */
      .video-title {
        bottom: 10px;
      }
  }
}



:root {
    --bg-colors:#FF0000,#FFA500,#008000,#0000FF,#4B0082,#EE82EE;
  }
  .divider {
    width: 100%;
    height: 6px;
    background: linear-gradient(to right, var(--bg-colors));
  }



#left-footer {
  padding: 7px;
  text-align: center;
  font-size: 0.6vw;
  background-color: transparent;
  color: rgb(128, 128, 128);
}
