@import url('https://fonts.googleapis.com/css?family=Roboto+Mono');

:root {
  --fg: #ffffff;
  --secondaryFg: #ffffff;
  --containerBg: #272727;
  --searchBg: var(--containerBg);
  --fontFamily: 'Roboto Mono', monospace;
}

body {
  margin: 0px;
}

.container {
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

#clock {
  font-family: sans-serif;
  font-size: 3.5rem;
  font-weight: 600;
  font-family: var(--fontFamily);
  color: var(--fg);
  margin-bottom: 0.25em;
}

#search {
  width: 100%;
  height: 100vh;
  background-color: var(--searchBg);
  display: none;
  position: absolute;
  box-sizing: border-box;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

#search-field {
  width: 90%;
  padding: 0.75em 1em;
  box-sizing: border-box;
  background-color: var(--searchBg);
  border: solid 0px var(--searchBg);
  font-family: var(--fontFamily);
  font-size: 4rem;
  color: var(--fg);
  outline: none;
  border-radius: 3px;
  margin-bottom: 1em;
  text-align: center;
}

.weather-container {
  width: 30%;
  backdrop-filter: blur(20px);
  padding: 1em;
  border-radius: 3px;
  font-family: var(--fontFamily);
  color: var(--fg);
  text-align: center;
}

.inline {
  display: inline-block;
}

#bookmark-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  width: 50%;
  margin: 1em 0em;
  visibility: visible;
  opacity: 1;
  transition: opacity 0.2s;
}

#bookmark-container.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  height: 0;
}

@media only screen and (max-width: 960px) {
  .container {
    height: auto;
  }

  #clock {
    margin-top: 1em;
  }

  .container>#bookmark-container {
    flex-direction: column;
    width: 60%;
  }

  #bookmark-container>.bookmark-set {
    width: auto;
    margin: 1em 0em;
  }
}

.bookmark-set {
  padding: 1em;
  backdrop-filter: blur(20px);
  border-radius: 3px;
  font-family: var(--fontFamily);
  color: var(--fg);
  text-align: center;
  width: 25%;
  height: 12em;
  margin: 0em 0.5em;
  box-sizing: border-box;
}

.bookmark-scroll-hide {
  height: 80%;
  overflow: hidden;
}

.bookmark-inner-container {
  height: 100%;
  overflow-y: auto;
  padding-right: 6px;
  box-sizing: border-box;
  scrollbar-width: none; /* Firefox */
}

.bookmark-inner-container::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

/* Hide scrollbar in Firefox */
.bookmark-inner-container {
  scrollbar-width: none; /* Firefox */
}

.bookmark-inner-container::-webkit-scrollbar {
  display: none; /* Safari and Chrome */
}

.bookmark-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--fg);
  margin: 0em 0em 0.35em 0em;
}

.bookmark {
  text-decoration: none;
  color: var(--secondaryFg);
  display: block;
  margin: 0.5em 0em;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bookmark:hover {
  color: var(--fg);
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Settings Button */
#settings-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  border-radius: 50%;
  box-shadow: 0 2px 8px #0003;
  transition: box-shadow 0.2s;
}

#settings-btn:hover {
  box-shadow: 0 4px 16px #0005;
  background: #272727cc;
}

/* Settings Panel */
#settings-panel {
  position: fixed;
  bottom: 72px;
  right: 32px;
  min-width: 260px;
  background: #272727ee;
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px #0007;
  padding: 1.2em 1.5em 1.2em 1.5em;
  opacity: 0;
  pointer-events: none;
  transform: translateY(30px) scale(0.95);
  transition: opacity 0.25s cubic-bezier(.4,2,.6,1), transform 0.25s cubic-bezier(.4,2,.6,1);
  z-index: 101;
  font-family: 'Roboto Mono', monospace;
}

#settings-panel.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.settings-title {
  font-size: 1.2em;
  font-weight: bold;
  margin-bottom: 1em;
  letter-spacing: 0.05em;
}

.settings-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1em;
  font-size: 1em;
}

.settings-btn {
  width: 100%;
  margin-bottom: 1em;
  padding: 0.5em 0.7em;
  background: #333;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-family: inherit;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.2s;
}

.settings-btn:hover {
  background: #444;
}
