/* font: import ================================================ */
@font-face {
  font-family: 'bitter_italic';
  src: url('./font/Bitter-Italic-VariableFont_wght.ttf') format('truetype');
}

@font-face {
  font-family: 'bitter_regular';
  src: url('./font/Bitter-VariableFont_wght.ttf') format('truetype');
}

/* Layout ================================================ */
html,body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

body {
  background-color: #f0f0f0; /* Added a default background color */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: background-color 1s ease-in-out;
  /* background-color: #ff0000; */
  /* background-image: url('./img/MultipleFormats.jpg'); */
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}


/* text ================================================ */
#mainText1 {
  font-family: 'variableFont';
  font-size: 48px;
  color: black;
  text-align: center;
	font-variation-settings: "opsz" 14, "wght" 400, "GRAD" 0, "wdth" 100, "slnt" 0, "XOPQ" 96, "YOPQ" 79, "XTRA" 468, "YTUC" 712, "YTLC" 514, "YTAS" 750, "YTDE" -203, "YTFI" 738;
  transition: font-size 1s ease-in-out, font-variation-settings 1s ease-in-out;
}

#mainText2 {
  position: absolute;
  width: 100%;
  text-align: center;
  font-family: 'bitter_regular';
  font-size: 20px;
  color: #2958ef;
  top: 360px; /* 您可以手动修改这个值 */
  left: 50%;
  transform: translateX(-50%);
	font-variation-settings: "opsz" 14, "wght" 400, "GRAD" 0, "wdth" 100, "slnt" 0, "XOPQ" 96, "YOPQ" 79, "XTRA" 468, "YTUC" 712, "YTLC" 514, "YTAS" 750, "YTDE" -203, "YTFI" 738;
  transition: font-size 1s ease-in-out, font-variation-settings 1s ease-in-out;
}

/* Image ================================================ */
#image1 {
  width: 300px;
  padding-top: 20px;
}

/* Timer ================================================ */
#timer-display {
  position: absolute;
  top: 120px; /* 您可以手动修改这个值 */
  left: 50%;
  transform: translateX(-50%); /* 只在水平方向上居中 */
  font-family: 'bitter_italic';
  font-size: 180px;
  color: #383838;
  text-align: center;
  font-variation-settings: "wght" 500;
  /* Remove default input styles */
  background-color: transparent;
  border: none;
  outline: none;
  width: 5ch; /* Adjust width to fit MM:SS */
}

#tomato-button-container {
  position: absolute;
  top: 440px; /* 您可以手动修改这个值 */
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 230px;
  cursor: pointer;
}

#tomato-button-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* New parent wrapper */
#video-wrapper {
  position: absolute;
  top: 170px; /* 您可以手动修改这个值来调整垂直位置 */
  left: 50%;
  transform: translateX(-50%) scale(1.06);
  width: 1100px;
  height: 500px;
  /* display: none; */ /* This style is no longer used */
}

#tomato-open-video {
  position: absolute;
  top: 170px;
  left: 50%;
  transform: translateX(-50%) scale(1.06);
  width: 1100px;
  height: 500px;
  object-fit: cover;
  display: none; /* Initially hidden */
  z-index: 10;
}

#tomato-open-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%; /* Match the video width */
  height: 100%; /* Match the video height *//* Semi-transparent red for visibility */
  cursor: pointer;
  z-index: 11; /* Ensure it's on top of the video */
}

.background-video {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;
  z-index: -1;
  opacity: 1;
  transition: opacity 1s ease-in-out;
}

#background-video-red {
  opacity: 0;
}

/* Beat Counter Images ================================================ */
.count-image {
  position: absolute;
  display: none; /* Hidden by default */
  width: 100px;
  height: 100px;
  z-index: 20; /* Make sure they are on top */
}

#count-img-1 { top: 150px; left: 110px; }
#count-img-2 { top: 150px; right: 110px; }
#count-img-3 { bottom: 115px; left: 110px; }
#count-img-4 { bottom: 115px; right: 110px; }

/* Scrolling Text ================================================ */
.container {
  position: absolute;
  top: 10px; /* 您可以手动修改这个值来调整垂直位置 */
  left: 0px; /* 您可以手动修改这个值来调整水平位置 */
  width: 100vw;
  overflow: hidden;
  white-space: nowrap;
}

.text {
  font-family: 'bitter_regular'; /* 您可以在这里修改字体 */
  display: inline-block;
  padding-left: 100%; /* 从屏幕外开始 */
  animation: scroll 20s linear infinite;
  font-size: 20px;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}