#modal {
  font-family: "Bogle";
  font-size: 1.5rem;
  text-align: center;
  box-sizing: border-box;
  color: #333;
}

#modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
  background-color: rgba(0, 0, 0, 0.1); 
  backdrop-filter: blur(5px); 
  padding: 20px;
  width: 100%;
  height: 100vh;
}

#modal button.close {
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
  background: none;
  border: none;
  font-size: 18px;
  color: gray;
}

#modal button.close:hover {
  color: black;
}

#modal_title {
  border: solid 1px #ccc;
  margin: 70px auto 10px;
  padding: 20px 30px;
  display: inline-block;
  box-shadow: 0 0 4px #ccc;
  background-color: #FAF8F8;
  overflow: hidden;
  position: relative;
  max-width: 650px;
  width: 100%;
}

#modal_title h3 {
  margin: 0 0 10px;
  padding: 0;
  line-height: 1.25;
}

#modal_title a{
  color: #002D58;
  text-decoration: underline;
}

#modal_title a:hover{
  color: #1a75ce;
  transition: .3s ease-in-out;
}

#modal_title span {
  font-size: 90%;
}

#form_modal {
  max-width: 550px;
  margin: 10px auto 0;
}

#form_modal input {
  margin: 0 5px;
  text-align: center;
  line-height: 80px;
  font-size: 50px;
  border: solid 1px #ccc;
  box-shadow: 0 0 5px #ccc inset;
  outline: none;
  width: 11%;
  transition: all 0.2s ease-in-out;
  border-radius: 3px;
}

#form_modal input:focus {
  border-color: #1a75ce;
  box-shadow: 0 0 5px #002D58 inset;
}

#form_modal input::selection {
  background: transparent;
}

#form_modal button {
  font-family: "Bogle";
  font-weight: bold;
  color: white;
  margin: 30px 0 50px;
  width: 80%;
  padding: 6px;
  background-color: #002D58;
  border: none;
  text-transform: uppercase;
}

#form_modal button:hover {
  background-color: #1a75ce;
  transition: .3s ease-in-out;
  cursor: pointer;
}

#modal_title button.close {
  width: 22px;
  position: absolute;
  right: 5px;
  top: 5px;
}

#confirm_modal {
  display: none;
}

#modal_title div {
  position: relative;
  z-index: 1;
}

@media screen and (min-width: 768px) {
  #modal_title {
    margin: 50px auto 10px;
  }
}