body {
  background-image: url(./cloudyy.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  margin: 0;
  padding: 0;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}
.main {
  background-color: rgb(144, 220, 226, 0.1);
  color: aliceblue;
  display: flex;
  justify-content: center;
  justify-content: space-between;
}
p {
  font-size: 20px;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: bold;
  color: rgb(30, 30, 62);
  text-shadow: 1px 1px 3px rgb(213, 221, 222);
}

nav a {
  color: white;
  margin-top: 35px;
  margin-right: 40px;
  font-weight: bold;
  font-size: 18px;
  font-style: oblique;
  font-family: Arial, Helvetica, sans-serif;
}
nav {
  display: flex;
  gap: 50px;
  margin-right: 100px;
  margin-top: 20px;
}
.btn {
  margin-top: 25px;
}

.bt {
  font-size: 22px;
  padding-top: 5px;
  padding: 5px 8px 5px 8px;

  background-color: rgb(37, 37, 68);
  border-color: 2x solid rgb(213, 221, 222);
  box-shadow: 1px 1px 3px rgb(213, 221, 222);
  color: white;
  font-weight: bold;
  font-size: 18px;
  font-style: oblique;
  font-family: Arial, Helvetica, sans-serif;
}
.bt a {
  text-decoration: none;
  text-align: center;
  padding-left: 15px;
  margin-right: 20px;
}

.bt:hover {
  background-color: rgb(227, 171, 65);
  transition: 0.7s;
}

h4 {
  font-family: Arial, Helvetica, sans-serif;
  text-shadow: 3px 3px 3px rgb(23, 23, 23);
  font-style: oblique;
  font-size: 35px;
  font-weight: bold;
  margin-left: 200px;
  padding-bottom: 40px;
}
.middle {
  margin-left: 200px;
  color: white;
}
h5 {
  text-shadow: 1px 1px 3px rgb(223, 233, 233);
}
#datetime {
  margin-top: 50px;
  font-size: 18px;
  color: white;

  font-style: oblique;
  text-shadow: 1px 1px 3px rgb(221, 228, 228);
  font-family: Arial, Helvetica, sans-serif;
}
#time {
  font-size: 18px;
}
.search {
  display: flex;
  justify-content: center;

  margin-right: 0px;
}

#location-input {
  padding: 5px 200px 5px 5px;
  margin-left: 50px;
  box-shadow: 3px 3px 3px rgb(240, 236, 236);
  color: white;
  border: 2px solid rgba(20, 161, 171, 0.1);
  background-color: rgba(20, 161, 171, 0.1);
}
::placeholder {
  color: white;
  opacity: 0.8;
}

#button {
  color: white;
  margin-right: 10px;
  box-shadow: 3px 3px 3px rgb(233, 237, 237);
  background-color: rgba(20, 161, 171, 0.1);
}
#button:hover {
  background-color: rgb(227, 171, 65);
  transition: 0.7s;
}

.tempimg {
  font-size: 50px;
  font-weight: bold;
  font-family: Arial, Helvetica, sans-serif;
  font-style: oblique;
}
#deg {
  font-size: 50px;
  text-shadow: 3px 3px 3px rgb(23, 23, 23);
  font-weight: bold;
  font-family: Arial, Helvetica, sans-serif;
  font-style: oblique;
}
.ted {
  display: flex;

  margin-right: 50px;
  justify-content: center;
  gap: 20px;
  margin-left: 100px;
}
.degree {
  background-color: rgba(6, 83, 102, 0.6);
  margin-right: 100px;
  margin-left: 300px;

  box-shadow: 3px 3px 3px 3px rgb(4, 4, 5);
  padding: 10px 20px 20px 20px;
}

#temp-desc {
  font-size: 22px;
  font-weight: bold;
  font-family: Arial, Helvetica, sans-serif;
  font-style: oblique;
}
#pressure {
  font-size: 22px;
  font-weight: bold;
  font-family: Arial, Helvetica, sans-serif;
  font-style: oblique;
}

#humidity {
  font-size: 22px;
  font-weight: bold;
  font-family: Arial, Helvetica, sans-serif;
  font-style: oblique;
}
#location {
  font-size: 25px;
  font-weight: bold;
  font-family: Arial, Helvetica, sans-serif;
  font-style: oblique;
}
#wind {
  font-size: 18px;
  font-weight: bold;
  font-family: Arial, Helvetica, sans-serif;
  font-style: oblique;
}

@media only screen and (max-width: 767px) {
  .block {
    margin: 0%;
    padding: 0%;
    max-width: 100%;
  }
  body {
    font-size: 14px;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
  }

  .container {
    padding: 10px;

    width: 100%;
  }

  .main {
    flex-direction: column;
    align-items: center;
    margin-left: 0px;
    padding-right: 100px;
    padding-left: 250px;
  }
  .links {
    margin-left: 0px;
    padding-right: 90px;
  }
  nav {
    flex-direction: column;
    gap: 20px;
    margin-left: 40px;
    text-align: center;
    margin: 10px 0;
  }

  .bt {
    margin-right: 40px;
  }

  .search {
    display: flex;
    flex-direction: column; /* Stack items vertically on mobile */
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-bottom: 20px;
  }

  #location-input {
    width: 100%;
    max-width: 200px; /* Limit input width on larger screens */
    padding: 10px;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    margin-bottom: 10px;
    margin-right: 190px;
  }

  #button {
    width: 15%;
    margin-right: 150px;

    /* Adjust button width to match the search box width */
  }

  .ted {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  h4 {
    width: 100%;
    margin-right: 360px;
  }
  .degree {
    width: 100%;
    padding: 10px;
    background-color: rgba(105, 125, 125, 0.4);
    margin-bottom: 20px;
    padding-bottom: 20px;
    margin-left: 0px;
  }
  #tempimg {
    margin-left: 80px;
  }
}
html,
body {
  overflow-x: hidden;
}
