@font-face {
  font-family: 'Munro';
  src: url('../fonts/munro.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

body, html {
    overflow: hidden;
    padding: 0;
    margin: 0;
    touch-action: none;
    width: 100%;
    height: 100%;
    font-family: 'Munro', sans-serif;
}

canvas {
    margin: 0;
    overflow: hidden;
    padding: 0;
    display: block;
    position: relative;        
}

h2, h3 {
  letter-spacing: 0.75px;
}

#game {
  position: absolute;
  left: 0;
  top: 0;
}

#overlay {
  position: absolute;
  background-color: rgba(0, 0, 0, 0.8);
  padding: 20px;
  border-radius: 10px;
  color: white;
  text-align: center;
  display: none;
}

#overlay h2 {
  margin-bottom: 10px;
}

#overlay p {
  margin: 5px 0;
}

.modal {
  display: none;
  position: fixed;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
}

/* Gallery Container Styles */
#gallery-container {
  padding: 20px;
  width: 80%;
  max-width: 1200px;
  height: 80%;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #faf6d0;
  border: 4px solid #000;
  box-shadow: 0 0 0 6px #fffef4;
  position: relative;
  flex-direction: column;
}

/* Gallery Styles */
#gallery {
  display: flex;
  background-color: rgb(245, 231, 206);
  justify-content: space-between;
  height: 100%;
  width: 100%;
  border-radius: 8px;
  border: 4px solid #000;
  overflow: auto;
  flex-direction: row;
}

#gallery div {
  text-align: center;
  padding: 10px 0;
}

/* Close Button Styles */
.close-btn {
  position: absolute;
  top: 4px;
  right: 2px;
  font-size: 36px;
  cursor: pointer;
  color: rgb(212, 40, 40);
  padding: 0;
  line-height: 20px;
}

#gallery img {
  max-width: 100%;
  max-height: 80%;
  width: auto;
  height: auto;
  border-radius: 8px;
  object-fit: contain;
}

#modalTitle {
  font-size: 19px;
  font-weight: 600;
  margin: 0;
  margin-bottom: 5px;
}

/* Navigation Buttons Styles */
.prev, .next {
  color: rgb(39, 38, 38);
  cursor: pointer;
  font-size: 38px;
  display: flex;
  align-items: center;
}

.page {
  display: flex;
  flex-direction: column;
}

.row {
  display: flex;
  flex-direction: row;
}

.row-reverse {
  display: flex;
  flex-direction: row-reverse;
}

/* Styles for Screens Wider than 640px */
@media (min-width: 640px) {
  #gallery div {
    padding: 5px 0;
  }

  .gallery-div, .page {
    flex: 1;
  }

  #gallery div:last-child {
    border-right: none;
  }

  #leftGallery h3 {
    text-align: left;
  }
  
  #leftGallery {
    margin-left: 10px;
    justify-content: center;
  }

  #rightGallery {
    margin-right: 10px;
    margin-left: 12px;
    justify-content: center;
  }

  #prev {
    margin-left: 3px;
  }
  
  p {
    font-size: 17.2px;
  }
}

/* Styles for Screens Narrower than 640px */
@media (max-width: 640px) {
  #gallery {
    flex-direction: column;
    justify-content: unset;
    padding: 0 5px;
  }

  .gallery-div {
    flex-direction: column;
  }

  .prev, .next {
    display: none;
  }

  #leftGallery {
    padding-bottom: 0 !important; 
  }

  #rightGallery {
    padding-top: 0 !important;
  }

  #gallery img {
    max-height: 350px;
  }

  #gallery div:last-child {
    border-bottom: none;
  }

  .prev, .next {
    font-size: 24px;
    position: absolute;
    bottom: 10px;
    width: 50px;
  }

}

.pill {
  border-radius: 24px;
  display: inline-block;
  padding: 5px 10px 5px 12px;
  color: #ffffff;
  background: #333;
  font-size: 15px;
  letter-spacing: .5px;
  text-align: center;
  margin-top: 4px;
}

.pill:hover {
  background: #414040;
}

.bump {
  margin-top: 40px;
}

.mt-1 {
  margin-top: 7px;
}

.fa-github {
  font-size: 20px;
  color: #333333;
}

.flex {
  display: flex;
}

.flex-0 {
  flex: 0 !important;
}
