
html {
  position: relative;
  height: 100vh;
  height: 100svh;
  width: 100vw;
  margin: 0;
  padding: 0;
  touch-action: manipulation
}

p{
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Arial Black', 'Arial', sans-serif !important;
  background-color: #2d2a26;
}

#mainContainer{
  display: flex;
  flex-direction: column;
  width: 100vw;
  height: 100vh;
  height: 100svh;
  position: absolute;
  overflow: hidden;
  view-transition-name: security-reveal;
}

.hazardStripes {
  height: 7vh;
  background: repeating-linear-gradient(-45deg, #f5c400, #f5c400 22px, #1a1a1a 22px, #1a1a1a 44px);
  width: 100vw;
  flex-shrink: 0;
}

.securityPanel{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  flex: 1;
  background-color: #2d2a26;
}

.title{
  line-height: 1;
  text-transform: uppercase;  
  font-size: clamp(48px, 12vw, 76px);
  color: white;
}

.correctText{
  color: rgb(0, 255, 80);
  text-shadow: rgba(0, 255, 80, 0.7) 0px 0px 30px, rgba(0, 255, 80, 0.4) 0px 0px 60px; 
}

.correctSymbol{
  width: 40vw;
  padding-top: 10%;
}

#scrollLockContainer{
  width: 90%;
  
  display: flex;
  justify-content: center;
}

.lockContainer{
  width: 15%;
  margin: 2.5%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lock{
  background-color: #f5c400;
  padding: 3vw;  
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(2rem, 5vw, 4rem);
}

.triangleUp {
    width: 0;
    height: 0;
    border-left: 3vw solid transparent; /* Adjust size */
    border-right: 3vw solid transparent; /* Adjust size */
    border-bottom: 3vw solid white; /* White color and size */
    margin-bottom: 15%;
}

.triangleDown {
    width: 0;
    height: 0;
    border-left: 3vw solid transparent; /* Adjust size */
    border-right: 3vw solid transparent; /* Adjust size */
    border-bottom: 3vw solid white; /* White color and size */
    transform: rotate(180deg);
    margin-top: 15%;
}

#unlockBtn{
  background-color: green;
  color: white;
  border: none;
  padding: 1vw 2vw;
  font-size: clamp(1rem, 3vw, 2rem);
  cursor: pointer;
}

/* The "curtain" (old snapshot) slides up */
::view-transition-old(security-reveal) {
  z-index: 1;
  animation: slideOut 2s ease-in-out forwards;
}

/* The new content (success page) stays still underneath */
::view-transition-new(security-reveal) {
  animation: none;
  z-index: -1;
}

@keyframes slideOut {
  from { transform: translateY(0); }
  to { transform: translateY(-100%); }
}