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

html {
  background: url('heartmushAI.png') no-repeat center center fixed;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.content {
  flex: 1 0 auto;
}

.footer {
  flex-shrink: 0;
}

h1 {
  font-family: 'Arial Black';
  color: #74dcff;
  text-shadow: 0 0 3px #000000, 0 0 5px #0000ff;
  text-align: center;
  margin-top: 20px;
  font-size: 40px;
  padding-bottom: 1rem;
}

p {
  text-align: center;
  font-family: 'Arial Black';
  color: #74dcff;
  text-shadow: 0 0 3px #000000, 0 0 5px #0000ff;
  font-size: 26px;
  max-width: 100%;
  padding-left: 3rem;
  padding-right: 3rem;
}

.resources-list {
  text-align: left;
  display: inline-block;
  font-family: 'Arial Black';
  font-size: 22px;
  padding-top: 1rem;
  padding-left: 0.5rem;
  color: #74dcff;
  text-shadow: 0 0 3px #000000, 0 0 5px #0000ff;
}

.resources-list div {
  padding-bottom: 0.5rem;
  padding-left: 0.5rem;
}

.resources-list-li {
  padding-bottom: 0.5rem;
  padding-left: 1rem;
}

.resources-list-li a {
  color: #0bb3eb;
  text-shadow: 0 0 3px #000000, 0 0 5px #0000ff;
}

header {
  background-color: rgb(1, 8, 79, 0.7);
  box-shadow: 0px 0px 4px #111;
  font-family: Arial;
  margin-bottom: 2rem;
}

header > .container-header {
  width: 90%;
  margin: auto;
  display: flex;
  justify-content: space-between;
}

header .logo {
  text-decoration: none;
  padding-left: 1.5rem;
  padding-top: 25px;
  display: flex;
  font-size: 25px;
  color: #fff;
  font-weight: bold;
  letter-spacing: 1px;
  background: linear-gradient(90deg, red, orange, yellow, green, blue, purple);
  background-clip: text;
  -webkit-background-clip: text;
}

header .logo:hover {
  background-image: linear-gradient(-225deg, #74dcff, #74dcff, #74dcff, #74dcff, blue, blue, purple, rgb(173, 0, 81), red, orange, yellow, rgb(81, 255, 0), olive, green);
  background-size: auto auto;
  background-clip: border-box;
  background-size: 200% auto;
  color: #000;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textclip 1.5s linear infinite;
  display: inline-block;
}

header nav ul {
  display: flex;
  list-style-type: none;
}

header nav ul li {
  padding: 25px 20px;
}

header nav ul li a {
  text-decoration: none;
  color: #fff;
  background: linear-gradient(90deg, red, orange, yellow, green, blue, purple);
  background-clip: text;
  -webkit-background-clip: text;
  font-size: 18px;
  transition: 0.5s;
}

header nav ul li a:hover {
  background-image: linear-gradient(90deg, red, orange, yellow, rgb(48, 165, 1), green, rgb(11, 163, 105), #74dcff, blue, purple, rgb(173, 5, 81));
  background-size: auto auto;
  background-clip: border-box;
  background-size: 200% auto;
  color: #000;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textclip 1.5s linear infinite;
  display: inline-block;
  font-size: 20px;
}

.footer-div {
  color: #fff;
  font-size: 18px;
  text-align: left;
  width: 100%;
  padding-left: 2rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  background-color: rgb(1, 8, 79, 0.7);
  box-shadow: 0px 0px 4px #111;
  font-family: Arial;
  left: 0;
  right: 0;
}

figure {
  float: right;
  height: 100%;
  text-align: center;
  font-style: italic;
  text-indent: 0;
  font-size: 24px;
  margin: 0.5em;
  padding: 0.5em;
}

figcaption {
  font-family: 'Arial Black';
  color: #74dcff;
  text-shadow: 0 0 3px #000000, 0 0 5px #0000ff;
}

img.scaled {
  width: 100%;
  max-height: 50vh;
}

.photo-item {
  display: flex;
  flex-direction: row;
  flex-flow: row wrap;
  justify-content: space-evenly;
}

.animate-charcter {
  text-transform: uppercase;
  background-image: linear-gradient(-225deg, #231557 0%, #44107a 29%, #ff1361 67%, #fff800 100%);
  background-size: auto auto;
  background-clip: border-box;
  background-size: 200% auto;
  color: #fff;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textclip 2s linear infinite;
  display: inline-block;
  font-size: 190px;
}

@keyframes textclip {
  to {
    background-position: 200% center;
  }
}

.space-after {
  display: block;
  margin-bottom: 20px; /* Adjust the value as needed */
}

.collapsible-input {
  display: none; /* Hide the checkbox */
}

/* By default, hide the content */
.collapsible-content {
  max-height: 0; /* Collapse content */
  overflow: hidden; /* Hide overflow when collapsed */
  transition: max-height 0.3s ease; /* Smooth transition */
}

/* When checkbox is checked, show content */
.collapsible-input:checked ~ .collapsible-content {
  max-height: 500px; /* Adjust based on content size */
}

.collapsible-header {
  display: block; /* Make label a block element to fill width */
  padding: 1rem; /* Add spacing */
  background-color: rgb(1, 8, 79, 0.7);
  cursor: pointer; /* Show pointer on hover */
  font-weight: bold; /* Make text stand out */
  user-select: none; /* Prevent text selection on click */
  transition: background 0.2s ease; /* Smooth background change */
}

/* Hover effect */
.collapsible-header:hover {
  background-color: rgb(1, 8, 79, 0.9);
}

.ham-menu {
  display: inline-block;
  position: relative;
  margin: 35px 0;
} /* margin = (width-height)/2 */

.ham-menu, .ham-menu::before, .ham-menu::after {
  width: 2.5rem;
  height: 0.65rem;
  border-radius: 7px;
  background-color: white;
}

.ham-menu::before, .ham-menu::after {
  content: "";
  display: block;
  position: absolute;
}

.ham-menu::before {
  bottom: 130%;
}

.ham-menu::after {
  top: 130%;
}

.visibledevice {
  display: none;
}

.visibledesktop {
  display: block;
}

.modal {
  opacity: 0;
  visibility: hidden;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  text-align: left;
  background: rgba(0,0,0, .9);
  transition: opacity .25s ease;
}

.modal__bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  cursor: pointer;
}

.modal-state {
  display: none;
}

.modal-state:checked + .modal {
  opacity: 1;
  visibility: visible;
}

.modal-state:checked + .modal .modal__inner {
  top: 0;
}

.modal__inner {
  transition: top .25s ease;
  position: absolute;
  top: -20%;
  right: 0;
  bottom: 0;
  left: 0;
  width: 50%;
  margin: auto;
  overflow: auto;
  background: url('heartmushAI.png') no-repeat center center fixed;
  border-radius: 5px;
  height: 50%;
}

.modal__close {
  position: absolute;
  right: 1em;
  top: 1em;
  width: 1.1em;
  height: 1.1em;
  cursor: pointer;
}

.modal__close:after,
.modal__close:before {
  content: '';
  position: absolute;
  width: 2px;
  height: 1.5em;
  background: #ccc;
  display: block;
  transform: rotate(45deg);
  left: 50%;
  margin: -3px 0 0 -1px;
  top: 0;
}

.modal__close:hover:after,
.modal__close:hover:before {
  background: #aaa;
}

.modal__close:before {
  transform: rotate(-45deg);
}

@media screen and (max-width: 768px) {
  .modal__inner {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
  }
}

/* MOBILE STYLING */
@media (max-width: 650px) {
  .visibledevice {
    display: block;
  }

  .visibledesktop {
    display: none;
  }

   body {
    font-size: 16px;
    line-height: 1.6;
  }

  h1 {
    font-size: 28px;          /* scale down headline */
    margin-top: 1rem;
    padding-bottom: 0.75rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  p {
    font-size: 18px;          /* readable without dominating */
    padding-left: 1rem;      /* prevent edge-hugging */
    padding-right: 1rem;
    line-height: 1.5;
    text-align: left;
  }
  
  .resources-list {
    font-size: 18px;        /* scale text down */
    padding-left: 1rem;    /* more breathing room */
    padding-right: 1rem;
    display: block;        /* prevent awkward centering */
    list-style: none;
  }

  .resources-list div {
    padding-left: 0;
    padding-bottom: 0.5rem;
  }

  .resources-list h2 {
    padding-bottom: 0.75rem;
  }

  .resources-list-li {
    padding-left: 0.75rem;
    padding-bottom: 0.05rem;
  }

  .resources-list-li a {
    display: inline-block; /* larger tap area */
    padding: 0.25rem 0;
  }

  .container {
    padding: clamp(1rem, 4vw, 1.5rem);
  }

  header {
    height: 100%;
    margin-bottom: 1px;
  }

  header nav ul li {
    padding: 10px 10px;
  }

  header .logo {
    text-decoration: none;
    padding-left: 0rem;
    padding-top: 25px;
    display: flex;
    font-size: 30px;
    color: #fff;
    font-weight: bold;
    letter-spacing: 1px;
    background: linear-gradient(90deg, red, orange, yellow, green, blue, purple);
    background-clip: text;
    -webkit-background-clip: text;
    background-image: linear-gradient(-225deg, #74dcff, #74dcff, #74dcff, #74dcff, #74dcff, blue, blue, purple, rgb(173, 0, 81), red, orange, yellow, rgb(81, 255, 0), olive, green, green);
    background-size: auto auto;
    background-clip: border-box;
    background-size: 200% auto;
    color: #000;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textclip 1.5s linear infinite;
    display: inline-block;
  }

  header .logo:hover {
    font-size: 30px;
  }

  header nav ul {
    display: grid;
    list-style-type: none;
  }

  .footer-div {
    line-height: 1.05;
    font-size: 16px;
    padding-left: 1rem;
  }
}