/* ------------------------------
big picture styling thingz
-------------------------------*/

/* reset browser styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* base */
body {
    font-family: Georgia, "Times New Roman", serif;
    background: #f9ede6;
    color: #000000;
    height: 100vh; /*viewport height*/
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* layout */
main {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5px;
    padding-bottom: 50px;
    opacity: 0;
    transition: opacity 0.8s ease;
}

/* resize jitter fix */
body.resizing * {
  transition: none !important;
}

/* ------------------------------
loading
-------------------------------*/

main.loaded {
  opacity: 1;
}

/* center the loader on screen */
#loader {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 8px;
  z-index: 9999;
  font-size: 20px; 
  color: #9a5b19;
}

/* flower animation */
.loader-flower {
  display: inline-block;
  animation: bounce-spin 0.8s infinite alternate;
  opacity: 0.6;
}

/* stagger for each flower */
.loader-flower:nth-child(2) { animation-delay: 0.2s; }
.loader-flower:nth-child(3) { animation-delay: 0.4s; }

/* combine bounce + spin */
@keyframes bounce-spin {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.6;
  }
  100% {
    transform: translateY(-8px) rotate(360deg);
    opacity: 1;
  }
}

/* ------------------------------
title
-------------------------------*/
.title {
    font-size: 2rem;
    font-weight: normal;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    margin-top: 5rem;
}

/* title link formatting */
.title a {
    color: inherit;
    text-decoration: none;
}

/* ------------------------------
body text
-------------------------------*/
.bodytext {
    font-size: 1rem;
    opacity: 0.6;
    margin-bottom: 2rem;
    max-width: 650px;
    text-align: center;
    line-height: 1.5;
    padding: 0 1 rem;
}

/* bodytext link formatting */
.bodytext a {
    color: rgb(66, 27, 0);
    text-decoration: none;
    border-bottom: 1px solid #9a5b19; /* underline */
    background-image: linear-gradient(#9a5b19, #9a5b19);
    background-size: 0% 1px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    transition: background-size 0.3s ease;
}

/* animated underline on hover */
.bodytext a:hover {
    background-size: 100% 1px;
}

/* ------------------------------
section headers
-------------------------------*/

.sectionheader {
    font-size: 1rem;
    font-weight: bold;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    max-width: 650px;
    width: 100%;
    text-align: center;
}

/* section headers as links */
.sectionheader a {
    color: inherit;
    text-decoration: none;
}

/* ------------------------------
navigation & footer
-------------------------------*/

.nav {
    display: flex;
    margin-bottom: 2rem;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.nav a {
    color: #9a5b19;
    text-decoration: none;
    position: relative;
    transition: opacity 0.3s ease;
    opacity: 0.4;
    position: relative;
    display: inline-block;
}

.nav a:hover {
    opacity: 0.7;
}

.nav a.active {
    opacity: 1;
}

.nav a {
  position: relative;
  padding-left: 5px;
}

.nav a.active::before {
  opacity: 0.8;
  transform: translateY(-40%) scale(1);
}

.nav a::before {
  content: "✿";
  position: absolute;
  left: -6px;
  top: 50%;
  transform: translateY(-40%) translateX(5px);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  font-size: 0.6rem;
}

.nav a:hover::before {
  opacity: 0.6;
  transform: translateY(-40%) translateX(0);
}

footer {
    position: fixed;
    text-align: center;
    right: 0;
    bottom: 0;
    font-size: 0.5rem;
    opacity: 0.4;
    padding: 20px;
}

/* ------------------------------
graphics
-------------------------------*/
.divider {
    fill:#9a5b19;
    fill-opacity:0.3;
    stroke:#9a5b19;
    stroke-width:0.1;
    stroke-opacity:0.2;
}

/* ------------------------------
photos + photo credits
-------------------------------*/

img {
    max-height: 50vh;
    width: auto;
    height: auto;
    max-width: 90%;
    flex-shrink: 0;
}

.photocredit {
    font-size: 0.6rem;
    opacity: 0.6;
    margin-top: 0.5rem;
    max-width: 400px;
    margin-bottom: 0.5rem;
}

.photocredit a {
    color: #9a5b19;
    text-decoration: none;
}

/* ------------------------------
records page styling
-------------------------------*/

/* image + text box */
.record-block {
    display: inline-block;
    position: relative;
    max-width: 800px;
    margin-bottom: 2rem;
}

.record-block img {
    display: block;
    max-width: 90%;
    margin: 0 auto;
    height: auto;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    border-radius: 6px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* paragraph text inside the block */
.record-block .paragraphtext {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); 
    width: 650px;
    max-width: 85%;
    text-align: center;
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: #000000bf;
    line-height: 1.3;
}

.record-block:hover img {
    transform: scale(1.03); 
    opacity: 0.1;
    transition: opacity 0.3s ease size 0.3s ease;
}

.record-block:hover .paragraphtext {
    opacity: 1;
    transition: opacity 1s ease;
}

/* ------------------------------
video & audio blocks
-------------------------------*/

/* gallery container */
.video-gallery,
.audio-gallery {
    max-width: 800px;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin: 1rem;
}

/* each video + description block */
.video-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
}

/* responsive iframe */
.video-block iframe {
    width: 500px;
    height: auto;
    aspect-ratio: 16 / 9; /* maintains video ratio */
    transition: transform 0.3s ease;
}

/* paragraph text below each video */
.video-block .paragraphtext {
    width: 100%;
    text-align: left;
    margin-top: 0.2rem;
}

.video-block iframe:hover {
    transform: scale(1.1);
}

.audio-block .paragraphtext {
    width: 100%;
    text-align: left;
}

.audio-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 200px;
}

