body {
  margin: 0;
  background-color: #191919;
  color: white;
  font-family: "Plus Jakarta Sans", sans-serif;
}

header {
  width: 100%;
  box-sizing: border-box;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

h1 {
  margin: 0;
  text-align: left;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

select {
  display: block;
  width: fit-content;
  min-width: 0;
  padding: 6px 20px 6px 10px;
  margin: 0;
  border-radius: 10px;
  border: none;
  background-color: rgb(51, 51, 51);
  font-size: 14px;
  color: white;
  cursor: pointer;
  transition: background 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='10' viewBox='0 0 20 20' width='10' xmlns='http://www.w3.org/2000/svg'><path d='M5 7l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 6px center;
}

select:hover {
  background-color: rgb(65, 65, 65);
}

select:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.reset-button {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgb(51, 51, 51);
  color: white;
  text-decoration: none;
  font-size: 16px;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.reset-button:hover {
  background: rgb(70, 70, 70);
  transform: scale(1.08) rotate(15deg);
}

.carousel-wrapper {
  width: 92%;
  max-width: 1200px;
  margin: 80px auto 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.arrow {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgb(51, 51, 51);
  color: white;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.arrow:hover {
  background: rgb(70, 70, 70);
  transform: scale(1.1);
}

.arrow:disabled {
  opacity: 0.3;
  cursor: default;
}

.container {
  height: 500px;
  padding: 30px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  border-radius: 10px;
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
  flex: 1;
  background: rgb(51, 51, 51);
}

.empty-message {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  opacity: 0.7;
}

.cities-slider {
  height: 100%;
  display: flex;
  transition: transform 0.3s ease;
  gap: 10px;
}

.city {
  height: 100%;
  padding: 0 20px;
  box-sizing: border-box;
  border-radius: 20px;
  display: flex;
  flex: 0 0 calc((100% - 30px) / 4);
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.city::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.15));
  opacity: 1;
  transition: opacity 0.3s ease;
}

.city:hover::before {
  opacity: 0.7;
}

.remove-city-button {
  width: 28px;
  height: 28px;
  top: 12px;
  right: 12px;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  background: rgba(0, 0, 0, 0.45);
  color: white;
  font-size: 18px;
  cursor: pointer;
  z-index: 2;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.remove-city-button:hover {
  background: rgba(0, 0, 0, 0.65);
  transform: scale(1.08);
}

.city-content {
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

h2 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 600;
}

.date {
  margin-top: 4px;
  font-size: 12px;
  opacity: 0.7;
}

.time {
  margin-top: 14px;
  line-height: 1.1;
  font-size: 28px;
  font-weight: bold;
}

footer {
  text-align: center;
  padding-top: 40px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 14px;
  font-weight: 400;
}

footer strong {
  font-weight: 600;
}

footer a {
  color: #7ab8ff;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}
