body {
    background-color: #222222;
    /*background-image: url(img/bg.webp);*/
    text-align: center;
    font-family: "M PLUS 1p", sans-serif;
    color: #ffffff;
}

img {
  user-select: none;
  -webkit-user-drag: none;
}

img:hover {
  cursor: pointer;
}

.collapsible {
  background-color: #eee;
  color: #444;
  cursor: pointer;
  padding: 18px;
  width: 100%;
  border: none;
  text-align: center;
  outline: none;
  font-size: 15px;
  border-radius: 10px;
}

.active, .collapsible:hover {
  background-color: #ccc;
}

.active, .collapsible:after {
  border-radius: 10px 10px 0px 0px;
}

.content {
  width: 100%;
  background-color: white;
  max-height: 0;
  margin: auto;
  overflow: hidden;
  text-align: center;
  transition: max-height 0.2s ease-out;
  border-radius: 0px 0px 10px 10px;
}

.collapsible:after {
  content: '\02795'; /* plus sign (+) */
  font-size: 13px;
  color: white;
  float: right;
  margin-left: 5px;
  
}

.active:after {
  content: "\2796"; /* minus sign (-) */
}

.gallery {
    margin-left: 5%;
    margin-right: 5%;
    background-color: white;
    border-radius: 10px;
    padding: 5%;
}

.gallery img {
  width: 100%;
  height: auto;
  border-style: solid;
  border-color: #000000;
  border-radius: 10px;
  object-fit: cover;
}

.gallery.grid-view {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.random {
  background-color: #eee;
  color: #444;
  cursor: pointer;
  padding: 18px;
  padding-right: 35px;
  width: 100%;
  border: none;
  text-align: center;
  outline: none;
  font-size: 15px;
  border-radius: 10px;
}

.active, .random:hover {
  background-color: #ccc;
}

@media (min-width: 768px) {
  .collapsible {
    width: 90%;
  }
  .content {
    width: 90%;
  }
  .random {
    width: 90%;
  }
  .gallery.grid-view {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .collapsible {
    width: 80%;
  }
  .content {
    width: 80%;
  }
  .random {
    width: 80%;
  }
  .gallery.grid-view {
    grid-template-columns: repeat(3, 1fr);
  }
}

#image-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#image-modal img {
  max-width: 90%;
  max-height: 90%;
  transition: transform 0.25s ease;
}

#image-modal img:hover {
  cursor: zoom-in;
}


#image-modal.zoomed img:hover {
  cursor: zoom-out;
}

#image-modal.zoomed img {
  transform: scale(2);
}

#image-modal button {
  position: fixed;
  top: 20px;
  left: 20px;
  background-color: #eee;
  color: #444;
  cursor: pointer;
  border-radius: 5px;
  border: none;
  text-align: center;
  outline: none;
}