:root {
  --bg-dark: oklch(0.92 0.03 172);
  --bg: oklch(0.96 0.03 172);
  --bg-light: oklch(1 0.03 172);
  --text: oklch(0.15 0.06 172);
  --text-muted: oklch(0.4 0.06 172);
  --highlight: oklch(1 0.06 172);
  --border: oklch(0.6 0.06 172);
  --border-muted: oklch(0.7 0.06 172);
  --primary: oklch(0.4 0.1 172);
  --secondary: oklch(0.4 0.1 352);
  --danger: oklch(0.5 0.06 30);
  --warning: oklch(0.5 0.06 100);
  --success: oklch(0.5 0.06 160);
  --info: oklch(0.5 0.06 260);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-dark: oklch(0.1 0.03 172);
    --bg: oklch(0.15 0.03 172);
    --bg-light: oklch(0.2 0.03 172);
    --text: oklch(0.96 0.06 172);
    --text-muted: oklch(0.76 0.06 172);
    --highlight: oklch(0.5 0.06 172);
    --border: oklch(0.4 0.06 172);
    --border-muted: oklch(0.3 0.06 172);
    --primary: oklch(0.76 0.1 172);
    --secondary: oklch(0.76 0.1 352);
    --danger: oklch(0.7 0.06 30);
    --warning: oklch(0.7 0.06 100);
    --success: oklch(0.7 0.06 160);
    --info: oklch(0.7 0.06 260);
  }
}

