
/*! GLOBAL Body & CONTAINER */
html,
body {
  height: 100%;
  margin: 0;
  user-select: none;
  padding: 0;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
}

body {
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden; /* prevent horizontal scroll */
}

.menu-box{
   display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;


}

.centerDiv {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap; /* Stack on small screens */
  gap: 40px;
  width: 100%;
  padding: 20px;
}

/*!  CLOCK SECTION (LEFT PANEL) */
.leftDiv {
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(0, -20%);
}

.clock-wrapper {
  width: 300px;
  height: 300px;
  position: relative;
}

.clock {
  width: 100%;
  height: 100%;
  position: relative;
}

/*! GRID SECTION (RIGHT PANEL - temp/humidity/location) */
.rightDiv {
  width: 600px;
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: 20px;
  border-radius: 20px;
  justify-items: center;
  transform: translate(-5%, -18%);
}

.location-box,
.humidity-box,
.temperature-box {
  width: 100%;
  max-width: 500px;
  height: 90px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.location-box {
  color: var(--accentLightTint);
  background-color: var(--darkColor);
}
.humidity-box {
  transform: translate(40%);
  color: var(--accentLightTint);
  background-color: var(--darkerColor);
}
.temperature-box {
  color: var(--accentLightTint);
  background-color: var(--darkColor);
}

/*! Searchbar */
.searchbar {
  /* margin-top: var(--gap); */

  max-width: 700px;
  height: 60px;
  border-radius: var(--radius-round);
  position: fixed;
  width: 3000px;
  bottom: -90px;
  left: 88%;
  transform: translate(-69%);
  transition: outline 0.3s;
  /* z-index: 999; */
}

.searchbar.active {
  outline: 2px solid var(--textColorDark);

}

.search-ico {
  fill: var(--darkColor);
}

.searchbar .searchIcon {
  width: 30px;
  height: 30px;
  position: absolute;
  margin-top: 16px;
  margin-left: 16px;
}

#searchQ {
  display: block;
  position: absolute;
  height: 80%;
  width: calc(100% - 120px);
  top: 0;
  bottom: 0;
  margin: auto auto auto 20px;
  outline: none;
  border: none;
  color:var(--font-for-light);;
  background-color: #00000000;
  color: var(--darkColor);
  border-radius: 100px;
  padding: 0 40px;
  font-size: 1rem;
}

#enterBtn {
  position: absolute;
  right: 10px;
  top: 0;
  bottom: 0;
  margin: auto;
  height: 40px;
  border-radius: 100px;
  padding: 0 26px;
  border: none;
  font-size: 1.1rem;
  background-color: var(--darkColor);
  color: var(--accentLightTint);
  transition: all 0.3s;
}

#enterBtn:hover {
  background-color: var(--darkColor);
  color: #fff;
  cursor: pointer;
}

#enterBtn:active {
  transform: scale(0.9);
}

/* ? End of Searchbar CSS */

/*! clock Bottom date / day  */
.date-box {
  position: fixed;
  /* left: 1%; */
  bottom: 0.5%;
  transform: translate(-225%,, 100%);
  padding: 6px 12px;
  border-radius: 10px;
  text-align: center;
  font-size: 1rem;
  z-index: 10;
}

/*! MEDIA QUERY (STACK VIEW)  <don't change> */
@media (max-width: 1024px) {
  .leftDiv,
  .rightDiv {
    transform: none; /* Disable transforms on small laptops */
  }

  .centerDiv {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .rightDiv {
    width: 100%;
    max-width: 500px;
  }

  .humidity-box {
    transform: none;
  }
}
