/* -- Basic Style -- */
* {
  box-sizing: border-box;
}

body {
  background: #f8e9d0;
  padding: 0;
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;


}

.board {
  display: flex;
}

.gamework {
  width: 75%;
  position: relative;
  height: 100vh;

}

.game {
  position: absolute;
  height: 100%;
  right: 0;
  left: 0;
  background: #fdf8e3;
  background: #61975f url(../img/pattern.png);
  overflow: hidden;

}

/* -- Sidebar Style -- */
.sidebar {
  height: 300px;
  flex-direction: column;



}

.sidebar .sidebar-inner {
  padding-top: 30px;
  background: #ebd5a2;
  color: #764b2e;
  padding: 5%;
  border-radius: 15px;
  border: 3px solid #cb6a4a;
  box-shadow: 0px 3px 3px #626262;
  border-color: #76260d;
  outline: 3px solid #ffd2a2;
  box-shadow: inset 0px 0px 5px rgba(0, 0, 0, 0.5);
  position: relative;
  width: 90%;
  margin-top: 10%;
}

.sidebar .scorebox {
  width: 90%;
  padding: 5%;
  color: rgb(118, 38, 13);
  font-size: 30px;
  box-shadow: rgba(0, 0, 0, 0.5) 0px 0px 5px inset;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: bold;
  border-width: 3px;
  border-style: solid;
  border-image: initial;
  background: #ffd2a2;
  border-color: rgb(118, 38, 13);
  border-radius: 15px;
  outline: rgb(255, 210, 162) solid 3px;
  margin: 30px auto;

}

.sidebar .scorebox-title {
  color: #ebd5a2;
  text-align: left;
  font-size: 26px;
  background: rgb(118, 38, 13);
  border-radius: 10px;
  padding: 10px;
}

.sidebar .scorebox-content {
  font-size: 50px;
  padding: 10px 10px 0px 10px;
  text-align: center;

}

.sidebar .box {
  width: 100%;
  font-size: 16px;
  margin: 0px 15px 0 0;
  align-items: flex-start;
  justify-content: flex-start;
  flex-direction: row;
  height: auto;
  position: relative;
  padding: 5px;

  font-family: Arial, Helvetica, sans-serif;

  font-weight: bold;
}

.sidebar .box-title {
  background: none;
  color: #77281b;
  padding: 0px 10px 10px 10px;
  width: 100%;
  border-radius: 10px;
  text-align: left;
  font-size: 1.2rem;
}

.sidebar .box-title i {
  position: absolute;
  right: 116%;
  width: 3rem;
  height: 3rem;
  background: #772814;
  color: #ebd5a2;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 5px;

}

.sidebar .box-title span {
  background: none;
  color: #77281b;
  border-radius: 10px;
  text-align: left;
  padding: 10px;
  width: auto;
  border: 1px dashed;
  width: 100%;
  display: flex;
  position: relative;
  align-items: center;
}

.sidebar .box-title span::after {
  content: "";
  display: block;
  height: 1px;
  width: 3rem;
  border-top: 1px dashed #77281b;
  background: none;
  flex: 1;
  position: absolute;
  left: 100%;
}

.sidebar .box-title span::before {
  content: "";
  display: block;
  height: 1px;
  width: 3rem;
  border-top: 1px dashed #77281b;
  background: none;
  flex: 1;
  position: absolute;
  right: 100%;
}



.sidebar .box-content {
  font-size: 1.2rem;
  text-align: center;

  border-radius: 10px;
  display: flex;
  align-items: center;

  text-align: center;
  justify-content: center;
  position: absolute;
  left: 115%;
  width: 3rem;
  height: 3rem;
  background: #772814;
  color: #ebd5a2;
  z-index: 1;
  top: 0;
  padding: 10px;
}

/* -- Words Style -- */
.words {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 5px;
  position: absolute;
  bottom: 0;
  height: 100%;
  z-index: 0;
  width: 100%;
  justify-content: flex-end;
}

.words .word {
  display: flex;
  flex-direction: row;
  gap: 4px;
  width: auto;
  justify-content: flex-start;
}

.words .word .letter {
  width: 80px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #76260d;
  background: #994c31;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 30px;
  transition: 0.5s;
  position: relative;
  text-transform: capitalize;
  border: 3px solid #cb6a4a;
  background: #fbad51;
  border-color: #76260d;
  border-radius: 5px;
  box-shadow: inset 0px 0px 3px rgba(0, 0, 0, 0.5);
}

.words .word .letter img {
  height: 100%;
}

.words .word .letter.true {
  background: #e76326;
  color: #fff;
  transition: 0.5s;
}

