html {
  height: 100%;
}

body {
  height: 100%;
  margin: auto;
  padding: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #9e9e9e, #eeeeee);
  /* background: rgba(255, 255, 255, 0.3); */
  display: grid !important;
  place-items: center;
  font-family: 'Noto Sans JP', sans-serif;
  max-width: 450px;
}

#loginLoader {
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

#loginLoaderText {
  color: #fff;
  font-size: 20px;
  margin-top: 20px;
  padding: 30px;
  text-align: center;
}

#loginLoaderButton {
  color: #fff;
  background: linear-gradient(to right, #f8bd00, #f19500, #eb6c00);
  /* background-color: rgba(0, 0, 0, 0.1); */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 10px 30px;
  font-size: 18px;
  font-weight: 500;
  width: 80%;
  max-width: 400px;
  height: auto;
  letter-spacing: 1px;
  z-index: 10;
  font-family: 'Noto Sans JP', sans-serif;
  border-radius: 10px;
  border: 1px solid white;
  margin-top: 10px;
  margin-bottom: 15px;
  cursor: pointer;
}

#loginLoaderButton img {
  height: 24px;
  width: auto;
  margin-right: 15px;
}

#logLoader {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  overflow: hidden;
}

#logLoaderText {
  color: #fff;
  font-size: 20px;
  margin-top: 20px;
  /* padding: 30px; */
  text-align: center;
  font-weight: 500;
}

.backToOshitabi {
  color: #fff;
  background: linear-gradient(to right, gray, darkgray);
  /* background-color: rgba(0, 0, 0, 0.1); */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 10px 30px;
  font-size: 18px;
  font-weight: 500;
  width: 80%;
  max-width: 400px;
  height: auto;
  letter-spacing: 1px;
  z-index: 10;
  font-family: 'Noto Sans JP', sans-serif;
  border-radius: 10px;
  border: 1px solid white;
  margin-top: 10px;
  margin-bottom: 15px;
  cursor: pointer;
}

#playerLoader {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  overflow: hidden;
}

#playerLoaderText {
  color: #fff;
  font-size: 20px;
  margin-top: 20px;
  /* padding: 30px; */
  text-align: center;
  font-weight: 500;
}

.playerLoaderDetail {
  text-align: center;
  color: white;
  font-weight: 500;
  padding: 10px;
}

.speed-button {
  color: #fff;
  background-color: rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  /* Set the flex direction to column to stack the text and subtext vertically */
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 10px;
  font-size: 22px;
  font-weight: 500;
  width: 80%;
  height: auto;
  letter-spacing: 1px;
  z-index: 10;
  font-family: 'Noto Sans JP', sans-serif;
  border-radius: 10px;
  border: 1px solid white;
  margin-top: 10px;
  margin-bottom: 15px;
  cursor: pointer;
  /* Makes the mouse cursor change to a pointer on hover */
  transition: background-color 0.3s ease;
  /* Smooth background-color transition */
}

.speed-buttonn:hover {
  background-color: rgba(0, 0, 0, 0.2);
  /* Darkens the button on hover */
}

.speed-button .button-text {
  margin-bottom: 5px;
  /* Adds some space between the text and the subtext */
}

.speed-button .button-subtext {
  font-size: 18px;
  /* Makes the subtext smaller than the main text */
}


#gps-button {
  color: #fff;
  /* background: linear-gradient(to right, #f8bd00, #f19500, #eb6c00); */
  background-color: rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 10px;
  font-size: 18px;
  font-weight: 500;
  width: 80%;
  height: auto;
  letter-spacing: 1px;
  z-index: 10;
  font-family: 'Noto Sans JP', sans-serif;
  border-radius: 10px;
  border: 1px solid white;
  margin-top: 10px;
  margin-bottom: 15px;
}

#gps-button img {
  height: 24px;
  width: auto;
  margin-right: 15px;
}

.rideProof {
  color: #fff;
  background: linear-gradient(to right, #f8bd00, #f19500, #eb6c00);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 10px;
  font-size: 18px;
  font-weight: 500;
  width: 200px;
  height: 50px;
  margin-top: 5%;
  letter-spacing: 1px;
  z-index: 10;
  font-family: 'Noto Sans JP', sans-serif;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  border-radius: 5px;
}

.rideProof::before {
  content: '';
  position: absolute;
  top: 2px;
  right: 2px;
  bottom: 2px;
  left: 2px;
  border: 1px solid #fff;
  pointer-events: none;
  flex-direction: column;
  border-radius: 4px;
}

.rideProof:active {
  box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.1);
  transform: translateY(2px);
}

