* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  overflow-x: hidden; /* Prevent horizontal scrolling */
  margin: 0;
  padding: 0;
}

body {
  display: grid;
  place-items: center;
  overflow: hidden;
  min-height: 100vh; /* Ensures full height on mobile devices */
}

main {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 100vw; /* Ensures no overflow */
  max-height: 100vh;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
  overflow: hidden; /* Prevents overflow */
}



.item {
/*  width: 200px;*/
  height: 300px;
  list-style-type: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  background-position: center;
  background-size: cover;
  border-radius: 20px;
  box-shadow: 0 20px 30px rgba(255,255,255,0.3) inset;
  transition: transform 0.1s, left 0.75s, top 0.75s, width 0.75s, height 0.75s;

  /* Remove pseudo-class syntax, apply styles directly */
}
.item:nth-child(1), .item:nth-child(2) {
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  transform: none;
  border-radius: 0;
  box-shadow: none;
  opacity: 1;
}

.item:nth-child(3) { left: 50%; }
.item:nth-child(4) { left: calc(50% + 220px); }
.item:nth-child(5) { left: calc(50% + 440px); }
.item:nth-child(6) { left: calc(50% + 660px); opacity: 0; }
.item:nth-child(7) { left: calc(50% + 510px); opacity: 0; }
.item:nth-child(8) { left: calc(50% + 510px); opacity: 0; }
.item:nth-child(9) { left: calc(50% + 510px); opacity: 0; }
.item:nth-child(10) { left: calc(50% + 510px); opacity: 0; }
.item:nth-child(11) { left: calc(50% + 510px); opacity: 0; }
.item:nth-child(12) { left: calc(50% + 510px); opacity: 0; }
.item:nth-child(13) { left: calc(50% + 510px); opacity: 0; }
.item:nth-child(14) { left: calc(50% + 510px); opacity: 0; }
.item:nth-child(15) { left: calc(50% + 510px); opacity: 0; }
.item:nth-child(16) { left: calc(50% + 510px); opacity: 0; }
.item:nth-child(17) { left: calc(50% + 510px); opacity: 0; }
.item:nth-child(18) { left: calc(50% + 510px); opacity: 0; }
.item:nth-child(19) { left: calc(50% + 510px); opacity: 0; }
.item:nth-child(20) { left: calc(50% + 510px); opacity: 0; }
.item:nth-child(21) { left: calc(50% + 510px); opacity: 0; }


.content {
  
  width: min(30vw, 400px);
  position: absolute;
  top: 20%;
  left: 3rem;
  transform: translateY(-50%);
  font: 400 0.85rem Helvetica, sans-serif;
  color: white;
  text-shadow: 0 3px 8px rgba(0,0,0,0.5);
  opacity: 0;
  display: none;
}

.content .title {
  font-family: 'Arial Black', sans-serif;
  text-transform: uppercase;
  text-wrap: nowrap;
}

.content .description {
  line-height: 1.7;
  margin: 1rem 0 1.5rem;
  font-size: 0.8rem;
  text-align: justify;
}

.content button {
  width: 100px;
  background-color: rgba(0,0,0,0.1);
  color: white;
  border: 2px solid white;
  border-radius: 0.25rem;
  padding: 0.75rem;
  cursor: pointer;
  letter-spacing: 1px;
  transition: 0.6s;
  margin: 10px;
}
.content button:hover{
  background-color: white;
  color: black;
}

.item:nth-of-type(2) .content {
  display: block;
  animation: show 0.75s ease-in-out 0.3s forwards;
}

@keyframes show {
  0% {
    filter: blur(5px);
    transform: translateY(calc(-50% + 75px));
  }
  100% {
    opacity: 1;
    filter: blur(0);
  }
}

.nav {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  user-select: none;
}

.nav .btn {
  background-color: rgba(255,255,255,0.5);
  color: rgba(0,0,0,0.7);
  border: 2px solid rgba(0,0,0,0.6);
  margin: 0 0.25rem;
  padding: 0.75rem;
  border-radius: 50%;
  cursor: pointer;
}

.nav .btn:hover {
  background-color: rgba(255,255,255,0.3);
}

/* Adjust media queries to use min-width and max-width */

