 * {
   box-sizing: border-box;
 }

 body {
   font-family: sans-serif;
   font-size: 20px;
   margin: 0;
   padding: 0;
   background: #ADD8E6;
   color: white;
   min-height: 100vh;
   display: flex;
   flex-direction: column;
 }

 h1 {
   margin: 300px 0 50px 0;
   font-size: 3rem;
 }

 h2 {
   margin: 20px 0 20px 0;
   font-size: 3rem;
 }

 .container {
   width: 100%;
   max-width: 3000px;
   margin: 0 auto;
   padding: 16px;
 }

 .hidden {
   display: none !important;
 }

 .error {
   color: #6c0e0e;
   margin-top: 10px;
 }

 #view-search header {
   text-align: center;
   padding: 20px 16px 0;
 }

 .search-box {
   margin: 10px auto 0;
   display: flex;
   justify-content: center;
   gap: 8px;
   flex-wrap: wrap;
 }

 input {
   padding: 10px 14px;
   border-radius: 10px;
   border: none;
   outline: none;
   font-size: 1rem;
   min-width: 260px;
 }

 button {
   padding: 10px 14px;
   border-radius: 10px;
   border: none;
   cursor: pointer;
   background-color: #389ebf;
   color: white;
   font-size: 1rem;
   transition: transform .2s;
 }

 button:hover {
   transform: scale(1.04);
 }

 button:disabled {
   opacity: 0.6;
   cursor: not-allowed;
 }

 #view-result .topbar {
   justify-content: space-between;
 }

 .back-btn {
   background: rgba(255, 255, 255, 0.18);
   border: 1px solid rgba(255, 255, 255, 0.25);
 }

 .weather-card {
   background: rgba(255, 255, 255, 0.1);
   padding: 10px;
   border-radius: 16px;
   margin: 20px auto 0;
   width: 360px;
   max-width: 92%;
   text-align: center;
 }

 .weather-info p {
   margin: 20px 0 20px 0;
 }

 #bg-photo {
   position: fixed;
   inset: 0;
   background-size: cover;
   background-position: center;
   background-repeat: no-repeat;
   z-index: -1;
   opacity: 0;
   transition: opacity .6s ease;
   filter: brightness(0.72);
 }

 /*from chat gpt(start)1*/
 body.has-photo #bg-photo {
   opacity: 1;
   /*from chat gpt(end)1*/
 }