#container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

#container a {
    text-decoration:none;
}

#container img {
      user-select: none;
      -webkit-user-drag: none;
}

#headerArea img {
    padding-top: 0px;
}

#flex {
    display: flex;
}

body {
    font-family: 'MS PGothic', sans-serif;
    background-color: #FFFFFF;
    background-image: url("/images/background/background.png");
    background-attachment: fixed;
    background-position: top;
    background-size: 100%;
    font-size: 18px;
    padding-bottom: 10%;
    animation: moveBackground 5s linear infinite;
}

@keyframes moveBackground {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 54px 54px;
  }
}

main {
    background-color: #FFFFFF;
    flex: 1;
    order: 2;
    border: 2px;
    border-style: solid;
    border-color: #000000;
    padding-left: 25px;
    padding-right: 25px;
    padding-bottom: 25px;

}
/*LAYOUT---------------------------------------------------*/

  .block {
    display: flex;
    width: 100%;
  }
  
  .left {
    width: 50%;
  }
    
  .right {
    width: 50%;
    padding-left: 15px;
  }
  
  .hundredpercent {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 30px 0;
  }
  
  .sixtypercent {
    width: 60%;
  }
  
  .fortypercent {
    width: 40%; 
  }
  
  .label {
    display: inline-block;
    width: 80px;
    height: 15px;
    padding: 3px 3px;
    margin-left: 4px;
    background-color: var(--label-color, black);
    color: var(--text-color, black);
    font-size: 16px;
    font-weight: bold;
    border: 2px solid var(--label-color, black);
    border-bottom: none;
    border-radius: 5px 5px 0 0;
    margin-bottom: -3px;
  }
  
/*SIDEBAR---------------------------------------------------*/

  #leftSidebar {
    order: 1;
    margin-right: 10px;
  }
  
  .navlabel {
    display: inline-block;
    width: 80px;
    height: 15px;
    padding: 3px 3px;
    margin-left: 4px;
    background-color: #EFC854;
    color: #000000;
    font-size: 16px;
    font-weight: bold;
    border: 2px solid #EFC854;
    border-bottom: none;
    border-radius: 5px 5px 0 0;
    margin-bottom: -3px;
  }
  
  .navcontainer {
    border: 4px solid #EFC854;
    background-color:#EFC854;
    padding-bottom: 10px;
    padding-top: 5px;
    border-radius: 5px;
    margin-bottom: 10px;
  }
  
  .navbutton {
    display: flex;
    width: 160px;
    height: 40px;
    border: solid 2px #FFFFFF;
    border-color: #aeaeae #000000 #FFFFFF #FFFFFF;
    background-color: #FFFFFF;
    padding: 10px 0 4px 13px;
    align-items: flex-start;  
    box-sizing: border-box;
    position: relative;
    box-shadow: 0 -4px 0 rgba(0, 0, 0, 0.1);
  }
  
/*PERFORATED LINES---------------------------------------------------*/  
  
    .navbutton::before {
      content: "";
      position: absolute;
      left: 2px;
      top: 5px;
      bottom: 5px;
      width: 4px;
      background-image: repeating-linear-gradient(
        to bottom,
        #EFC854,
        #EFC854 4px,
        transparent 4px,
        transparent 11px
      );
    }