.words .word .letter.false {
  background: #fff;
  color: #222;
  transition: 0.5s;
  border: 1px solid #222;
}

/* -- Gun Style -- */
.gun {
  position: absolute;
  bottom: 0;
  width: 150px;
  height: 40px;
  left: calc(50% - 75px);
  background-size: cover;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  border-radius: 30px;
  border: 3px solid #76260d;
  padding: 5px;
  background: #fbb05e;
}

.gun::before {
  content: "";
  display: block;
  width: 50px;
  height: 10px;
  background: #222222;
  top: -14px;
  position: absolute;
  left: calc(50% - 27px);
  border-top: 1px solid #61975f;
}

.gun .circle {
  width: 25px;
  height: 25px;
  border-radius: 20px;
  border: 3px solid #222;
  position: relative;
  background: #61975f;
}

.gun .circle.rotate {
  transform: rotate(-360deg);
  transition: 0.5s;
}

.gun .circle.rotate-reverse {
  transform: rotate(360deg);
  transition: 0.5s;
}

.gun .circle::before {
  content: "";
  display: block;
  position: absolute;
  background: white;
  width: 3px;
  height: 3px;
  border-radius: 3px;
  top: 0;
  left: 0;
}

.fires {
  width: 30px;
  height: 40px;
  position: absolute;
  bottom: 55px;
  left: calc(50% - 15px);

}

.restartBtn {
  padding: 10px 18px;
  background: #fff;
  color: #772814;
  transition: 0.5s;
  cursor: pointer;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem !important;
  border: 3px solid #cb6a4a;
  box-shadow: 0px 3px 3px #fff;
  border-color: #76260d;
  border-radius: 5px;
  outline: 3px solid #fff;
  box-shadow: inset 0px 0px 5px rgba(0, 0, 0, 0.5);
  margin: auto;
  width: 100%;
  font-weight: bold;
}

.restartBtn.view {
  display: block;
}

#restart {
  margin: auto;
  text-align: center;
  width: 50%;
  display: none;
}

#restart.view {
  display: block;
}

#restart span {
  display: block;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: bold;
  margin: 5px auto;
}

.words .word .letter.img {
  background: #fff;
  border: 2px solid #222;
  padding: 5px;
}

.sidebar-title {
  position: absolute;
  width: 73%;
  left: 12%;
  bottom: 100%;
  background: #76260d;
  color: #ebd5a2;
  font-weight: bold;
  font-family: arial;
  padding: 12px 5px;
  text-align: center;
  font-size: 1.5rem;
  border-radius: 10px 10px 0 0;
  margin-bottom: 0;
}

#done.view {
  display: block;
  width: 200px;
  height: 50px;
  background: #406c46;
  text-align: center;
  margin: 20px auto;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: arial;
  border-radius: 5px;
  color: #fbb05e;
  font-size: 30px;
  padding: 10px 20px;
  position: absolute;
  left: calc(50% - 100px);
  top: calc(50% - 25px);
  text-transform: uppercase;
  border: 2px solid rgba(0, 0, 0, 0.5);
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
}


/*--fire--*/
.firepit {
  position: absolute;
  bottom: 0;
  left: 0;
}

.fire {
  position: relative;
  width: 30px;
  height: 30px;
}

.fire .flame {
  position: absolute;
  bottom: 0;
  left: 0;
  opacity: 0.9;
  width: 100%;
  height: 100%;
  border-bottom-right-radius: 70%;
  border-bottom-left-radius: 70%;
  border-top-left-radius: 70%;
  transform: rotate(-45deg) skew(-10deg, -10deg);
  background-color: #ff2200;
  background-image: linear-gradient(to bottom left, rgba(255, 34, 0, 0.9), rgba(255, 106, 0, 0.7));
  z-index: 1;
  animation-iteration-count: infinite;
  animation-fill-mode: forwards;
  animation-name: burn-left;
  animation-duration: 300ms;
}

.fire .flame:nth-of-type(2n) {
  animation-name: burn-right;
  animation-duration: 400ms;
}

.fire .flame:nth-of-type(2) {
  height: 80%;
  width: 80%;
  left: 10%;
  background-color: #ff6a00;
  background-image: linear-gradient(to bottom left, rgba(255, 106, 0, 0.1), rgba(255, 200, 0, 0.1));
  z-index: 2;
}

