:root {
    --accent: #5c8a8a;
    --hover-bg: #e0f7fa;
    --text-color: #333;
    --subtext-color: #666;
    --primary-gray: #ccc;
    --secondary-gray: #f5f5f5;
}

html, body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    width: 100vw;
    overflow-x: hidden;
}
    
body {
    font-family: 'Poppins', sans-serif;
    background-color: #FDFDFB;
    color: #2E2E2E;
}

header {
    background-color: #161B26;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    width: 100vw;
    z-index: 1000;
    box-sizing: border-box;
    overflow-x: hidden;
}

    header h1 {
        text-align: center;
        color: aliceblue;
        margin-bottom: 30px;
    }

nav a {
    margin-left: 1rem;
    text-decoration: none;
}

main {
    padding: 2rem;
    width: 60%;
    margin: 0 auto;
}

    main h1 {
        text-align: center;
        color: var(--accent);
        margin-bottom: 30px;
    }

footer {
    background-color: #E9E5DD;
    padding: 1rem 2rem;
    text-align: center;
    color: #6D6D6D;
}

a {
    color: #8BBBC1;
    text-decoration: underline;
}

blockquote {
    border-left: 10px solid var(--primary-gray);
    margin: 1.5em 10px;
    padding: 0.5em 10px;
    font-style: italic;
}
    
    blockquote p {
        display: inline;
    }

.article {
    font-size: 18px;
    line-height: 1.5em;
}

.caption {
    font-style: italic;
    font-size: 14px;
}

.image-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .5rem;
}
      
