@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Playwrite+DE+Grund:wght@100..400&display=swap");
* {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background-image: url("../images/bg.jpg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  color: black;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  margin-bottom: 10px;
  font-size: 30px;
  color: #495057;
}
nav section {
  display: flex;
  flex-direction: row;
  align-items: center;
}
nav h6 {
  margin-top: 15px;
  margin-right: 100px;
  color: black;
  font-size: 1rem;
}
nav .logo {
  width: 70px;
  height: 70px;
  margin-left: 30px;
}
nav #menu-icon {
  margin-right: 30px;
  color: black;
  cursor: pointer;
}
nav #sidebar {
  display: none;
  position: absolute;
  flex-direction: column;
  right: 0px;
  top: 10px;
  width: 250px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  overflow-x: hidden;
  transition: 0.5s;
  padding-top: 60px;
  z-index: 9999;
  backdrop-filter: blur(55px);
  color: black;
  border-top-left-radius: 2rem;
  border-bottom-left-radius: 2rem;
}
nav #sidebar.show {
  display: flex;
  transform: translateX(0%);
}
nav #sidebar #sidebar-header {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #bdceee;
  padding: 10px;
}
nav #sidebar #sidebar-header h2 {
  margin: 0;
  font-size: 1.2rem;
}
nav #sidebar #sidebar-header #sidebar-close {
  cursor: pointer;
  position: absolute;
  top: 0.5rem;
  right: 2px;
  padding: 0 2px;
  font-size: 30px;
  margin-left: 50px;
  border-radius: 2rem;
  background-color: #bdceee;
}
nav #sidebar #sidebar-content {
  padding: 10px;
  height: 100%;
  overflow: scroll;
}
nav #sidebar #sidebar-content .city-card {
  margin: 5px;
  padding: 8px 16px;
  text-decoration: none;
  font-size: 20px;
  display: block;
  transition: 0.3s;
  text-transform: capitalize;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
nav #sidebar #sidebar-content .city-card:hover {
  background-color: #668cdf;
  transition: 1.2s;
}

header {
  display: flex;
  justify-content: center;
  width: 100%;
  align-items: center;
  margin-top: 20px;
}
header input {
  padding: 15px;
  margin-left: 20px;
  margin-top: 5px;
  border: 1px solid #ced4da;
  border-top-left-radius: 4px;
  border-bottom-left-radius: 5px;
  padding: 0 15px;
  font-size: 14px;
  color: #495057;
  height: 40px;
  width: 200px;
}
header button {
  padding: 0 15px;
  border: none;
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
  background-color: #2596be;
  height: 40px;
  margin-top: 5px;
  cursor: pointer;
}
header button:hover {
  background-color: #3c4c6c;
}

main {
  min-height: 100vh;
}
main .errorContainer {
  position: fixed;
  top: 50%; /* Position 50% from the top */
  left: 50%; /* Position 50% from the left */
  transform: translate(-50%, -50%); /* Center the container */
  text-align: center; /* Center text horizontally */
  background-color: transparent;
  padding: 50px; /* Add padding to the container */
  border-radius: 10px; /* Optional: Add rounded corners */
  z-index: 1000; /* Ensure it's on top of other elements */
  background-color: transparent;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  backdrop-filter: blur(55px);
  max-height: 30vh;
  max-width: 40vh;
}
main .errorContainer h2 {
  color: black; /* Example text color */
  font-size: 24px; /* Example font size */
  margin: 0; /* Remove default margin */
}
main .time-showcase {
  flex-grow: 1;
  display: flex;
  justify-content: center;
  padding: 10px;
  align-items: center;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  backdrop-filter: blur(55px);
  margin-right: 20px;
  margin-left: 20px;
  margin-bottom: 20px;
  margin-top: 20px;
  text-align: center;
}
main .time-showcase #date {
  margin-right: 80px;
}
main .time-showcase img {
  margin-right: 10px;
}
main .time-showcase section {
  display: flex;
  flex-direction: row;
  align-items: center;
}
main .time-showcase section #time {
  justify-content: center;
}
main .weatherContainer {
  margin-right: 20px;
  margin-left: 20px;
  margin-bottom: 20px;
  background: transparent;
  display: flex;
  justify-content: center;
  flex-direction: row;
  gap: 20px;
  background-color: transparent;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  backdrop-filter: blur(55px);
}
main .weatherContainer .humidity {
  text-align: center;
  margin-top: 149px;
}
main .weatherContainer .humidity img {
  width: 50px;
  height: 50px;
  justify-items: center;
}
main .weatherContainer .weather {
  text-align: center;
}
main .weatherContainer .weather img {
  margin-top: 20px;
  width: 150px;
  height: 140px;
}
main .weatherContainer .wind {
  text-align: center;
  margin-top: 150px;
}
main .weatherContainer .wind img {
  width: 48px;
  height: 48px;
}
main .weatherContainer .wind p {
  margin-bottom: 20px;
}
main .forecast {
  display: flex;
  justify-content: center;
  flex-direction: row;
  flex-wrap: wrap;
  margin-right: 20px;
  margin-left: 20px;
}
main .forecast .forecast-item {
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  backdrop-filter: blur(55px);
  margin: 5px;
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 20px;
  font-size: 19px;
  text-transform: capitalize;
  gap: 20px;
  width: 150px;
  height: 200px;
  text-align: center;
}
main .forecast .forecast-item .date {
  font-size: larger;
  text-decoration: underline;
}
main .forecast .forecast-item .description {
  font-size: 15px;
}
main .forecast .forecast-item .icon .forecast-icon {
  width: 50px;
  height: 50px;
  justify-items: center;
}
main .city-img-desc-container {
  margin-top: 20px;
  display: flex;
  align-items: center;
  margin-left: 20px;
  margin-right: 20px;
  margin-bottom: 20px;
  background: transparent;
  display: flex;
  justify-content: center;
  flex-direction: row;
  background-color: transparent;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  backdrop-filter: blur(55px);
}
main .city-img-desc-container #city-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: fit-content;
}
main .city-img-desc-container #city-info .city-image {
  margin-top: 20px;
  padding: 20px;
  width: 50%;
}
main .city-img-desc-container #city-info p {
  text-align: center;
  font-size: 15px;
  padding: 20px;
  font-family: "Montserrat";
}

@media (min-width: 768px) {
  nav .logo {
    width: 100px;
    height: 100px;
    margin-left: 50px;
  }
  nav h6 {
    font-size: x-large;
  }
  main {
    display: flex;
    flex-direction: row;
  }
  main div {
    width: 90%;
  }
  main div p {
    font-size: larger;
  }
}
.footer-bottom {
  padding-top: 1rem;
  text-align: center;
  font-size: 20px;
}
