* {
  box-sizing: border-box;
}

html {
  cursor: url('../images/regularcursor.webp') 4 1, auto;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

@media (min-width: 48em) {
  html {
    scroll-padding-top: 0rem;
  }
}

/*makes the scroll malarkey not bother some people*/
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* did a lot of fiddling with colors and wanted them easily changeable on the fly*/

:root {
  --skyblue: #cfecff;
  --tobwhite: #ffffff;
  --darkblue: #5993C9;
  --hilight: #364055;
  --bluegaloo: #90bfe6;
}

body {
  margin: 0;
  font-family: 'Raleway', 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  color: var(--hilight);
  background: #ecf8fe url("../images/bg.webp") repeat fixed;
  background-size: 5rem;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  min-height: 100dvh;
}

.skiplink {
  position: absolute;
  top: -10rem;
  left: 50%;
  translate: -50% 0;
  z-index: 2000;
}

.skiplink:focus {
  top: 1rem;
  padding: .5rem;
  background-color: var(--tobwhite);
}

h2,
h3 {

  color: var(--tobwhite);
  text-shadow:
    1px 1px 0 var(--hilight),
    -1px 1px 0 var(--hilight),
    1px -1px 0 var(--hilight),
    -1px -1px 0 var(--hilight);
}

h4, h5, h6{
  font-size: 1.5em;
  color: var(--darkblue);
    text-shadow:
    1px 1px 0 var(--hilight),
    -1px 1px 0 var(--hilight),
    1px -1px 0 var(--hilight),
    -1px -1px 0 var(--hilight);

}

header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav {
  background: var(--bluegaloo);
  height: 3.5rem;
  padding-top: 1rem;
}

nav a, nav a:visited {
  text-decoration: none;
  color: var(--tobwhite);
  transition: font-size 0.3s ease-in-out;
  text-shadow:
    1px 1px 0 var(--hilight),
    -1px 1px 0 var(--hilight),
    1px -1px 0 var(--hilight),
    -1px -1px 0 var(--hilight);

}

nav a:hover,
nav a:focus {
  color: var(--skyblue);
  text-decoration: none;

}

nav::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 15px;
  background:
    radial-gradient(circle at 50% -10px,
      var(--bluegaloo) 23px,
      transparent 24px);
  background-size: 40px 15px;
  background-repeat: repeat-x;
}


@media (min-width: 48em) {

  nav a:hover,
  nav a:focus {
    font-size: 3rem;

  }

  nav::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 30px;
    background:
      radial-gradient(circle at 50% -20px,
        var(--bluegaloo) 47px,
        transparent 48px);
    background-size: 80px 30px;
    background-repeat: repeat-x;
  }
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 1rem;
  font-family: "Raleway", sans-serif;
  font-size: 1rem;
  position: absolute;
  top: 100%;
  z-index: 1;
  display: none;
  background-color: var(--bluegaloo);
  border-radius: 0 0 1rem 1rem;

}

nav ul li {
  padding-bottom: 1rem;

}




nav button[aria-expanded="true"]+ul {
  display: block;
}

nav button {
  position: absolute;
  left: 1rem;
  top: .5rem;
  border: none;
  background: none;
  padding: 0;

}

nav button img {
  height: 2rem;
  width: auto;
}

@media (min-width: 48em) {

  nav ul {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    list-style: none;
    margin: 0 0 0 auto;
    padding: 0;
    gap: 2rem;
    font-family: "Tangerine", sans-serif;
    font-size: 2rem;
    font-weight: 400;
    font-style: normal;
    margin-right: 2rem;
    position: relative;
    background: none;
    top: 0%;
    width: fit-content;
  }

  nav button[aria-expanded]+ul {
    display: flex;
  }

}


.aviarialogo {
  position: absolute;
  right: 1rem;
  top: .5rem;
  width: 9rem;


}

.aviarialogopath {
  fill: #fff;
  transition: fill 0.3s ease-in-out;
}

.aviarialogo:hover>.aviarialogopath {
  fill: var(--hilight);

}

@media (min-width: 48em) {
  .aviarialogo {
    left: 1rem;

  }

  nav button {
    display: none;

  }

  .homelink {
    display: none;

  }

}

a, a:visited, a:active {
  color: var(--darkblue);
  text-decoration: none;
  font-weight: 600;

}

a:hover,
a:focus {
  cursor: url('../images/hovercursor.webp') 4 1, pointer;
  color: var(--bluegaloo);
  text-decoration: overline underline;

}

p {
  color: var(--hilight);

}


h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;

}


.hero {
  position: relative;
}

.hero video {
  display: block;
  width: 100%;
}

.hero::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 15px;
  background:
    radial-gradient(circle at 50% -10px,
      var(--bluegaloo) 23px,
      transparent 24px);
  background-size: 40px 15px;
  background-repeat: repeat-x;
}

@media (min-width: 48em) {
  .hero::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 30px;
    background:
      radial-gradient(circle at 50% -20px,
        #90bfe6 47px,
        transparent 48px);
    background-size: 80px 30px;
    background-repeat: repeat-x;
  }
}

