.modal {
  position: fixed;
  left: 0;
  top: 0;
  background-color: rgb(0, 0, 0, 0.4);
  color: var(--white);
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.2s linear;
  z-index: 2;
  display: none;
}

.modal-content {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 2rem;
  width: 50%;
  min-height: 55%;
  overflow-y: auto;
  border-radius: 5rem;
  background-color: var(--bg);
  box-shadow: 0px 0px 33px 11px rgba(26, 31, 52, 0.73);
  font-size: 1.5rem;
}

.modal-content button,
.modal-content a {
  font-size: 1.25rem;
  line-height: 2rem;
  border-radius: 0.75rem;
  width: 20%;
}

.modal h2 {
  margin-top: 0;
  font-size: 2.5rem;
  font-weight: 500;
  text-align: center;
}

.modal h4 {
  font-weight: 400;
  text-align: center;
  margin-top: 0;
}

#settings .modal-content,
#roster .modal-content,
#officials .modal-content,
#goal-record .modal-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#settings table,
#settings .modal-content div,
#roster table,
#roster .modal-content div,
#officials table {
  width: 100%;
}

#settings button,
#officials button,
#goal-record button {
  margin-top: auto;
}

#own-period-settings {
  display: none;
}

#own-period-settings tr td:first-child {
  width: 50%;
  text-align: right;
  padding-right: 1rem;
}

#own-period-settings tr td:last-child {
  width: 50%;
  text-align: left;
  padding-left: 1rem;
}

#own-period-settings input {
  font-size: 1.25rem;
  line-height: 2rem;
  border-radius: 0.75rem;
  width: 6rem;
  text-align: center;
}

#own-period-settings tr:last-child td:first-child {
  text-align: center;
  padding-top: 0.5rem;
}

#settings input[type="radio"],
#roster input[type="radio"] {
  position: absolute !important;
  visibility: hidden;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

#settings input[type="radio"]:checked + label,
#roster input[type="radio"]:checked + label {
  background-color: var(--white);

  color: var(--bg);

  font-weight: 500;
}

#settings label,
#roster label {
  border-radius: 0.5em;

  padding-left: 0.5em;

  padding-right: 0.5em;
}

#settings label:hover,
#roster label:hover {
  cursor: pointer;

  background-color: #ffffff85;

  color: var(--bg);
}

#roster table {
  padding-left: 3rem;
  padding-right: 3rem;
}

#roster td {
  width: 50%;
}

#roster tr td:nth-child(2),
#officials tr td:not(:last-child) {
  text-align: center;
}

#roster div {
  margin-top: auto;
  text-align: center;
}

#roster input,
#roster select,
#roster option {
  width: 90%;
  font-size: 1.25rem;
  line-height: 2rem;
  padding: 0.5rem;
  border-width: 2px;
  border-radius: 1rem;
  text-align: center;
}

#roster .modal-content {
  min-height: 50%;
}

#officials td {
  padding: 0.5rem 0;
}

#officials tr:nth-child(2) td {
  padding-bottom: 1.5rem;
}

.two-columns {
  display: grid;
  width: 100%;
  grid-template-columns: 50% 50%;
}

#goal-record tr td,
#goal-record tr th {
  text-align: center;
}

#goal-record tr th {
  background-color: var(--white);
  color: var(--bg);
  border: 1px solid var(--white);
}

#goal-record tr td {
  border: 1px solid var(--white);
}

#goal-record table {
  border-collapse: collapse;
  font-size: 1.4rem;
}

.team-goals {
  margin-left: 1rem;
  margin-right: 1rem;
}

#goal-record .modal-content {
  min-height: 65%;
}

button.show-button {
  width: 100%;
  border-radius: 0;
}

button.delete-button {
  width: 100%;
  border-radius: 0;
  background-color: var(--red);
}

#roster div.roster-org {
  margin-top: 0;
}

.org {
  display: none;
  margin-top: 1.5rem !important;
  margin-bottom: 1.5rem !important;
}

.friendly.org tr td:nth-child(2n-1) {
  width: 20% !important;
}

.friendly.org tr td:nth-child(2n) {
  width: 30% !important;
}

.friendly.org tr:nth-child(3) td:nth-child(2) {
  width: 20% !important;
}

#roster .modal-content > div:last-child {
  margin-top: 1rem;
}

#roster a {
  padding: 0.5rem;
  text-decoration: none;
}

#roster input[type="file"] {
  border: none;
  width: 100%;
}

#data-check .modal-content {
  display: flex;
  flex-direction: column;
  text-align: center;
  width: 35%;
  min-height: 25%;
}

#data-check .modal-content div {
  margin-top: auto;
  margin-bottom: auto;
}

@media screen and (max-width: 1440px) {
  .modal-content {
    width: 65%;
  }
}

@media screen and (max-width: 1024px) {
  .modal-content {
    width: 85%;
  }
}