/* cyrillic-ext */
@font-face {
  font-family: 'Montserrat';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('./assets/fonts/JTUQjIg1_i6t8kCHKm459WxRxC7mw9c.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Montserrat';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('./assets/fonts/JTUQjIg1_i6t8kCHKm459WxRzS7mw9c.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
  font-family: 'Montserrat';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('./assets/fonts/JTUQjIg1_i6t8kCHKm459WxRxi7mw9c.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Montserrat';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('./assets/fonts/JTUQjIg1_i6t8kCHKm459WxRxy7mw9c.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Montserrat';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('./assets/fonts/JTUQjIg1_i6t8kCHKm459WxRyS7m.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('./assets/fonts/JTUSjIg1_i6t8kCHKm459WRhyzbi.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('./assets/fonts/JTUSjIg1_i6t8kCHKm459W1hyzbi.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('./assets/fonts/JTUSjIg1_i6t8kCHKm459WZhyzbi.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('./assets/fonts/JTUSjIg1_i6t8kCHKm459Wdhyzbi.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('./assets/fonts/JTUSjIg1_i6t8kCHKm459Wlhyw.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* global things */
img {
  max-width: 100%;
  height: auto;
}

body {
  color: var(--text);
  background-color: var(--bg-light);
  margin: 0;
  margin-bottom: 50px;
  font-family: 'Montserrat';
}


.logo, .header-top, .header-main, .subheader {
  background-color: var(--bg-dark);
}

.header-top {
  h1 {
    color: var(--text);
  }
  h2 {
    color: var(--primary);
  }
}

.subheader {
  a {
    color: var(--text);
  }
  a:hover {
    color: var(--primary);
  }
}

.middle-buttons {
  a {
    color: var(--bg-light);
    border-color: var(--border);
    background-color: var(--text);
  }
  a:hover {
    background-color: var(--primary);
  }
}

.icons {
  width: 0.7em;
}

.footer {
  background-color: var(--bg);
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  text-align: center;
  color: #fff;
  p {
    font-size: 1em;
    margin: 0;
    color: var(--text-muted);
  }
}

@media (min-width: 1200px) {
  .menu-btn {
    display: none;
  }
  .logo {
    display: none;
  }
  .menu {
    display: none;
  }
  body {
    color: var(--text);
    background-color: var(--bg-light);
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 100px;
  }
  
  main {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    min-width: 100%;
  }

  .pdf {
    width: 100%;
    height: 70vh;
    min-height: 70vh;
  }
  
  .pdf-content {
    display: flex;
    flex-direction: column;
    align-items:center;
  }

  details {
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0.5em 0.5em 0;
    margin: 0.5em;
  }
  summary {
    width: 60em;
    font-weight: bold;
    margin: -0.5em -0.5em 0;
    padding: 0.5em;
  }

  details[open] {
    padding: 0.5em;
  }

  details[open] summary {
    width: 60em;
    border-bottom: 1px solid #aaaaaa;
    margin-bottom: 0.5em;
  }
  
  .order-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text);
    table, th, td {
      border: 1px solid;
      color: var(--text);
      border-color: var(--text);
    }
    table {
      border-collapse: collapse;
      -webkit-user-select: none;
      -ms-user-select: none;
      user-select: none;
    }
  }
  
  .file-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 2em;
    color: var(--text);
  }
  
  .screen {
    display: flex;
    width: 100vw;
    height: 100vh;
    align-items: center;
    justify-content: center;
  }
  
  .login {
    display: flex;
    color: var(--text);
    flex-direction: column;
    align-items: center;
    button {
      background-color: var(--text);
      color: var(--bg-light);
      padding: 14px 20px;
      margin: 8px 0;
      border: none;
      border-radius: 0.5em;
      cursor: pointer;
    }
    button:hover {
      background-color: var(--primary);
      transition: background-color 0.2s;
    }
  }
  
  .wrong {
    color: red;
  }
  
  .username,
  .password {
    padding: 12px 20px;
    margin: 8px 0;
    display: inline-block;
    input {
      border-radius: 0.5em;
    }
  }
  
  .imgcontainer {
    justify-content: center;
    display: flex;
    img {
      width: 14em;
    }
  }
  
  .about {
    display: flex;
    flex-direction: column;
  }
  
  .board {
    display: flex;
    flex-direction: row;
    justify-content: center;
    justify-items: center;
    margin: 0 10% 0 10%;
    flex-wrap: wrap;
  }
  
  .title {
    display: flex;
    justify-content: center;
    h1 {
      color: var(--primary);
    }
  }

  .member-row {
    display: flex;
    flex-direction: row;
  }
  
  .member {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 30%;
    max-height: 700px;
    padding: 0 1em 0 1em;
    margin: 0 0 4em 0;
  }

  .member img {
    height: 25%;
    width: auto;
    border-radius: 10em;
  }
  
  .member h1 {
    color: var(--text);
    font-size: 2em;
    text-align: center;
    margin: 16px 0 16px 0;
  }
  
  .member h2 {
    color: var(--info);
    font-size: 1em;
    text-align: center;
    margin: 0 0 16px 0;
  }
  
  .member h3 {
    color: var(--text-muted);
    font-size: 1em;
    text-align: center;
    margin: 0;
  }
  
  .content {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    height: auto;
    margin: 1em 10% 1em 10%;
  }
  
  .content2 {
    display: flex;
    flex-direction: row;
    height: auto;
    margin: 1em 10% 1em 10%;
    .text-l,
    .text-r {
      width: 50%;
    }
  }
  
  .image-l {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50%;
  }
  
  .image-r {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50%;
  }
  
  .image-l img {
    width: 90%;
    border-radius: 30px;
    margin-right: 10%;
  }
  
  .image-r img {
    width: 90%;
    border-radius: 30px;
    margin-left: 10%;
  }
  
  .text-l,
  .text-r {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    max-width: 50%;
    align-items: flex-start;
    width: 50%;
    padding: 1em;
    box-sizing: border-box;
  }
  
  .content,
  .content2 {
    h1 {
      font-size: 2em;
      margin-top: 25px;
      margin-bottom: 5px;
      color: var(--text);
    }
  }
  
  .content,
  .content2 {
    p {
      font-size: 1.5em;
      font-weight: normal;
      margin-top: 5px;
      margin-bottom: 50px;
      text-align: left;
      color: var(--text-muted);
    }
  }
  
  hr {
    display: none;
    text-align: center;
    justify-content: center;
    width: 100vw;
    white-space: normal;
    flex-grow: 1;
    unicode-bidi: isolate;
    overflow: hidden;
    border-style: solid;
    border-width: 2px;
  }
  
  #top {
    color: #00fff2;
    padding: 0;
    margin: 3px;
    text-align: center;
    text-shadow: -2px 2px #000;
    font-weight: bold;
  }
  
  .empty {
    display: flex;
    flex: 1;
  }
  
  .header-top {
    background-color: var(--bg-dark);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: auto;
    h1 {
      font-size: 2em;
      margin: 1em 0 0 0;
      color: var(--text);
    }
    h2 {
      font-size: 1.5em;
      color: var(--primary);
      margin: 0;
    }
    img {
      height: 12em;
    }
    a {
      margin: 0;
      padding: 0;
    }
  }
  
  .middle {
    display: flex;
    flex-direction: column;
    flex: 1;
  }
  
  .header-main {
    background-color: var(--bg-dark);
    width: 100%;
    height: 6%;
  }
  
  .subheader {
    background-color: var(--bg-dark);
    display: flex;
    flex-direction: row;
    width: 100%;
    align-items: center;
    justify-content: space-evenly;
  }
  
  .subheader a {
    display: flex;
    color: var(--text);
    text-decoration: none;
    align-items: center;
  }
  
  .subheader p {
    margin: 5px;
    font-size: 1em;
  }
  
  .subheader a:hover {
    color: var(--primary);
    transition: color 0.2s;
  }
  
  #phone {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 10%;
    margin-left: 20%;
    font-size: 1em;
  }
  
  #email {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 10%;
    margin-right: 20%;
    font-size: 1em;
  }
  
  .middle-buttons {
    display: flex;
    flex: 1;
    justify-content: center;
    margin: 0 0 1em 0;
    a {
      color: var(--bg-light);
      border-color: var(--border);
      background-color: var(--text);
      text-decoration: none;
      position: relative;
      display: flex;
      border-radius: 0.5em;
      margin: 5px;
      padding: 0.5em 1em;
    }
    a:hover {
      background-color: var(--primary);
      border-radius: 0.5em;
      transition: background-color 0.2s;
    }
  }
  
  .header {
    display: flex;
    flex-direction: column;
    width: 100%;
  }
  
  .header-text a {
    flex-direction: column;
    align-items: center;
  }
  
  .header-main li {
    font-size: 1em;
    display: inline-flex;
    flex-direction: row;
  }
  
  .header-main ul {
    list-style-type: none;
    padding: 0px;
    margin: 0px;
    overflow: hidden;
    display: inline;
    text-align: center;
  }
  
  .footer {
    background-color: var(--bg);
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    text-align: center;
    color: #fff;
    p {
      font-size: 1em;
      margin: 0;
      color: var(--text-muted);
    }
  }
}

@media (max-width: 1200px) {
  tbody {
    word-wrap: break-word;
    max-width: 100vw;
  }
  tr {
    word-wrap: break-word;
    max-width: 100vw;
  }
  td {
    word-wrap: break-word;
    max-width: 100vw;
  }
  #table {
    word-wrap: break-word;
    max-width: 100vw;
  }
  .upload-main {
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    max-width: 100vw;
  }
  .file-upload{
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    max-width: 100vw;
  }
  .order-box {
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    max-width: 100vw;
  }
  .login {
    display: flex;
    color: var(--text);
    flex-direction: column;
    align-items: center;
    button {
      background-color: var(--text);
      color: var(--bg-light);
      padding: 14px 20px;
      margin: 8px 0;
      border: none;
      border-radius: 0.5em;
      cursor: pointer;
    }
    button:hover {
      background-color: var(--primary);
      transition: background-color 0.2s;
    }
  }
  
  .wrong {
    color: red;
  }
  
  .username,
  .password {
    padding: 12px 20px;
    margin: 8px 0;
    display: inline-block;
    input {
      border-radius: 0.5em;
    }
  }
  
  .imgcontainer {
    justify-content: center;
    display: flex;
    img {
      width: 14em;
    }
  }
  .pdf-content {
    display: flex;
    flex-direction: column;
    align-items:center;
  }

  details {
    width: 90vw;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0.5em 0.5em 0;
    margin: 0.5em;
  }
  summary {
    width: 90vw;
    max-width: 90vw;
    font-weight: bold;
    word-wrap: break-word;
    margin: -0.5em -0.5em 0;
    padding: 0.5em;
  }

  details[open] {
    padding: 0.5em;
  }

  details[open] summary {
    width: 90vw;
    border-bottom: 1px solid #aaaaaa;
    margin-bottom: 0.5em;
  }
  
  .pdf {
    width: 100%;
    height: 70vh;
    min-height: 70vh;
  }
  .title {
    display: flex;
    justify-content: center;
  }

  .board {
    display: flex;
    flex-direction: row;
    justify-content: center;
    justify-items: center;
    margin: 0 10% 0 10%;
    flex-wrap: wrap;
  }
  .member {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 1em 0 1em;
    width: 90%;
    margin: 0 0 2em 0;
  }

  .member img {
    height: 12em;
    width: auto;
    border-radius: 10em;
  }
  
  .member h1 {
    color: var(--text);
    font-size: 2em;
    text-align: center;
  }
  
  .member h2 {
    color: var(--info);
    font-size: 1em;
    text-align: center;
    margin: 0;
  }
  
  .member h3 {
    color: var(--text-muted);
    font-size: 1em;
    text-align: center;
  }
  .middle {
    display: none;
  }
  .logo {
    img {
      width: 80px;
    }
  }
  .empty {
    display: none;
  }
  .header-main {
    display: flex;
    justify-content: space-evenly;
  }
  .subheader {
    display: flex;
    justify-content: space-evenly;
    font-size: 0.8em;
  }
  .contact {
    display: flex;
    justify-content: center;
    picture, p {
      align-content: center;
    }
    a {
      text-decoration: none;
    }
    p {
      padding: 0 0 3px 3px;
      margin: 0;
      font-size: 0.7em;
    }
  }
  .image-l {
    display: none;
  }
  .image-r {
    img {
      border-radius: 30px;
    }
  }
  .content, .content2 {
    margin: 0 5% 0 5%;
    h1 {
      font-size: clamp(2rem, 7.273vw + -0.818rem, 3rem);
    }
    p {
      font-size: clamp(1rem, 7.273vw + -0.818rem, 2rem);
    }
  }


  .header-main {
    display: grid;
    grid-template-areas:
      "title   title   hamburger"
      "nav     nav     nav";
  }
  
  /* "Hide" checkbox -- moves it off screen*/
  #menu-btn {
    position: absolute;
    top: -100%;
    left: -100%;
  }
  
  /* Hide hamburger for bigger screens */
  .menu-icon {
    visibility: hidden;
  }
  
  .menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 250px;
    margin-right: 2rem;
  }
  
  .menu a {
    text-decoration: none;
    color: var(--text);
  }
  
  .menu-btn {
    display: none;
  }
  
  .menu-icon {
    grid-area: hamburger;
    cursor: pointer;
    display: flex;
    justify-content: flex-end;
    align-items: baseline;
    padding: 30px 0px 30px 0;
    position: relative;
    user-select: none;
    visibility: visible;
  }
  
  .navicon {
    background: var(--text);
    display: block;
    height: 2px;
    width: 18px;
    position: relative;
  }
  
  .navicon:before {
    top: 5px;
  }
  
  .navicon:after {
    top: -5px;
  }
  
  .navicon:before,
  .navicon:after {
    background: var(--text);
    display: block;
    width: 100%;
    height: 100%;
    content: "";
    position: absolute;
    transition: all 0.2s ease-out;
  }
  
  .menu {
    grid-area: nav;
    max-width: unset;
    max-height: 0;
    transition: max-height 0.2s ease-out;
    overflow: hidden;
    margin: 0;
    padding: 0;
    background-color: var(--bg-dark);
    display: flex;
    flex-direction: column;
  }
  
  .menu a {
    padding: 20px 20px;
    background-color: var(--bg-dark);
    display: flex;
    width: 100%;
    text-align: center;
    align-content: center;
    justify-content: center;
  }
  
  .menu-btn:checked ~ .menu {
    max-height: 240px;
  }
  
  .menu-btn:checked ~ .menu-icon .navicon {
    background: transparent;
  }
  
  .menu-btn:checked ~ .menu-icon .navicon:before {
    transform: rotate(-45deg);
  }
  
  .menu-btn:checked ~ .menu-icon .navicon:after {
    transform: rotate(45deg);
  }
  
  .menu-btn:checked ~ .menu-icon .navicon:before,
  .menu-btn:checked ~ .menu-icon .navicon:after {
    top: 0;
  }
}
