/* game-navbar - START */
.gm-headline-dv {
    padding: 0.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 3.5rem;
    background-color: #ffffff;
}
.gm-headline-dv h1 {
    white-space: wrap;
    color: rgb(74, 74, 74);
    font-size: 1rem;
}
.game-navbar {
  display: flex;
  position: relative;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  top: 0;
  left: 0;
  width: 100%;
  height: 5rem;
  background-color: black;
  border-bottom: 0.05rem solid white;
}
.game-container {
  display: flex;
  position: relative;
  flex-direction: column;
  align-items: center;
  max-width: 35rem;
  width: 100%;
  margin: auto;
  padding-bottom: 5rem;
  background-color: white;
  border: 1px solid #c1c1c1;
        -webkit-user-select: none; /* Safari and older Chrome */
      -moz-user-select: none;    /* Firefox */
      -ms-user-select: none;     /* Internet Explorer/Edge */
      user-select: none; 
  box-shadow: 0 0.2rem 0 rgb(123, 123, 123);
  border-radius: 0 0 0.5rem 0.5rem;
}
.backbtn {
  align-items: center;
  font-weight: bold;
  background-image: linear-gradient(144deg, #ff0000, #a602ff 50%, #ff0000);
  border: 0;
  border-radius: 0.4rem;
  box-shadow: rgba(151, 65, 252, 0.2) 0 0.75rem 1.5rem -0.25rem;
  box-sizing: border-box;
  color: #FFFFFF;
  display: flex;
  font-family: Phantomsans, sans-serif;
  font-size: 1rem;
  justify-content: center;
  line-height: 1em;
  max-width: 100%;
  min-width: 7rem;
  padding: 0.15rem;
  text-decoration: none;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  white-space: nowrap;
  cursor: pointer;
  transition: all .1s;
}

.backbtn span {
  background-color: rgb(5, 6, 45);
  padding: 0.8rem 1.2rem;
  border-radius: 0.3rem;
  width: 100%;
  height: 100%;
  transition: 100ms;
}
.backbtn:hover span {
  background-color: rgba(5, 6, 45, 0);
}
.backbtn:active,
.backbtn:hover {
  outline: 0;
}
/* game-navbar END */

/* TIMER bar start */
.timer-container {
  position: relative;
  max-width: 35rem;
  width: 95%;
  margin: auto;
  margin-bottom: 1rem;
  height: 1.5rem;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.timer-value {
  font-size: 1rem;
  color: #000;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.timer-text {
  position: absolute;
  top: -1rem;
  left: 50%;
  transform: translateX(-50%);
}
.timer-label {
  position: absolute;
  font-size: 0.7rem;
  color: #555;
}
.left {
  margin-bottom: 2.5rem;
  left: 1.2rem;
  transform: translateX(-100%);
}
.right {
  margin-bottom: 2.5rem;
  right: 0.3rem;
  transform: translateX(100%);
}
.timer-marker {
  position: absolute;
  top: 0;
  left: calc(100% - 0.25rem);
  width: 0.25rem;
  height: 100%;
  background-color: rgb(255, 0, 0);
}
.timer-animation-started {
  animation: moveMarker 60s linear forwards;
}
@keyframes moveMarker {
  0% {
    left: calc(100% - 0.25rem);
  }
  100% {
    left: 0;
  }
}
/* TIMER bar end */

/* winning-dv START */
.winning-dv {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  aspect-ratio: 35 / 16.9; /* Maintain the same 35:16.9 aspect ratio */
  top: 16.5rem;
  max-width: 35rem;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 999;
}
.result-container {
  display: flex;
  width: 100%;
  height: 100%;
  z-index: 999;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 3%;
  color: white;
  font-size: 1.2rem;
}
.winning-dv p {
  font-size: 0.8rem;
}
.results-dv {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
}
.againtbtn {
  width: 40%;
  height: 10%;
}
.uiverse {
  position: relative;
  background: #ffffff;
  color: #ff0000;
  padding: 0.25rem;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  box-shadow: 0 0.5rem 0.5rem rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.ainstain-img {
  width: 2.25rem;
  height: 2.25rem;
}
.tooltip {
  position: absolute;
  top: 0;
  font-size: 1.1rem;
  background: #ffffff;
  color: #ffffff;
  padding: 0.6rem 0.4rem;
  border-radius: 0.25rem;
  box-shadow: 0 0.5rem 0.5rem rgba(0, 0, 0, 0.1);
  opacity: 0;
  pointer-events: none;
  transition: all 0.1s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  width: auto;
}
.tooltip p {
  white-space: nowrap;
}
.tooltip::before {
  position: absolute;
  content: "";
  height: 0.4rem;
  width: 0.4rem;
  background: #ffffff;
  bottom: -0.15rem;
  left: 50%;
  transform: translate(-50%) rotate(45deg);
  transition: all 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.uiverse:hover .tooltip {
  top: -2.9rem;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
svg:hover span,
svg:hover .tooltip {
  text-shadow: 0px -0.05rem 0px rgba(0, 0, 0, 0.1);
}
.uiverse:hover,
.uiverse:hover .tooltip::before {
  background-image: linear-gradient(rgb(0, 168, 25), rgb(255, 255, 255));
}
.uiverse:hover .tooltip {
  background-color: rgb(0, 168, 25);
  color: #ffffff;
}
.againbtn {
  background: #fff;
  border: none;
  padding: 2% 10%;
  display: inline-block;
  font-size: 50%;
  font-weight: 600;
  width: 50%;
  text-transform: uppercase;
  cursor: pointer;
  transform: skew(-21deg);
}
.againbtn span {
  display: inline-block;
  transform: skew(21deg);
}
.againbtn::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: 100%;
  left: 0;
  background-image: linear-gradient(to right, red, yellow);
  opacity: 0;
  z-index: -1;
  transition: all 0.3s;
}
.againbtn:hover:not([disabled]) {
  color: #fff;
}
.againbtn:hover:not([disabled])::before {
  left: 0;
  right: 0;
  opacity: 1;
}
/* winning-dv END */

/* controldv START */
.control-dv {
  position: absolute;
  left: 50%;
  top: 16.5rem;
  transform: translateX(-50%);
  max-width: 35rem;
  width: 100%;
  aspect-ratio: 35 / 16.95; /* Maintain the 35:16.95 ratio */
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.857);
}

.startbtn {
  padding: 1.5rem 3rem;
  text-transform: uppercase;
  border-radius: 0.4rem;
  font-size: 0.85rem;
  background-color: white;
  font-weight: 500;
  color: #000000fb;
  text-shadow: none;
  box-shadow: transparent;
  border: 0.05rem solid #ffffff80;
  transition: 0.1s ease;
  user-select: none;
}
.startbtn:active,
.startbtn:hover {
  color: #448cf1;
  background: #ffffff;
  border: 0.05rem solid #609aff;
  text-shadow: 0 0 0.25rem #ffffff;
}
/* controldv end */

/* Scrollbtns START */
.scroll-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: #fff;
  border: none;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0.5rem;
}
.scroll-button.left:hover,
.scroll-button.right:hover {
  color: rgb(255, 255, 255);
}
.scroll-button.right,
.scroll-button.left {
  color: rgba(255, 255, 255, 0.778);
  z-index: 99;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.671);
  width: 2.5rem;
  height: 100%;
  position: absolute;
  bottom: 0;
}
.scroll-button.left {
  left: 0;
}
.scroll-button.right {
  right: 0;
}
/* Scrollbtns END */

/* games START */
.ingames-dv {
  box-sizing: border-box;
  padding-right: 0.5rem;
  position: absolute;
  display: flex;
  justify-content: start;
  align-items: center;
  top: 32rem;
  max-width: 35rem;
  width: 100%;
  background-color: rgb(255, 255, 255);
  border: 0.05rem solid gray;
}
.ingames-dv-sub1 {
  display: flex;
  flex-direction: row;
  justify-content: start;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  padding-left: 0.5rem;
  width: 100%;
  overflow-x: scroll;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.ingames-dv-sub1::-webkit-scrollbar {
  display: none;
}

.ingames-dv-sub1 {
  scrollbar-width: none;
}

.ingames-dv-sub2 {
  flex-direction: row;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  align-items: center;
}

.game-link {
  position: relative;
  padding: 0.25rem;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 3.5rem;
  height: 1.5rem;
  background-color: #0083e0;
  color: #ffffff;
  text-decoration: none;
  border-radius: 0.25rem;
  transition: background-color 0.3s;
  overflow: hidden;
  text-align: center;
}

.ingames-dv-sub2 .game-link::before {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #0008ff;
  transition: transform 0.3s ease, top 0.3s ease;
  z-index: -1;
}

.ingames-dv-sub2 .game-link:hover::before {
  top: 0;
}

.ingames-dv-sub2 .game-link:hover {
  transform: scale(1);
}

.ingames-dv-sub2 .game-link:active {
  transform: scale(1.1);
}
/* games END */
 .startover-dv {
    position: absolute;
    width: 100%;
    bottom: 1rem;
    justify-content: center;
}
.startover-dv button {
  width: 100%;  
  height: 3rem;
  max-width: 35rem;
  border: none;
    border-top: 1px solid gray;
  border-bottom: 1px solid #c1c1c1; 
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
border-top: 1px solid #c1c1c1;
  z-index: 999; 
  color: white;
  font-weight: bold;
  background-color: #00ed14;
} 
.startover-dv button:hover {
  opacity: 0.7;
} 
.startover-dv button:disabled {
  opacity: 0.2;
  cursor: not-allowed;
  pointer-events: none;
}
/*  */
.div-li {
    background-color: rgba(0, 0, 0, 0.801);
    width: 100%;
    padding: 0 1rem;
    height: 3rem;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2.5rem;
}
.div-li p {
    color: rgb(21, 255, 0);
}
.div-li span {
  position: absolute;
  color: white;
}
.logout {
    right: 1rem;
    color: white;
    text-decoration: none;
}
.logout:hover {
    color: red;
}