* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  background-image: url("./bg.png");
  background-size: cover;
  background-position: left top;
  font-family: "Zilla Slab", serif;
}

.box-container {
  width: 70%;
  margin: 0 auto;
}

#question {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  padding: 10px 20px;
  font-size: 20px;
  border-radius: 15px;
  background: rgb(255, 255, 255);
  background: linear-gradient(
    92.49deg,
    rgba(255, 255, 255, 0.1) 0.18%,
    rgba(255, 255, 255, 0.05) 99.85%
  );
  backdrop-filter: blur(5px);
  margin-bottom: 30px;
}

#display {
  height: 100px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding-left: 5rem;
  padding-right: 5rem;
  color: white;
  font-size: 25px;
  background-color: #171717;
  border: 2px solid #9dffad;
  border-radius: 15px;
}

#countdown {
  position: fixed;
  height: 100vh;
  width: 100vw;
  background-color: rgba(0, 0, 0, 0.8);
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: white;
  display: none;
}
#result {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 250px;
  width: 400px;
  background-color: #171717;
  border-radius: 15px;
  border: 2px solid #9dffad;
  color: white;
  text-align: center;
  padding: 2rem;
}
#show-time {
  text-align: center;
  color: white;
  margin: 10px 0;
}

.green {
  color: #9dffad;
}
.red {
  color: #eb6565;
}
.bold {
  font-weight: 700;
}
.inactive {
  border: 2px solid white !important;
}
.modal-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.hidden {
  display: none;
}
.title {
  text-align: center;
  color: white;
  margin: 20px 0;
}

.divider-container {
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin: 0 auto;
}

.line {
  height: 2px;
  background: white;
  width: 100%;
}

.title2 {
  color: white;
  display: block;
}

.buttons {
  display: flex;
  justify-content: center;
  margin: 30px 0;
}
button {
  padding: 10px 20px;
  border: none;
  font-size: 16px;
  font-weight: bold;
  width: 300px;
  height: 50px;
  color: white;
  background-color: #171717;
  border-radius: 10px;
  border: 2px solid #9dffad;
  cursor: pointer;
}
button:hover {
  background-color: #303030;
}
#close-btn {
  margin-top: 10px;
  padding: 5px 20px;
  border: none;
  font-size: 16px;
  font-weight: bold;
  width: 100px;
  height: 30px;
  color: white;
  background-color: #171717;
  border-radius: 10px;
  border: 2px solid #9dffad;
  cursor: pointer;
}
#close-btn:hover {
  background-color: rgb(200, 4, 4);
}

#histories {
  display: grid;
  grid-template-columns: repeat(3, 300px);
  grid-row-gap: 20px;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: space-around;
}

.card {
  width: 100%;
  height: 100%;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  color: white;
  border-radius: 15px;
  background: rgb(255, 255, 255);
  background: linear-gradient(
    92.49deg,
    rgba(255, 255, 255, 0.1) 0.18%,
    rgba(255, 255, 255, 0.05) 99.85%
  );
  backdrop-filter: blur(5px);
  margin-bottom: 30px;
}

#modal-background {
  background: rgb(255, 255, 255);
  background: linear-gradient(
    92.49deg,
    rgba(255, 255, 255, 0.1) 0.18%,
    rgba(255, 255, 255, 0.05) 99.85%
  );
  backdrop-filter: blur(5px);
  height: 100vh;
  width: 100%;
  position: fixed;
  top: 0;
}
/* .......................Responsive for Mobile devices............... */
@media only screen and (max-width: 768px) {
  .box-container {
    padding: 0 20px;
    width: 100%;
  }
  #question {
    font-size: 15px;
    padding: 10px;
  }
  #display {
    font-size: 15px;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding-left: 2rem;
    padding-right: 2rem;
    color: white;
    line-height: 5px;
    background-color: #171717;
    border: 2px solid #9dffad;
    border-radius: 15px;
  }
  #result {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 250px;
    width: 300px;
    background-color: #171717;
    border-radius: 15px;
    border: 2px solid #9dffad;
    color: white;
    text-align: center;
    padding: 2rem;
  }

  #close-btn {
    margin-top: 10px;
    padding: 5px 10px;
    font-size: 14px;
    font-weight: bold;
    width: 100px;
    height: 30px;
    color: white;
    background-color: #171717;
    border-radius: 16px;
    border: 2px solid #9dffad;
    cursor: pointer;
  }
  #histories {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
  }
  .card {
    flex-direction: column;
  }
  #countdown {
    position: fixed;
    height: 100vh;
    width: 100vw;
    background-color: rgba(0, 0, 0, 0.8);
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    display: none;
  }
}

/* .......................Responsive for Tablet devices............... */
@media only screen and (min-width: 768px) and (max-width: 992px) {
  .box-container {
    padding: 0 20px;
    width: 100%;
  }
  #histories {
    display: grid;
    grid-template-columns: repeat(2, 350px);
    grid-row-gap: 1fr;
    grid-column-gap: 1fr;
  }
  .card {
    flex-direction: column;
  }
  #result {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 250px;
    width: 400px;
    background-color: #171717;
    border-radius: 15px;
    border: 2px solid #9dffad;
    color: white;
    text-align: center;
    padding: 2rem;
  }
}