.audio-block iframe {
    width: 200px;
    height: auto;
    aspect-ratio: 16/6;
}

.imga-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 500px;
}

.imga-block iframe {
    width: 500px;
    height: auto;
    aspect-ratio: 16/6;
}


/* ------------------------------
upcoming/past shows
-------------------------------*/

.upcoming,
.past-shows {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
}

.past-shows .show {
    opacity: 0.4;
}

/* for ticket links */
.show a {
  color: inherit;
  opacity: 0.8;
  text-decoration: none;
  border-bottom: 1px solid #9a5b19; /* underline */
  background-image: linear-gradient(#9a5b19, #9a5b19);
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.3s ease;
}

.show a:hover {
  opacity: 1;
  background-size: 100% 1px;
}

/* ------------------------------
email list submission form
-------------------------------*/
form {
  margin-bottom: 1rem;
    display: flex;
    margin-bottom: 2rem;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

input {
  border: none;
  border-bottom: 1px solid #9a5b19;
  background: transparent;
  padding: 10px;
  font-family: inherit;
}

button {
font-family: inherit;
  border-width: small;
  border-color: #9a5b19;
  border-radius: 5px;
  color: #9a5b19;
  cursor: pointer;
  margin-left: 8px;
  background-color: #fcd5ac;
  padding: 10px 10px;
  transition: transform 0.2s ease;
}

button:hover {
  transform: scale(1.1);
}

/* ------------------------------
mobile responsive
-------------------------------*/

/* smaller text on  small screens */
@media (max-width: 600px) {
    .paragraphtext {
        font-size: 0.8rem;
    }

    .sectionheader {
        font-size: 0.8rem;
    }

    .title {
        font-size: 1.5rem;
    }

    .nav {
        gap: 1rem;
    }

    .nav {
        max-width: 90%;
    }

    img {
        max-width: 95%
    }

    main {
        padding: 1rem;
    }

    .bodytext {
        font-size: 0.95rem;
    }

    .video-block iframe,
    audio {
        width: 100%;
        height: auto;
    }

    .content-block,
    .video-block {
        max-width: 95%;
    }

    .record-block img {
        display: flex;
        width: 100%;
        max-width: 400px;
    }

    .record-block .paragraphtext {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        position: static;
        transform: none;
        opacity: 0.6;
        color: #000000;   
        margin-top: 1rem;
        width: 100%;
        max-width: 400px;
    }

    .record-block:hover img {
        transform: none;
        opacity: 1;                 
  }

    .record-block:hover .paragraphtext {
        opacity: 0.6;
}

}