.app-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  background-color: #85a4c3;
}

.grid-centering-wrapper {
  flex-grow: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}
.grid-container {
  display: grid;
  grid-template-columns: repeat(20, 1fr);
  padding: 10px;
  gap: 1px;
  margin: 20px auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);

  /* Adjust padding for larger screens (e.g., tablets and desktops) */
  @media (min-width: 768px) {
    padding: 20px 40px;
  }

  @media (min-width: 1200px) {
    padding: 30px 80px;
  }

  width: calc(100% - (var(--grid-padding-left) + var(--grid-padding-right)));
  /* Adjust width based on dynamic padding */
  max-width: 1000px;
  min-width: 300px;
}

.grid-container {
  --grid-padding-left: 10px;
  --grid-padding-right: 10px;
}

@media (min-width: 768px) {
  .grid-container {
    --grid-padding-left: 40px;
    --grid-padding-right: 40px;
  }
}

@media (min-width: 1200px) {
  .grid-container {
    --grid-padding-left: 80px;
    --grid-padding-right: 80px;
  }
}

/* Styles for individual tiles */
.tile {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  box-sizing: border-box;

  width: 100%;
  height: 100%;
}

.tile:hover {
  transform: scale(2);
  /* Slight zoom effect on hover */
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  /* Shadow on hover */
  z-index: 1;
  /* Bring hovered tile to front */
}

.tile-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 5px;
}

.tile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Ensures image covers the tile without distortion */
}

/* MODAL CSS */

.modal {
  display: none;
  /* Hidden by default */
  position: fixed;
  /* Stay in place */
  z-index: 1;
  /* Sit on top */
  left: 0;
  top: 0;
  width: 100%;
  /* Full width */
  height: 100%;
  /* Full height */
  overflow: auto;
  /* Enable scroll if needed */
  background-color: rgb(0, 0, 0);
  /* Fallback color */
  background-color: rgba(0, 0, 0, 0.4);
  /* Black w/ opacity */
  overflow-y: hidden;
}

/* Modal Content/Box */
.modal-content-custom {
  background-color: #fefefe;
  margin: 5% auto;
  /* 15% from the top and centered */
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  /* Could be more or less, depending on screen size */
}

.modal-content-custom img {
  /*width: 200px;
      Increased width */
  height: 200px;
  /* Increased height */
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* The Close Button */
.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

/* The Play on Spotify Button */
.spotify-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin-top: 15px;
  padding: 8px 15px;
  background-color: #1DB954;
  border-radius: 25px;
}

.spotify-button img {
  height: 30px;
  border-radius: 0;
  box-shadow: none;
}

.timer-display {
  text-align: center;
}

/* The Edit Button */
.edit-button {
  display: block;
  width: 100%;
  max-width: 150px;
  margin: 20px auto 0 auto;
  padding: 10px 15px;
  background-color: #457b9d;
  color: white;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1em;
  font-weight: bold;
}

/* COUNTDOWN TIMER STYLE */

.cooldown-timer-display {
  text-align: center;
  margin: 10px 0;
  font-size: 1.2em;
  font-weight: bold;
  color: #f1eff8ff;
}