@font-face {
  font-family: "Sono";
  font-style: normal;
  font-weight: 400;
  src:
    url(/resources/Sono-VariableFont_MONO,wght.ttf) format("truetype");
}

:root {
  --primary-clr: hsl(32, 100%, 56%);
  --secondary-clr: hsl(32, 85%, 50%);
  --tertiary-clr: hsl(32, 80%, 55%);
  --gradient-1: linear-gradient(45deg, #F28F1C, #f1dd6a, #da1414);
  --gradient-2: linear-gradient(-135deg, #F28F1C, #f1dd6a, #da1414);
  --drop-shadow: rgba(0, 0, 0, 0.7);
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Sono, system-ui;
  /* border: 1px solid green; */
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background: white;
  display: flex;
  flex-direction: column;
}

footer {
  position: relative;
  margin-top: auto;
  padding-top: 2em;
  text-align: center;
}

nav {
  position: sticky;
  top: 0;
  z-index: 3;
  background-color: var(--primary-clr);
  filter: drop-shadow(0 0 7px black);
  min-height: 100px;
  width: 100%;
  padding-block: 1rem;
}

nav ul {
  width: 100%;
  height: 100%;
  color: white;
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  list-style: none;
  gap: 20px;
}

nav ul li:first-child {
  margin-right: auto;
  padding-left: 2rem;
  height: 100%;
}

nav ul li:not(:first-child) a {
  height: 100%;
  padding: 30px;
}

nav ul li a {
  text-decoration: none;
  color: white;
  font-size: 1.5rem;
  transition: color 0.2s;
}

nav ul li a:visited {
  color: white;
}

nav ul li a:hover {
  color: rgb(207, 205, 205);
}

section h2 {
  font-size: 3rem;
  line-height: 3.5rem;
  padding-block: 2rem;
}

section p {
  font-size: 1.5rem;
  line-height: 2rem;
  padding-block: 2rem;
}

.diagonal {
  width: 100%;
  position: relative;
  isolation: isolate;
  /* background: var(--gradient-1); */
  padding-block: 5rem;
}

.diagonal::after {
  content: "";
  width: 100%;
  background-image: var(--gradient-1);
  filter: drop-shadow(0 0 10px var(--drop-shadow));
  position: absolute;
  z-index: -1;
  inset: 0;
  transform: skewY(3deg);
}

.inverse-diagonal {
  position: relative;
  isolation: isolate;
  /* background: var(--gradient-2); */
  padding-block: 5rem;

}

.inverse-diagonal::after {
  content: "";
  background-image: var(--gradient-2);
  filter: drop-shadow(0 0 15px var(--drop-shadow));
  position: absolute;
  z-index: -1;
  inset: 0;
  transform: skewY(-3deg);
}

.block {
  padding-block: 5rem;
}

.block>*:not(:first-child) {
  margin-block: 1rem;
}

.button {
  display: block;
  position: relative;
  color: black;
  background-color: var(--primary-clr);
  box-shadow: 0 0 2px black;
  padding: 30px;
  border-radius: 3rem;
  font-size: 1.5rem;
  border: none;
  margin-inline: auto;
  margin-block: 3rem;
  transition: transform 0.2s;
  cursor: pointer;
}

.button:hover {
  transform: scale(1.2);
}

.button:active {
  background-color: #d87f1a;
  transform: scale(0.8);
}

.wrapper {
  width: 100%;
  max-inline-size: 800px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

table {
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}

th,
td {
  padding: 1em;
  border: 1px solid black;
  text-align: center;
}

tr:nth-child(even) {
  background-color: lightgray;
}

th:first-child {
  border-top-left-radius: 1em;
}

th:last-child {
  border-top-right-radius: 1em;
}

tr:last-child td:first-child {
  border-bottom-left-radius: 1em;
}

tr:last-child td:last-child {
  border-bottom-right-radius: 1em;
}

.img {
  max-width: 100%;
  border-radius: 1em;
  box-shadow: 0 0 5px gray;
}

.img2 {
  display: block;
  max-width: 50%;
  margin-inline: auto;
  border-radius: 1em;
  box-shadow: 0 0 5px gray;
}

.video {
  border-radius: 1em;
  box-shadow: 0 0 5px gray;
}

.hyper:visited {
  color: #d87f1a;
}

.hyper {
  color: #d87f1a;
  display: inline-block;
  overflow-wrap: anywhere;
}

.hyper:active {
  color: #da1414;
}

.hideOnDesktop {
  visibility: hidden;
  position: absolute;
}

.drop-menu {
  position: sticky;
  top: 0;
  display: block;
  line-height: normal;
  background-color: var(--primary-clr);
  width: 100%;
}

#drop-menu-button {
  width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  z-index: 2;
  background-color: var(--secondary-clr);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.flippable {
  transition: 0.4s transform 0.2s ease-in-out;
}

.flipped {
  transform: rotateX(180deg);
}

.drop-menu-content {
  display: flex;
  pointer-events: none;
  position: absolute;
  margin: 0;
  padding: 0;
  transform: translateY(-2px);
  background-color: var(--tertiary-clr);
  min-width: 100%;
  box-shadow: 0 0 5px black;
  z-index: 3;

  flex-direction: column;
  align-items: center;

  /* Animation */
  opacity: 0;
  transform: translateY(-20rem);
  transition: opacity 0.4s ease-in, transform 0.4s ease-in;
}

.drop-menu-content.show {
  pointer-events: all;
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.drop-menu-content a {
  width: 100%;
  text-align: center;
  text-decoration: none;
  color: white;
  font-size: 1.5rem;
  transition: color 0.2s;
  padding-block: 2rem;
}

.drop-menu-content a:visited {
  color: white;
}

.drop-menu-content a:hover {
  color: rgb(207, 205, 205);
}

@media(max-width: 620px) {
  .hideOnMobile {
    display: none;
  }

  .hideOnDesktop {
    visibility: visible;
    position: sticky;
  }

  .nav-container {
    display: flex;
    position: sticky;
    top: 0;
    z-index: 10;
    flex-direction: column;
    min-width: 100%;
    min-height: fit-content;
    box-shadow: 0 0 5px black;
  }

  nav {
    background-color: var(--primary-clr);
    box-shadow: none;
    min-height: fit-content;
    width: 100%;
    z-index: 10;
    padding-block: 0;
  }

  nav>div {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--primary-clr);
    width: 100%;
    isolation: isolate;
  }

  nav>div>svg {
    z-index: 3;
    margin-block: .75rem;
  }

  section h2 {
    font-size: 2rem;
    line-height: 2.5rem;
    padding-block: 1rem;
  }

  section p {
    font-size: 1.5rem;
    line-height: 2rem;
    padding-block: 2rem;
  }

  table {
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
  }

  th,
  td {
    font-size: .80rem;
    padding: .5rem;
    border: 1px solid black;
    text-align: center;
  }

  tr:nth-child(even) {
    background-color: lightgray;
  }

  th:first-child {
    border-top-left-radius: 1em;
  }

  th:last-child {
    border-top-right-radius: 1em;
  }

  tr:last-child td:first-child {
    border-bottom-left-radius: 1em;
  }

  tr:last-child td:last-child {
    border-bottom-right-radius: 1em;
  }
}

label {
  text-transform: uppercase;
  font-size: 1rem;
  text-box-trim: trim-both;
  text-box-edge: cap alphabetic;
}

form {
  display: grid;
  gap: 1rem;

  @media (width>720px) {
    grid-template-columns: 1fr 1fr;
  }
}

input {
  border-radius: .75em;
  padding: 1.5ex 2ex;
  accent-color: #da1414;
}

input:not([type="checkbox"]) {
  width: 100%;
  border: none;
}

input:not([type="checkbox"]):focus {
  outline: 2px solid orangered;
  border: none;
}

.fine-print {
  font-size: .75em;
  text-transform: none;
}

.form-group:has(.fine-print) {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 1ch;
}

.form-group {
  display: grid;
  gap: .25lh;
}

form button {
  grid-column: 1 / -1;
  justify-self: start;
  position: relative;
  color: black;
  background-color: var(--primary-clr);
  border: none;
  box-shadow: 0 0 2px black;
  padding: 10px 15px;
  border-radius: 3rem;
  font-size: 1em;
  transition: transform 0.2s;
  cursor: pointer;
}

form button:hover {
  transform: scale(1.2);
}

form button:active {
  background-color: #d87f1a;
  transform: scale(0.8);
}

.errors {
  list-style: none;
  gap: 1rem;
  color: red;
  background-color: hsla(100, 100%, 100%, .75);
  padding: 1.5rem;
  border-radius: 1.5rem;
  margin-block: 1rem;
}

.success {
  color: rgb(15, 148, 15);
  background-color: hsla(100, 100%, 100%, .75);
  padding: 1.5rem;
  border-radius: 1.5rem;
  margin-block: 1rem;
}

.button-link {
  text-decoration: none;
  color: black;
  width: 100%;
  height: 100%;
}

.g-recaptcha {
  grid-column: 1/-1;
}