.fire .flame:nth-of-type(3) {
  height: 50%;
  width: 50%;
  left: 25%;
  background-image: linear-gradient(to bottom left, #ffc800, #ffffff);
  z-index: 3;
}

.fire .flame:nth-of-type(4) {
  height: 30%;
  width: 30%;
  left: 35%;
  background-color: white;
  background-image: linear-gradient(to bottom left, rgba(255, 255, 255, 0.3), rgba(0, 55, 255, 0.9));
  opacity: 1;
  z-index: 4;
}

.spark {
  position: absolute;
  bottom: 46%;
  left: 15%;
  width: 3px;
  height: 3px;
  background-color: rgba(255, 106, 0, 0.4);
  animation-name: fly-up-burnout-1;
  animation-duration: 6s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-delay: 0.4s;
}

.spark:nth-of-type(2n) {
  animation-name: fly-up-burnout-2;
  animation-duration: 8.4s;
  animation-delay: 1s;
}

.spark:nth-of-type(3n) {
  animation-delay: 1.9s;
  animation-duration: 8s;
  left: 55%;
}

.spark:nth-of-type(4n) {
  animation-delay: 2.6s;
  animation-duration: 7s;
  left: 88%;
}

.spark:nth-of-type(5n) {
  animation-delay: 1.4s;
  animation-duration: 7s;
  left: 22%;
}

.spark:nth-of-type(6n) {
  animation-delay: 3.2s;
  left: 61%;
}

.spark:nth-of-type(7n) {
  animation-delay: 0.8s;
  animation-duration: 5s;
  left: 64%;
}

.spark:nth-of-type(8n) {
  animation-delay: 5s;
  left: 19%;
}

.spark:nth-of-type(9n) {
  animation-delay: 4s;
  animation-duration: 6.8s;
  left: 22%;
}

.spark:nth-of-type(10n) {
  animation-delay: 5.2s;
  left: 61%;
}

.spark:nth-of-type(11n) {
  animation-delay: 3.5s;
  animation-duration: 8s;
  left: 81%;
}

.spark:nth-of-type(12n) {
  animation-delay: 2s;
  left: 85%;
}

@keyframes burn-left {

  0%,
  100% {
    transform: rotate(-45deg) skew(-10deg, -10deg) scale(1);
  }

  30%,
  60% {
    transform: rotate(-44deg) skew(-12deg, -12deg) scale(1.01);
  }
}

@keyframes burn-right {

  0%,
  100% {
    transform: rotate(-45deg) skew(-10deg, -10deg) scale(1);
  }

  30%,
  60% {
    transform: rotate(-46deg) skew(-6deg, -6deg) scale(1.01);
  }
}

@keyframes fly-up-burnout-1 {
  0% {
    transform: translate(0, 0);
    opacity: 1;
  }

  33% {
    transform: translate(12px, -70px);
  }

  66% {
    transform: translate(0, -140px);
    opacity: 0.6;
  }

  100% {
    transform: translate(6px, -200px);
    opacity: 0;
  }
}

@keyframes fly-up-burnout-2 {
  0% {
    transform: translate(0, 0);
    opacity: 1;
  }

  50% {
    transform: translate(-10px, -80px);
  }

  80% {
    transform: translate(-4px, -140px);
    opacity: 0.6;
  }

  100% {
    transform: translate(-6px, -160px);
    opacity: 0;
  }
}




.title {
  font-size: 24px;
  padding: 10px;
}



.restartBtn {
  font-size: 22px;
  padding: 12px 18px;
}


.board {
  display: flex;
}



.sidebar {
  width: 27%;
  height: auto;
  padding-top: 0px;
  display: flex;
  flex-direction: ;
  align-items: center;
  padding: 4% 4% 4% 6%;
  justify-content: center;
}







#restart {
  margin: 0px 0 0 0;
  text-align: center;
  width: auto;

}

#restart span {
  font-size: 1.2rem;
  color: #772814;
}


.restartBtn {
  padding: 10px 18px;
  border-radius: 10px;
}

/************ add new********************/
.add-new-toggle {
  background: #e76326;
  width: 100%;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.5s;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  display: none;
  color: #fff;
  padding: 10px 18px;
  border-radius: 10px;
  border: 3px solid #cb6a4a;
  box-shadow: 0px 3px 3px #626262;
  border-color: #76260d;
  outline: 3px solid #ffd2a2;
  box-shadow: inset 0px 0px 3px rgba(0, 0, 0, 0.5);
  font-weight: bold;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
}

.add-new-toggle.view {
  display: flex;
  justify-content: center;
  align-items: center;
}

.add-new-toggle .rotate {
  transform: rotate(45deg);
  transition: 0.5s;
}

.add-new-toggle i {
  transition: 0.5s;
  display: block;
  position: relative;
}

.add-new-toggle i:after {
  content: "";
  height: 3px;
  display: block;
  width: 25px;
  background: #fff;
}

