@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&family=Changa+One&display=swap');

* { box-sizing: border-box; }
body {
  margin: 0;
  background: #282827;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.4;
}
a { color: inherit; }
button, input, select { font: inherit; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, summary:focus-visible {
  outline: 3px solid #e5c89b;
  outline-offset: 4px;
}


.site {
  min-height: 100vh;
  margin: auto;
  padding: 24px 30px 60px;
  background: linear-gradient(#202526a6, #202526a6), url("assets/forest.jpg") center / cover;
}

.home-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 15px 25px;
    background:radial-gradient( ellipse at 20% 30%, rgba(155, 119, 82, 0.18), transparent 60%),radial-gradient( ellipse at 80% 75%, rgba(15, 10, 8, 0.35), transparent 65%),linear-gradient(135deg, #4b3b32, #302720 65%, #241c18);
    border-radius: 15px;
    box-shadow:0 8px 20px rgba(0, 0, 0, 0.75), 0 3px 6px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    position: relative;
}
.header-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 0;
}
.logo-link {
    position: relative;
    width: 100px;
    height: 100px;
    flex-shrink: 0;
}

.logo-link img {
    position: absolute;
    width: 135px;
    height: auto;
    max-width: none;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    scale: 0.8 1;
}

.brand-text {
    text-align: left;
}
.Deer{
  position: absolute;
  width: 24%;
  height: auto;
  object-fit: contain;
  top: 5%;
  max-width: 100%;
}

.brand{
  text-decoration: none;
}

.home-header h1 {
    font-size: 28px;
    font-weight: bold;
    margin: 0;
}

.brand-text p {
    font-size: 12px;
    margin: 4px 0 0;
}

.home-header .header-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 15px;
    margin: 0;
    font-size: 16px;
}


.header-nav a {
    white-space: nowrap;
    text-decoration: none;
    padding-right: 15px;
    border-right: 1px solid #b9a58b;
}

.header-nav a:nth-last-child(2) {
    border-right: none;
    padding-right: 0;
}

.header-nav a:hover {
    color: #e5c89b;
}

.header-nav .support-button {
    border: 1px solid #e5c89b;
    border-radius: 25px;
    padding: 8px 18px;
    color: #e5c89b;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.header-nav .support-button:hover {
    background-color: #e5c89b;
    color: #302720;
}


p{
  text-decoration: none;
  top: 25px;
}

nav{
  text-decoration: none;
}

nav:hover{
  text-decoration: none;
}

