/*
 * Copyright (c) 2025-2026 Evolution Creek Software. All rights reserved.
 *
 * Unauthorized copying, linking, or other unintended use of this file
 * (in part or in whole) is strictly prohibited.
 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 100vw;
  margin: 0 auto;
  background-color: beige;
  opacity: 0;
  animation: fadeIn 0.2s ease-in forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

main{
  display: flex;
  flex-direction: column;
  flex: 1;
  align-items: center;
  gap: 3rem;
  margin-top: 2rem;
}

img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.2s ease;
}

header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem 2rem;
  background-color: wheat;
  box-shadow: 0 0 10px 3px peru;
  position: relative;
  top: 0;
  width: 100%;
  box-sizing: border-box;
  transition: opactiy 0.2s ease;
}

h1 {
  justify-self: center;
  font-family: 'Salsa', cursive;
  font-weight: 400;
  font-size: 2.5rem;
  margin: 0;
  white-space: nowrap;
  cursor: default;
  transition: opactiy 0.2s ease;
  line-height: 1;
}

#headerIcon {
  position: absolute;
  left: 0rem;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 600ms, left 0.3s ease;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
  z-index: 1100;
}

.line {
  fill: none;
  transition: stroke-dasharray 600ms, stroke-dashoffset 600ms, stroke 800ms;
  stroke: #000;
  stroke-width: 5.5;
  stroke-linecap: butt;
}

.ham8 .top {
  stroke-dasharray: 40 160;
}

.ham8 .middle {
  stroke-dasharray: 40 142;
  transform-origin: 50%;
  transition: transform 600ms;
}

.ham8 .bottom {
  stroke-dasharray: 40 85;
  transform-origin: 50%;
  transition: transform 600ms, stroke-dashoffset 600ms;
}

.ham8.active .top {
  stroke-dashoffset: -64px;
}

.ham8.active .middle {
  transform: rotate(90deg);
}

.ham8.active .bottom {
  stroke-dashoffset: -64px;
}

#headerIcon.active {
  transform: rotate(45deg);
  position: fixed;
}

#headerIcon.active .line {
  stroke: saddlebrown;
}

#sideMenu {
  position: fixed;
  top: 0;
  left: -250px;
  width: 250px;
  height: 100%;
  background: white;
  box-shadow: 2px 0 5px rgba(0,0,0,0.2);
  padding: 2rem 1rem;
  transition: left 0.3s ease;
  z-index: 1000;
  background-color: beige;
  display: flex;
  flex-direction: column;
}

#sideMenu.active {
  left: 0;
}

#sideMenu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  margin-top: 3rem;
}

#sideMenu li {
  margin: 1rem 0;
}

#sideMenu a {
  text-decoration: none;
  font-family: 'Patrick Hand', cursive;
  font-size: 1.7rem;
  color: black;
  transition: color 0.2s ease;
}

#sideMenu a:hover {
  color: saddlebrown;
}

#socialIcons {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 1rem;
  padding: 1rem 0;
  margin-top: auto;
  margin-bottom: -1rem;
}

#socialIcons i {
  font-size: 1.7rem;
  color: black;
  transition: color 0.2s ease;
}

#socialIcons a {
  position: relative;
}

#socialIcons a::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 130%;
  left: 50%;
  transform: translateX(-50%);
  background: sienna;
  color: white;
  font-family: 'Salsa', cursive;
  font-size: 1rem;
  white-space: nowrap;
  padding: 4px 8px;
  border-radius: 6px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

#socialIcons a:hover::after {
  opacity: 1;
}

#socialIcons a:hover i {
  color: sienna;
}

.popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 2rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  z-index: 2000;
  width: 80%;
  max-width: 400px;
  border-radius: 10px;
  cursor: default;
  border: 2px solid black;
}


.popup h2{
  font-size: 2rem;
  font-family: 'Caveat', cursive;
  color: saddlebrown;
}

.popup p{
  font-size: 1.5rem;
  font-family: "Caveat Brush", cursive;
}

.popup a{
  text-decoration: none;
  font-size: 1.5rem;
  font-family: "Caveat Brush", cursive;
}
.popup a:hover{
  color: blue;
}

.popup.active {
  display: block;
}

#popups.active ~ main,
#popups.active ~ header h1 {
  opacity: 0.5;
}

.square {
  width: min(500px, 90vw);
  position: relative;
  box-sizing: border-box;
  aspect-ratio: 5/3;
  overflow: hidden;
  border: 3px solid black;
  border-radius: 5px;
  font-size: clamp(20px, 2rem, 40px);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease, opacity 0.2s ease, border 0.2s ease;
}

img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.2s ease;
}

#textDiv{
  width: min(1000px, 85vw);
  display: flex;
  flex-direction: column;
  flex: 1;
  align-items: center;
  gap: 3rem;
  margin-top: 2rem;
}

#textDiv p{
  font-size: 1.3rem;
  font-family: "Afacad Flux", sans-serif;
  font-weight: 500;
}

#textDiv h1{
  font-size: 1.5rem;
  font-family: "Afacad Flux", sans-serif;
  font-weight: 700;
}

.effective-date {
  font-size: 1rem;
  font-family: "Afacad Flux", sans-serif;
  color: #666;
  font-style: italic;
}

#textDiv h1{
  font-size: 1.5rem;
  font-family: "Afacad Flux", sans-serif;
  font-weight: 700;
}

#textDiv ul{
  font-size: 1.3rem;
  font-family: "Afacad Flux", sans-serif;
  font-weight: 500;
  padding-left: 2rem;
}

#textDiv ol{
  font-size: 1.3rem;
  font-family: "Afacad Flux", sans-serif;
  font-weight: 500;
}

form {
  display: flex;
  flex-direction: column;
  width: min(600px, 80vw);
  gap: 0.4rem;
}

form label {
  font-size: 1.1rem;
  font-family: "Afacad Flux", sans-serif;
  font-weight: 600;
}

form input,
form select,
form textarea {
  width: 100%;
  padding: 0.5rem 0.6rem;
  font-size: 1rem;
  font-family: "Afacad Flux", sans-serif;
  border: 1px solid #aaa;
  border-radius: 4px;
  background-color: #fffef8;
}

form textarea {
  height: 12rem;
  resize: vertical;
}

form button[type="submit"] {
  margin-top: 1rem;
  padding: 0.6rem 1.5rem;
  font-size: 1.1rem;
  font-family: "Afacad Flux", sans-serif;
  background-color: saddlebrown;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  align-self: flex-start;
}

form button[type="submit"]:hover:not(:disabled) {
  background-color: peru;
}

form button[type="submit"]:disabled {
  background-color: #b09080;
  cursor: not-allowed;
}

.req {
  color: red;
  font-weight: bold;
}

.required-note {
  font-size: 0.9rem;
  font-family: "Afacad Flux", sans-serif;
  color: #555;
  margin-top: 0.3rem;
}

footer {
  text-align: center;
  padding: 1rem;
  font-size: 1rem;
  color: #666;
  cursor: default;
  margin-top: auto;
}

@media (max-width: 700px) {
  header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.25rem;
  }

  h1{
    font-size: 1.5rem;
    line-height: 1;
    max-width: 70vw;
    text-align: center;
  }

  #headerIcon{
    left: 0rem;
    padding: 7px;
  }

  #sideMenu.active + #headerIcon,
  #headerIcon.active {
    left: 0rem;
    position: fixed;
  }


  #sideMenu {
    left: -100vw;
    width: 100vw;
    box-sizing: border-box;
  }

  #sideMenu.active {
    left: 0;  /* Add !important here too */
  }

  #sideMenu ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  #sideMenu a {
  	font-size: 1.5rem;
  }

  #socialIcons {
    margin-top: 0rem;
  }

  #socialIcons i {
    font-size: 1.7rem;
  }

  #socialIcons a::after {
    bottom: -130%;
  }

  .title{
    display: flex;
    align-items: flex-end;
    justify-content: center;
    font-size: 25px;
    line-height: 1.2;
    min-height: calc(1.2em * 3);
  }

  #textDiv{
    width: 85vw;
  }

  #textDiv h1{
    font-size: 1.2rem;
  }

  #textDiv p{
    font-size: 1.1rem;
  }

  #textDiv ul{
    font-size: 1.1rem;
  }

  #textDiv ol{
    font-size: 1.1rem;
  }
  footer{
    margin-top: auto;
  }
}
