:root {
  --color-primary: #1c3d6e; /* #7ec242; */
  --color-secondary: #385273;
  --body-color: #222;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

body {
  background: var(--color-primary);
  line-height: 1.4;
}

body, a {
  color: var(--body-color);
}
a {
  text-decoration: none;
}
a:hover {
  color: var(--color-primary);
}

#container .width360 input, #container .width360 textarea { max-width: 100%; }
input,textarea,select {
  box-sizing: border-box;
}


h1 {
  font-size: 32px;
  margin: 0;
} 
h2 {
  font-size: 24px;
  margin: 0;
  margin-bottom: 0.5rem;
} 
h3 { 
  font-size: 20px;
  line-height: 1.2;
  margin: 0;
  .company {
    font-size: 90%;
    color: #444;
    font-weight: normal;
  }
}
h4 {
  background: #eee;
  padding: 10px;
  font-size: 100%;
  font-weight: 600;
  margin: 0;
  margin-bottom: 1rem;
}


body, td, input, textarea, select {
  font-family: "articulat-cf", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 16px;
}

#container {
  width: auto;
  padding: 0;
}

#footer {
  border: 0;
}

@media (min-width: 768px) {
  #header, #heading, #content, #footer {
    margin-left: 20px;
    margin-right: 20px;
  }

  #heading {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
  }
  #content {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
  }
}
@media (min-width: 1024px) {
  #header, #heading, #content, #footer {
    margin-left: 5vw;
    margin-right: 5vw;
  }
}
@media (min-width: 1200px) {
  #header, #heading, #content, #footer {
    margin-left: 10vw;
    margin-right: 10vw;
  }
}


#header {
  margin-bottom: 0;
  padding: 0;
  background: transparent;

  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;

  @media (min-width: 768px) {
    justify-content: flex-start;
  }

  a {
    background:  url('/template/logo-transparent-bg.png') no-repeat center top;
    background:  url('/template/logo-blue-full.png') no-repeat center top;
    /* make logo white for now, but we can change this later if needed */
    filter: invert(100%) sepia(100%) grayscale(100%) brightness(200%);
    
    background-size: contain;
    width: 200px;
    height: auto;
    aspect-ratio: 890/284;
    aspect-ratio: 900/475;
    display: block;
  }
}

#heading {
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  gap: 16px;

  border-bottom: 1px solid rgb(0 0 0 / 20%);
  padding-bottom: 20px;

  @media (min-width: 768px) {
    flex-direction: row;
    border-bottom: none;
    padding-bottom: 0;
  }

  h1, #topnav {
    margin: 0;
    padding: 0;
  }

  #topnav {
    ul {
      display: flex;
      flex-direction: column;
      gap: 0;

      @media (min-width: 768px) {
        flex-direction: row;
        gap: 16px;
      }

      li {
        margin: 0;
      }
    }
    
  }

}

#content {
  padding: 24px 20px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;


}


#events {
  

  display: flex;
  flex-direction: column;
  gap: 16px;

  #filters {
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;

    #listtype {
      float: none;
    }

    &::after {
      display: none;
    }

  }

  .nav {
    background: var(--color-secondary);
    color: white;
    padding: 10px 20px;
    margin: 0;
    td, a {
      color: white;
    }
    td {
      padding: 0;
      font-size: 120%;
      font-weight: 600;
    }
  }


  .event {
    &:not(:last-child) {
      border-bottom: 1px solid rgb(0 0 0 / 20%);
      padding-bottom: 16px;
    }
    margin: 0;
    
    .readmore a {
      margin-top: 8px;
    }
    /* .readmore a {
      margin-top: 8px;
      display: inline-flex;
      align-items: center;
      background: var(--color-primary);
      color: white;
      border-radius: 4px;
      padding: 6px 12px;
      font-size: 90%;
      font-weight: 600 !important;
      text-decoration: none;
    } */

  }

}


