/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 100; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0, 0, 0); /* Fallback color */
  background-color: rgba(0, 0, 0, 0.5); /* Black w/ opacity */
  transition: 0.3s ease-in-out;
}

/* Modal Content/Box */
.modal_box {
  background-color: white;
  margin: 5% auto; /* 15% from the top and centered */
  padding: 25px 50px;
  border: 1px solid var(--main-color-transparent);
  width: 750px; /* Could be more or less, depending on screen size */
  border-radius: 20px;
  border: 2px var(--main-color-transparent);
  box-shadow: 0px 0px 5px var(--main-color);
}

.modal_box footer {
  justify-content: end;
  align-items: center;
}

/* The Close Button */
.close {
  color: #aaa;
  float: right;
  font-size: 30px;
  font-weight: bold;
  transition: 0.3s ease-in-out;
}

.close:hover,
.close:focus {
  color: var(--main-color);
  text-decoration: none;
  cursor: pointer;
}

.modal_content {
  display: flex;
  flex-wrap: wrap;
}

.modal_title, .modal_text {
  font-family: var(--font-standard);
  width: 100%;
  height: 25px;
  line-height: 25px;
  padding-left: 5px;
}

.modal_title_box {
  width: 100%;
  border: 2px solid var(--main-color-transparent);
  transition: 0.2s ease-in;
}

.modal_title_box:hover {
  cursor: pointer;
  border: 2px solid var(--main-color);
  transition: 0.3s ease-in-out;
}

.modal_title_input {
  box-sizing: border-box;
  width: 100%;
  border: none;
  padding: 5px;
}

.modal_text {
  margin-top: 25px;
}

.modal_text_input {
  width: 100%;
  padding: 5px;
  border: 2px solid var(--main-color-transparent);
  font-family: var(--font-standard);
}

.modal_text_input:focus {
  outline: none;
  border: 2px solid var(--main-color);
}

.modal_btn {
  width: 100px;
  height: 25px;
  color: white;
  font-weight: bold;
  background-color: var(--main-color);
  border-radius: 5px;
  border: none;
  border-color: var(--main-color-transparent);
  transition: 0.3s ease-in-out;
}

.modal_btn:hover {
  cursor: pointer;
  background-color: white;
  color: var(--main-color);
  box-shadow: 0 0 5px var(--main-color);
}