body {
  background: linear-gradient(
    90deg,
    rgba(0, 194, 32, 1) 0%,
    rgba(113, 77, 231, 1) 0%,
    rgba(93, 220, 255, 1) 72%
  );
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.details_div {
  display: flex;
  justify-content: space-around;
  width: 70vw;
  margin-bottom: 40px;
}

.details_div > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* background-color: rgba(255, 255, 255, 0.8); */
  border-radius: 15px;
  padding: 20px;
  width: 25%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  text-align: center;
}
.Back-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  /* background-color: rgba(255, 255, 255, 0.8); */
  border-radius: 15px;
  padding: 20px;
  width: 100px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  text-align: center;
  cursor: pointer;
  margin-bottom: 20px;
  color: white;
}
.Back-button:hover {
  transform: scale(1.05);
  transition: 0.2s ease all;
}
.home_btn i {
  font-size: 2em;
  /* color: white; */
}
.home_btn {
  cursor: pointer;
}
.home_btn:hover {
  transform: scale(1.05);
  transition: 0.2s ease all;
}

.load {
  background-color: rgba(113, 77, 231, 1);
}

.load h1 {
  font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;
  font-size: 1.5em;
  color: white;
}

.load hr {
  height: 5px;
  border-radius: 20px;
  width: 50%;
  background-color: rgb(30, 9, 97);
  border: none;
}

.menu {
  /* background-color: white; */
  color: #181818;
  padding: 10px;
  cursor: pointer;
  /* border: 2px solid #202639;
  border-radius: 10px; */
  font-size: 20px;
}
.menu:hover {
  transform: scale(1.05);
  transition: 0.2s ease all;
}

.container1 {
  background-color: rgba(75, 26, 26, 0.942);

  padding: 50px 50px 50px 50px;
  border-radius: 30px;
}
.container1 .rules article {
  padding: 30px;
  border-radius: 30px;
  background-color: burlywood;
}
.navbar {
  margin-left: auto;
}
.h2 {
  font-size: 15px;
  text-align: center;
  background-color: red;
  font-family: "cursive";
}
html {
  scroll-behavior: auto;
}
.namesa {
  font-style: italic;
}
#maina {
  display: flex;
}
#maina div {
  display: inline-block;
}
.instructions {
  background-color: black;
  height: 400px;
  width: 500px;
  margin-right: auto;
  display: flex;
  flex-direction: column;
}

.instructions article {
  display: flex;
  width: 80%;
  background-color: blue;
  margin-left: auto;
  margin-right: auto;
  margin-top: auto;
  margin-bottom: auto;
  border-radius: 60px;
  flex-direction: column;
}
.instructions article h1 {
  margin-left: auto;
  margin-right: auto;
}

.container {
  background-image: linear-gradient(
    to left,
    #3f4c77,
    #3c4871,
    #39446b,
    #364165,
    #333d5f,
    #303a5a,
    #2e3654,
    #2b334f,
    #283049,
    #252c44,
    #23293e,
    #202639
  );
  box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px,
    rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px,
    rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
  padding: 40px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.title {
  color: mintcream;
  text-transform: uppercase;
  font-size: 1em;
  letter-spacing: 0.3em;
}

.timer {
  color: mintcream;
  margin-top: 1em;
  margin-bottom: 1em;
  font-size: 25px;
  font-weight: 500;
  letter-spacing: 4px;
}

.keyboard {
  display: flex;
  flex-direction: column;
}

.row {
  list-style: none;
  display: flex;
}

.score {
  font-size: 24px;
  text-align: center;
  margin-top: 20px;
}

.stage {
  width: 100%;
  height: 400px;
  background-color: #f0f0f0;
  margin-top: 20px;
  position: relative;
}

.rating-prompt {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.rating-container {
  background: white;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
}

.stars {
  display: flex;
  justify-content: center;
  margin: 10px 0;
}

.star {
  font-size: 2rem;
  cursor: pointer;
  margin: 0 5px;
}

.star.selected {
  color: gold;
}

.buttons {
  margin-top: 10px;
}

.feedback-link {
  margin-top: 10px;
}

.feedback-link a {
  color: blue;
  text-decoration: underline;
}

.feedback-container {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.feedback-content {
  background: white;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
}

textarea {
  width: 80%;
  padding: 10px;
  font-size: 16px;
}

button {
  margin-top: 10px;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
}

li {
  height: 3em;
  width: 3em;
  color: rgba(0, 0, 0, 0.7);
  border-radius: 0.4em;
  line-height: 3em;
  letter-spacing: 1px;
  margin: 0.4em;
  transition: 0.3s;
  text-align: center;
  font-size: 1em;
}

#tab {
  width: 5em;
}

#caps {
  width: 6em;
}

#left-shift {
  width: 8em;
}

#enter {
  width: 6em;
}

#right-shift {
  width: 8em;
}

#back {
  width: 5em;
}

.pinky {
  background-color: crimson;
  border: 2px solid crimson;
}
.pinky.selected {
  color: crimson;
}

.ring {
  background-color: coral;
  border: 2px solid coral;
}
.ring.selected {
  color: coral;
}

.middle {
  background-color: darkorange;
  border: 2px solid darkorange;
}
.middle.selected {
  color: darkorange;
}

