.ortho {
    z-index: 10;
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.logs {
    position: absolute;
    background-color: rgba(217, 217, 217, 0.9);
    padding: 30px;
    top: 0;
}

.flex {
    display: flex;
    align-items: center;
    justify-content: center;
    /* height: 100%; */
    /* width: 100%; */
    flex-direction: column;
}

.screens {
    position: absolute;
    height: 110%;

}

.fleches {
    position: absolute;
    height: 40% !important;
    width: auto;
    top: 20%;
}

#fleche_orange_l {
    opacity: 0
}

#fleche_orange_r {
    opacity: 0
}

.steps {

    font-size: 3.5rem;
    font-family: sans-serif;
    font-weight: bolder;
    letter-spacing: -0.3rem;
    position: absolute;
    top: 38%;
}

#steps {
    color: #35C21E;
}

#steps-outro {
    color: white !important;
    position: relative;
    top: 5px;
    letter-spacing: -0.2rem;
    font-size: 3rem !important;
}


.hidden {
    display: none !important;
}

#mention {
    position: absolute;
    bottom: 5;
    width: 60%;
    max-width: 400px;
}

#popup-bg {
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 20;
    background-color: rgba(0, 0, 0, 0.7);
}

#popup {
    width: 87%;
    position: absolute;
    z-index: 3;
}

#popup img {
    width: 100%;
}

.button{
    border-radius: 5px;
    background-color: #818181;
    width: 50%;
    height: 20%;
    color: white;
    font-size: 2.8vw;
    border-color: #818181;
    padding: 0;
    border: none;
    padding: 0.6rem;
    pointer-events: auto;
}
#popup-btn {
    position: absolute;
    top: 66%;
    /* border-radius: 3px; */
    /* background-color: #818181; */
    width: 25%;
    height: 20%;
    /* color: white; */
    /* font-size: 3vw; */
    /* border-color: #818181; */
    /* padding: 0; */
    /* border: none; */
}
#policy{
    width: 50%;
    position: absolute;
    top:70%;
    background-color: #a0a0a07d;
    border-radius: 8px;
    text-align: center;
    color: white;
    border-color: white;
    border : 2px solid;
    padding: 10px;
}
#cta{
    /* width: 45%;
    height: 25px;
    position: absolute;
    bottom:15%;
    padding: 10px; */
    /* background-color: #a0a0a07d; */
    /* border-radius: 8px;
    text-align: center; */
    /* color: white; */
    /* border-color: white; */
    /* border : 2px solid;/ */
    /* padding: 10px; */
    /* font-weight: bold; */
}
#share-title{
    /* width: 100%; */
    margin: 10%;
    position: absolute;
    top:20%;
    left: 0px;
    background-color: #a0a0a07d;
    border-radius: 8px;
    text-align: center;
    color: white;
    border-color: white;
    border : 2px solid;
    padding: 10px;
}
a{
    color: white;
}

#video-camera-feed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
    opacity: 1;
    pointer-events: none;
    -webkit-mask-image: url(assets/mask.png);
    mask-image: url(assets/mask.png);
    -webkit-mask-size: cover;
    mask-size: cover;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

#INTRO{
    /* pointer-events: none; */
}
#GAME{
    /* pointer-events: none; */
}
#OUTRO{
    z-index: 10;
    /* pointer-events: auto; */
}
#gameover-buttons{
    position: absolute;
    bottom: 26%;
    width: 90vw;
    display: flex;
    text-align: center;
    justify-content: center;
}
#gameover-buttons div {
    font-size: 2.4vw;
    margin: 1vw;
}


