body {
  background-color: #1c1c1c;
  color: #e0e0e0;
  font-family: 'Nunito', sans-serif; /* Update this line */
  margin: 0;
  padding: 20px;
  overflow-x: hidden;
}

header {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #333;
  padding: 20px;
  text-align: center;
}

#logo {
  max-width: 100%; /* Adjust the width as needed */
  height: auto;
  margin-bottom: 20px;
}

header h1 {
  margin: 0;
  color: #e0e0e0;
}

main {
  padding: 40px;
}

footer {
  background-color: #333;
  padding: 20px;
  text-align: center;
}

.gallery-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #2d2d2d;
  padding: 6px;
  max-width: 532px;
  margin: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-bottom: 48px
}

.gallery-item img {
  width: 100%;
  max-width: 512px;
  height: auto;
  margin-bottom: 20px;
}

.gallery-item iframe {
  width: 100%;
  max-width: 512px;
  height: auto;
  margin-bottom: 20px;
}

#gallery-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.gallery-item h2 {
  position: absolute;
  top: -3rem;
  left: 0;
  background-color: #e36ce2; /* Choose a background color for the label */
  color: #000; /* Choose a text color for the label */
  padding: 0.5rem 1rem;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  font-size: 0.9rem;
  white-space: nowrap;
  text-transform: uppercase;
  font-weight: bold;
  z-index: 1;
}

.gallery-item::before {
  content: '';
  position: absolute;
  top: -1.5rem;
  left: 0;
  width: 100%;
  height: 1.5rem;
  background-color: inherit;
  z-index: 0;
  opacity: 0;
}

.gallery-item p {
  margin-bottom: 16px;
  color: #e0e0e0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: pre-wrap; /* Allow line breaks */
  max-height: 128px; /* Set a maximum height for the description */
}

.gallery-item a {
  color: #e0e0e0;
  text-decoration: none;
  transition: color 0.3s;
  margin-top: 32px; /* Add a margin to the top to separate the link from the description */
}

.gallery-item a:hover {
  color: #ffffff;
}

.drawing-board-link {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    background-color: #000;
    padding: 10px;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.drawing-board-link a {
    font-size: 24px;
    color: #fff;
    display: block;
    text-decoration: none;
}

.social-links-container {
  position: fixed;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: rgba(45, 45, 45, 0.8); /* Adjust the background color and opacity as needed */
  padding: 10px;
  border-radius: 0 5px 5px 0;
}

.social-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.social-links a {
  color: #e0e0e0;
  font-size: 24px;
  transition: color 0.3s;
}

.social-links a:hover {
  color: #ffffff;
}

.modal button {
  background-color: #2d2d2d;
  color: #e0e0e0;
  padding: 10px 20px;
  margin: 10px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s;
  top: 128px
}

.modal button:hover {
  background-color: #444;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
  margin-right: 100px; /* Add a margin to the right to avoid overlapping with the icon */
}

.tag {
  background-color: #444;
  padding: 2px 16px;
  border-radius: 4px;
  font-size: 14px;
  color: #e0e0e0;
}

.game-iframe {
  max-width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 64px;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,1);
}

.modal-outer {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.modal-content {
    position: relative;
    background-color: #262121;
    padding: 20px;
    border: 1px solid #888;
    border-radius: 5px;
    width: 80%;
    /*
    max-width: 750px;
    */
    max-height: 80vh;
    overflow: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.close {
    position: absolute;
    color: #aaa; /* change the color as you need */
    top: 10px;
    right: 15px;
    font-size: 28px; /* change the size as you need */
    font-weight: bold;
    cursor: pointer;
}


#modal {
  display: none;
}

.artwork-modal {
    position: relative;
    justify-content: center;
    background-color: #262121;
    padding: 20px;
    border: 1px solid #888;
    border-radius: 5px;
    width: 80%;
    /*
    max-width: 750px;
    */
    height: 85%;
    overflow: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    /*

    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    */
}

#artwork-modal {
  display: none;
}

.artwork-modal-content {
  background-color: #333;
  margin: 0 auto;
  padding: 20px;
  border-radius: 10px;
  width: 80%;
  max-width: 900px;
  display: flex;
  flex-wrap: wrap;
  position: center;
}

.artwork-modal-close {
  position: absolute;
  top: -15px;
  right: -15px;
  background-color: #2d2d2d;
  color: #e0e0e0;
  padding: 5px 10px;
  border-radius: 50%;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
}

.artwork-modal-close:hover {
  background-color: #444;
}

#artwork-modal-left {
  width: 100%;
  max-width: 800px; /* Add a max-width */
  position: relative;
}

#artwork-modal-right {
  flex: 1;
}

#artwork-modal-image {
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  display: block;
  cursor: zoom-in;
  object-fit: contain; /* Add this line to maintain the aspect ratio of the image */
}

#gallery {
  margin-top: 2rem; /* Adjust this value to increase or decrease the space */
  /* Add any other styles for the #gallery section if needed */
}

.image-preview-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.image-preview-wrapper {
  position: relative;
  width: 100px;
  height: auto;
  cursor: pointer;
}

.image-preview {
  width: 100%;
  height: auto;
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.image-preview-wrapper:hover .image-overlay {
  opacity: 1;
}

.item-icon {
  position: absolute;
  top: -16px;
  right: -32px;
  width: 96px !important; /* Add !important to ensure the width is 32px */
  height: 96px !important; /* Add !important to ensure the height is 32px */
  object-fit: contain; /* Ensure the aspect ratio of the icon is preserved */
}

.pagination-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-top: 20px;
}
