/* Snow animation */
@keyframes snow {
    0% { transform: translateY(-10px); opacity: 1; }
    100% { transform: translateY(100vh); opacity: 0; }
}
body {
    font-family: "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(
        to bottom,
        #c2e9fb 0%,
        /* #c2e9fb 20%, */
        #f6f7f8 70%,
        #f6f7f8 100%
    );
    /* background: linear-gradient(#c2e9fb, #f6f7f8); */
    color: #333;
    overflow-x: hidden;
    min-height: 100vh;
    /* background: #f6f7f8; */
    background-attachment: fixed; /* optional but makes it smoother */
}
.fun {
    /* font-family: "Mountains of Christmas", serif; */
    /* font-family: "Atma", system-ui;
    font-weight: 400;
    font-style: normal; */
    font-family: "Libre Baskerville", serif;
    font-style: normal;
}
.not-bold {
    font-weight: 400;
}
.bold {
    font-weight: 700;
}
/* Snowflakes */
.snowflake {
    position: fixed;
    top: -10px;
    color: white;
    font-size: 1.2rem;
    opacity: 0.9;
    animation: snow linear infinite;
    pointer-events: none;
    z-index: 99;
}
header {
    text-align: center;
    padding: 15px 5px 5px;
    background: #b71c1c;
    color: white;
    font-size: 9.5vw;
    font-family: "Mountains of Christmas", serif;
    /* font-family: "Kranky", serif; */
    /* font-weight: 400; */
    font-weight: 700;
    font-style: normal;
    /* font-weight: 700; */
    /* font-family: 'Atma', cursive; */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    border-bottom: 4px solid #8e0000;
}
.container {
    max-width: 650px;
    margin: 20px auto 40px auto;
    padding: 0 15px;
    /* background: linear-gradient(#c2e9fb,#f6f7f8); */
}
h2 {
    color: #1b5e20;
    text-align: center;
    margin-bottom: 15px;
}
.activity-card,
.form-card {
    background: rgba(255,255,255,0.95);
    margin-bottom: 15px;
    padding: 18px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    border-left: 6px solid #2e7d32;
    transition: transform 0.2s, box-shadow 0.2s;
}
.activity-card:hover,
.form-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}
.activity-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: #c62828;
    margin-bottom: 5px;
}
input, textarea, button {
    width: 90%;
    padding: 12px;
    margin-top: 8px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
}
button {
    background: #1b5e20;
    color: white;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    border-radius: 8px;
    padding: 14px;
    font-weight: bold;
}
button:hover {
    background: #134016;
}
#triviaFormCard {
    margin-top: 25px;
    text-align: center;
}
#triviaFormCard h2 {
    margin-top: 8px;
    font-size: 20px;
}
#submittedMsg {
    text-align: center;
    font-size: 9vw;
    color: #2e7d32;
    display: none;
    margin-top: 25px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}
.candy-cane {
    border: none;
    height: 12px;
    background: repeating-linear-gradient(
        45deg,
        #d00000 0 10px,
        #ffffff 10px 20px
    );
    border-radius: 6px;
    margin: 20px 0;
}
.triv-header {
    display: flex;
}
.triv-header i {
    color: #1b5e20;
    margin-top: 10px;
    margin-left: 10px;
    font-size: 20px;
}
.collapsible {
    display: none;
    text-align: center;
}
.left {
    text-align: left;
}
.slide-element {
    overflow: hidden;
    transition: height 0.5s ease-in-out;
}
.slide-element.hidden {
    height: 0;
}
.slide-element.visible {
    height: auto; /* Or a specific height */
}
.scav-btn {
    display: block;
    margin: 0 auto;
    margin-top: 10px;
    width: 50%;
}
#imageContainer {
    position: relative;    /* enables overlay positioning */
    align-items: center;
    width: 100dvw;
    max-width: 650px;
    text-align: center;
    /* margin-left: calc(-50vw + 50%); */
    margin: 0 auto;
    margin-bottom: -50px;
    overflow: hidden;      /* ensures vignette stays inside the image */
}

#imageContainer img {
    width: 100%;
    display: block;
}

/* White vignette overlay */
#imageContainer::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;

    background: 
        /* 1. TOP vertical fade */
        linear-gradient(
            to bottom,
            rgba(246,247,248,1) 0%,     /* solid background color at top */
            rgba(246,247,248,0) 12%     /* fades out quickly */
        ),
        /* 2. Radial vignette over entire image */
        radial-gradient(
            ellipse at center,
            rgba(246,247,248,0) 60%,    /* transparent center */
            rgba(246,247,248,0.7) 80%,  /* soft fade */
            rgba(246,247,248,1) 100%    /* strong edge fade */
        );

    z-index: 2;
}
.container p {
    font-size: 1.1rem;
    line-height: 1.6;
}
#installButton {
    display: none;
    margin: auto;
}


/* iOS Install Prompt Container */
.ios-install-prompt {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 18px;
  background: rgba(255, 255, 255, 1.0);
  backdrop-filter: blur(10px);
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.2);
  /* display: flex; */
  /* justify-content: center; */
  z-index: 9999;
  transform: translateY(120%);
  transition: transform 0.4s ease;
}

/* Slide-up animation when visible */
.ios-install-prompt.visible {
  transform: translateY(0);
}

/* Text + icons row */
.ios-install-content {
  display: block;
  align-items: center;
  gap: 12px;
  text-align: center;
  font-size: 16px;
  color: #333;
}

/* Share icon (system-style) */
.share-icon {
  font-size: 20px;
  padding: 2px 6px;
  border-radius: 6px;
  background: #e9e9ea;
  font-weight: bold;
}

/* Arrow pointing up to the Safari share menu */
.ios-install-arrow {
  font-size: 22px;
  animation: bounce 1.5s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* Hidden state */
.hidden {
  display: none;
}

.installHeader img {
    height: 128px;
}

#chromeInstructions {
    display: none;
}

#safariInstructions {
    display: none;
}

#appInstallCloseBtn {
    position: absolute;
    top: 8px;
    right: 12px;
    height: 30px;
    width: 30px;
    color: black;
    background: #eaeaea;
    text-align: center;
    border-radius: 22px;
    padding: unset;
}

#appInstallCloseBtn span {
    display: inline-block;
    font-size: 20px;
    transform: translateY(-1px);

}

.installHeader {
    display: grid;
    grid-template-columns: 1fr 2fr;
    font-size: 1.2em;
    font-weight: bold;
    gap: 20px;
}

.svg {
    transform: translateY(5px);
}

