/* Selects the entire page body */

body {
  text-align: center;
  box-sizing: border-box;
            margin: 0;
            padding: 10px;
  background-color: #83b79c; /* should be greenish */
  font-family: 'IAmTheCrayonMaster';
  src: url('IAmTheCrayonMaster.ttf') format('truetype');
            color: #fdffee;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            }
            

/* This sets all link states to the same color */
a, a:visited, a:active {
  color: #fdffee; /* Replace with your preferred color code */
  text-decoration: none; 
}

a:hover {
  color: #fdffee; /* Replace with your preferred color code */
  text-decoration: underline; 
}

  #arrowtext {
    text-decoration: none; 
    }


#cboxdiv {
    border: 2px solid #000;
    border-radius: 5px;
    font-family: 'IAmTheCrayonMaster';
  src: url('IAmTheCrayonMaster.ttf') format('truetype');
            color: #fdffee;
}

        .ref-content.show {
            display: block;
            animation: slideDown 0.2s ease;
        }
        @keyframes slideDown {
            from { opacity: 0; transform: translateY(-6px); }
            to   { opacity: 1; transform: translateY(0); }
        }
        .ref-content img {
            width: 100%;
            height: auto;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.13);
        }

        /* ── Mid nav ── */
        .mid-nav {
            width: 100%;
            text-align: center;
            padding: 8px 0 20px;
            font-size: 0.9rem;
            color: white;
        }
        .mid-nav a {
            color: white;
            text-decoration: none;
        }
        .mid-nav a:hover { text-decoration: underline; }
        .mid-nav .sep { margin: 0 6px; }

        /* ── Bottom bar ── */
        .bottom-bar {
            width: 100%;
            display: flex;
            justify-content: space-between;
            align-items: flex-end;
            padding: 12px 24px 22px;
            margin-top: auto;
            font-size: 1rem;
            color: #fdffee;
        }
        .bottom-right {
            text-align: right;
            display: flex;
            flex-direction: column;
            align-items: flex-end;
        }
        .bottom-right a {
            color: #fdffee;
            text-decoration: none;
            display: block;
            line-height: 1.5;
        }
        .bottom-right a:hover { text-decoration: underline; }
        .bottom-arrow {
            font-size: 1.5rem;
            margin-top: 4px;
            line-height: 1;
        }

        @media (max-width: 600px) {
            .gallery { gap: 28px; }
            .char-container { width: 130px; }
            .image-frame, .placeholder-box { width: 120px; height: 120px; }
            .bottom-bar { flex-direction: column; gap: 12px; align-items: flex-start; }
            .bottom-right { text-align: left; align-items: flex-start; }
        }