.rideProof img {
  height: 24px;
  width: auto;
  margin-right: 15px;
}

.rideProofHidden {
  display: none;
}

.disabled {
  background: linear-gradient(to right, gray, darkgray);
  pointer-events: none;
}

.hidden {
  display: none;
}

#speedometer {
  width: 100%;
  height: auto;
}

#speedometer circle {
  fill: none;
  stroke: #fff;
  stroke-width: 2;
}

#needle {
  stroke-linecap: round;
  stroke: #fff;
}

#mainHeader {
  background-color: rgba(128, 128, 128, 0.2);
}

#overlay-card {
  overflow: hidden;
  background: rgba(128, 128, 128, 0.3);
  box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.1);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

#overlay-card {
  transition: transform 0.2s;
  cursor: pointer;
}

#overlay-card:active {
  transform: scale(0.95);
}

#overlay-card::before {
  content: '';
  position: absolute;
  top: 10px;
  right: 10px;
  bottom: 10px;
  left: 10px;
  border-radius: 15px;
  border: 1px solid #fff;
  pointer-events: none;
}

.voiceDetails {
  position: relative;
  text-align: center;
  font-size: 12px;
  color: white;
  width: 100%;
}

#waiting-card {
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
  /* background: linear-gradient(135deg, #9e9e9e, gray); */
  box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.1);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

#waiting-card::before {
  content: '';
  position: absolute;
  top: 10px;
  right: 10px;
  bottom: 10px;
  left: 10px;
  border-radius: 15px;
  border: 1px solid #fff;
  pointer-events: none;
}

.show-flex {
  display: flex !important;
}

.hide-flex {
  display: none !important;
}


.card-icon-wrapper {
  width: 60%;
  height: auto;
}

#overlay-card .card-icon-wrapper {
  margin-bottom: 50%;
}

#overlay-card .card-icon-wrapper-with-rideProof {
  margin-bottom: 20%;
}

#waiting-card .card-icon-wrapper {
  margin-bottom: 20%;
}



.player-icon-wrapper {
  width: 50%;
  height: auto;
  margin: 15%;
  display: block;
}

.card-icon {
  width: 100%;
  height: auto;
}

.card-text {
  color: #fff;
  font-size: 1.8em;
  margin: 5px 0;
}

.card-subtext {
  color: #fff;
  text-align: center;
  font-size: 1em;
  margin: 10px 0;
}

.speed-status {
  font-size: 0.8em;
}




#voice-player {
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
  box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.1);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.card-size {
  margin-top: 55px;
  width: 90%;
  height: 75vh;
  border-radius: 20px;
}

.no-navi-card-size {
  /* margin-top:55px; */
  width: 90%;
  height: 80vh;
  border-radius: 20px;
}

#thumbnail-wrapper {
  position: relative;
  /* display: inline-block; */
  overflow: hidden;
  min-height: 200px;
  /* width: 100%; */
}

#thumbnail {
  width: 100%;
  /* aspect-ratio: 1 / 1; */
  object-fit: contain;
  object-position: 50% 20%;
  height: 100%;
  display: block;
}

.show-image {
  display: inline-block;
}

.hide-image {
  display: none;
}

#overlay-image {
  position: absolute;
  top: 10px;
  /* Adjust the top margin as needed */
  right: 10px;
  /* Adjust the left margin as needed */
  width: 50px;
  /* Adjust the width as needed */
  height: auto;
  /* Maintain the aspect ratio */
  z-index: 1;
}

/* 
#overlay-copyright {
  position: absolute;
  bottom: 0px;
  left: 0px;
  padding:2px;
  z-index: 1;
  font-size: 8px;
  color: #fff;
  text-shadow: black 1px 0 10px, black -1px 0 10px, black 1px 0 5px, black -1px 0 5px;
  background:rgba(0, 0, 0, 0.3);
  text-align: left;
  font-weight: bold;
  -webkit-text-stroke: 0.4px black;
  text-shadow: #fc0 1px 0 10px;
} */

#overlay-button {
  position: absolute;
  bottom: 20px;
  right: 0;
  width: auto;
  height: auto;
  z-index: 1;
}

#info {
  width: 90%;
  text-align: center;
  color: #fff;
}

#info .character {
  margin: 10px 0px 5px;
  font-size: 1.4em;
  font-weight: 500;
  /* text-shadow: black 1px 0 10px, black -1px 0 10px; */
  /* increase the font size */
}

