@font-face {
  font-family: 'casto-regular';
  src: url(817868e4b248016cebbb.otf) format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
  /* improves loading behavior */
}

@font-face {
  font-family: 'casto-bold';
  src: url(64d81387324c8a87438f.otf) format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
  /* improves loading behavior */
}

body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  font-family: 'casto-regular', sans-serif;
}

#canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  z-index: 1;
}

.poweredbysnap-logo {
  width: auto;
  /* Set to auto to avoid stretching */
  position: absolute;
  /* Position relative to the viewport */
  bottom: -40px;
  /* Adjust to desired distance from the bottom */
  left: 40px;
  /* Adjust to desired distance from the left */
  display: none;
  align-items: center;
  justify-content: flex-start;
  /* Align content within the element to the left */
  z-index: 900;

}

.poweredbysnap-logo>img {
  width: 180px;
}

#controls {
  position: absolute;
  bottom: 10%;
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 999;

  display: none;
}

#outline {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  height: 75px;
  /* Default for mobile */
  width: 75px;
  border: none;
  z-index: 900;
  transition: background-color 0.2s ease;
}

#record-button {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  height:  75px;
  /* Default for mobile */
  width: 75px;
  background-image: url(assets/RecordButton.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: transparent;
  border-radius: 50%;
  border: none;
  z-index: 1000;
  transition: background-color 0.2s ease;
}

#record-button.pressed {
  background-color: green;
  /* Change to green when pressed */
  content: "Recording...";
  /* Optionally add text */
}

#action-buttons {
  position: absolute;
  bottom: 12%;
  /* Adjust the distance from the bottom of the screen */
  left: 50%;
  /* Center horizontally */
  transform: translate(-50%);
  /* Offset by half the width and height */
  display: flex;
  /* Enables flex layout */
  justify-content: center;
  /* Aligns buttons horizontally */
  align-items: center;
  /* Aligns buttons vertically */
  z-index: 1000;
  /* Ensure visibility above other elements */
  flex-wrap: wrap;
  /* Allows wrapping if container width is too small */
  width: 70%;
}

#back-button-container {
  position: absolute;
  top: 2%;
  left: 3%;
  z-index: 1000;
}

#back-button {
  transform: none;
  background-color: transparent;
  height: 40px;
  width: 40px;
  color: transparent;
  border: none;
  cursor: pointer;
  user-select: none;
  outline: none;
  padding: 0%;
  transition: transform 0.15s ease-in-out;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

#back-button img {
  /* Add this if your button uses an image */
  max-width: 100%;
  max-height: 100%;
  height: auto;
}

#back-button:active {
  transform: translate(2px, 2px);
}

#share-button {
  /* height: 50px;
  width: 50px;
  background-color: transparent;
  transform: translate(-25%, 0);
  color: transparent;
  border: none;
  cursor: pointer;
  user-select: none;
  outline: none;
  padding: 0%;
  transition: transform 0.15s ease-in-out;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none; */
}

@media (min-width: 640px) {
  #share-button {
    display: none !important;
  }
}

#share-button img {
  max-width: 100%;
  max-height: 100%;
  height: auto;
}

#share-button:active {
  /* transform: translate(calc(-25% + 2px), 2px); */
}

#download-button {
  /* height: 50px;
  width: 50px;
  background-color: transparent;
  transform: translate(25%, 0);
  color: transparent;
  border: none;
  cursor: pointer;
  user-select: none;
  outline: none;
  padding: 0%;
  transition: transform 0.15s ease-in-out;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none; */
}

@media (max-width: 640px) {
  #download-button {
    display: none !important;
  }
}

#download-button img {
  max-width: 100%;
  max-height: 100%;
  height: auto;
}

#download-button:active {
  transform: translate(calc(25% + 2px), 2px);
}

#switch-cam {
  position: absolute;
  bottom: 10%;
  right: 10%;
  z-index: 950;
}
#mirror-cam {
  position: absolute;
  bottom: 10%;
  left: 10%;
  z-index: 950;
}

