/* default */
* {
  margin: 0;
  padding: 0;
}
html {
  font: 48px "Roboto", "微软雅黑", sans-serif;
  font: 2.75vw "Roboto", "微软雅黑", sans-serif;
  font: min(2.75vw, 7vh) "Roboto", "微软雅黑", sans-serif;
  color: white;
  background-color: #333;
  background-image: url(/campus.jpg);
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
}
/* .dropdown, */
a {
  cursor: pointer;
  transition: 0.2s;
  text-decoration: none;
  color: inherit;
  border-radius: 0.5em;
}
.dropdown:hover,
a:hover {
  color: #fff;
  background: rgba(0, 0, 0, 0.8);
}
::selection {
  background: rgba(255, 102, 0, 0.5);
}
.space-between {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
}
.dim {
  font-size: 0.75em;
  color: rgba(255, 255, 255, 0.6);
}
footer,
.sub {
  font-size: 0.6em;
  opacity: 0.6;
}
/* elelments */
#main {
  /* align-items: stretch; */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  margin: 0 auto;
  transition: 0.2s;
}
#main > * {
  margin: 1% 2%;
}
.notify {
  font-size: 0.5em;
  z-index: 1;
  top: 0;
}
.notify > div {
  display: none;
  margin: 0.5em auto;
  padding: 0.5em;
  border-radius: 0.5em;
}
#menu {
  font-size: 0.5em;
  z-index: 1;
}
header {
  position: relative;
  z-index: 1;
}
.bar {
  height: 0.25em;
  margin: 0.5em auto;
}
#bar {
  height: 100%;
  transition: linear 2s;
  background: white;
}
.card {
  display: flex;
  justify-content: center;
  max-width: 100vw;
  margin: 0.5em auto;
}
.card > div,
.card > a {
  font-family: "Montserrat", "微软雅黑", sans-serif;
  display: inline-block;
  margin: 0.25em;
  padding: 0.25em 0.75em;
  transition: transform 0.5s;
  text-align: center;
  border-radius: 1em;
}
.card > div:hover {
  transform: scale(1.1, 1.1);
}

#clock {
  font-size: 5em;
  min-width: 2.5em;
}
#subject,
#timer {
  font-size: 3em;
}
#duration,
#activity {
  font-size: 1.5em;
  color: rgba(255, 255, 255, 0.6);
}
footer img {
  max-width: 20em;
  max-height: 1.2em;
  vertical-align: middle;
}
@media (max-aspect-ratio: 4/5) {
  html {
    font: 6vw "Roboto", "微软雅黑", sans-serif;
    font: min(6vw, 5vh) "Roboto", "微软雅黑", sans-serif;
    align-items: flex-start;
  }
  .card,
  footer > .space-between {
    flex-direction: column;
  }
}
/* functional */
.notify > div,
.bar,
.card > div,
.card > a {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0.5em 0.5em 1em rgba(0, 0, 0, 0.2);
}
.dropdown {
  position: relative;
  display: inline-block;
  border-radius: 0.5em;
}
#menu,
.dropdown>:last-child {
  position: absolute;
  z-index: 1;
  display: none;
}
#menu .dropdown>:last-child {
  top: 0;
  left: 5em;
  min-width: 10em;
}
.dropdown:hover > :last-child {
  display: block;
}
#menu,
.hilit,
.dropdown>:last-child {
  color: rgba(0, 0, 0, 0.8);
  border-radius: 0.5em;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0.2em 0.2em 1em rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(0.5em);
}
a.hilit,
#menu > *,
.dropdown>:last-child > * {
  display: block;
  padding: .25em;
}
.selectbar {
  display: flex;
  float: right;
  overflow: hidden;
  align-items: center;
  justify-content: space-between;
  min-width: 5em;
  color: rgba(0, 0, 0, 0.6);
  border-radius: 0.5em;
  background: rgba(0, 0, 0, 0.2);
}
