:root {
  --primary-color: #1a1a2e;
  --secondary-color: #16213e;
  --accent-color: #0f3460;
  --text-color: #ffffff;
  --success-color: #4caf50;
}

body {
  font-family: 'Roboto', Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f0f0f0;
  color: var(--text-color);
  height: 100vh;
  overflow: hidden;
}

.app-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  width: 100vw;
}

.screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hidden {
  display: none !important;
}

.home-frame {
  background-color: var(--primary-color);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  width: 800px;
  text-align: center;
}

.title {
  font-size: 44px;
  font-weight: bold;
  margin-bottom: 15px;
}

.input-frame {
  background-color: var(--secondary-color);
  border-radius: 15px;
  padding: 10px 20px;
  margin: 10px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
}

input {
  width: 80px;
  height: 30px;
  border-radius: 5px;
  border: 1px solid var(--accent-color);
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-color);
  font-size: 18px;
  padding: 0 10px;
}

.primary-button {
  background-color: var(--accent-color);
  color: var(--text-color);
  border: none;
  border-radius: 10px;
  padding: 10px 20px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  margin: 10px 0;
  width: 170px;
  height: 90px;
  transition: background-color 0.3s;
}

.primary-button:hover {
  background-color: #1a4b8c;
}

.video-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

video, canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gif-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.gif-overlay img {
  max-width: 80%;
  max-height: 60%;
  border-radius: 10px;
  opacity: 0.5;
}

.overlay-text {
  margin-top: 20px;
  font-size: 32px;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.countdown {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 96px;
  font-weight: bold;
  color: white;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
  z-index: 10;
}

.start-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 120px;
  font-weight: bold;
  color: white;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
  z-index: 10;
}

.half-rep-text {
  position: absolute;
  top: 16%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 42px;
  color: white;
  text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.8);
  z-index: 10;
}

.goal-text {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 48px;
  font-weight: bold;
  color: white;
  text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.8);
  z-index: 10;
}

.progress-bar {
  position: absolute;
  bottom: 5%;
  left: 12.5%;
  width: 0%;
  height: 5%;
  background-color: var(--success-color);
  border-radius: 5px;
  transition: width 0.3s;
  z-index: 10;
  max-width: 75%;
}

.escape-text {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 70px;
  color: white;
  text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.8);
  z-index: 10;
}

.results-frame {
  background-color: var(--primary-color);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  width: 400px;
  text-align: center;
}

.results-frame h2 {
  font-size: 28px;
}

.results-content {
  background-color: var(--secondary-color);
  border-radius: 10px;
  padding: 20px;
  margin: 20px 0;
  text-align: center;
  line-height: 1.8;
  font-size: 40px;
}

.secondary-button {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-color);
  border: 1px solid var(--accent-color);
  border-radius: 10px;
  padding: 5px 15px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  margin: 10px 0;
  width: 80px;
  height: 30px;
  transition: background-color 0.3s;
}

.secondary-button:hover {
  background-color: rgba(255, 255, 255, 0.2);
}
