@import url("https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&display=swap");
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  list-style: none;
  font-family: "Rubik", sans-serif;
}
:root {
  --font-color-main: #332464;
  --white-color: #fff;
}
body {
  background-color: #C1E1C1;
}
h1 {
    color: var(--font-color-main);
    text-align: center;
    margin: 30px 0;
  }
h3 {
    color: var(--font-color-main);
    text-align: center;
    margin: 30px 0;
  }
  .search {
    width: 340px;
    height: 50px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 1px 2px 2px var(--font-color-main);
    background-color: var(--white-color);
  }
  .search-icon {
    width: 18px;
    height: 50px;
    display: flex;
    border-radius: 20px;
    justify-content: center;
    align-items: center;
  }
  .search-icon i {
    font-size: 18px;
    color: var(--font-color-main);
  }
  .search input {
    width: 85%;
    padding: 10px;
    font-size: 15px;
    color: var(--font-color-main);
    border: none;
    outline: none;
  }
  .search input::placeholder {
    color: var(--font-color-main);
  }
  /*  */
  .error-message {
    display: none;
  }
  .error-message p {
    width: 100%;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--font-color-main);
    text-align: center;
    padding: 40px;
  }
  /*  */
  .message {
    display: block;
  }
  .message p {
    width: 100%;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--font-color-main);
    text-align: center;
    padding: 50px;
  }
  .return {
    display: none;
  }
  .box {
    max-width: 400px;
    height: auto;
    padding: 0 40px;
    margin-left: auto;
    margin-right: auto;
    border:1px solid black;
    margin-top: 40px;
  }
  .weather-box {
    height: 200px;
    max-width: 320px;
    border-radius: 40px;
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--font-color-main);
  }
  .name {
    padding-left: 40px;
    width: 220px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    color: var(--white-color);
    height: auto;
  }
  .city-name {
    font-size: 20px;
  }
  .weather-temp {
    font-size: 60px;
  }
  .weather-icon {
    padding: 0 20px;
    width: 220px;
    height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .weather-icon img {
    width: 100%;
  }
  /*  */
  .weather-desc {
    display: flex;
    justify-content: center;
    column-gap: 10px;
  }
  .desc-box {
    width: 100px;
    display: grid;
    padding: 15px;
    gap: 5px;
    height: 100px;
    margin-top: 10px;
    border-radius: 20px;
    place-content: center;
    color: var(--white-color);
    background-color: var(--font-color-main);
  }
  
  
  @media (max-width: 400px) {
    .pc {
      border: none;
      border-radius: none;
      width: auto;
      height: auto;
    }
  }
  nav {
    position: fixed;
    right: 10px; /* Positioning it towards the right */
    top: 50%; /* Centering vertically */
    transform: translateY(-50%); /* Adjusting for perfect centering */
    width: 60px; /* Small container width */
    height: auto; /* Auto height to fit the items */
    border-radius: 20px; /* Smooth rounded corners */
    border: 2px solid var(--white-color);
    background-color: #023020;
    display: flex;
    flex-direction: column; /* Align items in a column */
    justify-content: center;
    align-items: center;
    padding: 10px 0; /* Adding some padding */
  }
  
  nav ul {
    display: flex;
    flex-direction: column; /* Stack items vertically */
    gap: 15px; /* Space between icons */
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  nav ul li {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  nav ul li a {
    color: var(--white-color);
    font-size: 24px; /* Slightly larger icons for visibility */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    width: 50px;
    height: 50px;
    border-radius: 50%; /* Circular buttons */
    transition: background-color 0.3s ease;
  }
  
  nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.2); /* Subtle hover effect */
  }
  
  