* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 2% 0px;
  color: #222;
  font-family: "Playfair Display", serif;
}

main {
  margin: 0px 20%;
  padding: 0px 5%;
}

h1 {
  margin: 2% 0px;
  font-size: 3rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 2rem;
}

p {
  font-size: 1.7rem;
  line-height: 42px;
  margin-bottom: 2%;
}

span {
  font-weight: bolder;
  color: fuchsia;
}

ul {
  list-style: none;
  margin: 0px 10%;
  padding: 0px;
}

li {
  text-align: center;
  padding: 3%;
  border-radius: 1%;
  margin-bottom: 12px;
  font-weight: 500;
  font-size: 2rem;
}

.li-green {
  background-color: #e5fdea;
}

.li-yellow {
  background-color: #fcfdd6;
}

.li-blue {
  background-color: #e5f9fe;
}

.li-pink {
  background-color: #fcf1fe;
}

img {
  width: 100%;
  background-size: cover;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  margin: auto;
  padding: 1% 0px;
  color: whitesmoke;
  border-radius: 5px;
  box-shadow: 0px 0px 6px 2px #666;
  background-color: #212529;
  height: 680px;
  width: 525px;
}

.modal-inner {
  margin: 5% 10%;
}

.modal-inner-loading {
  text-align: center;
}

.close-modal-btn-container {
  text-align: right;
  padding: 0px 2%;
}

.modal-close-btn {
  font-size: xx-large;
  font-weight: bold;
  background-color: transparent;
  border: 1px solid transparent;
  color: whitesmoke;
}

.modal-close-btn:hover {
  color: red;
  cursor: pointer;
  transform: scale(1.1);
  transition: 0.2s;
}

.modal-close-btn:active {
  color: blue;
  cursor: pointer;
  transform: scale(0.9);
  transition: 0.1s;
}

.modal-close-btn:disabled {
  color: whitesmoke;
  opacity: 0.2;
  cursor: not-allowed;
}

.reverse {
  flex-direction: row-reverse;
}

.modal-choice-btns {
  padding: 3% 8%;
  display: flex;
  justify-content: center;
  gap: 3%;
}

.idiot-gif {
  margin-left: 5%;
  width: 90%;
  background-size: cover;
}

.modal-btn {
  background-color: whitesmoke;
  border: none;
  font-family: inherit;
  font-weight: 600;
  font-size: medium;
  padding: 2% 6%;
  cursor: pointer;
}

.modal-btn:hover {
  cursor: pointer;
  transform: scale(1.1);
  transition: 0.2s;
}

.modal-btn:active {
  cursor: pointer;
  transform: scale(0.9);
  transition: 0.1s;
}

input {
  font-size: 1rem;
  margin: 2% 0px;
  border: 1px solid #212529;
  padding: 2%;
  width: 100%;
  border-radius: 3px;
}

.loading {
  width: 100%;
  margin-top: 5%;
}

@media (min-width: 320px) and (max-width: 500px) {
  main {
    margin: 0px;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  ul {
    margin: 0px;
  }

  li {
    font-size: 1.375rem;
  }

  p {
    font-size: 1.125rem;
    line-height: 28px;
  }

  .modal {
    height: 470px;
    width: 350px;
  }

  .modal-btn {
    font-size: small;
  }

  .modal-close-btn {
    font-size: larger;
  }
}