.add-new-toggle i:before {
  content: "";
  height: 3px;
  display: block;
  width: 25px;
  background: #fff;
  position: absolute;
  top: 0;
  bottom: 0;
  margin: auto;
  transform: rotate(90deg);
}

.add-new-toggle.close-panel {
  background: #2b2549;
  border-radius: 0;
  position: fixed;
  margin-left: -13px;
  transition: 0.5s;
  bottom: 0;
}

/**************** form ****************/
.form-container {
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 10px;
  width: 100%;
  height: 100%;
  background: #0a0a0aad;
  position: fixed;
  z-index: 10;
  justify-content: center;
  align-items: center;
  display: flex;
  opacity: 0;
  flex-direction: column;
  z-index: -1;
}

.form-container.view {
  z-index: 10;
  transition: 1s;
  opacity: 1;
}

.form-container .form-control {
  display: block;
  color: #222;
  background-color: #ffffff;
  border: none;
  border: 1px solid #5d5959;
}

.form-container form {
  margin-top: 15px;
}

.form-container .form-control:focus {
  color: #fff360 !important;
  background-color: #2b2549;
  border-color: #2b2549;
  box-shadow: none;
}

.form-container .form-control::-moz-placeholder {
  color: #222 !important;
}

.form-container .form-control:-ms-input-placeholder {
  color: #222 !important;
}

.form-container .form-control::placeholder {
  color: #222 !important;
}

.form-container .form-control:focus::-moz-placeholder {
  color: #fff360 !important;
}

.form-container .form-control:focus:-ms-input-placeholder {
  color: #fff360 !important;
}

.form-container .form-control:focus::placeholder {
  color: #fff360 !important;
}

.form-container .error {
  color: #f44336;
}

.form-container .error p {
  margin-bottom: 5px;
  background: #ffdedc;
  padding: 7px 10px;
  border: 1px solid #f0b2ae;
}

.form-container .previewimg {
  width: auto;
  max-width: 100%;
  max-height: 100px;
  padding: 3px;
  background: #fff;
  border: 1px solid #ddd;
  padding: 5px;
  display: block;
}

.form-container .form-group {
  margin-bottom: 5px;
}

#close-form {
  font-size: 30px;
  cursor: pointer;
  position: absolute;
  left: 30px;
  top: 10px;
  color: #b1b1b1;
}

.wordimg {
  width: 100px;
  padding: 5px;
  border: 1px solid #ddd;
  border-radius: 3px;
  height: 80px;
}

#data {
  background: white;
  padding: 0px 30px;
  width: 50%;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  flex-wrap: wrap;
  flex-direction: row;
  width: 100%;
}

.wordimg-container {
  position: relative;
}

.wordimg-container i {
  position: absolute;
  top: 10px;
  left: 10px;

}

.num {
  display: none;
}

#data>div {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  position: relative;
}

#data>div p {
  margin: 5px auto;
}

#data i {
  padding: 5px;
  background: #ffffffd6;
  color: #696969;
  align-self: center;
  display: flex;
  width: 30px;
  height: 30px;
  justify-content: center;
  align-items: center;
  position: absolute;
  z-index: 1;
  left: 6px;
  top: 6px;
}

.deleteicon {
  cursor: pointer;
}

.panel {
  background: #fff;
  width: 50%;
  margin: 10% auto;
  position: relative;
  overflow-y: scroll;
  min-height: 95vh;
  max-height: 95vh;
}

.panel form {
  width: 50%;
  margin: 10px 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.panel form input[type="text"] {
  width: 100%;
  height: 40px;
  padding: 10px;
}

.panel form button.addnewbtn,
.panel form button.delallbtn {
  width: 150px;
  height: 40px;
  color: #fff;
  border: none;
  cursor: pointer;
}

.panel form button.delallbtn {
  background: #e76326;
}

.panel form button.addnewbtn {
  background: #07aa94;
}

.panel form button.popupbtn {
  color: #fff;
  border: none;
  padding: 5px 10px;
  border: 2px solid;
  font-weight: bold;
}

.panel form button.confirm {
  color: #07aa94;
  cursor: pointer;

}

.panel form button.cancel {
  color: #e76326;
  cursor: pointer;
}

.popup {
  display: none;
  transition: 1s;
}

.popup-inner p {
  margin-top: 0;
  margin-bottom: 10px;
}

.popup-btns {
  margin-bottom: 5px;
}

.popup.view {
  transition: 1s;
  display: flex;
  align-items: center;
}

.panel-title {
  margin: 50px 30px 20px 30px;
  background: #e3e3e3;
  padding: 10px;
  font-size: 1rem;
  color: #222;
}

.panel-title:last-of-type {
  margin-top: 20px !important;
}