#switch-button {
  height: 70px;
  width: 70px;
  background-image: url(assets/SwitchButton.png);
  /* Green background */
  background-size: contain;
  /* Ensure the image covers the button */
  background-position: center;
  /* Center the image */
  background-repeat: no-repeat;
  /* Preent tiling */
  background-color: transparent;
  border: none;
  user-select: none;
  /* Disable text selection */
  outline: none;
  transition: transform 0.2s ease;
  /* Smooth hover animation */
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  display: none;
}
#mirror-button {
  height: 70px;
  width: 70px;
  background-image: url(assets/MirrorButton.png);
  /* Green background */
  background-size: contain;
  /* Ensure the image covers the button */
  background-position: center;
  /* Center the image */
  background-repeat: no-repeat;
  /* Preent tiling */
  background-color: transparent;
  border: none;
  user-select: none;
  /* Disable text selection */
  outline: none;
  transition: transform 0.2s ease;
  /* Smooth hover animation */
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  display: none;
}

#switch-button:active {
  transform: translate(5%, 5%);
  /* Only scale without affecting translation */
}

#loading {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 900;
  display: none;
  /* Hidden by default */
}

#loading-icon {
  height: 50px;
  width: 50px;
  animation: spin 2s linear infinite;
  /* Apply the spin animation */
}

/* Keyframes for the rotation */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Desktop-specific styles */
.desktop #outline,
.desktop #record-button {
  height: 70px;
  width: 70px;
}

.desktop #share-button {
  height: 70px;
  width: 70px;
}

.desktop #download-button {
  height: 70px;
  width: 70px;
}

.desktop #back-button {
  height: 50px;
  width: 50px;
}

/* Hide switch button on desktop */
.desktop #switch-cam {
  display: none;
}

div#webpack-dev-server-client-overlay-div {
  display: none !important;
}


/* BABA CSS */
/* /*  */
html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  background-color: #007be5;
  display: flex;
  justify-content: center;
  align-items: center;
} 

.container {
  width: 100%;
  height: 100%;
  padding: 20px;
  box-sizing: border-box;
  text-align: center;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: #0078D7;
  position: absolute;
  align-items: center;
  z-index: 10;
}

.logo {
  margin-top: 10px;
  height: 70px;
  /* transform: scale(2); */
}

/* @media (max-width: 640px) {
  .logo {
    transform: scale(2);
  }
} */


.form-group {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 30px;
  /* transform: scale(2.5); */
}
@media (min-width: 640px) {
  .form-group {
    display: none;
  }
}

/* @media (max-width: 640px) {
  .form-group {
    transform: scale(2.5);
  }
} */

label {
  font-family: 'casto-bold';

  font-size: 2rem;
}

input {
  border: none;
  border-bottom: 2px solid white;
  background: transparent;
  color: white;
  font-size: 1.5rem;
  text-align: center;
  outline: none;
  padding: 10px;
  width: 90%;
  max-width: 400px;
  margin: 0 auto;
}

.instructions {
  font-size: 1rem;
  margin-bottom: 20px;
  text-align: left;
  margin-left: 10px;
  /* transform: scale(2.5); */
  /* margin-bottom: 320px; */
}
@media (min-width: 640px) {
  .instructions {
    display: none;
  }
}

/* @media (max-width: 640px) {
  .instructions {
    transform: scale(2.5);
    margin-bottom: 320px;
  }
} */

.btn {
  background-color: red;
  color: white;
  font-weight: bold;
  font-size: 1.5rem;
  padding: 15px 0px;
  border: none;
  border-radius: 50px;
  box-shadow: 0 5px 0 #a70000;
  width: 100%;
  max-width: 300px;
  align-self: center;
  margin-bottom: 17px;
  font-family: 'casto-bold';
  z-index: 10;
  /* transform: scale(2.5); */
  /* margin-bottom: 200px; */
}
@media (min-width: 640px) {
  .btn {
    display: none;
  }
}

/* @media (max-width: 640px) {
  .btn {
    transform: scale(2.5);
    margin-bottom: 200px;
  }
} */

.btn:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #a70000;
}

#desktop{
  z-index: 20;
  display: flex;
  flex-direction: column;
  text-align: center;
  color: white;
  font-size: 2rem;
  font-family: 'casto-bold';
  justify-content: center;
  align-items: center;
}
#desktop img{
  margin: 5%;
  width: 20vw;
}