/*FOLDED CORNER---------------------------------------------------*/ 

    .navbutton::after {
      content: "";
      position: absolute;
      top: -2px;
      right: -2px;
      width: 18px;
      height: 18px;
      background: linear-gradient(
        45deg,
        #FFFFFF 49%, 
        #FFFFFF 50%, 
        #e5e5e5 50%, 
        #e5e5e5 100%
      );
      border: solid 2px;
      border-color: #d9d9d9 #000000 #000000 #aeaeae;
      box-sizing: border-box;
      
      pointer-events: none;
    }
    
    .navcontainer .navbutton::after {
      background: linear-gradient(
        45deg,
        #FFFFFF 45%, 
        #FFFFFF 46.5%, 
        black 46.5%,
        black 54.5%, 
        #e5e5e5 54.5%, 
        #e5e5e5 100%
      );
      border-color: #e5e5e5 #000000 #000000 #aeaeae;
    }
    
    .navcontainer .navbutton:first-child::after {
      background: linear-gradient(
        45deg,
        #FFFFFF 45%, 
        #FFFFFF 46.5%, 
        black 46.5%,
        black 54.5%, 
        #d7b44b 54.5%, 
        #d7b44b 100%
      );
      border-color: #d7b44b #d7b44b #000000 #aeaeae;
    }
    
    .navbutton:hover {
      height: 55px;
      transform: translateY(-15px);
      margin-bottom: -15px;
      box-shadow: 0 -6px 0 rgba(0, 0, 0, 0.1);
      cursor: grab;
    }
      
    .navbutton:hover::after {
      display: none;
    }
      
    .navbutton img {
      align-self: flex-start;
      padding: 5px;
      margin-left: -5px;
      margin-top: -12px;
    }
      
    .navcontainer a {
      color: #000000;
    }
      
    .navcontainer a:hover {
      text-decoration: underline;
      color: #000000;
      background-color: yellow;
      cursor: grab;
    }

/*IFRAME---------------------------------------------------*/

iframe {
  border: 2px solid var(--border-color, black);
  width: 100%;
  height: 335px;
}

/*SUMMARY---------------------------------------------------*/

summary {
  list-style: none;
  cursor: pointer;
  position: relative;
}

summary::marker {
  display: none;
}

summary::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 16px;
  height: 16px;
  background-image: url("/images/buttons/closed-arrow.png");
  background-size: contain;
  background-repeat: no-repeat;
  transition: transform 0.2s ease;
}

details[open] summary::before {
  background-image: url("/images/buttons/open-arrow.png");
}

/*SPEECHBUBBLE---------------------------------------------------*/

.speechbubble {
  border: 1px solid #000000;
  border-radius: 20px;
  width: 75%;
  height: 200px;
  background-color: #ffffc4;
  animation: floatUpDown 2s ease-in-out infinite alternate;
}

.triangle-wrapper {
  position: relative;
  width: 0;
  height: 0;
  animation: floatUpDown 2s ease-in-out infinite alternate;
  z-index: 999;
}

.triangle-border {
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-right: 21px solid black;
  position: absolute;
  top: 49px;
  left: -20px;
}

.triangle-inner {
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-right: 20px solid #ffffc4;
  position: absolute;
  top: 50px;
  left: -19px;
}

/*LETTERING---------------------------------------------------*/

  h1, h2{
    color: #DF4C31;
  }
  
  h1 {
    font-size: 20px;
  }
  
  h2 {
    font-size: 20px;
    font-weight: lighter;
  }
  
  h3 {
    font-size: 20px;
    color: #000000;
    background-color: #000000;
    padding: 5px;
  }
  
  p {
    font-size: 18px;
    color: #000000;
  }
  
  p2 {
    font-size: 16px;
    color: #999999;
  }
  
  p3 {
    font-size: 18px;
    color: #000000;
    background-color: #6599ff;
    border: 1px solid #6599ff;
  }
  
  p4 {
    font-size: 14px;
    color: rgba(0, 0, 0, 0.4);
  }

/*IMAGE GALLERIES---------------------------------------------------*/
  
  .gallery {
    display:flex;
    flex-wrap: wrap;
    max-width: 100%;
    justify-content: center;
    gap: 10px;
    padding-bottom: 10px;
  }
  
  .imgblock {   
    width: 17%;
    margin-bottom: 10px;
  }
  
    .imgblock:hover {   
    margin-top: -10px;
    margin-bottom: 20px;
  }
  
  .gallery img {
    border: solid 2px #696fb3;
    width: 100%;
    height: auto;
  }
  
  .desc {
    display: inline-block;
    width: 100%;
    height: auto;
    padding-bottom: 5px;
    background-color: var(--label-color, black);
    color: var(--text-color, black);
    font-size: 16px;
    text-align: center;
    border: 2px solid var(--label-color, black);
    border-bottom: none;
    border-radius: 0 0 5px 5px;
    margin-top: -3px;
  }
  
  .sixtypercent img {
    width: 100%;
    height: auto;
  }
  
 .left img {
   border: solid 2px #000000;
   width: 80%;
   height: auto;
  }

