/* Basic styling */
body {
    font-family: Arial, sans-serif;
    background-color: #313132;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
  }

  .swiper-container {
    width: 100%;
    height: calc(100vh - 40px); /* Subtract padding to prevent scroll */
  }

  .swiper-slide {
    margin: 0 auto;
    background-color: #007bff;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    border-radius: 8px;
    transition: all 0.01s ease;
  }

  .swiper-free-mode > .swiper-wrapper {
    margin: 50px auto;
  }

  .swiper-slide.purple-mode {
    background-color: #CC35F6;
    transition: background-color 0.2s ease;
  }

  .control-btn.purple-mode {
    background-color: #CC35F6;
    color: white;
    transition: all 0.2s ease;
  }

  .control-btn.purple-mode:hover {
    background-color: #b52edb;
  }

  .swiper-slide:hover, .swiper-slide:focus {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    outline: 3px solid #e8e8eb;
  }

  .swiper-slide.toggled {
    background: #fa9b28;

  }


  .swiper-slide.purple-mode:hover, .swiper-slide.purple-mode:focus {
    outline: 3px solid #F7D1FC;
  }

  .swiper-slide.purple-mode:active {
    outline: 3px solid #E0B0F5;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
  }

  .swiper-slide:nth-child(3n+1) {
    clear: left;
  }

  .control-buttons {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    z-index: 9999;
  }

  .control-button {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    font-size: large;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.01s ease;
  }

  .control-button:hover {
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid #ffffff3c;

  }

  .control-button:active {
    background: rgba(255, 255, 255, 0.4);
  }

  .control-button.toggled {
    background-color: #fa9b28;
  }

  .control-button.toggled:hover {
    background-color: #e88a1f;
  }
  


  .audio-controls {
    display: grid;
    grid-template-columns: repeat(3, 120px);
    grid-template-rows: repeat(3, 120px);
    gap: 20px;
  }

  .control-btn {
    background: #007bff;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 34px;
    cursor: pointer;
    transition: opacity 0.01s;
  }

  .control-btn:hover {
    outline: 3px solid white;
  }

  .control-btn:focus {
    outline: 3px solid white;
  }

  #volume-up {
    grid-column: 2;
    grid-row: 1;
  }

  #prev {
    grid-column: 1;
    grid-row: 2;
  }

  #play {
    grid-column: 2;
    grid-row: 2;
  }

  #next {
    grid-column: 3;
    grid-row: 2;
  }

  #volume-down {
    grid-column: 2;
    grid-row: 3;
  }

  #shortcuts-overlay {
    position: fixed;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
  }

  #shortcuts-overlay {
    transform: translate(-5%, 5%);
  }

  #navigation-section {
    transform: translate(0%, 145%);
  }

  #shortcuts-overlay > div {
    position: absolute;
    color: white;
    right: 0;
    text-align: left;
    padding: 25px 40px;
    background: rgba(32, 31, 35, 0.9);
    border-radius: 10px;
    min-width: 200px;
  }

  #shortcuts-overlay h2 {
    text-align: left;
    margin-bottom: 0px;

  }

  #shortcuts-overlay h3 {
    color: #a1a8b0;
    margin-bottom: 15px;
    font-weight: bold;
    font-size: 1em;
  }

  #shortcuts-overlay .shortcut {
    margin-bottom: 10px;
  }

  #shortcuts-overlay .number {
    display: inline-block;
    width: 0px;
  }

  .volume-indicator-container {
    position: fixed;
    top: 3%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 30px;
    color: white;
    cursor: pointer;
    text-align: center;
  }


button.close-camera {
  background-color: #fd5656;

}

button.close-camera:hover {
  background-color: #ff3333;
  border: 2px solid #ffffff3c;

}

button.switch-camera {
  display: none; /* Hidden by default */
}

#cameraStream {
  position: fixed;
  bottom: 2.5em;
  right: 2.5em;
  width: 300px;
  height: calc(3 / 4 * 300px);
  border-radius: 5px;
  display: none; /* Hidden by default */
  cursor: move; /* Indicate draggable */
  z-index: 2; /* High z-index to be on top of everything */
  object-fit: contain; /* Prevent cropping */
  touch-action: none; /* Prevent default touch actions */
}