/* RECORD STYLES */
/* CSS Variables for consistency */
:root {
    --bg-color: #000;
    --border-radius: 20px;
    --transition-speed: 0.5s;
    --control-size: 90px;
    --button-color: orangered;
    --button-shadow: rgba(0, 0, 0, 0.3);
    --progress-bar-height: 2px;
  }
  
  /* General resets */
  body,
  html {
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-family: "Arial", sans-serif;
    /* background-color: var(--bg-color); */
    /* --webkit-tap-highlight-color: rgba(0, 0, 0, 0); */
    -webkit-user-select: none;
    user-select: none;
    height: 100%;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .container-record {
    /* background-color: var(--bg-color); */
    /* --webkit-tap-highlight-color: rgba(0, 0, 0, 0); */
    -webkit-user-select: none;
    user-select: none;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
    max-width: 720px;
    pointer-events: none;
  }
  
  @media screen and (max-width: 380px) {
    .container-record {
      align-items: start;
    }
  }
  
  /* Centering and scaling canvas part */
  .canvas-part {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 720px;
    height: 100%;
    opacity: 1;
    transition: width var(--transition-speed) ease,
      height var(--transition-speed) ease, opacity 0.4s ease;
    --webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    -webkit-user-select: none;
    user-select: none;
    z-index: 1;
    pointer-events: none;
  }
  
  /* Canvas styling */
  canvas {
    width: 100%;
    height: 100%;
    transition: width var(--transition-speed) ease,
      height var(--transition-speed) ease, opacity var(--transition-speed) ease;
    display: none;
    user-select: none;
    z-index: 10;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -o-user-select: none;
    --webkit-tap-highlight-color: transparent;
    object-fit: cover;
  }
  
  /* Class to display active elements */
  .active {
    display: block;
  }
  
  /* Preview part styling */
  .preview-part {
    padding-top: 5px;
    width: 90%;
    max-width: 720px;
    height: 100%;
    display: none;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    border-radius: var(--border-radius);
    scale: 1.3;
    transition: width 0.1s ease, height var(--transition-speed) ease,
      scale 0.3s ease;
    --webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    -webkit-user-select: none;
    user-select: none;
  }
  
  /* Preview image styling */
  .preview {
    width: 100%;
    height: 85%;
    border: 3px solid black;
    background-color: black;
    overflow: hidden;
    border-radius: var(--border-radius);
    transition: width var(--transition-speed) ease,
      height var(--transition-speed) ease, opacity var(--transition-speed) ease;
    position: relative;
  }
  
  /* Centering preview image */
  .preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  /* Controls visibility */
  .controls {
    width: 100%;
    display: none;
    justify-content: space-between;
    align-items: center;
    z-index: 999;
    position: relative;
    height: 13%;
    pointer-events: auto;
  }
  
  /* Capture button */
  .capture-btn {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: flex-end;
    z-index: 999;
    width: var(--control-size);
    height: var(--control-size);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    -webkit-user-select: none;
    touch-action: manipulation; /* Allows scrolling and zooming, but disables text selection and double-tap-to-zoom */
    -webkit-touch-callout: none;
    user-select: none;
    -webkit-user-select: none;
    --webkit-tap-highlight-color: transparent;
    pointer-events: auto;
  }
  
  /* SVG styling */
  svg {
    position: relative;
    width: 90%;
    height: 95%;
    max-width: var(--control-size) !important;
    max-height: var(--control-size) !important;
    transform: rotate(-90deg);
    z-index: 999;
    display: block;
    -webkit-user-select: none;
    touch-action: manipulation; /* Allows scrolling and zooming, but disables text selection and double-tap-to-zoom */
    -webkit-touch-callout: none;
    user-select: none;
    -webkit-user-select: none;
    --webkit-tap-highlight-color: transparent;
  }
  
  circle {
    -webkit-user-select: none;
    touch-action: manipulation; /* Allows scrolling and zooming, but disables text selection and double-tap-to-zoom */
    -webkit-touch-callout: none;
    user-select: none;
    -webkit-user-select: none;
    --webkit-tap-highlight-color: transparent;
    z-index: 999;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  
  .inner-circle {
    transform-origin: center center;
    transition: scale 0.5s ease;
  }
  
  /* Progress ring */
  .inner-circle:hover {
    scale: 0.8 !important;
    cursor: pointer;
    transition: scale 0.5s ease;
  }
  
  .progress-ring__circle {
    transition: stroke-dashoffset 0.25s, scale 0.25s ease, stroke 0.2s ease,
      r 0.2s ease;
    stroke-dasharray: 260 !important; /* baba fixed red color when record as anim does not work*/
    stroke-dashoffset: 260 !important;  /* baba fixed red color when record as anim does not work*/
  }
  .outer-circle {
    transition: stroke-dashoffset 0.25s, scale 0.25s ease, stroke 0.2s ease,
      r 0.2s ease;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .outer-circle:hover {
    transition: stroke-dashoffset 0.35s, scale 0.5s ease;
  }
  
  /* Back button */
  #backButton {
    cursor: pointer;
    filter: invert();
    padding: 10px 15px;
    width: 30px !important;
    height: 30px !important;
    user-select: none;
    -webkit-user-select: none;
    --webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  }
  
  /* Action button */
  .action-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    width: max-content;
    transform: translate(-50%, -50%);
    /* background-color: var(--button-color); */
    color: white;
    border-radius: 25px;
    padding: 12px 15px;
    /* box-shadow: 0 2px 8px var(--button-shadow); */
    cursor: pointer;
    z-index: 10;
    font-size: large;
    font-weight: 500;
    user-select: none;
    -webkit-user-select: none;
    --webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    border-radius: 5px;
    background-color: #818181;
    /* width: 50%; */
    /* height: 20%; */
    color: white;
    /* font-size: 3vw; */
    border-color: #818181;
    /* padding: 0; */
    border: none;
  }
  
  /* Progress bar */
  .progress-parent {
    width: 95%;
    height: max-content;
    display: none;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    margin-top: 20px;
    z-index: 999;
    margin: 20px auto;
  }
  
  .video-progress-bar {
    height: var(--progress-bar-height);
    border-radius: 10px;
    background-color: #fff;
    z-index: 999;
  }
  
  .video-progress-bar-sudo {
    content: "";
    width: 100%;
    height: var(--progress-bar-height);
    z-index: 999;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.3);
  }
  