* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  list-style: none;
}

html {
  scrollbar-gutter: stable;
}

body {
  background: #222;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  font-size: 18px;
  line-height: 1.9rem;
  color: rgb(208, 208, 208);
}

@media (width > 700px) {
  body {
    background-image: url("../img/bg.jpg");
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
  }
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: white;
}

strong {
  color:white;
}

main {
  background: rgba(0, 0, 0, 0.3);
  width: 100%;
  overflow: hidden;
}

.wide article {
  padding: .5rem 1.3rem 0 1.3rem;
}

.masthead {
  background: rgb(0, 128, 0);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}

.masthead img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  background: white;
  border-radius: 50%;
  padding: 5px;
}

.masthead h1 {
  font-size: 1.3rem;
  line-height: 1.5rem;
}

nav {
  display: flex;
  flex-direction: column;
  padding: 1rem 2rem 0 2rem;
  gap: .5rem;
}

nav a,
nav label {
  display: block;
  padding: .3rem 1rem;
  border: 1px solid white;
  text-decoration: none;
  border-radius: .2rem;

  &:hover {
    background-color: #222;
  }
}

nav a.current {
  background: #222;
}

label:has(#mobile-menu) {
  cursor: pointer;
  border: none;
  background-color: #444;
  display: flex;
  gap: .5rem;
  align-items: center;
  
  &::before {
    display: block;
    content: ' ';
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3E%3Cg clip-path='url(%23a)'%3E%3Cpath stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.5' d='M3 6h18M3 12h18M3 18h18'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='a'%3E%3Cpath fill='%23fff' d='M0 0h24v24H0z'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E");
  }
}

nav:has(#mobile-menu:checked) label {
  background-color: #222;
}

input#mobile-menu {
  display: none;
}

nav a {
  display: none;
}

nav:has(#mobile-menu:checked) a {
  display: block;
}

article,
aside {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2rem;
}

blockquote {
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.6rem;
}

a {
  color: white;

  :visited {
    color: white;
  }
}

article a {
  text-decoration: underline dashed;

  &:hover {
    text-decoration: underline solid;
  }
}

.mission {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-left: 1rem;
}

.list li {
  list-style: disc;
}

aside {
  border-radius: .3rem;
  overflow: hidden;
  backdrop-filter: blur(10px);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid #222;
  width: 100%;
}

aside#calendar {
  padding: 0.5rem
}

#calendar {
  min-height: 700px;
}

.cta-button {
  background: green;
  padding: 1rem;
  border-radius: .25rem;
  text-align: center;
  text-decoration: none;
  display:flex;
  flex-direction: column;
  appearance: none;
  border: none;
  cursor: pointer;
  color: white;
  font-size: 1rem;
  -webkit-appearance: none;

  &:hover {
    background: rgb(5, 165, 5);
  }

  span {
    font-weight: bold;
  }

  small {
    font-size: .75rem;
    line-height: 1rem;
  }

  em {
    font-weight: normal;
  }
}

.cta-em {
  color: rgb(5, 165, 5);
}

.text-center {
  text-align: center;
}

form {
  display: flex;
  flex-direction: column;
  gap:.5rem;

  label {
    display: flex;
    flex-direction: column;
    gap:.25rem;
    font-size: 1rem;
  }

  input {
    width: 100%;
    padding:.5em;
    font-size: 1rem;
  }

  textarea {
    min-height: 120px;
  }
}

small.required {
  color: red;
}

.container {
  container-type: inline-size;
  container-name: table-container;
}

@container table-container (width >= 500px ) {
  td:not(:first-of-type) {
    padding-left: 1rem;
  }
}


@container table-container (width < 500px ) {
  tbody {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;

    tr {
      display: flex;
      flex-direction: column;

      td {
        padding-left: 0;
      }
    }
  }
}

textarea {
  padding: .5rem;
  font-size: 1rem;
  font-family: sans-serif;
}