/* Fonts */
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 400;
  src: local('Barlow Condensed Regular'), local('BarlowCondensed-Regular'),
       url('./fonts/barlow-condensed-v4-latin-regular.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
       url('./fonts/barlow-condensed-v4-latin-regular.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 600;
  src: local('Barlow Condensed SemiBold'), local('BarlowCondensed-SemiBold'),
       url('./fonts/barlow-condensed-v4-latin-600.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
       url('./fonts/barlow-condensed-v4-latin-600.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}


:root {
  --bg: rgba(39, 39, 39, 1);
  --fg: #ffffff;
  --secondaryFg: #b3b3b3;
  --containerBg: rgba(39, 39, 39, 0.8);
  --searchBg: rgba(39, 39, 39, 1);
  --scrollbarColor: #3f3f3f;
}

body {
  background-color: var(--bg);
  margin: 0px;
  overflow: hidden;
}

.container {
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transform: translateX(0);
  transition: .6s;
}
.container.disabled {
  transform: translateX(-100%);
}

#clock {
  font-size: 7rem;
  font-weight: 600;
  font-family: 'Barlow Condensed', sans-serif;
  color: var(--fg);
  margin-bottom: 0.25em;
}

#search {
  width: 100%;
  display: block;
  opacity: 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  text-align: center;
  transition: .2s;
  z-index: -1;
}
#search.active {
  opacity: 1;
  z-index: 2;
}

#search-field {
  width: 56%;
  padding: 0.3em;
  box-sizing: border-box;
  background-color: var(--searchBg);
  border: solid 2px var(--secondaryFg);
  font-family: 'Barlow Condensed';
  font-size: 4rem;
  color: var(--fg);
  outline: none;
  border-radius: 3px;
  margin-bottom: 1em;
  text-align: center;
}

.info-container {
  position: absolute;
  bottom: 1rem;
  width: auto;
  background-color: var(--containerBg);
  padding: 1em;
  border-radius: 3px;
  font-family: 'Barlow Condensed';
  color: var(--fg);
  text-align: center;
  text-transform: uppercase;
}
.inline {
  display: inline-block;
}

.bookmark-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  width: 50%;
  margin: 1em 0em;
}

@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;
  background-color: var(--containerBg);
  border-radius: 3px;
  font-family: 'Barlow Condensed';
  font-size: 1.2rem;
  line-height: 1.2rem;
  width: 100%;
  height: auto;
  margin: 0em 0.5em;
  box-sizing: border-box;
}

.bookmark-inner-container {
  overflow-y: scroll;
  height: 80%;
  vertical-align: top;
  padding-right: 6px;
  box-sizing: border-box;

  scrollbar-width: thin;
  scrollbar-color: var(--scrollbarColor) #ffffff00;
}

.bookmark-inner-container::-webkit-scrollbar {
  width: 6px;
}
.bookmark-inner-container::-webkit-scrollbar-track {
  background: #ffffff00;
}
.bookmark-inner-container::-webkit-scrollbar-thumb {
  background-color: var(--scrollbarColor);
  border-radius: 6px;
  border: 3px solid #ffffff00;
}

.bookmark-inner-container a {
  text-decoration: none;
  color: var(--secondaryFg);
  display: block;
  margin: 0.5em 0em;
}
.bookmark-inner-container a:hover {
  color: var(--fg);
}

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

/* Preloader */
#preloader {
  position: absolute;
  top: 0;
  height: 100%;
  width: 100%;
  background-color: var(--searchBg);
  opacity: 0;
  transition: .3s;
  z-index: 0;
}
#preloader.active {
  opacity: 1;
  z-index: 1;
}

.lds-ellipsis {
  display: inline-block;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
}
.lds-ellipsis div {
  position: absolute;
  top: 33px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fff;
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
}
.lds-ellipsis div:nth-child(1) {
  left: 8px;
  animation: lds-ellipsis1 0.6s infinite;
}
.lds-ellipsis div:nth-child(2) {
  left: 8px;
  animation: lds-ellipsis2 0.6s infinite;
}
.lds-ellipsis div:nth-child(3) {
  left: 32px;
  animation: lds-ellipsis2 0.6s infinite;
}
.lds-ellipsis div:nth-child(4) {
  left: 56px;
  animation: lds-ellipsis3 0.6s infinite;
}
@keyframes lds-ellipsis1 {
  0% {
    transform: scale(0);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes lds-ellipsis3 {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(0);
  }
}
@keyframes lds-ellipsis2 {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(24px, 0);
  }
}