input[type=text], input[type=number], input[type=password], input[type=file],
select {
    border: 1px solid #dadada;
    background-color: #fff;
    line-height: 26px;
    height:  auto;
    padding: .375rem .75rem;
    width: auto;
    -webkit-appearance: none;
    border-radius: 4px;
}
#container .radio,
#container form .field label.radio {
  margin-right: 16px;
}
#container .radio input {
  width: 1em !important;
}

#copyright {
  font-size: 14px; 
  text-align: center;
  color: #aaa;
}

.button {
  background: var(--color-primary);
  color: white;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-weight: 600;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

#registerform.loginform {
  max-width: 500px;
}

.form-control,
.form-select {
  box-shadow: var(--shadow-sm);
}

#calendar {

  overflow-x: auto;

  &,th,td,a {
    font-size: 100% !important;
  }

  .days td {
    padding: 8px;
    height: auto;
    color: unset;
    font-size: unset;
    background: #ddd;

    &.today {
      background: var(--color-secondary);
      color: white;
    }

    a {
      margin: 0;
      padding: 0;
      line-height: 1;
    }    
  }

  .cell-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    min-width: 99px;
    aspect-ratio: 1.3;


    .day-number {
      font-size: 120%;
      font-weight: 600;
    }

  }

}


.ui-tooltip {
  h3 {
    font-size: 100%;
  }
  .date {
    font-size: 90%;
    color: #444;
  }
  .description {
    font-size: 90%;
  }  
}

form.validate {
  
}


#regfilters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
  select {
    max-width: none;
  }
}
#reglist_container {
  overflow-x: auto;

}
#container .pagenav .nav { 
  
  display: flex;
  flex-wrap: wrap;
  gap: 8px;


  a, .hidden {
    display: flex;
    align-items: center;
    justify-content: center;
    float: none;
    background: var(--color-secondary);
    padding: 4px 8px;
  }
}

#container .width240 input, #container .width240 textarea {
  width: 100%;
}
#container .width500 input, #container .width500 textarea {
  width: 100%;
}
#container .width120 input, #container .width120 textarea {
  width: 100%;
}
#container .width360 input, #container .width360 textarea {
  width: 100%;
}


#container form .field {
  float: none;
  margin: 0;
}

#categories_container .row {
  margin: 0;
}


#listtype a.calendar,
#listtype a.list {
  background-image: none;
  margin: 0;
}
#listtype {
  display: flex; 
  gap: 8px;
  align-items: center;
  a {
    display: flex;
    align-items: center;
    justify-content: center;
    
    background: var(--color-secondary);
    &.selected {
      background: black;
    }

    color: white;
    border-radius: 4px;

    width: auto;
    height: auto;
    float: none;

    width: 40px;
    height: 40px;

    span { 
      font-size: 32px;
    }
  }
}

.material-symbols-outlined {
  font-variation-settings:
  'FILL' 0,
  'wght' 200,
  'GRAD' 0,
  'opsz' 24;
}





body.signin {
  background: white;

  #header { 
    margin: 0;
    background-color: var(--color-primary); text-align: center; margin-bottom: 30px; 
    display: flex;
    justify-content: center;

    a {
      background:  url('/template/logo-blue-full.png') no-repeat center top;
      /* make logo white for now, but we can change this later if needed */
      filter: invert(100%) sepia(100%) grayscale(100%) brightness(200%);
      
      background-size: contain;
      width: 300px;
      height: auto;
      aspect-ratio: 900/475;
      display: block;
    }
  }

  #topbuttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 30px;

    @media (min-width: 768px) {
      justify-content: flex-start;
      margin-right: 20px;
    }

    a {
      margin: 0;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }
  }

  .form-check-input {
    margin-right: 8px;
    margin-top: 3px;
  }

  #container .pagenav a {
    border: 0;
    color: white;
  }
  #container .pagenav .nav {
    justify-content: center;
  }

}