html {
  font-size: 5vw;
  background: linear-gradient(0, #afaca8 50vh, #ffeed7 50vh);
}

body {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

#app {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100vw;
}

#app,
h1,
li,
form,
input,
label,
.vue-js-switch#school-toggle {
  font-family: 'Source Sans Pro', sans-serif;
}

main {
  margin-top: 0;
  box-shadow: 0 0 0.025rem rgba(0, 0, 0, 0.16),
    0 0.025rem 0.05rem rgba(0, 0, 0, 0.32);
}

.resultItem {
  width: 100%;
  margin: auto;
  padding: 0.3rem;
  box-sizing: border-box;
  font-size: 0.9rem;
  border-bottom: 0.05rem solid #9a9a9a;
}

.resultItem:first-of-type {
  border-top: 0.05rem solid #9a9a9a;
}

header {
  width: 100%;
  height: 1.5rem;
  background-color: #ffeed7;
  display: flex;
  justify-content: center;
  align-items: center;
}

main {
  padding: 0.5rem;
  background-color: #a4e372;
  width: 100%;
  height: 11.6rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

.main-item,
.resultItem {
  width: 15.7rem;
  max-width: 100vw;
  margin: auto;
}

#landscape-header {
  display: none;
}

#portrait-header {
  display: flex;
}

.logo {
  height: 1.2rem;
  width: auto;
  padding: 0.05rem 0 0 0;
}

h1 {
  font-size: 1rem;
  line-height: 1.5;
  font-weight: bold;
  text-align: center;
  display: inline;
}

li {
  list-style-type: none;
  padding: 0.1rem 0;
  line-height: 1;
}

form {
  display: flex;
  flex-direction: column;
}

form > p,
#toggle-button-container > p,
#start-time-label {
  font-size: 0.8rem;
}

#start-time {
  width: 5.4rem;
}

.radio-form-container {
  display: flex;
  flex-direction: row;
}

.start-time {
  font-size: 1rem;
  border-radius: 1rem;
  border: none;
  padding: 0 0 0 0.25rem;
  background-color: #eee;
  color: #000;
  width: 4.7rem;
  height: 1.5rem;
  transition: background-color 0.1s;
}

.red {
  background-color: #f97c7c;
}

summary {
  width: 100%;
  height: 7.2rem;
  position: relative;
}

summary > p {
  padding: 0 0.5rem;
  text-align: center;
}

summary > p,
.resultItem {
  color: #000;
  text-shadow: none;
  transition: color 0.25s, text-shadow 0.25s;
}

.blurry,
.blurry:first-of-type {
  color: transparent;
  text-shadow: 0 0 0.9rem rgba(0, 0, 0, 0.5);
  transition: color 0.25s, text-shadow 0.25s;
  border-bottom: 0.05rem solid transparent;
  border-top: 0.05rem solid transparent;
}

header,
main,
summary {
  width: 100%;
}

.container {
  display: block;
  position: relative;
  padding: 0 0.5rem;
  cursor: pointer;
  font-size: 1rem;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  background-color: #eee;
  border-radius: 0rem;
  color: #000;
}

.container:first-of-type {
  border-radius: 1rem 0 0 1rem;
}

.container:last-of-type {
  border-radius: 0 1rem 1rem 0;
}

.container:hover {
  background-color: #ccc;
}

.selected {
  background-color: #f4b042;
  transition: background-color 0.1s;
}

.selected:hover {
  background-color: #f4b042;
}

.container input {
  position: absolute;
  opacity: 0;
}

.pulse {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  margin: 0;
  display: block;
  width: 0.1rem;
  height: 0.1rem;
  animation: pulse 1s infinite;
  -webkit-animation-name: pulse;
  animation-name: pulse;
}

.hidden {
  display: none;
  animation: none;
}

@-webkit-keyframes pulse {
  0% {
    -webkit-transform: scale(1);
  }
  50% {
    -webkit-transform: scale(72);
  }
  100% {
    -webkit-transform: scale(1);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(72);
  }
  100% {
    transform: scale(1);
  }
}

@font-face {
  font-family: 'Source Sans Pro';
  src: url('../fonts/SourceSansPro-Regular.ttf');
}

@font-face {
  font-family: 'Source Sans Pro';
  src: url('../fonts/SourceSansPro-Bold.ttf');
  font-weight: bold;
}

@media only screen and (orientation: landscape) {
  html {
    font-size: 2.6vw;
    background: linear-gradient(90deg, #a4e372 50vw, #afaca8 50vw);
  }

  #app {
    flex-direction: row;
  }

  #landscape-header {
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: calc(50vh - 5.3rem);
    align-items: flex-end;
    box-shadow: 0 0 0.025rem rgba(0, 0, 0, 0.16),
      0 0.025rem 0.05rem rgba(0, 0, 0, 0.32);
    z-index: 1;
  }

  #portrait-header {
    display: none;
  }

  #start-time-label {
    text-align: right;
  }

  .logo {
    padding: 0 0 0.13rem 0;
  }

  main {
    box-shadow: none;
    padding: 0;
    position: absolute;
    top: calc(50vh - 5.3rem);
    left: 0;
    width: 50%;
    height: 10.6rem;
    align-items: flex-end;
    justify-content: flex-start;
    box-shadow: 0 0 0.025rem rgba(0, 0, 0, 0.16),
      0 0.025rem 0.05rem rgba(0, 0, 0, 0.32);
    height: calc(50vh + 5.3rem);
  }

  .main-item {
    margin: 0 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
  }

  summary {
    height: 10.6rem;
    display: flex;
    position: absolute;
    top: calc(50vh - 5.3rem);
    left: 50vw;
    width: 50vw;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
  }

  summary > ul,
  summary > p {
    width: 18.7rem;
    box-sizing: border-box;
  }

  .resultItem {
    width: calc(100% - 1rem);
    text-align: center;
  }

  @-webkit-keyframes pulse {
    50% {
      -webkit-transform: scale(108);
    }
  }

  @keyframes pulse {
    50% {
      transform: scale(108);
    }
  }
}
