html,
body {
  height: 100%;
  font-family: Helvetica Neue, Arial, sans-serif;
  margin: 0;
}

.main {
  overflow: auto;
  padding: 5px 0;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.wrapper {
  width: 100%;
  min-height: 100vh;
  box-sizing: border-box;
  overflow: hidden;
  margin-right: auto;
  margin-left: auto;
  max-width: 100% !important;
  background-color: #000000;
}

.home {
  padding-left: 6%;
  padding-right: 6%;
  padding-top: 3%;
}

.puzzle-hint-btn,
.puzzle-hints,
.puzzle-question,
.continue-btn {
  padding-left: 5%;
  padding-right: 5%;
}

.header {
  display: flex;
  align-items: center;
}

.navbar {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

.navbar>img {
  width: 100px;
  margin-left: 20px;
  margin-right: 20px;
}

.nav-text {
  color: #ffffff;
  font-size: 24px;
  font-weight: bold;
  max-width: 400px;
  margin-left: 20px;
  margin-right: 20px;
}

.nav-text h3 {
  margin: 12px 0;
}

.frame {
  width: 400px;
  margin-top: 15px;
  margin-bottom: 15px;
}

#feedback {
margin: 10px 0;
}

.answer-input {
  margin-bottom: 20px;
}

.home-title {
  font-size: 20px;
}

input {
  padding: 11px 16px;
  margin: 8px 0;
  box-sizing: border-box;
  border: none;
  border-radius: 5px;
  font-size: 16px;
}

input::placeholder {
  color: #333;
  font-size: 15px;
}

.btn {
  border: none;
  padding: 8px 18px;
  outline: none;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  border-radius: 4px;
  background: linear-gradient(to right, #ca9834, #f7bc47);
  cursor: pointer;
  margin-left: 15px;
}

.code-input {
  padding-top: 25px;
  margin-bottom: 30px;
}






/* main  page css */





.puzzle-container {
  position: relative;
  display: inline-block;
  width: 350px;
  height: 350px;
  overflow: hidden;
  cursor: pointer;
}

.puzzle-view {
  position: relative;
  width: 450px;
  height: 450px;
  margin: 10px auto;
}

.puzzle-img,
.puzzle-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.puzzle-frame {
  z-index: 1;
}

.puzzle-border {
  border: 2px solid transparent;
  margin: 20px;
  box-sizing: border-box;
  z-index: 3;
  position: relative;
  height: 89%;
}

.blue-border {
  border: 3px solid blue;
}

.green-border {
  border: 3px solid green;
}

.red-border {
  border: 3px solid red;
}

.puzzle-description {
  margin: 20px auto;
}

.game-head {
  margin-top: 10px;
  margin-bottom: 10px;
  border-bottom: #484848 1px solid;
  display: flex;
  justify-content: center;
  align-items: center;
}

.frames {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-flow: row;
  gap: 16px;
}

.frames img {
  max-width: 100%;
  height: auto;
  cursor: pointer;
}

input:focus {
  font-size: 16px;
}

#answerForm {
  display: flex;
  align-items: center;
}

.puzzle-input {
  display: flex;
  flex-flow: row;
  justify-content: center;
  align-items: center;
  margin-top: 15px;
  font-size: 16px;
  border-radius: 6px;
}

.puzzle-input input,
.puzzle-input button {
  box-sizing: border-box;
  height: 40px;
}

.puzzle-input input {
  margin-right: 0px;
  min-width: 200px;
  vertical-align: middle;
  border: 2px #dbdbdb solid;
  float: left;
}

.puzzle-input input:focus {
  outline: 0;
}

.puzzle-input input::placeholder {
  color: #8f8f8f;
  font-size: 15px;
}

.error-message{
  margin-top: 10px;
  color: #c70000;
  text-align: center;
}




/* puzzle page START ! */






.puzzle-head {
  justify-content: space-between;
}

.puzzle {
  margin-top: 20px;
  margin-bottom: 20px;
  margin-left: auto;
  margin-right: auto;
}

.puzzle img {
  max-width: 250px;
}


.puzzle-head button {
  background: none;
  color: #a41313;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

.puzzle-description {
  display: flex;
  flex-flow: column;
}

.puzzle-description p {
  margin: 5px;
  margin-bottom: 5px;
}

/* puzzle page  END*/





/* MORE game page styles */



/* sucesspopup */




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

.wrong-answer,
.correct-answer {
  padding: 10px 0;
  font-size: 20px;
  text-transform: capitalize;
}

.msg-icon {
  width: 200px;
  margin: auto;
}

.wrong-text {
  color: #8f1410;
}

.success-text {
  color: #3c763d;
}

/* popup end */




/* END game page styles */





.footer {
  position: relative;
  margin-top: -30px;
  height: 50px;
  clear: both;
  padding-top: 20px;
}

.footer .content {
  color: #919090;
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (max-width: 992px) {
  .wrapper {
    padding-right: 8%;
    padding-left: 8%;
  }

  .frames {
    gap: 13px;
  }
}



/* 768px px and below  */




@media only screen and (max-width: 768px) {
  .logo {
    width: 300px;
  }

  .game-frames {
    padding-left: 8px;
    padding-right: 8px;
  }

  .frames {
    max-width: 350px;
    gap: 13px;
  }

  .nav-text {
    font-size: 18px;
    max-width: 400px;
  }

  .blue-border {
    border: 2px solid blue;
  }
  
  .green-border {
    border: 2px solid green;
  }
  
  .red-border {
    border: 2px solid red;
  }
  .puzzle-border {
    margin: 1px;
  }
  .navbar>img {
    width: 60px;
  }

  .frame {
    width: 280px;
  }

  .puzzle-container {
    width: 100%;
  }

  .puzzle-view {
    width: 100%;
    height: 340px;
  }

  .puzzle-input input,
  .puzzle-input button {
    box-sizing: border-box;
    height: 30px;
  }

  .puzzle-input input {
    padding: 9px 13px;
    margin: 6px 0;
    border: none;
    border-radius: 5px;
    font-size: 12px;
  }

  .puzzle-input input::placeholder {
    font-size: 12px;
  }

  .home-title {
    font-size: 12px;
  }

  .puzzle-input .btn {
    padding: 5px 13px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 4px;
  }

  .puzzle-head div h3 {
    font-size: 16px;
    font-weight: 600;
  }

  .puzzle-head div h5 {
    margin: 2px 5px;
    font-size: 13px;
  }

  .puzzle-head button {
    font-size: 16px;
    padding: 0;
  }
}

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
  .puzzle-container {
    height: 100px;
  }

  .puzzle-border {
    height: 95%;
  }
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {

  .frame {
    width: 500px;
  }

  .wrapper {
    background-size: 70% 80%;
  }
}