* {
  margin: 0;
  padding: 0;
}
a {
  cursor: pointer;
  transition: 0.2s;
  text-decoration: none;
  color: inherit;
  border-radius: 0.2em;
}
a:hover {
  background: rgba(0, 0, 0, 0.2);
  box-shadow: 0 0 0.5em rgba(0, 0, 0, 0.2);
}
::selection {
  background: rgba(137, 255, 206, 0.5);
}
html {
  font: 48px "Roboto", "微软雅黑", sans-serif;
  font: 2.7vw "Roboto", "微软雅黑", sans-serif;
  font: min(2.7vw, 7vh) "Roboto", "微软雅黑", sans-serif;

  /* cursor: not-allowed; */

  color: white;
  background-color: #333;
  background-image: url(/campus.jpg);
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
}
#main {
  display: flex;
  align-items: stretch;
  flex-direction: column;
  justify-content: space-between;
  width: 95vw;
  height: 100vh;
  margin: 0 auto;
  transition: 0.2s;
}
.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;
  /* background: #25f; */
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0.5em 0.5em 1em rgba(0, 0, 0, 0.2);
}
#menu {
  font-size: 0.6em;
  z-index: 1;
  /* background: rgba(255, 255, 255, 0.6); */
}
header {
  position: relative;
  z-index: 1;
}
.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);
}
.sub {
  font-size: 0.6em;
  opacity: 0.6;
}
.dropdown {
  position: relative;
  display: inline-block;
}
#menu .dropdown {
  display: block;
}
.dropdown-content {
  position: absolute;
  z-index: 1;
  display: none;
}
#menu .dropdown-content {
  top: -0.2em;
  left: 4em;
  width: 10em;
}
.dropdown:hover > .dropdown-content {
  display: block;
}
.hilit,
.dropdown-content {
  padding: 0.2em;
  color: rgba(0, 0, 0, 0.8);
  border-radius: 0.5em;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0.2em 0.2em 1em rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(0.5em);
}
.dropdown-content > a {
  display: block;
}
.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.2em;
  background: rgba(0, 0, 0, 0.2);
}
.bar {
  height: 0.25em;
  margin: 0.5em auto;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0.1em 0.1em 0.5em rgba(0, 0, 0, 0.6);
}
#bar {
  height: 100%;
  transition: linear 2s;
  background: white;
  box-shadow: 0.1em 0.1em 0.5em rgba(0, 0, 0, 0.6);
}
.card {
  display: flex;
  flex-wrap: wrap;
  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;
  background: rgba(255, 255, 255, 0.1);
  background: linear-gradient(
    -30deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.2)
  );
  box-shadow: 0.2em 0.2em 1em rgba(0, 0, 0, 0.6);
}
.card > div:hover {
  /* 二选一 */
  transform: scale(1.1, 1.1);
  /* animation: turnover 1s; */
}
@keyframes turnover {
  0% {
    transform: rotateY(0) scale(1, 1);
  }
  50% {
    transform: rotateY(360deg) scale(1.2, 1.2);
  }
  100% {
    transform: rotateY(720deg) scale(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 {
  padding: 0.5em;
}
footer > img {
  max-width: 20em;
  max-height: 1.2em;
  vertical-align: middle;
}
@media (max-aspect-ratio: 3/4) {
  html {
    font: 6vw "Roboto", "微软雅黑", sans-serif;
    font: min(6vw, 5vh) "Roboto", "微软雅黑", sans-serif;
    align-items: flex-start;
  }
  header,
  .card,
  footer > .space-between {
    flex-direction: column;
  }
}
