@import url("reset.css");
@import url("fonts.css");

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body{
  font-family: 'Inter', sans-serif;
}

.bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; 
  z-index: -1;
}

.section {
  display: flex;
  overflow-x: hidden;
  align-items: center;
  justify-content: center;
}
.navbar{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  padding-bottom: 0px;
  p{
    mix-blend-mode: difference;
    color: white;
  }
}
#one {
  position: relative;
  width: 100%;
  height: 100vh;
  max-height: 800px;
}

#two {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}
/* #three {
  position: relative;
  width: 100%;
  height: 100vh;
} */
#three {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  width: 100%;
  height: 100vh;
}

#four {
  background-image: url('../assets/img/RadialBackground.svg');
  background-size: cover;
  background-position: center;
  width: 100%;
  height: 100vh; 
  display: flex;
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
}



.runningLine {
  position: relative;
  overflow: hidden;
  max-height: 40px;
  isolation: isolate;
}

.bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.runningLine_viewport {
  position: relative;
  mix-blend-mode: difference;
}

.runningLine_track {
  display: flex;
  width: max-content;

  animation: scroll 5s linear infinite;
  p {
    font-size: 33px;
    color: white;
    font-style: italic;
    font-weight: 900;
    font-family: Inter;
  } 
}

@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}




.window {
  display: flex;
  position: absolute;
  flex-direction: column;
  /* align-items: center; */
  gap: 3px;
  max-width: 432px;
  max-height: 273px;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  padding: 5px 2px;
  background-color: #F0F0F0;
}

.panel {
  display: flex;
  align-items: center;
  padding-left: 5px;
  height: 32px;
  gap: 5px;
}
.window-text {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.window-img {
  max-width: 424px;
  max-height: 237px;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  object-fit: cover;
  display: block;
  padding-bottom: 5px;
  align-self: center;
  padding: 4px;
  /* img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  } */
}

.control {
  display: flex;
  gap: 3px;
}


.circle {
  width: 20px;
  height: 20px;
  border-radius: 100%;
  background-color: #FF4848;
  cursor: pointer;
}


/* 
#webcam {
  width: 1125px;
  height: 723px;
  border: 5px #E6E6E6;
  border-top: 46px #E6E6E6;
  
  border-radius: 8px;
  background: black;
  transform: scaleX(-1);
} */
 
#webcam {
  width: 70vw;
  height: 80vh;
  border-radius: 0 0 20px 20px;
  background: black;
  transform: scaleX(-1);
  border: 5px solid #EFEFEF;

  position: relative;
  z-index: 1;
}
.webcam_panel{
  height: 3vh;
  background-color: #EFEFEF;
  display: flex;
  justify-content: start;
  align-items: center;
  border-radius: 16px 16px 0 0;
  gap: 5px;
  padding-left: 10px;
}
.webcam_bottom_text{
  display: flex;
  justify-content: space-between;
  flex-direction: row;
  padding-left: 5px;
  padding-right: 5px;
  p{
    mix-blend-mode: difference;
    color: white;
  }
}
.webcam_content {
  position: relative;
  width: 70vw;
  height: 80vh;
  overflow: hidden;
}
.webcam_overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.mouse-items {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none; 
}
.mouse-item {
  position: absolute;
  width: 80px;
  transform: translate(-50%, -50%);
  will-change: transform;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.mouse-item img {
  width: 100%;
  display: block;
  border: 3px solid #EFEFEF;
}

.mouse-item p {
  font-size: 13px;
  color: white;
  margin-top: 4px;
}


@media (max-width: 768px) {
  .webcam-wrapper {
    max-width: 768px;
    width: 100%;
    aspect-ratio: 9 / 16; 
  }

  #webcam {
    width: 90vw;
    height: 80vh;
  }
}


#activity-bar {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 120px;
  height: 10px;
  background: #333;
  border-radius: 5px;
  overflow: hidden;
  z-index: 9999;
}

#activity-fill {
  height: 100%;
  width: 100%;
  background: limegreen;
  transition: width 0.1s linear, background 0.3s;
}


#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: black;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.1s linear;
  z-index: 9999;
}


.phrases-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.phrase {
  position: absolute;
  color: white;
  font-family: 'Inter', sans-serif;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
}

.size-1 { font-size: clamp(20px, 4vw, 45px); }
.size-2 { font-size: clamp(18px, 3vw, 35px); }
.size-3 { font-size: clamp(16px, 2.4vw, 30px); }

.blur-1 { filter: blur(2px); }
.blur-2 { filter: blur(3px); }
.blur-3 { filter: blur(4px); }


#four {
  position: relative;
  overflow: hidden;
}

.phrases-container {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.blur-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;

  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.08);
}

#eraseCanvas {
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: 0;
  touch-action: none;
}

.access-denied {
  position: absolute;
  inset: 0;
  z-index: 2;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  pointer-events: none;
  text-align: center;
}

.access-denied img {
  width: clamp(60px, 10vw, 120px);
  margin-bottom: 16px;
}

.access-denied p {
  color: white;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 500;
}


.container {
  position: relative;
  width: 100%;
  height: 100%;
}

.plus {
  z-index: -1;
  position: absolute;
  color: white;        
  font-size: 50px;       
  mix-blend-mode: difference;
}
