body{
  padding: 0;
  font-family: "Quicksand", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  margin: auto;
}

.container{
    position: relative;
    background-color: white;
    margin: auto;
    //border: 1px solid black;
    min-width: 360px;
    width: 40%;
    height: 100%;
    text-align: center;
    padding: 0;
}

#the-grid{
  padding: 0;
  margin: auto;
}

#the-grid.hide{
  display: none;
}

#header{
  width: 100%;
  font-family: "Bungee", serif;
  font-weight: 400;
  font-style: normal;
  font-size: 30px;
  background-color:black;
  color: white;
  box-shadow: 0 7px 8px -2px gray;
}

#share{
  margin-top: 15%;
  margin-right: auto;
  margin-left: auto;
  width: 50%;
  height: 40px;
  background-color: #246EB9;
  color: white;
  font-weight: 700;
  vertical-align: middle;
  line-height: 40px;
  border-radius: 20px;
}

#share.hide{
  display: none;
}

#quiz-grid{
  width: 100%;
  display: inline-grid;
  margin-top: 10%;

  grid-gap: 10px;
  grid-template-columns: repeat(3, 110px);
  grid-template-rows: repeat(3, 110px);

  justify-content: center;
  align-items: center;
}

#quiz-grid.hide {
  -webkit-backface-visibility: hidden; /* Safari */
  backface-visibility: hidden;
  display: none;
}

.grid-box{
  display: grid;
  background-color: #D9D9D9;
  border-radius: 8px;

  justify-content: center;
  align-items: center;

  height: 110px;

  border: solid 1.5px gray;
}
.grid-box.correct{
  background-color: #00BF63;
  color: white;
  border: solid 1.5px black;
}

.grid-box.wrong{
  background-color: #FF3131;
  color: white;
  border: solid 1.5px black;
}
.grid-box.attempted{
  background-color: #FFBD59;
  border: solid 1.5px black;
  color: white;
}

.solved{
  background-color: #00BF63;
}

.wrong{
  background-color: #FF3131;
}

#quiz-box{
  width: 100%;
}
#quiz-box.hide {
  -webkit-backface-visibility: hidden; /* Safari */
  backface-visibility: hidden;
  display: none;
}

#timer{
  width: 90%;
  vertical-align: middle;
  justify-content: center;
  align-items: center;
  font-family: "Bungee", serif;
  font-size: 45px;
  font-weight: 400;
  margin-left: auto;
  margin-right: auto;
}

#timer.final{
  color: #FF3131;
}

#question-box{
  max-width: 70%;
  height: 15%;
  padding: 10%;
  border-radius: 15px;
  background-color: #1E3A8A;

  display: flex;
  margin-left: auto;
  margin-right: auto;
  align-items: center;
  justify-content: center;

  text-align: center;
  font-weight: 600;
  color:white;
  font-size: 1.4em;
}

#question-box .small{
  font-size: 1.1em;
}

.answer-box{
  width: 90%;
  height: 8%;
  border-radius: 15px;
  background-color: #D9D9D9;

  display: flex;
  margin-left: auto;
  margin-right: auto;
  margin-top: 2.5%;
  align-items: center;
  justify-content: center;

  text-align: center;
  font-size: 1.4em;
  font-weight: 500;
}

.answer-box.selected{
  background-color: #0EA5E9;
}

#submit{
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translate(-50%, 0%);
  width: 90%;
  height: 8%;
  border-radius: 15px;
  background-color: #D9D9D9;

  display: flex;
  margin-left: auto;
  margin-right: auto;
  margin-top: px;
  align-items: center;
  justify-content: center;

  text-align: center;
  font-size: 1.5em;
  font-weight: 700;
}

#submit.enabled{
  background-color: #f1c232;
}

#popup{
  position: absolute; /* Ensures it stays in place relative to the viewport */
  width: 75%;
  max-height: 80%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* Centers the div */

  background-color: white;
  padding: 5%;
  display: none; /* Initially hide the popup */
  z-index: 10; /* Ensure the popup is on top of other elements */

  border-radius: 15px;

  box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2), 0 12px 40px 0 rgba(0, 0, 0, 0.19);

  border: solid 2px black;

  text-align: left;
  font-size: 16px;
  font-weight: 300;
}

#popup emoji{
  font-size: 40px;
  text-align: center;
}

#popup result{
  font-size: 24px;
  font-weight: 500;
  text-align: center;
}

#popup.correct{
  background-color: #00BF63;
  color: white;
  text-align: center;
}

#popup.wrong{
  background-color: #FF3131;
  color: white;
  text-align: center;
}

#popup.outoftime{
  background-color: #FFBD59;
  color: white;
  text-align: center;
}

#popup.show{
  display: block;
}

#popup button{
  width:80%;

  background-color: #f1c232;
  border-radius: 5px;
  color: black;

  box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2), 0 12px 40px 0 rgba(0, 0, 0, 0.19);
  border: none;

  font-family: "Quicksand", serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
  font-size: 18px;
  line-height: 32px;
}

#popup h2{
  font-family: "Bungee", serif;
  font-weight: 400;
  font-style: normal;
  font-size: 24px;
}

#popup h3{
  font-size: 18px;
  line-height: 0px;
}

#popup ul{
  line-height:30px;
}

#popup .header{
  width: 100%;
  height: 24px;
  text-align: right;
  line-height: 24px;
  padding: 0;
}

#popup .header button{
  width: auto;
  background-color: white;
  color: gray;

  box-shadow: none;
  border: none;

  font-family: "Quicksand", serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
  font-size: 24px;
}

#score-box{
  width: 100%;
  display: inline-grid;
  grid-template-columns: repeat(2, 110px);
  justify-content: center;
  align-items: center;
  background-color: #246EB9;
  vertical-align: middle;
  padding-top: 5px;
  padding-bottom: 5px;
  margin: auto;
  border-bottom-right-radius: 12px;
  border-bottom-left-radius: 12px;
}

#score-box .score-col{
  display: grid;

  justify-content: center;
  align-items: center;

  font-family: "Quicksand", serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
  font-size: 28px;
  padding: 0px;
  margin: auto;
  vertical-align: middle;
  color: white;
}

#score-box .score-col .score-label{
  font-family: "Quicksand", serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
  font-size: 12px;
  color: white;
  padding: 0px;
  margin: auto;
}

#footer{
  width: 100%;
  height: 4vh;
  font-family: "Quicksand", serif;
  font-weight: 300;
  font-style: normal;
  font-size: .8em;
  line-height: 4vh;
  vertical-align: middle;
  background-color:black;
  color: white;
  position: absolute;
  bottom: 0;
}

@media only screen and (max-width: 600px) { /* Adjust breakpoint as needed for mobile */

  .container {
    width: 100%; /* Full width on mobile */
  }

}