@media (min-width: 650px) and (max-width: 899px) {

  .content .title { font-size: 1rem; }
  .content .description { font-size: 0.7rem;  }
  .content button { font-size: 0.7rem; }

  /*.item {
    width: 160px;
    height: 270px;
  }*/

  .item:nth-child(3) { left: 50%; transform: translateX(-50%); }
  .item:nth-child(4) { left: calc(50% + 170px); }
  .item:nth-child(5) { left: calc(50% + 340px); }
  .item:nth-child(6) { left: calc(50% + 510px); opacity: 0; }
  .item:nth-child(7) { left: calc(50% + 510px); opacity: 0; }
  .item:nth-child(8) { left: calc(50% + 510px); opacity: 0; }
   .item:nth-child(9) { left: calc(50% + 510px); opacity: 0; }
.item:nth-child(10) { left: calc(50% + 510px); opacity: 0; }
.item:nth-child(11) { left: calc(50% + 510px); opacity: 0; }
.item:nth-child(12) { left: calc(50% + 510px); opacity: 0; }
.item:nth-child(13) { left: calc(50% + 510px); opacity: 0; }
.item:nth-child(14) { left: calc(50% + 510px); opacity: 0; }
.item:nth-child(15) { left: calc(50% + 510px); opacity: 0; }
.item:nth-child(16) { left: calc(50% + 510px); opacity: 0; }
.item:nth-child(17) { left: calc(50% + 510px); opacity: 0; }
.item:nth-child(18) { left: calc(50% + 510px); opacity: 0; }
.item:nth-child(19) { left: calc(50% + 510px); opacity: 0; }
.item:nth-child(20) { left: calc(50% + 510px); opacity: 0; }
.item:nth-child(21) { left: calc(50% + 510px); opacity: 0; }
}

@media (max-width: 649px) {
  .content .title { font-size: 0.9rem; }
  .content .description { 
/*    font-size: 0.65rem; */
    display:none; }
  .content button { font-size: 0.7rem; }

  /*.item {
    width: 130px;
    height: 220px;
  }*/

  .item:nth-child(3) { left: 50%; transform: translateX(-50%); }
  .item:nth-child(4) { left: calc(50% + 140px); }
  .item:nth-child(5) { left: calc(50% + 280px); }
  .item:nth-child(6) { left: calc(50% + 420px); opacity: 0; }
    .item:nth-child(7) { left: calc(50% + 510px); opacity: 0; }
    .item:nth-child(8) { left: calc(50% + 510px); opacity: 0; }
    .item:nth-child(9) { left: calc(50% + 510px); opacity: 0; }
.item:nth-child(10) { left: calc(50% + 510px); opacity: 0; }
.item:nth-child(11) { left: calc(50% + 510px); opacity: 0; }
.item:nth-child(12) { left: calc(50% + 510px); opacity: 0; }
.item:nth-child(13) { left: calc(50% + 510px); opacity: 0; }
.item:nth-child(14) { left: calc(50% + 510px); opacity: 0; }
.item:nth-child(15) { left: calc(50% + 510px); opacity: 0; }
.item:nth-child(16) { left: calc(50% + 510px); opacity: 0; }
.item:nth-child(17) { left: calc(50% + 510px); opacity: 0; }
.item:nth-child(18) { left: calc(50% + 510px); opacity: 0; }
.item:nth-child(19) { left: calc(50% + 510px); opacity: 0; }
.item:nth-child(20) { left: calc(50% + 510px); opacity: 0; }
.item:nth-child(21) { left: calc(50% + 510px); opacity: 0; }
}

/*======================================================================*/
.dropbtn {

  background-color: transparent;
  color: white;
  padding-bottom: 14px;
  font-size: 16px;
  border: none;
  cursor: pointer;
  border-bottom: 1px solid white;
}

.dropdown {
  position: relative;
  display: inline-block;
  margin-top: 20px;
  width: 125px;
}

.dropdown-content {
  display: none;
  position: absolute;
  margin-top: 14px;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

.dropdown-content a {
  font-size: 15
  px;
  color: white;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  background-color: rgba(0, 0, 0, 0.5);
/*  color: black;*/
border-radius: 5px;

}

.dropdown:hover .dropdown-content {
  display: block;
}