#info .anime {
  margin: 10px 0px;
  font-size: 1em;
  font-weight: 500;
  /* text-shadow:black 1px 0 10px, black -1px 0 10px; */
  /* decrease the font size */
}

/* .progress-container{
  position:absolute;
  width: 100%;
  bottom:-50px;
  z-index:10;
} */

#progress-bar {
  width: 90%;
  height: 10px;
  background: rgba(255, 255, 255, 0.5);
  margin: 5px 0 5px 0;
  /* Add more space */
  border-radius: 10px;
  overflow: hidden;
}

#progress {
  height: 100%;
  background: #fff;
  width: 0%;
  /* Set initial width to 0 */
  transition: width 0.5s;
  /* Add transition to make changes smoother */
}

#time {
  display: flex;
  justify-content: space-between;
  padding: 0 2px;
  font-size: 0.7em;
  color: #fff;
  width: 90%;
  margin-bottom: 5px;
}

#controls {
  display: flex;
  justify-content: space-around;
  padding: 5px;
  width: 100%;
  margin-bottom: 5px;
}

#controls button {
  background: transparent;
  border: none;
}

#back img {
  margin-top: 5px;
  margin-left: 30px;
  height: 30px;
  width: auto;
}

#stop img {
  margin-top: 5px;
  margin-right: 30px;
  height: 26px;
  width: auto;
  margin-bottom: 2px;
}

#play-pause img {
  height: 50px;
  width: auto;
}



#supported {
  display: flex;
  align-items: flex-end;
  width: 100%;
  color: #fff;
  font-size: 0.7em;
  margin-bottom: 5px;
  margin-right: 10px;
}


#copyright {
  margin-right: auto;
  margin-left: 12px;
  padding-bottom: 5px;
  font-size: 7px;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500;
  color: #fff;
}

.systemSupportedBy {
  margin-bottom: 10px;
}

#logo {
  width: 23%;
  /* make the logo a little bit bigger */
  margin: 10px;
  margin-bottom: 8px;
}

#supported p {
  margin-right: 5px;
}

.character,
.anime {
  overflow: hidden;
  width: 100%;
  white-space: nowrap;
  font-weight: 500;
}

.marqueeText {
  display: inline-block;
  padding-left: 100%;
  animation: marquee 8s linear infinite;
}

/* .marqueeText:hover {
    animation-play-state: paused;
  } */

.marquee-ios {
  animation: marquee-ios 8s linear infinite;
}


@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-100%);
  }
}

@keyframes marquee-ios {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-100%);
  }
}


/* alert from here */

#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: none;
  z-index: 110;
}

#alert-box {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  display: none;
  width: 70%;
  max-width: 400px;
  z-index: 111;
}

#alert-message {
  font-size: 18px;
}



#alert-close {
  padding: 10px 20px;
  background-color: #ff7e5f;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

#alert-close:hover {
  background-color: #ff6c4f;
}

#back-box {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  display: none;
  width: 70%;
  max-width: 400px;
  z-index: 111;
}

#back-message,
#back-message2 {
  font-size: 18px;
}



#back-close {
  padding: 10px 20px;
  background-color: #ff7e5f;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

#back-close:hover {
  background-color: #ff6c4f;
}




/*  Gradient Colors*/