/*CHARACTER INFOBOX---------------------------------------------------*/
  
  .infobox {
    width: 100%;
    border: 2px solid var(--char-color, white);
    background-color: #f9f9f9;
    font-size: 14px;
    margin: 20px 0;
  }

  #infobox-header {
    background-color: var(--char-color, white);
    text-align: center;
    font-weight: bold;
    padding: 10px;
    font-size: 16px;
  }
  
    .infobox-subheader {
    background-color: var(--char-color, white);
    text-align: center;
    font-weight: normal;
    padding: 8px;
    font-size: 16px;
  }

  .infobox-row {
    display: flex;
    border-top: 1px solid #ccc;  
  }

  .infobox-label {
    width: 40%;
    padding: 6px;
    font-weight: bold;
    background-color: #e0e0e0;
  }

  .infobox-data {
    width: 60%;
    padding: 6px;
  }
  
    .infobox-tabs {
    display: flex;
    border-top: 1px solid #ccc;
    background-color: #e0e0e0;
    color: #315bd3;
  }

  .infobox-tab {
    flex: 1;
    padding: 6px;
    text-align: center;
    cursor: pointer;
    font-weight: bold;
  }

  .infobox-tab:hover,
  .infobox-tab.active {
    background-color: #d0d0d0;
    color: #000000;
  }

  .infobox-content {
    display: none;
  }

  .infobox-content.active {
    display: block;
  }

/*CHARACTER QUOTEBUBBLE---------------------------------------------------*/
  
  .quotebubble {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    border: 1px solid #000000;
    border-radius: 20px;
    width: 50%;
    height: 100px;
    background-color: #ffffc4;
    font-size: 22px;
    animation: floatUpDown 2s ease-in-out infinite alternate;
  }

  .triangle-wrapper2 {
    position: relative;
    width: 0;
    height: 0;
    animation: floatUpDown 2s ease-in-out infinite alternate;
    z-index: 999;
  }
  
  .triangle-border2 {
  border-left: 11px solid transparent;
  border-right: 11px solid transparent;
  border-top: 21px solid black;  /* point down */
  position: absolute;
    top: 101px;
    left: 30px;
  }
  
  .triangle-inner2 {
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 20px solid #ffffc4;  /* inner triangle color */
  position: absolute;
    top: 100px;
    left: 31px;
  }
  
/*CHARACTER NAMEPLATE---------------------------------------------------*/

#nameplateArea {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0;
  height: auto;
}

.image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.image-container img {
  width: 40%;
  padding: 10px 0;
  
}

.epithet {
  font-weight: bold;
  font-size: 22px;
}

@keyframes floatUpDown {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-8px);
  }
}

/*FOOTER---------------------------------------------------*/

  footer {
    background-color: #ffffff;
    position:relative;
    text-align: center;
    margin-top: auto;
    }


/*RESIZING---------------------------------------------------*/

  @media only screen and (max-width: 1000px) {
  
    #flex {
      flex-wrap: wrap;
      flex-direction: column;
    }
  
    #leftSidebar {
      order: -1;
      display: flex;
      flex-direction: row;
      gap: 20px;
      width: auto;
      margin: 0 0 5px 0;
      flex-wrap: wrap;
    }
  
    .navblock {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
    }
      
    .navlabel {
      margin-bottom: 0px;
      padding: 3px 3px 6px;
    }
    
        .desc {
      margin-top: -10px;
      padding: 5px 0px 15px;
    }
  
    .navcontainer {
      display: grid;
      grid-auto-flow: column;
      grid-template-rows: repeat(3, auto);
      width: auto;
      background-color: #EFC854;
      border: 4px solid #EFC854;
      border-radius: 5px;
    }
  
    .navcontainer .navbutton:nth-child(3n + 1)::after {
      background: linear-gradient(
        45deg,
        #FFFFFF 45%, 
        #FFFFFF 46.5%, 
        black 46.5%,
        black 54.5%, 
        #d7b44b 54.5%, 
        #d7b44b 100%
      );
      border-color: #d7b44b #d7b44b #000000 #aeaeae;
    }
  
  
    .navbutton {
      margin-right:5px;
    }
  
    body {
      padding-left: 0%;
    }
  }