@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;500;600&display=swap');

:root {
    /* Colors */ 
    --orange-color: rgb(37, 241, 105);
    --dark-color:rgb(255, 255, 255);
    --border: rgba(255, 255, 255, 0.25);
    --background: rgba(255, 255, 255, 0.1);
    --box_shadow: rgba(3, 46, 87, 0.3);
}

html {
    font-size: 10px;
    /* Now 1rem = 10px */
}

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

body {
    background: url(image/background.png);
    background-position: center;
    background-size: cover;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    width: 80%; /* Adjust the width for mobile devices */
    height: auto;
    background: var(--background);
    backdrop-filter: blur(0.5rem);
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    border-radius: 1rem;
    box-shadow: 0 1.8rem 3.7rem var(--box_shadow);
    margin-top: 5rem; /* Adjust the margin for mobile devices */
} 

.search_box {
    width: 90%; /* Adjust the width for mobile devices */
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    border-radius: 3rem;
    padding: 1rem 1rem;
    backdrop-filter: blur(0.4rem) saturate(180%);
    box-shadow: 0 1.8rem 3.7rem var(--box_shadow);
    margin-top: 2rem; /* Adjust the margin for mobile devices */
} 

.search_box input {
    background: transparent;
    flex: 1;
    border: 0;
    outline: none;
    padding: 0 1rem;
    font-size: 1.6rem;
    color: var(--dark-color);
}

.search_box input::placeholder {
    color: var(--dark-color);
}

.search_box button {
    border: 0;
    border-radius: 50%;
    background: var(--orange-color);
    cursor: pointer;
    width: 3rem;
    height: 3rem;
}

.search_box .icon {
    width: 2rem;
    height: 2rem; 
    padding: 0.5rem;
    color: var(--dark-color); 
}

.error {
    margin: 2rem 0;
    color: var(--dark-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 1.6rem;
    letter-spacing: 0.1rem;
}

#show {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin-top: 2rem; /* Adjust the margin for mobile devices */
}

#show h2 {
    color: var(--dark-color);
    text-transform: uppercase;
    letter-spacing: 0.18rem;
    font-weight: 600;
    font-size: 2rem;
    margin: 1rem 0;
}

.weather, .desc {
    color: var(--dark-color);
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 2rem;
}

.weather {
    margin: 1rem 0;
}

#show img {
    margin: 2rem 0;
    width: 10rem;
    filter: drop-shadow(0 1.8rem 3.7rem var(--box_shadow));
}

#show h1 {
    font-size: 4rem;
    margin: 1rem 0;
    line-height: 0;
    font-weight: 400;
    color: var(--dark-color);
}

.temp_container {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
    text-align: center;
}

.temp_container div {
    padding: 1rem 1.5rem;
}

.temp_container div:first-child {
    border-right: 0.1rem solid var(--border);
}

.temp_container .title {
    font-weight: 600;
    color: var(--dark-color);
    font-size: 1.6rem;
}

.temp_container .temp {
    font-weight: 600;
    color: var(--orange-color);
    font-size: 1.6rem;
}

/* Mobile responsiveness */
@media screen and (max-width: 600px) {
  .container {
      width: 90%;
  }
  .search_box {
      width: 100%;
  }
  .error {
      font-size: 1.4rem;
  }
  #show h2 {
      font-size: 1.8rem;
  }
  #show h1 {
      font-size: 3rem;
  }
  .temp_container .title,
  .temp_container .temp {
      font-size: 1.4rem;
  }
}

/* Your existing CSS styles */
/* Add the following CSS to create the fade-in animation */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 1s ease;
}
