* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

.container {
  font-size: 16px;
  background-color: #ffffff;
  width: 90vw;
  max-width: 34em;
  position: absolute;
  transform: translate(-50%, -50%);
  top: 50%;
  left: 50%;
  padding: 3em;
  border-radius: 0.6em;
  box-shadow: 0 1.2em 2.4em rgba(111, 85, 0, 0.25);
}
#options-container {
  text-align: center;
}
#options-container div {
  width: 100%;
  display: flex;
  justify-content: space-between;
  margin: 1.2em 0 2.4em 0;
}
#options-container button {
  padding: 0.6em 1.2em;
  border: 3px solid #000000;
  background-color: #ffffff;
  color: #000000;
  border-radius: 0.3em;
  text-transform: capitalize;
}
/* time left */
#timeDisplay{
  width: 100%;
  display: flex;
 
  margin: 1.2em 0 2.4em 0;
  padding: 0.6em 1.2em;
 
 
  color: #000000;
 
  text-transform: capitalize;
}
#options-container button:disabled {
  border: 3px solid #808080;
  color: #808080;
  background-color: #efefef;
}
#options-container button.active {
  background-color: #f4c531;
  border: 3px solid #000000;
  color: #000000;
}
.letter-container {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6em;
}
#letter-container button {
  height: 2.4em;
  width: 2.4em;
  border-radius: 0.3em;
  background-color: #ffffff;
}
.new-game-popup {
  background-color: #ffffff;
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border-radius: 0.6em;
}

#user-input-section {
  display: flex;
  justify-content: center;
  font-size: 1.8em;
  margin: 0.6em 0 1.2em 0;
}
canvas {
  display: block;
  margin: auto;
  border: 1px solid #000000;
}
.hide {
  display: none;
}
#result-text h2 {
  font-size: 1.8em;
  text-align: center;
}
#result-text p {
  font-size: 1.25em;
  margin: 1em 0 2em 0;
}
#result-text span {
  font-weight: 600;
}
#new-game-button{
  font-size: 1.25em;
  padding: 0.5em 1em;
  background-color: #f4c531;
  border: 3px solid #000000;
  color: #000000;
  border-radius: 0.2em;
}
.win-msg {
  color: #39d78d;
}
.lose-msg {
  color: #fe5152;
}


.sub-header h1 {
  font-size: 40px;
}
.header {
  min-height: 100vh;
  width: 100%;

  background-image: linear-gradient(rgba(12, 16, 48, 0.7), rgba(9, 20, 56, 0.7)),
    url(img/banner.webp);

  background-size: cover;
  background-position: center;
  position: relative;
}

.bdr{
  background-color: wheat;
}

nav {
  display: flex;
  padding: 2% 6%;

  justify-content: space-between;
  align-items: center;
}
nav img {
  width: 80px;
  background-image: linear-gradient(rgba(13, 20, 48, 0.7), rgba(4, 9, 30, 0.7));
  opacity: 0.8;
  border-image: round;
  border: 2px solid black;
  border-radius: 40px;
}
.nav-links {
  flex: 1;
  text-align: right;
}
.nav-links ul li {
  list-style: none;
  display: inline-block;
  padding: 18px 32px;
  position: relative;
}
.nav-links ul li a {
  color: white;
  text-decoration: none;
  font-size: 1.3rem;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}
.nav-links ul li a::after {
  content: "";
  width: 0%;
  height: 2px;
  background: #f44336;
  display: block;
  margin: auto;
  transition: 0.5s;
}
.nav-links ul li a:hover::after {
  width: 100%;
}

/* rules */
.container-rule {
  display: grid;
  grid-row-gap: 10pb;
  background-color: purple;
  display: grid;
  row-gap: 15px;
  column-gap: 15px;
  grid-template-areas:
    "navbar navbar navbar navbar"
    "section section section aside"
    "footer footer footer aside ";
}

.bdr {
  /* background-clip:url(img/video.mp4); */

  border: 2px solid black;
  padding: 34px;
  margin: 20px;
}

.level {
  cursor: pointer;
}

#level {
  display: none;
}
.level:hover {
  color: orange;
}
body {
  font-family: Arial, Helvetica, sans-serif;
}
#new-game-button {
  cursor: pointer;
}
#new-game-button:hover {
  background-color: green;
  color: white;
}
/* score */

#timeDisplay{
  color: white;
}
/* start button */
#start-button{
  font-size: 1.25em;
  padding: 0.5em 1em;
 background: transparent;
  /* border: 3px solid #000000; */
  color:white;
  /* border-radius: 0.2em; */
  cursor: pointer;
}
#start-button:hover {
  background-color: green;
  color: white;
}
.center{
  /* background: black; */
  color: white;
  position: relative;
  top: 345px;
  padding: 9px 20px;
  text-align: center;
  animation: mymove 15s ease-in-out 2s infinite ;

}

@keyframes mymove {
  from {right: 0px;}
  to {right: 1200px;}
  }
  