.hero img {
  display: none;


}

@media (min-width: 48em) {
  .hero img {
    display: block;
    position: absolute;
    bottom: 2rem;
    left: 1rem;
    width: 20rem;
    filter: drop-shadow(0 4px 8px rgb(0 0 0 / 0.5));
    animation: fade-in 2s ease-out both;
  }

  @keyframes fade-in {
    from {
      opacity: 0;
    }

    to {
      opacity: 1;
    }
  }
}

/*there were just a lot of things that needed a center class*/
.centeredtext {
  text-align: center;

}

.divider {
  display: block;
  width: 20rem;
  margin-inline: auto;
  padding: 1rem;

}

main {
  margin-top: -3rem;
  background-color: #ffffffb3;
  border-style: none;
  padding: .5rem;
  padding-top: 5rem;
  padding-bottom: 2rem;



}

@media (min-width: 48em) {
  main {
    margin-left: 4rem;
    margin-right: 4rem;
    margin-top: -3rem;
    padding: 6rem;
    background-color: #ffffffb3;
    border-style: solid;
    border-width: .2rem;
    border-color: var(--tobwhite);

  }

}

/*this is for making the character portraits work*/

.portraits {
  display: flex;
  justify-content: space-evenly;
  flex-wrap: wrap;
  justify-content: center;
}

.roundportrait {
  width: 10rem;
  height: 10rem;
  border-radius: 50%;
  flex-shrink: 0;
}



.portraits img {
  clip-path: circle(50%);
  transition: scale 0.3s ease-in-out,
    clip-path 0.3s ease-in-out,
    background-color 0.3s ease-in-out;
}

.portraits img:hover,
.portraits a:focus img {
  scale: 1.1;
  clip-path: circle(45.45%);
  /* 50% ÷ 1.1, so the circle stays the same size */
  background-color: var(--skyblue);
}


.amenities section {
  display: none;

}

.amenities section:target {
  display: block;
}



/*this is for making the character bio grids work*/

.content section {
  display: none;

}

.content section p {
  margin: .5rem 0;

}


.content section figure img {
  width: 80%;
  display: block;
  margin-inline: auto;

}

.content section:target {
  display: block grid;
  grid-template-columns: 1fr;
  grid-template-rows: repeat(6, auto) 1fr;
  margin: 0;
}

.content section figure {
  margin: 0;
  grid-row: 2;
}

blockquote {
  margin: 0;

}


@media (min-width: 48em) {
  .content section:target {
    display: block grid;
    grid-template-columns: 1fr repeat(2, auto) 1fr;
    grid-template-rows: repeat(5, auto) 1fr repeat(2, auto);
  }

  .content section figure {
    grid-row: 2/7;
    grid-column: 2;
    margin: 0;
  }

  .content section figure img {
    height: 30rem;
    width: auto;
  }



  .content section h3 {
    grid-column: 1/5;
    margin-top: 6rem;

  }

  .content section p {
    grid-column: 3;

  }

  .content section blockquote {
    grid-column: 1/5;
    margin: 1rem 2.5rem;


  }

  .content section blockquote cite {
    grid-column: 1/5;

  }

}

/*this is for making the table look good*/
table {

  margin-inline: auto;
}

table tr td {
  text-align: right;

}

table tr td button {
  text-align: center;

}


form input,
form textarea {
  width: 100%;
  font: inherit;
  resize: vertical;
}

/* this makes the map work*/
.map {
  position: relative;
}

.map img {
  display: block;
  width: 100%;
}

.map-link {
  position: absolute;
}

.map-link,
.map-link:hover {
  color: transparent;
}

.map-link:focus {
  outline: 2px solid var(--hilight);
  color: transparent;
}

table button {

  background-color: var(--skyblue);
  border-style: none;
  color: var(--hilight);
  padding: .5rem 1rem .5rem 1rem;
  font-weight: bold;
  border-radius: .5rem;


}



table button:hover {
  background-color: var(--tobwhite);
  border-style: none;
  color: var(--bluegaloo);
  scale: 1.1;
  transition: scale 0.3s ease-in-out;

}


footer {
  position: relative;
  background-color: var(--tobwhite);
  font-size: .875rem;
  margin: 0;
  padding: 0rem;
  z-index: 3;

}

footer::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 0;
  width: 100%;
  height: 15px;
  background:
    radial-gradient(circle at 50% calc(100% + 10px),
      var(--tobwhite) 23px,
      transparent 24px);
  background-size: 40px 15px;
  background-repeat: repeat-x;
  z-index: 3;
}


@media (min-width: 48em) {

  footer::before {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 0;
    width: 100%;
    height: 30px;
    background:
      radial-gradient(circle at 50% calc(100% + 20px),
        var(--tobwhite) 47px,
        transparent 48px);
    background-size: 80px 30px;
    background-repeat: repeat-x;
    z-index: 3;
  }

}