* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Domine", serif;
  color: white;
  height: 100vh;
  overflow: hidden;
}

.background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("images/background.jpg") center/cover no-repeat;
  filter: brightness(0.8);
  z-index: -1;
}

.center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

/* Clock */

#clock {
  font-size: 250px;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25), 0 4px 12px rgba(0, 0, 0, 0.15);
}

#greeting {
  font-size: 60px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25), 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Weather */

.weather-box {
  position: absolute;
  top: 24px;
  right: 32px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-family: "Inter", "Helvetica Neue", sans-serif;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.w-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.w-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.05;
}

#temp {
  font-size: 18px;
  font-weight: 600;
}

#city {
  font-size: 11px;
  text-transform: uppercase;
  opacity: 0.9;
}

/* google bar */

.google-like {
  margin-top: 32px;
  display: grid;
  justify-items: center;
}

/* === Search bar wrapper === */
.g-search {
  width: min(720px, 92vw);
  height: 44px;
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 1px 6px rgba(32, 33, 36, 0.28); /* same as Google's */
  padding: 0 14px;
  gap: 8px;
}

.google-like {
  margin-top: 32px;
  display: grid;
  justify-items: center;
}

/* === Search bar === */
.g-search {
  width: min(720px, 92vw);
  height: 44px;
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 1px 6px rgba(32, 33, 36, 0.28);
  padding: 0 14px 0 12px; /* Left extra for icon */
  gap: 10px;
}

/* === Search icon (no circle, inline) === */
.g-icon {
  width: 20px;
  height: 20px;
  stroke: #5f6368;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* === Input field === */
.g-input {
  flex: 1;
  border: none;
  outline: none;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 19px;
  line-height: 22px;
  color: #202124;
}

.g-input::placeholder {
  color: #5f6368;
  font-size: 16px;
}

/* === Focus style === */
.g-search:has(.g-input:focus) {
  box-shadow: 0 1px 6px rgba(32, 33, 36, 0.28),
    0 2px 12px rgba(32, 33, 36, 0.18);
}