.pointer1st {
  background-color: gold;
  border: 2px solid gold;
}
.pointer1st.selected {
  color: gold;
}

.pointer2nd {
  background-color: khaki;
  border: 2px solid khaki;
}
.pointer2nd.selected {
  color: khaki;
}

.fill-out-key {
  background-color: slategrey;
  border: 2px solid slategrey;
}

.selected {
  background-color: transparent;
  -webkit-animation: vibrate-1 0.3s linear infinite both;
  animation: vibrate-1 0.3s linear infinite both;
}
.wrongSelection {
  background-color: red;
  border: 5px solid black;
}

/* ----------------------------------------------
 * Generated by Animista
 * Licensed under FreeBSD License.
 * See http://animista.net/license for more info. 
 * w: http://animista.net, t: @cssanimista
 * ---------------------------------------------- */

.hit {
  -webkit-animation: hit 0.3s cubic-bezier(0.39, 0.575, 0.565, 1) both;
  animation: hit 0.3s cubic-bezier(0.39, 0.575, 0.565, 1) both;
}

@-webkit-keyframes hit {
  0% {
    -webkit-transform: scale(1.2);
    transform: scale(1.2);
  }
  100% {
    -webkit-transform: scale(1);
    transform: scale(1);
  }
}
@keyframes hit {
  0% {
    -webkit-transform: scale(1.2);
    transform: scale(1.2);
  }
  100% {
    -webkit-transform: scale(1);
    transform: scale(1);
  }
}

@-webkit-keyframes vibrate-1 {
  0% {
    -webkit-transform: translate(0);
    transform: translate(0);
  }
  20% {
    -webkit-transform: translate(-2px, 2px);
    transform: translate(-2px, 2px);
  }
  40% {
    -webkit-transform: translate(-2px, -2px);
    transform: translate(-2px, -2px);
  }
  60% {
    -webkit-transform: translate(2px, 2px);
    transform: translate(2px, 2px);
  }
  80% {
    -webkit-transform: translate(2px, -2px);
    transform: translate(2px, -2px);
  }
  100% {
    -webkit-transform: translate(0);
    transform: translate(0);
  }
}
@keyframes vibrate-1 {
  0% {
    -webkit-transform: translate(0);
    transform: translate(0);
  }
  20% {
    -webkit-transform: translate(-2px, 2px);
    transform: translate(-2px, 2px);
  }
  40% {
    -webkit-transform: translate(-2px, -2px);
    transform: translate(-2px, -2px);
  }
  60% {
    -webkit-transform: translate(2px, 2px);
    transform: translate(2px, 2px);
  }
  80% {
    -webkit-transform: translate(2px, -2px);
    transform: translate(2px, -2px);
  }
  100% {
    -webkit-transform: translate(0);
    transform: translate(0);
  }
}

/* ------------for button----------------------------- */

.btn {
  margin-top: 10px;
  padding-left: 60px;
  text-align: center;
  display: flex;
  justify-content: space-between;
}
.button {
  align-items: center;
  appearance: none;
  margin-right: 30px;
  background-color: #fcfcfd;
  border-radius: 4px;
  border-width: 0;
  box-shadow: rgba(45, 35, 66, 0.4) 0 2px 4px,
    rgba(45, 35, 66, 0.3) 0 7px 13px -3px, #d6d6e7 0 -3px 0 inset;
  box-sizing: border-box;
  color: #36395a;
  cursor: pointer;
  display: inline-flex;
  font-family: "JetBrains Mono", monospace;
  height: 48px;
  justify-content: center;
  line-height: 1;
  list-style: none;
  overflow: hidden;
  padding-left: 16px;
  padding-right: 16px;
  position: relative;
  text-align: left;
  text-decoration: none;
  transition: box-shadow 0.15s, transform 0.15s;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  white-space: nowrap;
  will-change: box-shadow, transform;
  font-size: 18px;
}

.button:focus {
  box-shadow: #d6d6e7 0 0 0 1.5px inset, rgba(45, 35, 66, 0.4) 0 2px 4px,
    rgba(45, 35, 66, 0.3) 0 7px 13px -3px, #d6d6e7 0 -3px 0 inset;
}

.button:hover {
  box-shadow: rgba(45, 35, 66, 0.4) 0 4px 8px,
    rgba(45, 35, 66, 0.3) 0 7px 13px -3px, #d6d6e7 0 -3px 0 inset;
  transform: translateY(-2px);
}

.button:active {
  box-shadow: #d6d6e7 0 3px 7px inset;
  transform: translateY(2px);
}
.start-button:hover {
  background-color: #d2fdae;
}
.start-button:active {
  background-color: #29bf2e;
}

.reset-button:hover {
  background-color: #de5b4e;
}
.reset-button:active {
  background-color: #f0420f;
}

/* CSS for the popup and backdrop */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.popup {
  background-color: white;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.popup-overlay.hidden {
  display: none;
}
.keyContainer {
  display: flex;
  width: 70vw;
  justify-content: space-around;
  color: white;
  font-size: 20px;
}
.wrTeller {
  font-size: 20px;
  font-weight: 700;
  color: white;
}

/* Custom countdown message styles */
#countdownMessage {
  display: none;
  position: fixed;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(255, 0, 0, 0.8);
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 20px;
  z-index: 1000;
}
