/* ------------------------------
   fonts
------------------------------ */

@font-face {
  font-family: "Eraky";
  src: url("eraky-bold.otf") format("truetype");
}

/* ------------------------------
   base
------------------------------ */

body {
  font-family: "Montserrat", serif;
  padding: 10px;
  width: 900px;
  max-width: 100%;
  margin: auto;
  background:
    linear-gradient(
      180deg,
      rgba(5,0,0,1) 0%,
      rgba(124,19,19,1) 38%,
      #e944fa 100%
    );
  background-attachment: fixed;
}

img {
  vertical-align: middle;
  max-width: 100%;
  height: auto;
}

a {
  color: #b8ec69;
}

p {
  color: #b8ec69;
  margin: 0 auto;
  padding: 20px;
  font-size: 20px;
}

/* ------------------------------
   header
------------------------------ */

.header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 120px;
}

.header h1 {
  font-size: 50px;
  font-family: "Eraky";
  color: #b8ec69;
}

.header h2 {
  font-size: 20px;
  color: white;
}

.header h1 span {
  display: inline-block;
  animation: header-text 5s ease-in-out infinite;
}

.header h1 span:nth-of-type(1) { animation-delay: 0s; }
.header h1 span:nth-of-type(2) { animation-delay: 0.1s; }
.header h1 span:nth-of-type(3) { animation-delay: 0.2s; }
.header h1 span:nth-of-type(4) { animation-delay: 0.3s; }
.header h1 span:nth-of-type(5) { animation-delay: 0.4s; }

@keyframes header-text {
  0%   { transform: translateY(0); }
  60%  { transform: translateY(-0.3em); }
  100% { transform: translateY(0); }
}

/* ------------------------------
   nav
------------------------------ */

.topnav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  background-color: black;
  border-radius: 20px;
  margin-bottom: 10px;
}

.topnav a {
  margin: auto;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  color: #b8ec69;
  width: auto;
}

.topnav a:hover {
  background-color: #e944fa;
  color: black;
}

/* ------------------------------
   layout
------------------------------ */

#thebody {
  background: black;
  border-radius: 20px;
  text-align: center;
}

.card {
  margin-top: 15px;
  background-color: black;
  display: inline-block;
  width: 100%;
  border-radius: 20px;
  padding: 15px;
}

#thebody,
.card {
  overflow: visible;
}

.footer {
  height: 40px;
  border-radius: 20px;
  font-size: 10px;
  text-align: center;
  color: #b7eb6aa5;
  background: black;
}

#wakingsongs {
  display: inherit;
  height: 800px;
  overflow-y: scroll;
}

/* ------------------------------
   comic gallery
------------------------------ */

.container {
  position: relative;
}

.mySlides {
  display: none;
}

.cursor {
  cursor: pointer;
}

.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 40%;

  padding: 16px;
  margin-top: -50px;

  color: white;
  font-weight: bold;
  font-size: 20px;

  user-select: none;
  -webkit-user-select: none;
}

.prev {
  left: 0;
}

.next {
  right: 0;
}

.prev:hover,
.next:hover {
  background-color: rgba(0,0,0,0.8);
}

.numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

.caption-container {
  text-align: center;
  background-color: #222;
  height: 20px;
  margin-bottom: 20px;
}

.row:after {
  content: "";
  display: table;
  clear: both;
}

.column {
  float: left;
  width: 10%;
}

.thumbs {
  opacity: 0.6;
}

.active,
.thumbs:hover {
  opacity: 1;
}

/* ------------------------------
   colored gallery
------------------------------ */

.gallery {
  column-count: 2;
  column-gap: 12px;
  padding: 20px;
  margin: 0 auto;
  max-width: 800px;
}
 
 /* column-count: 2;
 column-gap: 12px;
  gap: 10px;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
 max-height: 800px;  
  overflow-y: auto;  
  overflow-x: hidden; 
} */

.gallery picture,
.gallery img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 12px;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  object-fit: contain; 
}

/* modal */

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
  z-index: 9999;
}

.modal-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.modal-content {
  max-width: 100%;
  max-height: 100vh;
  object-fit: contain;
  transform: scale(0.95);
  transition: transform 0.2s ease;
}

#modalcaption {
  color: white;
  margin-top: 14px;
  text-align: center;
  max-width: 90%;
}

/* arrows */

.modal-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 48px;
  cursor: pointer;
  user-select: none;
  padding: 12px;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-arrow:hover {
  opacity: 0.7;
}

.modal-arrow.left {
  left: 20px;
}

.modal-arrow.right {
  right: 20px;
}

/* ------------------------------
   bw gallery
------------------------------ */

.gallerybw {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
 max-height: 800px;  
  overflow-y: auto;  
  overflow-x: hidden; 
}

.gallerybw img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* buttons */

.close2,
.prev2,
.next2 {
  position: absolute;
  background: rgba(255,255,255,0.7);
  border: none;
  border-radius: 5px;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 22px;
  z-index: 10000;
}

.close2 {
  top: 20px;
  right: 20px;
}

.prev2 {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.next2 {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

/* ------------------------------
   traditional 
------------------------------ */

div.scroll-container {
  background-color: #333;
  overflow: auto;
  white-space: nowrap;
  padding: 10px;
}

/* ------------------------------
   mobile
------------------------------ */
@media screen and (max-width: 600px) {
  .topnav a {
    width: 100%; 
  }
}