@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap');

html {
  font-family: "Lato", sans-serif;
  font-weight: 700;
  font-style: normal;
}

body {
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  color: #e4e4e4;
  background: linear-gradient(150deg, #DFF2EB, #7AB2D3);
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 !important;
  width: 100%;
  overflow: visible;
}

#order-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 90vw;
}

@media (min-width: 768px) {
  #order-container {
    flex-direction: row;
    align-items: flex-start;
  }
  .box {
    flex: 1;
  }
}

#header-container {
  display: block;
  margin: 1vw;
  padding: 3vw;
  width: 90vw;
  min-height: 0px;
  border-radius: 0.75rem;
  background-color: #1e3256;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
}

#text-container {
  display: block;
  margin: 1vw;
  padding: 3vw;
  width: 100%;
}

@media (orientation: landscape) {
  #regular-container {
    margin: 1vw;
    padding: 3vw;
    width: 50vw;
    border-radius: 0.75rem;
    background-color: #1e3256;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
    transition: width 0.3s ease-in-out, padding 0.3s ease-in-out, margin 0.3s ease-in-out, opacity 0.3s ease-in-out;
    opacity: 0;
    align-self: flex-start;
  }

  #regular-container.loaded {
    opacity: 1;
  }

  #regular-container.selected {
    animation: shrink 0.3s ease-in-out forwards;
  }

  @keyframes shrink {
    from {
      width: 50vw;
      padding: 3vw;
      margin: 1vw;
    }
    to {
      width: 30vw;
      padding: 3vw;
      margin: 1vw;
    }
  }

  #schedule-container {
    visibility: hidden;
    opacity: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 1vw auto;
    width: 70vw;
    max-height: none;
    border-radius: 0.75rem;
    background-color: #1e3256;
    padding: 2vw;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
    transition: opacity 0.2s ease-in-out;
    align-self: center;
    overflow: visible;
  }

  #schedule-container.loading {
    opacity: 0.3;
    filter: blur(10px);
    transition: opacity 0.1s ease-in-out, filter 0.1s ease-in-out;
  }

  #schedule-container.loaded {
    visibility: visible;
    opacity: 1;
    height: auto;
  }
}

@media (orientation: portrait) {
  #regular-container {
    margin: 1vw;
    padding: 3vw;
    width: 90vw;
    border-radius: 0.75rem;
    background-color: #1e3256;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
    transition: width 0.3s ease-in-out, padding 0.3s ease-in-out, margin 0.3s ease-in-out, opacity 0.3s ease-in-out;
    opacity: 0;
    align-self: center;
  }

  #regular-container.loaded {
    opacity: 1;
  }

  #schedule-container {
    visibility: hidden;
    opacity: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 1vh;
    width: 90vw;
    max-height: none;
    border-radius: 0.75rem;
    background-color: #1e3256;
    padding: 2vw;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
    transition: opacity 0.2s ease-in-out;
    align-self: center;
    overflow: auto;
  }

  #schedule-container.loading {
    opacity: 3;
    filter: blur(20px);
    transition: opacity 0.2s ease-in-out, filter 0.2s ease-in-out;
  }

  #schedule-container.loaded {
    visibility: visible;
    opacity: 1;
    height: auto;
  }
}

#schedule-container.loaded {
  visibility: visible;
  opacity: 1;
}

.container {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-left: 3vw;
  padding-right: 3vw;
  overflow: auto;
}

#schedule-table {
  width: 90%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 1.5rem;
  margin: 0 auto;
  overflow: visible;
  visibility: hidden;
}

#schedule-table th,
#schedule-table td {
  border: 1px solid #e4e4e4;
  padding: 0rem;
  text-align: center;
  word-wrap: break-word;
  font-size: 0.9rem;
}

#schedule-table th {
  background-color: #2e4a6f;
  color: #e4e4e4;
  font-weight: bold;
}

#schedule-table tr:first-child th {
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

#schedule-table tr:last-child td:first-child {
  border-bottom-left-radius: 10px;
}

#schedule-table tr:last-child td:last-child {
  border-bottom-right-radius: 10px;
}

#schedule-table tr td:first-child {
  padding: 0.2rem; /* Different padding for the first td of each tr */
}

#send-button-container {
  display: none;
  text-align: center;
  padding: 1vw;
}

button {
  font-size: 1.2rem;
  padding: 2vh 2vw;
  cursor: pointer;
  background-color: #567482;
  color: white;
  border: none;
  border-radius: 0.5rem;
}

button:hover {
  background-color: #819198;
}

#ms-pre-selected-options {
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

#ms-pre-selected-options.loaded {
  visibility: visible;
  opacity: 1;
}

#order-container.loaded {
  justify-content: flex-start;
}

input[type="checkbox"] {
  margin: 0;
  width: 5rem;
  height: 2rem;
  appearance: none; /* Remove default styling */
  background-color: #1e3256; /* Background color */
  border: 0; /* Border color */
  cursor: pointer; /* Pointer cursor */
  position: relative; /* Position relative for custom checkmark */
}

input[type="checkbox"]:checked {
  background-color: #e4e4e4; /* Background color when checked */
}

input[type="checkbox"]:checked::after {
  content: ''; /* Custom checkmark */
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.5rem;
  height: 0.5rem;
  background-color: #1e3256; /* Checkmark color */
  transform: translate(-50%, -50%) rotate(45deg);
  border: solid #1e3256;
  border-width: 0 0.2rem 0.2rem 0;
}