/* Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Arial', sans-serif;
}

body {
  background-color: #000;
  color: #fff;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

/* Container layout */
.container {
  display: flex;
  width: 100%;
  height: 100%;
  position: relative;
}

/* Sidebar */
.sidebar {
  width: 220px;
  background-color: #111;
  padding: 80px 20px 20px 20px; /* increased top padding to separate from hamburger */
  transition: transform 0.3s ease;
  overflow: auto;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
}

.sidebar.hidden {
  transform: translateX(-100%);
}

/* Hamburger button fixed top-left */
#toggleSidebar {
  cursor: pointer;
  font-size: 24px;
  border: 2px solid #fff;
  background: none;
  color: #fff;
  padding: 5px 10px;
  transition: transform 0.2s, color 0.2s;
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 20;
}

#toggleSidebar:hover {
  color: #aaa;
  transform: scale(1.2);
}

/* World time section */
.world-time h2 {
  margin-bottom: 10px;
  font-size: 18px;
}

.clock-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.city-btn {
  background-color: #222;
  color: #fff;
  border: 2px solid #444;
  padding: 10px;
  cursor: pointer;
  text-align: center;
  font-size: 14px;
  transition: background 0.2s, transform 0.2s;
}

.city-btn:hover {
  background-color: #333;
  transform: scale(1.05);
}

/* Main clock section */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  position: relative;
  text-align: center;
}

/* Central clock container */
.central-clock {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Analog clock */
.analog {
  margin-bottom: 20px;
}

.clock {
  position: relative;
  width: 200px;
  height: 200px;
  border: 4px solid #fff;
  border-radius: 50%;
  background-color: #000;
}

.hand {
  position: absolute;
  bottom: 50%;
  left: 50%;
  background-color: #fff;
  transform-origin: bottom center;
}

.hand.hour {
  width: 6px;
  height: 50px;
}

.hand.minute {
  width: 4px;
  height: 70px;
}

.hand.second {
  width: 2px;
  height: 90px;
  background-color: #fff;
}

/* Digital clock */
.digital h2 {
  margin-bottom: 10px;
  font-size: 24px;
}

.digital p {
  font-size: 20px;
  margin-bottom: 5px;
}

/* Footer at bottom center */
footer {
  position: fixed;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 16px;
  pointer-events: none;
  z-index: 5;
}
