@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

* {
  font-family: "Poppins", sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


body {
  background: linear-gradient(
    to bottom,
    #f3fbff,
    #e6f7f1,
    #f7fcf9
  );
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}


#title {
  margin-top: 20px;
  font-size: 26px;
  color: #2f5d50;
  text-align: center;
}


#container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  width: 90%;
  max-width: 1100px;
  margin-top: 20px;
}


#output {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-behavior: smooth;
}


#output::-webkit-scrollbar {
  display: none;
}

.letter-img {
  height: 225vh;
  max-height: 240px;
  width: auto;
  object-fit: contain;
  border-radius: 12px;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.letter-img:hover {
  transform: translateY(-5px) scale(1.03);
}


#input {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  background: rgba(255, 255, 255, 0.6);
  padding: 8px;
  border-radius: 14px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
}


#name {
  border: none;
  outline: none;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  flex: 1;
  min-width: 160px;
}


button {
  border: none;
  padding: 10px 16px;
  border-radius: 10px;
  background: #7bc4a4;
  color: #0f2e23;
  cursor: pointer;
  transition: 0.3s ease;
}

button:hover {
  background: #69b394;
}


#placeName {
  font-size: 15px;
  color: #2d5c4d;
  min-height: 22px;
  text-align: center;
}


@media (max-width: 600px) {
  #title {
    font-size: 20px;
  }

  .letter-img {
    height: 22vh;
  }

  #container {
    gap: 20px;
  }
}