/* .tab.current-tab{
    background-color: rgba(219, 226, 239, 0.5);
    border-radius: 4px;
}

.form-container.active{
    scale:1;
    opacity:1;
    display: flex;
} */



*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Merriweather Sans", sans-serif;
}

:root {
    --colorDark1: #112d4e;
    --colorDark2: #3f72af;
    --colorLight1: #dbe2ef;
    --colorLight2: #f9f7f7;
}

.wrapper {
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    color: var(--colorLight2);
    background-color: #112d4e;
    background-image: linear-gradient(160deg, #112d4e 0%, #3f72af 100%);
}

/* Heading and Tab Container*/

h1 {
    text-align: center;
    text-transform: uppercase;
    word-spacing: 2px;
    letter-spacing: 1.75px;
    margin-block: 2rem;
}

.tab-container {
    width: 90%;
    max-width: 550px;
    display: flex;
    justify-content: space-between;
    margin: 0 auto;
    margin-top: 2rem;
}

.tab {
    cursor: pointer;
    font-size: 0.875rem;
    letter-spacing: 1.75px;
    padding: 5px 8px;
    text-transform: capitalize;
    /* font-weight: 600; */
}

.tab.current-tab {
    background-color: rgba(219, 226, 239, 0.5);
    border-radius: 4px;
}

/* Tab Container Ends */



.weather-container{
    margin-block: 4rem; 
    /* display: flex;
    justify-content: center;
    align-items: center ;
    flex-direction: column;
    margin-block: 4rem; */

}

.btn {
    all: unset;
    font-size: 0.85rem;
    text-transform: uppercase;
    padding: 10px 30px;
    border-radius: 5px;
    cursor: pointer;
    background-color: var(--colorDark2);
    margin-bottom: 10px;
}

.sub-container {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}


/* grant Location  */
.grant-location-container{
    display: none;

}

.grant-location-container.active{
    display: flex;
}

.grant-location-container img {
    margin-bottom: 1.5rem;
}

.grant-location-container p:first-of-type {
    font-weight: 600;
    font-size: 1.75rem;
    text-align: center;
}

.grant-location-container p:last-of-type {
    font-size: 0.75rem;
    text-align: center;
    margin-top: 0.75rem;
    margin-bottom: 1.75rem;
    font-weight: 300;
    letter-spacing: 0.75px;
}

/* Grant Location End  */




.loading-container{
    display: none;
}

.loading-container.active {
    display: flex;
}

.loading-container p {
    text-transform: uppercase;
}


/* user-info-container */
.user-info-container{
    display: none;
}

.user-info-container.active{
    display: flex;
}

.user-info-container p{
    font-size: 1.5rem;
    font-weight: 200;
}

.user-info-container img{
    height: 70px;
    width: 70px;
}




.name {
    display: flex;
    align-items: center;
    gap: 0 0.5rem;
    margin-bottom: 0.7rem;
}


.name p{
    font-size: 2rem;
}
.name img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}





.user-info-container p[data-temp] {
    font-size: 2.25rem;
    font-weight: 700;
}

.user-info-container p[data-weatherDesc] {
    text-transform: capitalize;
    font-size: 1.2rem;
}


.parameter-container{
    width: 90%;
    display: flex;
    justify-content: center;
    gap: 10px 20px;
    margin: 1.6rem auto 0;
    flex-wrap: wrap;
}

.parameter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: column;
    background-color: rgba(219, 226, 239, 0.5);
    padding: 0.8rem;
    border-radius: 5px;
    width: 30%;
    max-width: 200px;
    gap: 5px 0;
}

.parameter img {
    width: 50px;
    height: 50px;
    object-fit: cover;
}

.parameter p {
    font-size: 1rem;
    font-size: 600;
    text-transform: uppercase;
}

.parameter p:first-of-type {
    font-size: 1.15rem;
    font-size: 600;
    text-transform: uppercase;
}

.parameter p:last-of-type {
    font-size: 1rem;
    font-weight: 200;
}


/* Form Container */
.form-container{
    display: flex;
    width: 90%;
    max-width: 550px;
    margin: 0 auto;
    margin-bottom: 2rem;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0 10px;
}

.form-container.active {
    display: flex;
}

.form-container input {
    all: unset;
    width: calc(100% - 80px);
    height: 40px;
    padding: 0 20px;
    background-color: rgba(219, 226, 239, 0.5);
    border-radius: 10px;
}

.form-container input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form-container input:focus {
    outline: 3px solid rgba(255, 255, 255, 0.7);
}

.form-container .btn {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: unset;
    border-radius: 100%;
    margin-bottom: 1px;

}

.form-container .btn img {
    object-fit: contain;
}

/* Form Container End */


.errorContainer {
    display: none;
}

.errorContainer.active {
    display: flex;
    gap: 1rem 0;
}

.errorContainer p {
    text-align: center;
}

.errorContainer img {
    width: 100%;
    max-width: 300px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}


/* Responsive Styles */
@media (max-width: 768px) {

  .wrapper {
    height: auto;
    min-height: 100vh;
    padding-bottom: 2rem;
  }

  h1 {
    font-size: 1.6rem;
    margin-block: 1.5rem;
  }

  .tab-container {
    margin-top: 1rem;
    width: 95%;
  }

  .tab {
    font-size: 0.75rem;
    padding: 6px 10px;
  }

  .weather-container {
    margin-block: 2.5rem;
  }

  .sub-container {
    width: 95%;
  }

  .user-info-container {
    text-align: center;
  }

  .user-info-container p {
    font-size: 1.2rem;
  }

  .user-info-container p[data-temp] {
    font-size: 2rem;
  }

  .parameter-container {
    width: 100%;
    gap: 12px 14px;
  }

  .parameter {
    width: 45%;
    max-width: none;
  }
}

/* Mobile screens */
@media (max-width: 480px) {

  .wrapper {
    padding-inline: 0.75rem;
  }

  h1 {
    font-size: 1.4rem;
    margin-block: 1.2rem;
  }

  .tab-container {
    width: 100%;
    gap: 0.5rem;
    justify-content: center;
  }

  .tab {
    font-size: 0.7rem;
    padding: 6px 8px;
  }

  .weather-container {
    margin-block: 2rem;
  }

  .sub-container {
    width: 100%;
  }

  .form-container {
    width: 100%;
    gap: 8px;
    margin-bottom: 1.5rem;
  }

  .form-container input {
    width: 100%;
    font-size: 0.9rem;
    padding: 0 14px;
  }

  .form-container .btn {
    width: 38px;
    height: 38px;
  }

  .user-info-container img[data-weatherIcon] {
    width: 60px;
    height: 60px;
  }

  .parameter-container {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .parameter {
    width: 100%;
  }

  .btn {
    padding: 8px 20px;
    font-size: 0.75rem;
  }
}
