@font-face {
  font-family: 'Super Monday';
  src: url('Super Monday.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

.center-container {
  position: relative; 
  text-align: center; 
}

.page-title {
    position: absolute;
    top: -100px; /* big negative equals high */
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Super Monday', Arial, sans-serif;
    font-size: 5rem;
    color: #603813;
    margin: 0;
    padding: 0;
    white-space: nowrap; /* Prevent line breaks */
    width: auto; /* Allow the title to extend beyond the board's width if needed */
}


body {
  font-family: "Bubblegum", Arial, sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: #a4d4a2;
}

.icon-container { /* this stores the  buttons on the left side*/
  display: flex;
  flex-direction: column; /* Stack the icons vertically */
  justify-content: center;
  margin-right: 15px; 
  margin-top: -25px;
}

.refresh-icon, .clear-icon {
  width: 175px; /* Adjust the size of the icons as needed */
  cursor: pointer;
  margin-bottom: 20px; /* Space between the icons */
}

.filter-container { /* this stores the villager filters on the right */
  background-color: #fff9e5; 
  padding: 10px;
  border-radius: 15px; /* this rounds the corners */
  margin-left: 20px; /* margin to the left of this container */
  margin-top: -160px; /* high negative moves this up */
  max-width: 170px;
}

.filter-options label {
  display: grid;
  grid-template-columns: auto 1fr; /* Two columns: one for the radio button, one for the text */
  align-items: start; /* Align the items to the start */
  gap: 6px; /* Space between the radio button and the text */
  font-size: 1.2rem;
  color: #603813;
}

.filter-options {
  display: flex;
  flex-direction: column; /* Stack the radio buttons vertically */
  justify-content: center;
  gap: 12px; /* Adjust this value to change the space between items */
  font-size: 1.2rem;
  color: #603813;
}

.board-container-wrapper {
  background-color: #f8eebc;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* new board container to become mobile friendly */
.board-container {
  width: 400px;
  height: 400px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 10px;
}

@media (max-width: 600px) {
  .board-container {
      width: 90vw;
      height: 90vw;
  }
}
/* end new board container*/


.header {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 0px;
  font-size: 5rem;
  font-weight: bold;
  color: #786951;
}

.cell {
  background-color: #fff9e5;
  border: 2px solid #dbbf9e;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 5px;
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
  padding: 0px;
  box-sizing: border-box;
}


.villager-name {
  font-size: .7rem;
  text-align: center;
}

/* new villager image and star frag overlay for mobile friendly update */
.villager-image {
  max-width: 100%;
  max-height: 80%;
  object-fit: contain;
  margin-bottom: .5px;
}

@media (max-width: 600px) {
  .villager-image {
      max-width: 90%;
      max-height: 70%;
  }
}

.star-fragment-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 100%;
  max-height: 100%;
  /* box-shadow: 4px 4px 8px rgba(0, 0, 0, 1); */
  /* this is commented out because the shadow was ugly and wrong*/ 
  pointer-events: none;
}

@media (max-width: 600px) {
  .star-fragment-overlay {
      max-width: 90%;
      max-height: 90%;
  }
}
/* end new villager image and star frag */

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

.villager-name {
    font-family: Arial, sans-serif;
    color: #000
}

.attribution {
  position: absolute;
  bottom: -120px; /*  relative to the bingo board */
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.1rem; 
  color: #603813; 
}

.attribution a {
  color: #603813; 
  text-decoration: none;
}

.attribution a:hover {
  text-decoration: underline; 
}

.below-board-image {
  position: absolute;
  bottom: -95px; 
  left: 50%;
  transform: translateX(-50%);
  max-width: 250px; 
  max-height: 200px; 
}

/* new additions to become mobile friendly */
@media (max-width: 600px) {
  body {
      flex-direction: column;
      justify-content: flex-start;
      padding: 10px;
      height: auto;
  }

  .board-container {
      width: 90vw;
      height: 90vw;
      gap: 5px;
  }

  .cell {
      font-size: 0.5rem;
  }

  .icon-container {
      margin: 0 auto;
      margin-top: 10px;
      margin-bottom: 30px;
      width: 100%;
      display: flex;
      justify-content: space-evenly;
      flex-direction: row;
  }

  .filter-container {
    margin: 0 auto;
    margin-top: 10px;
    width: 100%;
    display: flex;
    justify-content: space-between;
}

  .refresh-icon, .clear-icon {
      width: 75px;
  }

  .filter-container {
      margin-top: 20px;
      max-width: 100%;
      padding: 5px;
      font-size: 1rem;
  }

  .page-title {
      font-size: 2.75rem;
      top: -60px;
  }

  .below-board-image {
    bottom: -215px;
      max-width: 150px;
      max-height: 120px;
  }

  .attribution {
      font-size: 0.9rem;
      bottom: -250px;
  }
}