@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
    color: white;
    font-weight: 600;
    letter-spacing: 0.5px; /* Separación entre letras */
}

body {
    background: url('assets/bg.jpg');
    width: 100%;
    height: 100dvh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}
body::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100dvh;
    background: rgb(0, 0, 0, 0.15);
    backdrop-filter: blur(0px);
}

/* UTILITIES */
.regular-txt {
    font-weight: 400;
}
/* END UTILITIES */

.main-container {
    width: 100%;
    max-width: 1500px;
    height: auto;
    z-index: 1;
    background: linear-gradient(
        to top, rgb(0, 0, 0, 0.15),
        rgb(255, 255, 255, 0.15));
    border-radius: 12px;
    backdrop-filter: blur(100px);
    padding: 20px;
}

/* INPUT CONTAINER */
.input-container {
    position: relative;
    margin-bottom: 25px;
}

.city-input {
    width: 100%;
    padding: 10px 16px;
    border-radius: 99px;
    border: 3px solid transparent;
    background: rgb(0, 0, 0, 0.15);
    outline: none;
    font-weight: 500;
    transition: 0.25s border;
    padding-right: 45px;
}
.city-input:focus {
    border: 3px solid rgb(0, 0, 0, 0.15);
}
.city-input::placeholder {
    color: rgb(255, 255, 255, 0.75);
}

.search-btn {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    display: flex;
    border: none;
    cursor: pointer;
    opacity: 0.7;
    transition: 0.25s;
}
.search-btn:hover {
    opacity: 1;
}
/* END INPUT CONTAINER */

/* SECTION: WEATHER INFO */
.weather-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.location-date-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.location {
    display: flex;
    align-items: center;
    gap: 6px;
}

.weather-summary-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.weather-summary-img {
    width: 120px;
     height: 90px;
}
.weather-summary-info {
    text-align: end;
}

.weather-conditions-container {
    display: flex;
    justify-content: space-between;
    padding: 30 30px; /* empuja los ítems hacia los bordes */
}

.condition-item {
    display: flex;
    align-items: center;
    gap: 6px;
}
.condition-item span {
    font-size: 30px;
}

.forecast-items-container {
    display: flex;
    gap: 15px;
    overflow-x: scroll;
    padding-bottom: 12px;
}
.forecast-items-container::-webkit-scrollbar {
    height: 8px;
}
.forecast-items-container::-webkit-scrollbar-track {
    background: rgb(0, 0, 0, 0.1);
    border-radius: 99px;
}
.forecast-items-container::-webkit-scrollbar-thumb {
    background: rgb(0, 0, 0, 0.15);
    border-radius: 99px;
}

.forecast-item {
    min-width: 70px;
    background: rgb(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    align-items: center;
    border-radius: 12px;
    transition: 0.3s background;
}
.forecast-item:hover {
    background: rgb(255, 255, 255, 0.15);
}
.forecast-item-img {
    width: 35px;
    height: 35px;
}
/* END SECTION: WEATHER INFO */

/* SECTION: MESSAGE */
.section-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
    margin-top: 25%;
}
.section-message img {
    height: 180px;
    width: fit-content;
}
/* end SECTION: MESSAGE */


.condition-item.column {
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* o center, según necesidad */
    align-items: flex-start;     /* Alineación a la izquierda */
    text-align: left;            /* Texto alineado a la izquierda */
    margin-left: 20px;           /* Controla cuán a la izquierda va */
    margin-right: 40px;          /* Controla cuán a la derecha va */
    gap: 20px;                   /* Espaciado entre elementos internos */
}

.condition-item.column h5 {
    margin: 2px 0;
}


    .navbar-brand img {
      height: 30px;
    }

.logo-container {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
}

.logo-img {
    height: 35px; /* Puedes ajustar este tamaño */
}



.bottom-right-image-container {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 2;
}

.bottom-right-image {
    height: 150px;
    width: auto;
}


.featured-title {
  text-align: right;
}




/* ------------------ RESPONSIVE DESIGN ------------------ */
@media (max-width: 768px) {
  .main-container {
    width: 95%;
    height: auto;
    padding: 16px;
  }

  .weather-summary-container {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
  }

  .weather-summary-img {
    width: 80px;
    height: 80px;
  }

  .weather-conditions-container {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 0;
  }

  .condition-item.column {
    align-items: center;
    text-align: center;
    margin: 0;
  }

  .location-date-container {
    flex-direction: column;
    gap: 10px;
    align-items: center;
    text-align: center;
  }

  .logo-container {
    position: static;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
  }

  .bottom-right-image-container {
    position: static;
    display: flex;
    justify-content: center;
    margin-top: 20px;
  }

  .bottom-right-image {
    height: 100px;
  }

  h4.text-center.my-4 {
    font-size: 1.2rem;
  }
}