.image-container {
    background-color: #FFFFFF;
    border: 1px solid #D3D3D3;
    padding: 1rem;
    text-align: center;
    width: 48%;
    box-sizing: border-box;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
      
.iframe-wrapper {
    width: 100%;
    height: 410px;
    position: relative;
}
      
.iframe-wrapper iframe {
    position: absolute;
    width: 100%;
    height: 100%;
    border: none;
    top: 0;
    left: 0;
}

.story-map {
    width: 100%;
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #D3D3D3;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  }
  
  .story-map-wrapper {
    width: 100%;
    height: auto;
    overflow: hidden;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

.story-map iframe {
    width: 100%;
    height: 700px;
    border: none;
    display: block;
}

.flourish-wrapper {
    margin: 2rem 0;
    padding: 0;
    width: 100%;
    max-width: 1000px;
    box-sizing: border-box;
}
      
    .flourish-wrapper iframe {
        all: unset;
        width: 100% !important;
        height: 600px !important;
        display: block;
        border: none;
    }

#checklists-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 0 10px;
}

.checklist-entry {
    background-color: #FFFFFF;
    border: 1px solid var(--primary-gray);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, background-color 0.3s ease;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

    .checklist-entry:hover {
    transform: translateY(-5px);
    background-color: var(--hover-bg);
    }


    .checklist-entry a {
    text-decoration: none;
    }

    .checklist-entry h2 {
    font-size: 1.2em;
    color: var(--accent);
    margin-bottom: 10px;
    }

    .checklist-entry .details {
    font-size: 0.95em;
    color: var(--subtext-color);
    line-height: 1.4;
    }

        .checklist-entry .details span {
        display: block;
        margin-top: 5px;
        }

    .checklist-entry .icon {
    font-size: 1.5em;
    margin-bottom: 8px;
    color: var(--accent);
    }

/* Following code is from snipzy.dev, really helpful resource */
/* Partially adapted to fit needs of this webpage */
.accordion {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
  
.accordion-item {
    background-color: #fff;
    border-bottom: 1px solid #eee;
}
  
    .accordion-item:last-child {
        border-bottom: none;
    }
  
.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
  
    .accordion-header:hover {
        background-color: #f8f8f8;
    }
  
    .accordion-header h3 {
        margin: 0;
        font-size: 16px;
        font-weight: 500;
    }
  
    .accordion-header i {
        transition: transform 0.3s ease;
    }
  
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 10 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .5rem;
}
  
  .accordion-item.active .accordion-header {
    background-color: var(--secondary-gray);
  }
  
  .accordion-item.active .accordion-header i {
    transform: rotate(180deg);
  }
  
  .accordion-item.active .accordion-content {
    max-height: 800px; /* need to change */
    padding: 10px;
  }

/* Also adapted from snipzy.dev */
.text-hover-effect-1 {
    position: relative;
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
    padding: 5px 0;
}
  
    .text-hover-effect-1::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 3px;
        bottom: 0;
        left: 0;
        background: linear-gradient(90deg, #3498db, #2980b9);
        transform: scaleX(0);
        transform-origin: bottom right;
        transition: transform 0.4s cubic-bezier(0.86, 0, 0.07, 1);
        border-radius: 3px;
    }
  
    .text-hover-effect-1:hover::after {
        transform: scaleX(1);
        transform-origin: bottom left;
    }

.big-accordian-container {
    background-color: #FFFFFF;
    padding: 1rem;
    height: 100%;
    width: 55%;
    max-width: 475px;
    box-sizing: border-box;
    margin: 0 auto;
}

.small-accordian-container {
    display: block;
    width: 35%;
    max-width: 475px;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
}

.accordion-item:first-of-type .caption {
    /* line-height: 0.5em; */
    margin-top: 0;
    text-align: center;
  }

.audio-button-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem 0;
    margin-bottom: .5rem;
}
    
.audio-button {
    background-color: #1f2937;
    color: white;
    border: none;
    padding: 0.75rem;
    font-size: 1.25rem;
    border-radius: 5%;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 1rem;
}
  
.audio-button:hover {
    background-color: #111827;
}

.chat-thread {
    display: flex;
    flex-direction: column;
    gap: 1em;
  }
  
  .chat-row {
    display: flex;
    align-items: flex-start;
    gap: 0.5em;
  }
  
  .chat-row.left {
    flex-direction: row;
  }
  
  .chat-row.right {
    flex-direction: row-reverse;
  }
  
  .chat {
    max-width: 60%;
    padding: 1em;
    border-radius: 10px;
    background: var(--secondary-gray);
    position: relative;
  }
  
  .chat-row.right .chat {
    background: #e0f7fa;
  }
  
  .avatar {
    width: 2.2em;
    height: 2.2em;
    border-radius: 50%;
    background: var(--primary-gray);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9em;
    flex-shrink: 0;
  }

  .chat-row.left .avatar {
    background: #d0d0d0;
  }
  
  .chat-row.right .avatar {
    background: #a3e7f0;
  }

  .index {
    display: flex;
    justify-content: center;
  }

/* For Mobile Use */
@media (max-width: 768px) {
    main {
        width: 95%;
        padding: 1rem;
    }

    header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    header h1 {
        margin-bottom: 1rem;
    }

    nav {
        display: flex;
        justify-content: center;
        gap: 1rem;
        flex-wrap: wrap;
        width: 100%;
    }

    nav a {
        margin: 0;
        font-size: 1rem;
    }

    .image-grid {
        flex-direction: column;
    }

    .image-container {
        width: 100%;
        position: relative;
    }

    .image-container iframe {
        height: 355px !important;
        min-height: unset !important;
        overflow-anchor: auto;
    }

    .accordion-content {
        flex-direction: column;
        align-items: stretch;
    }

    .big-accordian-container,
    .small-accordian-container {
        width: 100%;
        margin: 0 auto;
        padding: 1rem 0;
    }
    
    .story-map-wrapper {
        transform: none;
        width: 100%;
        height: auto;
    }

    .story-map {
        width: 100%;
        max-width: 1000px;
        margin: 1rem auto;
      }
    
      .story-map iframe {
        width: 100%;
        min-width: 320px;
        height: 600px;
      }
      
    .flourish-wrapper iframe {
        height: 500px;
    }
}  