:root {
  --primary-color: #ffcc00;
  --secondary-color: #333333;
  --font-family: "Press Start 2P", cursive;
}

body {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  font-family: var(--font-family);
  text-align: center;
  margin: 0;
  padding: 0;
}

.splash-text-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  z-index: 10;
  padding: 0px;
  margin: 0px;
}

.splash-text {
  font-size: 4rem;

  text-shadow: 0 0 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000,
    1px 1px 0 #000, 2px 2px 4px rgba(0, 0, 0, 1);
  margin: 0px;

  background-color: black;
  width: 100%;
  opacity: 0.8;
  padding-top: 20px;
  padding-bottom: 20px;
}

#gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0rem;
  height: 100%;
  width: 100%;
}

.grid-container {
  width: 100%;
  height: 100vh;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px;
  text-align: left;
}

a {
  color: white;
}

h2,
h3,
h4,
h5,
h6 {
  margin: 15px 0;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 5px;
}

nav {
  width: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 10px;
  text-align: center;
  z-index: 1000;
  margin: 0px;
  padding-left: 0px;
  padding-right: 0px;
  gap: 9px;
  justify-content: center;
  display: flex;
  flex-wrap: wrap;
  font-size: 0.75rem;
}

nav a {
  border-radius: 0;
  border: 4px solid #000;
  background-color: #fff;
  color: #000;
  padding: 8px 16px;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 0 0 2px #fff, 0 0 0 6px #00000050;
  image-rendering: pixelated;
  font-family: var(--font-family);
  border-radius: 10000px;
  transition: box-shadow 0.1s, transform 0.1s;
}

nav a:active {
  box-shadow: 0 0 0 1px #fff, 0 0 0 3px #000;
  transform: translateY(1px);
}

.room-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 20px;
}

.gallery-header {
  color: var(--primary-color);
  text-align: left;
  width: 100%;
}

.room-card {
  background-color: rgba(255, 255, 255, 1);
  border: 1px solid #000;
  border-radius: 10px;
  padding: 10px;
  margin: 10px;
  width: 300px;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 1);
  color: black;

  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: center;
}

.room-card img {
  width: 100%;
  height: auto;
}

.room-card h2 {
  margin: 10px 0;
  color: black;
  height: 50px;
  font-size: clamp(0.25rem, 100%, 1.5rem);
  width: 100%;

  word-break: break-word;
  max-width: 100%;
  white-space: normal;
  text-overflow: ellipsis;

  text-align: center;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;

  line-height: 1.5;
}

.room-card a {
  display: block;
  align-self: flex-end;
  width: calc(100% - 10px);
  border-radius: 10px;
  border-color: black;
  border-style: solid;
  border-width: 2px;
  padding: 3px;
  text-decoration: none;
  color: black;
  padding-top: 5px;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 1);
}

.room-card a:active {
  box-shadow: 1px 1px 0 rgba(0, 0, 0, 1);
  transform: translateY(1px);
}

.room-card p {
  font-size: clamp(0.25rem, 100%, 0.75rem);
  margin: 10px 0;
  color: black;
  display: block;
  width: 100%;
}

.photo-gallery{
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.photo-item {
  width: 440px;
  max-width: 90%;
  height: 540px;
  background: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 10px;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 1);
}

.photo-item img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;

  margin-bottom: 10px;
}

.photo-item p{
  color: black;
  font-size: 0.9rem;
  margin: 0;
  padding: 0;
  text-align: center;
  flex-grow:1;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.lightbox-image:hover {
  transform: scale(1.05);
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.4);
}

.lightbox-image {
  transition: transform 0.3s, box-shadow 0.3s;
  width: 100%;
  height: 100%;
  object-fit: cover;
  box-shadow: 5px 5px 0px rgba(0, 0, 0, 0.8);
}

.lightbox-image-container {
  width: 200px;
  height: 200px;
  background: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bw {
  filter: grayscale(40%);
  transition: filter 0.3s, box-shadow 0.3s, transform 0.3s;
}

.bw:hover {
  filter: grayscale(20%);
  transition: filter 0.3s, box-shadow 0.3s, transform 0.3s;
}

.lightbox-super-container {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 20px;
}

#lightbox-modal img {
  filter: grayscale(30%);
  border: 10px solid white;
  border-bottom: 100px solid white;
}

#lightbox-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

#lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
  z-index: 10;
  text-shadow: 2px 2px 0px #000, -2px -2px 0px #000, 2px -2px 0px #000,
    -2px 2px 0px #000;
}

#lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  box-shadow: 0 0 20px #000;
  box-sizing: border-box;
}

@media (max-width: 600px) {
  .splash-text {
    font-size: 2rem;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .room-card {
    width: 90vw;
    margin: 10px auto;
    padding: 8px;
  }

  .lightbox-image-container {
    width: calc(50% - 15px);
    aspect-ratio: 1 / 1;
    height: auto;
  }

  .lightbox-super-container {
    flex-direction: row;
    gap: 10px;
    margin-bottom: 10px;
    width: calc(100% - 20px);
  }

  nav a {
    padding: 6px 10px;
    font-size: 0.7rem;
    margin: 5px 0px;
  }

  main {
    padding: 20px 0px;
  }

  .room-gallery {
    gap: 5px;
    padding: 10px;
  }
}