.header-nav a:not(.support-button) {
    padding: 8px 12px;
    border-radius: 6px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.header-nav a:not(.support-button):hover,
.header-nav a:not(.support-button):focus-visible,
.header-nav a:not(.support-button):active {
    background-color: #e5c89b;
    color: #302720;
    text-decoration: none;
}


.search-section form {
  display: flex;
  justify-content: center;
  width: 50%;
  margin: 0 auto;
}
.search-section input{
  flex: 1;
  padding: 12px;
}

.search-section{
    margin-top: 6%;
}

.Deer{
  position: absolute;
  left: 5px;
  width: 25%;
  height: auto;
  top: 200px;
  object-fit: contain;
}


.mothman{
  position: absolute;
  left: 73%;
  width: 25%;
  height: auto;
  top: 200px;
  object-fit: contain;
}
.categories img {
  width: 125px;
  height: 125px;
  object-fit: contain;
}
.categories > a {
    border-radius: 20px;
    padding: 20px;    
    min-height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 30px;
    box-shadow:0 8px 20px rgba(0, 0, 0, 0.75), 0 3px 6px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    background:radial-gradient( ellipse at 20% 30%, rgba(155, 119, 82, 0.18), transparent 60%),radial-gradient( ellipse at 80% 75%, rgba(70, 48, 39, 0.35), transparent 65%),linear-gradient(135deg, #665144, #42362c 65%, #332822);

}
.categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  max-width: 750px;
  margin: 120px auto 0;
  width: 95%;
}

.categories > a {
    transition: background 0.25s ease, color 0.25s ease;
}

.categories > a:hover,
.categories > a:focus-visible,
.categories > a:active {
    background: #e5c89b;
    color: #302720;
}


.nearby h1{
  background:radial-gradient( ellipse at 20% 30%, rgba(155, 119, 82, 0.18), transparent 60%),radial-gradient( ellipse at 80% 75%, rgba(70, 48, 39, 0.35), transparent 65%),linear-gradient(135deg, #665144, #42362c 65%, #332822);
  border-radius: 15px;
  text-align: center;
  font-size: 52px;
  font-weight: bold;
  margin: 24px;
  margin-top: 3%;
  text-decoration: none;
}
/*.creature-grid article{
  background-color: #595353;
  border-radius: 20px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-width: 0;
  font-size: 17px;
}*/
.creature-grid article {
    width: 100%;
    min-width: 0;
}
.creature-grid h2 {
  margin: 0;
  padding: 3px;
  font-size: 30px;
  text-align: center;
}
.nearby img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 15px;
    margin: 0 auto;
}
.creature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 15px;
  margin-top: -8px;
}
@media (min-width: 1200px) {
    .creature-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
.creature-grid .placeholder {
  background:radial-gradient( ellipse at 20% 30%, rgba(155, 119, 82, 0.18), transparent 60%),radial-gradient( ellipse at 80% 75%, rgba(70, 48, 39, 0.35), transparent 65%),linear-gradient(135deg, #665144, #42362c 65%, #332822);
  border-radius: 20px;
  width: 425px;
  min-height: 450px;
}


.creature-grid .placeholder-image {
    width: 400px;
    height: 400px;
    background:radial-gradient( ellipse at 20% 30%, rgba(155, 119, 82, 0.18), transparent 60%),radial-gradient( ellipse at 80% 75%, rgba(70, 48, 39, 0.35), transparent 65%),linear-gradient(135deg, #665144, #42362c 65%, #332822);
    box-shadow:0 8px 20px rgba(0, 0, 0, 0.75), 0 3px 6px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    border-radius: 20px;
}

.creature-grid .creature-card {
    background:radial-gradient( ellipse at 20% 30%, rgba(155, 119, 82, 0.18), transparent 60%),radial-gradient( ellipse at 80% 75%, rgba(70, 48, 39, 0.35), transparent 65%),linear-gradient(135deg, #665144, #42362c 65%, #332822);
    box-shadow:0 8px 20px rgba(0, 0, 0, 0.75), 0 3px 6px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 12px;
    text-align: center;
}

.creature-grid .creature-card h2 {
    margin: 0;
    padding: 3px;
    font-size: 30px;
    text-align: center;
}

.creature-card, .aquatic-card, .terrestrial-card, .paranormal-card {
    position: relative;
    overflow: hidden;
}

.creature-info {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 10px;
    border-radius: 20px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.creature-card:hover .creature-info,
    .terrestrial-card:hover .creature-info,
    .aquatic-card:hover .creature-info,
    .paranormal-card:hover .creature-info{
    opacity: 1;
}
.creature-info h3 {
    margin: 5px 0;
    font-size: 20px;
}

.creature-info p {
    text-decoration: none;
    margin: 3px 0;
}

.creature-info {
    text-decoration: none;
}

.paranormal-card a {
    text-decoration: none;
}

.creature-info,
.creature-info a {
    text-decoration: none;
}



/*--------------------------------------------------TERRESTRAIL PAGE-----------------------------*/
.terrestrial-intro h1 {
    color: white;
    text-align: center;
    border-radius: 15px;
    padding: 10px 20px;
    margin: 20px auto;
    max-width: 600px;
}

.terrestrial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1000px;
    margin: 30px auto;
    padding: 20px;
}

.terrestrial-card {
    box-shadow:0 8px 20px rgba(0, 0, 0, 0.75), 0 3px 6px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    background:radial-gradient( ellipse at 20% 30%, rgba(155, 119, 82, 0.18), transparent 60%),radial-gradient( ellipse at 80% 75%, rgba(70, 48, 39, 0.35), transparent 65%),linear-gradient(135deg, #665144, #42362c 65%, #332822);
    border-radius: 15px;
    padding: 15px;
    text-align: center;
    color: white;
}

.terrestrial-image {
    box-shadow:0 8px 20px rgba(0, 0, 0, 0.75), 0 3px 6px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    background:radial-gradient( ellipse at 20% 30%, rgba(155, 119, 82, 0.18), transparent 60%),radial-gradient( ellipse at 80% 75%, rgba(70, 48, 39, 0.35), transparent 65%),linear-gradient(135deg, #665144, #42362c 65%, #332822);
    width: 100%;
    height: 200px;
    border-radius: 10px;
}

.terrestrial-card h2 {
    margin: 15px 0 5px;
}

.terrestrial-intro {
    box-shadow:0 8px 20px rgba(0, 0, 0, 0.75), 0 3px 6px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    background:radial-gradient( ellipse at 20% 30%, rgba(155, 119, 82, 0.18), transparent 60%),radial-gradient( ellipse at 80% 75%, rgba(70, 48, 39, 0.35), transparent 65%),linear-gradient(135deg, #665144, #42362c 65%, #332822);
    border-radius: 15px;
    max-width: 600px;
    margin: 40px auto 20px;
    padding: 20px 30px;
    text-align: center;
}

.terrestrial-intro h1 {
    color: white;
    font-size: 32px;
    margin: 0 0 10px;
    background: none;
    padding: 0;
}

.terrestrial-intro p {
    color: #e0dada;
    font-size: 16px;
    margin: 0;
    text-decoration: none;
}

.terrestrial-header, .paranormal-header, .aquatic-header {
    background-color: #595353;
    display: table;
    padding: 18px 30px;
    border-radius: 0 0 15px 0;
}

.terrestrial-header a, .paranormal-header a, .aquatic-header a{
    color: white;
    font-size: 28px;
    font-weight: bold;
    text-decoration: none;
}

.terrestrial-header a:hover, .paranormal-header a:hover, .aquatic-header a:hover {
    color: #d4cccc;
}

body:has(.terrestrial-gallery) {
    background: linear-gradient(#202526a6, #202526a6),
                url("assets/forest.jpg") center / cover fixed;
    margin: 0;
    min-height: 100vh;
}

main:has(.terrestrial-gallery) {
    background: none;
}
/*---------------------------------------------------PARANORMAL PAGE-----------------------------------*/

paranormal-intro h1 {
    box-shadow:0 8px 20px rgba(0, 0, 0, 0.75), 0 3px 6px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    background:radial-gradient( ellipse at 20% 30%, rgba(155, 119, 82, 0.18), transparent 60%),radial-gradient( ellipse at 80% 75%, rgba(70, 48, 39, 0.35), transparent 65%),linear-gradient(135deg, #665144, #42362c 65%, #332822);
    color: white;
    text-align: center;
    border-radius: 15px;
    padding: 10px 20px;
    margin: 20px auto;
    max-width: 600px;
}

.paranormal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1000px;
    margin: 30px auto;
    padding: 20px;
}

.paranormal-card {
    box-shadow:0 8px 20px rgba(0, 0, 0, 0.75), 0 3px 6px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    background:radial-gradient( ellipse at 20% 30%, rgba(155, 119, 82, 0.18), transparent 60%),radial-gradient( ellipse at 80% 75%, rgba(70, 48, 39, 0.35), transparent 65%),linear-gradient(135deg, #665144, #42362c 65%, #332822);
    border-radius: 15px;
    padding: 15px;
    text-align: center;
    color: white;
}

.paranormal-image {
    box-shadow:0 8px 20px rgba(0, 0, 0, 0.75), 0 3px 6px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    background:radial-gradient( ellipse at 20% 30%, rgba(155, 119, 82, 0.18), transparent 60%),radial-gradient( ellipse at 80% 75%, rgba(70, 48, 39, 0.35), transparent 65%),linear-gradient(135deg, #665144, #42362c 65%, #332822);
    width: 100%;
    height: 200px;
    border-radius: 10px;
}

.paranormal-card h2 {
    margin: 15px 0 5px;
}

.paranormal-intro {
    box-shadow:0 8px 20px rgba(0, 0, 0, 0.75), 0 3px 6px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    background:radial-gradient( ellipse at 20% 30%, rgba(155, 119, 82, 0.18), transparent 60%),radial-gradient( ellipse at 80% 75%, rgba(70, 48, 39, 0.35), transparent 65%),linear-gradient(135deg, #665144, #42362c 65%, #332822);
    border-radius: 15px;
    max-width: 600px;
    margin: 40px auto 20px;
    padding: 20px 30px;
    text-align: center;
}

.paranormal-intro h1 {
    color: white;
    font-size: 32px;
    margin: 0 0 10px;
    background: none;
    padding: 0;
}

.paranormal-intro p {
    color: #e0dada;
    font-size: 16px;
    margin: 0;
    text-decoration: none;
}

.paranormal-header {
    background-color: #595353;
    display: table;
    padding: 18px 30px;
    border-radius: 0 0 15px 0;
}

.paranormal-header a {
    color: white;
    font-size: 28px;
    font-weight: bold;
    text-decoration: none;
}

.paranormal-header a:hover {
    color: #d4cccc;
}

body:has(.paranormal-gallery) {
    background: linear-gradient(#202526a6, #202526a6),
                url("assets/forest.jpg") center / cover fixed;
    margin: 0;
    min-height: 100vh;
}

main:has(.paranormal-gallery) {
    background: none;
}
/*-------------------------------------------------AQUATIC PAGE----------------------------------------*/


aquatic-intro h1 {
    box-shadow:0 8px 20px rgba(0, 0, 0, 0.75), 0 3px 6px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    background:radial-gradient( ellipse at 20% 30%, rgba(155, 119, 82, 0.18), transparent 60%),radial-gradient( ellipse at 80% 75%, rgba(70, 48, 39, 0.35), transparent 65%),linear-gradient(135deg, #665144, #42362c 65%, #332822);
    color: white;
    text-align: center;
    border-radius: 15px;
    padding: 10px 20px;
    margin: 20px auto;
    max-width: 600px;
}

.aquatic-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1000px;
    margin: 30px auto;
    padding: 20px;
}

.aquatic-card {
    box-shadow:0 8px 20px rgba(0, 0, 0, 0.75), 0 3px 6px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    background:radial-gradient( ellipse at 20% 30%, rgba(155, 119, 82, 0.18), transparent 60%),radial-gradient( ellipse at 80% 75%, rgba(70, 48, 39, 0.35), transparent 65%),linear-gradient(135deg, #665144, #42362c 65%, #332822);
    border-radius: 15px;
    padding: 15px;
    text-align: center;
    color: white;
}

.aquatic-image {
    box-shadow:0 8px 20px rgba(0, 0, 0, 0.75), 0 3px 6px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    background:radial-gradient( ellipse at 20% 30%, rgba(155, 119, 82, 0.18), transparent 60%),radial-gradient( ellipse at 80% 75%, rgba(70, 48, 39, 0.35), transparent 65%),linear-gradient(135deg, #665144, #42362c 65%, #332822);
    width: 100%;
    height: 200px;
    border-radius: 10px;
}

.aquatic-card h2 {
    margin: 15px 0 5px;
}

.aquatic-intro {
    box-shadow:0 8px 20px rgba(0, 0, 0, 0.75), 0 3px 6px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    background:radial-gradient( ellipse at 20% 30%, rgba(155, 119, 82, 0.18), transparent 60%),radial-gradient( ellipse at 80% 75%, rgba(70, 48, 39, 0.35), transparent 65%),linear-gradient(135deg, #665144, #42362c 65%, #332822);
    border-radius: 15px;
    max-width: 600px;
    margin: 40px auto 20px;
    padding: 20px 30px;
    text-align: center;
}

.aquatic-intro h1 {
    color: white;
    font-size: 32px;
    margin: 0 0 10px;
    background: none;
    padding: 0;
}

.aquatic-intro p {
    color: #e0dada;
    font-size: 16px;
    margin: 0;
    text-decoration: none;
}

.aquatic-header {
    background-color: #595353;
    display: table;
    padding: 18px 30px;
    border-radius: 0 0 15px 0;
}

.aquatic-header a {
    color: white;
    font-size: 28px;
    font-weight: bold;
    text-decoration: none;
}

.aquatic-header a:hover {
    color: #d4cccc;
}

body:has(.aquatic-gallery) {
    background: linear-gradient(#202526a6, #202526a6),
                url("assets/forest.jpg") center / cover fixed;
    margin: 0;
    min-height: 100vh;
}

main:has(.aquatic-gallery) {
    background: none;
}
/*---------------------------------------------------MEDIA QUERY----------------------------------------*/
@media (max-width: 600px) {
    .home-header {
        padding: 15px;
    }

    .home-header h1 {
        font-size: 15px;
    }

    .home-header p {
        font-size: 16px;
    }

    .home-header nav {
        flex-direction: column;
        gap: 10px;
    }
    .mothman{
      top: 225px;
    }

    .search-section form{
      width: 25%;
    }
    .search-section input{
      flex: 1;
      padding: 4px;
    }
    .categories img {
      width: 75px;
      height: 75px;
      object-fit: contain;
    }
    .categories > a {
      background-color: #595353;
      border-radius: 20px;
      padding: 10px;    
      min-height: 160px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 8px;
      font-size: 17px;
    }
    .categories {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 25px;
      max-width: 750px;
      margin: 120px auto 0;
      width: 95%;
    }
    .terrestrial-grid,
    .aquatic-grid,
    .paranormal-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
        padding: 10px;
        gap: 20px;
}

    .terrestrial-card,
    .aquatic-card,
    .paranormal-card {
        width: 100%;
    }

    .terrestrial-image,
    .aquatic-image,
    .paranormal-image {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
        object-fit: cover;
    }

    .creature-info {
        padding: 15px;
        font-size: 14px;
    }

    .creature-card,
    .terrestrial-card,
    .aquatic-card,
    .paranormal-card {
        position: relative;
        transform-style: preserve-3d;
        transition: transform 0.6s ease;
        cursor: pointer;
        overflow: visible;
    }

    .terrestrial-card img,
    .aquatic-card img,
    .paranormal-card img,
    .terrestrial-card h2,
    .aquatic-card h2,
    .paranormal-card h2 {
        backface-visibility: hidden;
    }
    /* Add this right here */
    .creature-card img,
    .creature-card h2 {
        backface-visibility: hidden;
    }

    /* Back of card */
    .creature-info {
        opacity: 1;
        transform: rotateY(180deg) translateZ(1px);
        backface-visibility: hidden;
        background-color: #595353;
        border-radius: 15px;
        pointer-events: none;
        transition: none;
    }
    .creature-info {
        opacity: 1;
        transform: rotateY(180deg) translateZ(1px);
        backface-visibility: hidden;
        background-color: #595353;
        border-radius: 15px;
        pointer-events: none;
        transition: none;
    }

    .terrestrial-card.flipped,
    .aquatic-card.flipped,
    .paranormal-card.flipped {
        transform: rotateY(180deg);
    }

    .terrestrial-card.flipped .creature-info,
    .aquatic-card.flipped .creature-info,
    .paranormal-card.flipped .creature-info,
    .creature-card.flipped .creature-info {
        opacity: 1;
        pointer-events: auto;
    }


    .terrestrial-card.flipped,
    .aquatic-card.flipped,
    .paranormal-card.flipped, .creature-card.flipped {
        transform: rotateY(180deg);
    }
    /* Homepage mobile grid */
    .creature-grid {
        grid-template-columns: 1fr;
        width: 100%;
        gap: 20px;
    }

    .creature-grid .creature-card {
        width: 100%;
        min-width: 0;
    }

    .nearby img {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
        object-fit: cover;
    }

    .creature-grid .placeholder-image {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .nearby h1 {
        font-size: 28px;
        margin: 20px 0;
    }

    .creature-grid h2 {
        font-size: 22px;
        overflow-wrap: anywhere;
    }
}