/* Styles all <h1> headings */
h1 {
  font-family: 'IAmTheCrayonMaster';
  src: url('IAmTheCrayonMaster.ttf') format('truetype');
  text-align: center;
  color: #fdffee }

#comicnav2 {
  font-family: 'IAmTheCrayonMaster';
  src: url('IAmTheCrayonMaster.ttf') format('truetype');
  text-align: left;
  color: #fdffee }

h2 {
  font-size: 30px;
  font-family: 'IAmTheCrayonMaster';
  src: url('IAmTheCrayonMaster.ttf') format('truetype');
  text-align: right;
  color: #fdffee }
/* Should style elements with the class "comicnav" */

#comicnav2 {
  font-family: 'IAmTheCrayonMaster';
  src: url('IAmTheCrayonMaster.ttf') format('truetype');
  text-align: left;
  color: #fdffee }

#comicnav2 {
font-size: 16px }

        .site-wrapper {
            background-color: #70AA92;
            width: 95%;
            max-width: 1300px;
            min-height: calc(100vh - 20px);
            display: flex;
            flex-direction: column;
            align-items: center;
            border-radius: 6px;
        }
        
        /* Should style elements with the class "comicnav" */

        .comicnav1 {
            background-color: #70AA92;
            height: 100%;
            max-height: 1300px;
            min-width: calc(100vh - 20px);
            display: flex;
            flex-direction: row;
            align-items: center;
            border-radius: 6px;
        }

        /* ── Top nav ── */
        .nav-bar {
            width: 100%;
            text-align: center;
            padding: 10px 0 8px;
            font-size: 1.2rem;
            color: #fdffee;;
            font-family: 'IAmTheCrayonMaster'
        }
        .nav-bar a {
            color: #fdffee;;
            text-decoration: none;
        }
        .nav-bar a:hover { text-decoration: underline; }
        .nav-bar .sep { margin: 0 6px; }

        /* ── Title banner ── */
        .title-banner {
            background-color: #589483;
            width: 80%;
            max-width: 650px;
            text-align: center;
            padding: 10px 0 8px;
            border-radius: 4px;
            margin-bottom: 4px;
        }
        .title-banner h1 {
            font-family: 'IAmTheCrayonMaster';
            font-size: 2.4rem;
            color: #fdffee;
            font-weight: normal;
            letter-spacing: 4px;
        }

        /* ── Page label + tagline ── */
        .page-label {
            font-size: 1.2rem;
            color: #fdffee;;
            text-align: center;
            margin-top: 4px;
        }
        .tagline {
            font-size: 0.9rem;
            color: #fdffee;;
            text-align: center;
            margin-top: 2px;
            margin-bottom: 20px;
        }

        /* ── Description ── */
        .comicdescription {
            text-align: center;
            font-size: 1.08rem;
            line-height: 1.75;
            color: #fdffee;;
            max-width: 400px;
            padding: 0 20px;
            margin-bottom: 30px;
            
        }
            
        .navigatepagelist {
            text-align: right;
            font-size: 1.08rem;
            line-height: 1.75;
            color: #fdffee;;
            max-width: 400px;
            padding: 0 20px;
            margin-bottom: 30px;
        }

            

        .char-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            cursor: pointer;
            width: 170px;
        }

        .char-name {
            font-size: 1.2rem;
            color: #fdffee;
            margin-bottom: 10px;
            text-align: center;
        }

        .image-frame {
            width: 155px;
            height: 155px;
            display: flex;
            align-items: center;
            justify-content: center;
            background-color: #6aa88a;
            border-radius: 8px;
            overflow: hidden;
            flex-shrink: 0;
        }

        .icon-img {
            width: 155px;
            height: 155px;
            object-fit: cover;
            object-position: center top;
            display: block;
            flex-shrink: 0;
        }

        
        .textimgcont {
        display: flex;
        align-items: center; 
        justify-content: space-between; 
        gap: 24px; 
        padding: 18px; 
        margin: 0 auto; 
        max-width: 1100px;
        width: calc(100% - 48px);
    }
    .text-block {
        flex: 1;
        min-width: 0;
        text-align: left;
        padding: 18px 22px;
        background: var(--card-bg);
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    }

    .image-container {
        flex: 0 0 420px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .image-container img {
        width: 100%;
        max-width: 420px;
        height: auto;
        display: block;
        border-radius: 12px;
        box-shadow: 0 12px 30px rgba(0,0,0,0.08);
        transition: transform 220ms cubic-bezier(.2,.8,.2,1), filter 220ms;
        transform-origin: center center;
    }

    .image-container:hover img, .image-container:focus-within img { transform: translateY(-6px) scale(1.03); filter:brightness(1.02); }
    
    .grid { 
      display: grid;
      height: 80vh;
      margin-bottom: 20px;
      background-color: #589483;
      grid:
      'img  title' 400px
      'listtwo imgtwo' 1fr
      /1fr;
    }

    .maincharactergrid { 
      display: grid;
      margin-bottom: 10vh;
      background-color: #589483;
      grid:
      'imgOne imgTwo' 1fr
      'nameOne nameTwo'
      
      
    }
    
    .sidecharactergrid { 
      display: grid;
      margin-bottom: 10vh;
      background-color: #589483;
      grid:
      'imgOne imgTwo imgThree imgFour' 
      'nameOne nameTwo nameThree nameFour' 1fr
      / 1fr 1fr 1fr 1fr;
    
    }
    
    
    #nameOne{
      grid-area: nameOne;
    }
    
    #nameTwo{
      grid-area: nameTwo;
    }
    
    #nameThree{
      grid-area: nameThree;
    }
    
    #nameFour{
      grid-area: nameFour;
    }
    
    
    
    #imgOne{
      grid-area: imgOne;
      transition: transform 220ms cubic-bezier(.2,.8,.2,1), filter 220ms ease;
            transform-origin: center center;
            will-change: transform;
    }
    #imgOne:hover img, #imgOne:focus-within img { transform: translateY(-6px) scale(1.03); filter:brightness(1.02); }
    
    #imgTwo{
      grid-area: imgTwo;
      
      transition: transform 220ms cubic-bezier(.2,.8,.2,1), filter 220ms ease;
            transform-origin: center center;
            will-change: transform;
    }
    #imgTwo:hover img, #imgTwo:focus-within img { transform: translateY(-6px) scale(1.03); filter:brightness(1.02); }
    
    #imgThree{
      grid-area: imgOne;
      transition: transform 220ms cubic-bezier(.2,.8,.2,1), filter 220ms ease;
            transform-origin: center center;
            will-change: transform;
    }
    #imgThree:hover img, #imgOne:focus-within img { transform: translateY(-6px) scale(1.03); filter:brightness(1.02); }
    
    #imgFour{
      grid-area: imgTwo;
      
      transition: transform 220ms cubic-bezier(.2,.8,.2,1), filter 220ms ease;
            transform-origin: center center;
            will-change: transform;
    }
    #imgFour:hover img, #imgTwo:focus-within img { transform: translateY(-6px) scale(1.03); filter:brightness(1.02); }
    
  #img {
    grid-area: img;
    padding: 50px;
    font-family: 'IAmTheCrayonMaster';
    src: url('IAmTheCrayonMaster.ttf') format('truetype');
  }
  
  #title {
    grid-area: title;
  }

@media (max-width: 820px) {
    .container {
        flex-direction: column; 
        padding: 12px;
    }

#apr{
  background-color: #589483;
  padding: 50px;
}

.thumbnail{
  transition: transform .2s;
}
.thumbnail:hover {
    transform: scale(1.04);
}
    .image-container { flex: 0 0 auto; width: 80%; }
    .text-block { padding: 14px; }

}
.aspenCAST {
  background-size: cover;
  transition: background-image 0.5s;
}

.aspenCAST:hover {
  background-image: url('1aspenCAST2.png'); /* Swaps to a different image */
  grid-area: imgOne;
      transition: transform 220ms cubic-bezier(.2,.8,.2,1), filter 220ms ease;
            transform-origin: center center;
            will-change: transform;
            will-change: transition;
}


/* next, prev, ok and x link style */