.gradientRed {
  background: linear-gradient(135deg, #ff5349, #ff847c);
}

.gradientPink {
  background: linear-gradient(135deg, #ff79a7, #ffabc1);
}

.gradientPurple {
  background: linear-gradient(135deg, #ab47bc, #ce93d8);
}

.gradientDeepPurple {
  background: linear-gradient(135deg, #7e57c2, #b39ddb);
}

.gradientIndigo {
  background: linear-gradient(135deg, #5c6bc0, #9fa8da);
}

.gradientBlue {
  background: linear-gradient(135deg, #2096f3, #90caf9);
}

.gradientLightBlue {
  background: linear-gradient(135deg, #29b6f6, #81d4fa);
}

.gradientCyan {
  background: linear-gradient(135deg, #00acc1, #80deea);
}

.gradientTeal {
  background: linear-gradient(135deg, #009688, #80cbc4);
}

.gradientGreen {
  background: linear-gradient(135deg, #43a047, #a5d6a7);
}

.gradientLime {
  background: linear-gradient(135deg, #c0ca33, #e6ee9c);
}

.gradientYellow {
  background: linear-gradient(135deg, #ffee58, #fff59d);
}

.gradientAmber {
  background: linear-gradient(135deg, #ffc107, #ffe082);
}

.gradientOrange {
  background: linear-gradient(135deg, #ff7e5f, #feb47b);
}

.gradientLightOrange {
  background: linear-gradient(135deg, #fb8c00, #ffcc80);
}

.gradientDeepOrange {
  background: linear-gradient(135deg, #ff5722, #ffab91);
}

.gradientBrown {
  background: linear-gradient(135deg, #795548, #bcaaa4);
}

.gradientGray {
  background: linear-gradient(135deg, #9e9e9e, #eeeeee);
}

.gradientBlueGray {
  background: linear-gradient(135deg, #607d8b, #cfd8dc);
}

.gradientBlack {
  background: linear-gradient(135deg, #000000, #616161);
}



/*For OREGAIRU

Hachiman: #3366cc
Komachi: #6666cc
Yui: #cc3366
Iroha: #ffcc66
Yukino: #0da2fe


*/

.gradientYellowPink {
  background: linear-gradient(135deg, #ffcc66, #cc3366);
}

.gradientPinkBlue {
  background: linear-gradient(135deg, #cc3366, #0da2fe);
}

.gradientBluePurple {
  background: linear-gradient(135deg, #0da2fe, #6666cc);
}

.gradientBlueBlack {
  background: linear-gradient(135deg, #0da2fe, #3366cc);
}

.gradientPurpleYellow {
  background: linear-gradient(135deg, #6666cc, #ffcc66);
}


.gradientPinkBlackPurple {
  background: linear-gradient(135deg, #cc3366, #3366cc, #6666cc);
}

.gradientBlackYellow {
  background: linear-gradient(135deg, #3366cc, #ffcc66);
}


.gradientGotoubunColorful {
  background: linear-gradient(135deg, #ff9600, #ba47a6, #0da2fe, #7ec50d, #fe100e);
}

.gradientGotoubun {
  background: linear-gradient(135deg, #ffccff, #FFF0F5);
  background-image:
    url("https://material.voistock.com/photo/image.php?id=64c73a0a2a438&photo=64c73a0a2a4a3");
  background-position: center;
}


.gradientLightPink {
  background: linear-gradient(135deg, #FFB6D5, #FFF0F5);
}

.gradientLightGreen {
  background: linear-gradient(135deg, #DDFD41, #c5e1a5);
}

@media only screen and (max-width: 374px) {
  /* Adjustments for smaller devices */

  /* #voice-player {
    width: 80%;
  }

  #overlay-card {
    width: 80%;
  }

  #waiting-card {
    width: 80%;
  } */

  .card-size {
    width: 90%;
    height: 76vh;
    border-radius: 15px;
  }

  #thumbnail {
    width: 100%;
    /* height: 35vh; */
  }

  #info .character {
    font-size: 1em;
    /* Reduce font size */
  }

  #info .anime {
    font-size: 0.85em;
    /* Reduce font size */
  }

  #progress-bar {
    height: 8px;
    /* Reduce height */
  }

  #time {
    font-size: 0.6em;
    /* Reduce font size */
  }

  #controls button {
    padding: 5px;
    margin: 0px;
    /* Reduce padding */
  }

  #play-pause img {
    height: 40px;
    /* Reduce size */
  }

  #back img {
    height: 20px;
    /* Reduce size */
  }

  #stop img {
    height: 20px;
    /* Reduce size */
  }

  #logo {
    width: 20%;
    /* Reduce size */
  }


  .rideProof {
    color: #fff;
    background: linear-gradient(to right, #f8bd00, #f19500, #eb6c00);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 8px;
    font-size: 15px;
    font-weight: 500;
    width: 150px;
    height: 40px;
    margin-top: 5%;
    letter-spacing: 1px;
    z-index: 10;
    font-family: 'Noto Sans JP', sans-serif;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    border-radius: 5px;
  }

  .rideProof::before {
    content: '';
    position: absolute;
    top: 2px;
    right: 2px;
    bottom: 2px;
    left: 2px;
    border: 1px solid #fff;
    pointer-events: none;
    flex-direction: column;
    border-radius: 4px;
  }

  .rideProof:active {
    box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(2px);
  }

  .rideProof img {
    height: 20px;
    width: auto;
    margin-right: 12px;
  }

  #copyright {
    text-align: left;
    font-size: 6px;
    font-weight: 500;
    color: #fff;
    padding: 2px;
  }

  /* add similar styles for other elements if necessary */
}