html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}
.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.main-content {
  flex: 1;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.wave-icon {
  transform-origin: bottom center;
  cursor: pointer;
  width: 48px;
  height: 48px;
  border-radius: 40%;
  border: 1px solid #070707;
}
@keyframes wave {
  0%   { transform: rotate(0deg); }
  10%  { transform: rotate(15deg); }
  20%  { transform: rotate(-10deg); }
  30%  { transform: rotate(15deg); }
  40%  { transform: rotate(-5deg); }
  50%  { transform: rotate(10deg); }
  60%  { transform: rotate(0deg); }
  100% { transform: rotate(0deg); }
}
.wave-icon:hover {
  animation: wave 2s ease-in-out;
}
.container {
  max-width: 900px;
  margin: auto;
  padding: 3rem;
  text-align: center;
   background-color: rgba(175, 244, 233, 0.7);
   backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0px 5px 10px rgba(0,0,0,0.5),
  inset 5px 5px 20px rgba(255, 255,255, 0.2),
  inset -5px -5px 15px rgba(0, 0, 0, 0.75);
}
/* Navbar and navigation elements */
.navbar {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  background-color: rgba(0, 77, 64, 0.7);
   backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: white;
  padding: 1rem;
  flex-wrap: wrap;
}
.nav-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 21;
}
.nav-left h1 {
  /* margin: 0; */
  font-size: 2rem;
}
.nav-info {
  display: flex;
  justify-content: center;
  gap: 2rem;
  /* margin-top: 0.5rem; */
}
#nav-date, #nav-clock, #moon-phase {
  font-size: 1rem;
  padding: 10px 15px;
  margin-top: 1rem;
  font-weight: bold;
  border-radius: 8px;
  background-color: #067361;
  border: 1px solid #1f1f1f;
  box-shadow: 0px 5px 10px rgba(0,0,0,0.5),
  inset 5px 5px 20px rgba(255, 255,255, 0.2),
  inset -5px -5px 15px rgba(0, 0, 0, 0.75);
}
.nav-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex: 1;
  position: relative;
}
#hamburger {
  font-size: 2rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}
#menu {
  position: absolute;
  top: 2.5rem;
  right: 0;
  background-color: #00695c;
  padding: 1rem;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 100;
}
/* hamburgher menu*/
#menu {
  position: absolute;
  top: 100%;
  right: 0;
  width: 200px;
  background-color: #00695c;
  padding: 1rem;
  border-radius: 0 0 8px 8px;
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  animation: slideDown 0.3s ease-out forwards;
  z-index: 100;
}
#menu.show {
  display: flex;
}
.hidden {
  display: none;
}
/* calendar controls */
.controls {
  margin-top: 1rem;
  
}
.controls select,
.controls button {
  margin: 0.5rem;
  padding: 0.5rem;
  font-size: 1rem;
  border-radius: 8px;
  background: #cfebd1;
}
table {
 table-layout: fixed;
  width: 100%;
  max-width: 700px;
  border-collapse: collapse;
  border: 2px solid black;
}
th, td {
  padding: 0.5rem;
  border: 2px solid black;
  font-weight: bold;
}
td.today {
  background-color: gold;
  border-radius: 60%;
  font-weight: bold;
  color: #960505;
}
#change-quote {
  margin-top: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 1rem;
}
#theme-select {
  padding: 0.3rem;
}
/* Visual Theme*/
body.theme-default {
  background-color: #e4edf5;
  color: #333;
}
body.theme-blue {
  background-color: #bbeaf1;
  color: #004d40;
}
body.theme-pink {
  background-color: #ffe4e1;
  color: #ce0f75;
}
body.theme-green {
  background-color: #ddf3df;
  color: #1b5e20;
}
body.theme-gold {
  background-color: #faf2ce;
  color: #8b4513;
}
body.theme-dark {
  background-color: #555454 !important;
  color: #f9a66a !important;
}
.navbar.theme-dark {
  background-color: #292727;
  color: #f9a66a;
}
#menu.theme-dark {
  background-color: #434343;
  color: #f9a66a;
}
.footer.theme-dark {
  background-color: #292727;
  color: #f9a66a;
}

td.today.theme-dark {
  background-color: #fff8dc;
  color: #0a1a2f;
}
/*Inherite style*/
body.dark td.today {
  background-color: #ffcc00;
  color: #0a1a2f;
}
body.theme-img1 {
  background-image: url("img/img1.png");
  background-size: cover;
  background-position: center;
}  
body.theme-img2 {
  background-image: url("img/img2.png");
  background-size: cover;
} 
body.theme-img3 {
  background-image: url("img/img3.png");
  background-size: cover;
} 
body.theme-img4 {
  background-image: url("img/img4.png");
  background-size: cover;
}
body.theme-img5 {
  background-image: url("img/img5.png");
  background-size: cover;
}
body.theme-img6 {
  background-image: url("img/img6.png");
  background-size: cover;
}
body.theme-img7 {
  background-image: url("img/img7.png");
  background-size: cover;
}
body.theme-img8 {
  background-image: url("img/img8.png");
  background-size: cover;
} 
body.theme-img9 {
  background-image: url("img/img9.png");
  background-size: cover;
} 
body.theme-img10 {
  background-image: url("img/img10.png");
  background-size: cover;
} 
.footer {
  background-color: rgba(0, 77, 64, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: white;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media print {
  #nav-date, #nav-clock, #moon-phase {
    display: none !important;
  } 
  #menu {
    display: none !important;
  }
  .navbar .footer {
    display: none !important;
  }
}

@media (max-width: 600px) {
  .navbar {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-left, .nav-right {
    width: 100%;
    align-items: center;
  }

  .nav-info {
    flex-direction: column;
    gap: 0.3rem;
  }
}

@media (max-width: 414px) {
  * {
    margin: 1px;
  }
  .navbar {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
  }

  .nav-left h2 {
    font-size: 1.2rem;
  }

  .nav-info {
    flex-direction: column;
    gap: 0.3rem;
  }

  #calendar {
    width: 100%;
    font-size: 0.8rem;
  }

  table {
    width: 100%;
    font-size: 0.75rem;
  }

  th, td {
    padding: 0.5rem;
  }

  #menu {
    width: 100%;
    right: 0;
    border-radius: 0 0 8px 8px;
  }

  .footer {
    font-size: 0.8rem;
    padding: 1rem;
  }
}
