/* light mode (default) */
:root {
    --bg: #eee;
    --text: #111111;
    --muted: #666666;
    --accent: #b6b6b6;
    --accent-dark: #ff8a94;

    --card-bg: #eee;
    --border: #dddddd;
    --shadow: rgba(0,0,0,0.1);
}

/* dark mode */
:root.dark {
    --bg: #111111;
    --text: #f5f5f5;
    --muted: #aaaaaa;
    --accent: #888888;
    --accent-dark: #ff8a94;

    --card-bg: #1a1a1a;
    --border: #333333;
    --shadow: rgba(0,0,0,0.4);
}

/* smooth theme transition */
* {
  transition:
    background-color 0.35s ease,
    color 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
    border:0!important;
}


button {
  border:0;
  background:none;
}


::selection {
color: var(--bg);
-webkit-text-stroke: 1px var(--text);
text-shadow: 1px 1px 0 var(--text), -1px -1px 0 var(--text), 1px -1px 0 var(--text), -1px 1px 0 var(--text);
background: transparent;
font-weight:700;
}

body {
  margin: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  color: var(--text);
}

h1 {
  font-weight: 800;
  background: linear-gradient(to right, #F4E8D0, #F98E94);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 1px #6E5A5D;
  margin:0
}

.card {
  max-width: 40%;
  min-width:40%;
  padding: 5px;
  background: var(--card-bg);
  border-radius: 0px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px var(--shadow);
}

/* topbar layout */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}

/* hide title on desktop */
.menu-title {
  display: none;
  font-weight: bold;
}

/* hamburger button (mobile only) */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
}

/* content box placeholder */
.content-box {
  margin-top: 15px;
  min-height: 150px;
  padding: 20px;
  background: var(--card-bg);
  color: var(--text);
}

.maincontent {
  display:flex;
  justify-content:space-around;
}

.maincontent img {
  max-height:200px;
}

@media (max-width:728px) {
  .maincontent {
    flex-direction:column;
  }

  .maincontent img {
    max-height:200px;
    max-width:200px;
  }
}

/* floating dropdown container */
.dropdown-panel {
  position: relative;
  width: 100%;
  overflow: visible;
}

/* dropdown menu (floating box) */
.menu {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;

  display: flex;
  flex-direction: column;
  gap: 8px;

  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;

  /* hidden by default */
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  max-height: 0;
  overflow: hidden;

  transition:
    opacity 0.25s ease,
    transform 0.3s ease,
    max-height 0.35s ease;
}

/* when opened */
.menu.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  max-height: 300px;
}

/* stagger animation for each link */
.menu a {
  text-decoration: none;
  color: var(--text);
  font-size: 0.9rem;

  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.menu.show a {
  opacity: 1;
  transform: translateY(0);
}

.menu.show a:nth-child(1) { transition-delay: 0.05s; }
.menu.show a:nth-child(2) { transition-delay: 0.10s; }
.menu.show a:nth-child(3) { transition-delay: 0.15s; }
.menu.show a:nth-child(4) { transition-delay: 0.20s; }
.menu.show a:nth-child(5) { transition-delay: 0.25s; }

/* --- mobile mode --- */
@media (max-width: 728px) {
  .menu-title {
    display: block;
    padding-left:20px;
    color: var(--text);
  }

  .menu-toggle {
    display: block;
    color:var(--text);
  }

  /* hide desktop horizontal menu (if you add one later) */
  .topbar {
    flex-direction: row;
    align-items: center;
  }
}

/* --- desktop mode --- */
@media (min-width: 728px) {
  .menu-title {
    display: none;
  }

  .menu-toggle {
    display: none;
  }

  /* desktop menu: show inline inside topbar */
  .dropdown-panel {
    position: static;
  }

  .menu {
    position: flex;
    flex-direction: row;
    justify-content:space-around;

    opacity: 1;
    transform: none;
    pointer-events: auto;
    max-height: none;
    overflow: visible;

    border: none;
    padding: 14px;
    background: transparent;
  }

  .menu a {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

#clock {
font-weight:800;
text-align:right;
font-size:15px;
margin:0;
}

.clock {
  position:fixed;
  top:0
}