body {
  font-family: Arial, Helvetica, sans-serif;
  background-color: #dddddd;

  font-weight: normal;
  font-size: 1.3em;
  margin: .5em;
}

#wrapper {
  display: flex;
  justify-content: center;
}

#loading {
  text-align: center;
  font-size: 1.3em;
  margin-top: 1em;
}

#main-box {
  flex-grow: 4;
  min-width: 500px;
  max-width: 1000px;
  margin: .75em;
  background-color: #ffffff;
  border-radius: 5px;
  padding: 1em;
  padding-left: 1.5em;
  padding-right: 1.5em;
}

#side-box {
  flex-grow: 1;
  min-width: 250px;
  max-width: 500px;
  min-height: 500px;
  margin: .75em;
  background-color: #ffffff;
  border-radius: 5px;
  padding: .75em;
}

#side-stack {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

#side-box-title {
  text-align: center;
  margin-bottom: .75em;
}

#save-box {
  text-align: center;
}

#game-status {
  background-color: #3271a8;
  color: #ffffff;
  text-align: center;
  border-radius: 5px;
  padding: 5px;
  margin-bottom: .75em;
}

#pre-game-intro-box {
  background-color: #f1f1f1;
  text-align: center;
  border-radius: 5px;
  padding: 5px;
  margin-bottom: 2em;
  margin-top: 2em;
}

#intro-enter {
  text-align: center;
}

#intro-enter input[type=text] {
  margin-left: auto;
  margin-right: auto;
}

.side-bar-indent {
  margin: .75em;
}

.env {
  font-weight: bold;
  color: #c40000;
}

.speech {
  font-weight: bold;
  color: #3271a8;
}

.speech-other {
  font-weight: bold;
  color: #00ba1f;
}

.think {
  font-style: italic;
  color: #3271a8;
}

a {
  color: #ba3fa8;
  text-decoration: underline;
  cursor: pointer;
}

img {
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
  display: block;
  margin-bottom: 2em;
  border-radius: 5px;
}

.fade-in {
  animation: fadeIn ease 2s;
}

.fade-in-slow {
  animation: fadeIn ease 7s;
}

@keyframes fadeIn {
  0% {opacity:0;}
  100% {opacity:1;}
}

input[type=text] {
  padding: .25em;
  display: block;
  font-size: 1em;
}

table td.index {
  text-align: right;
  padding: 5px;
}

#schedule {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
}

#schedule td {
  border: 1px solid #ddd;
  padding: 8px;
}

#schedule tr:nth-child(even) {
  background-color: #f2f2f2;
}

@media only screen and (max-width: 900px) {
  body {
    font-size: 1em;
  }

  #wrapper {
    flex-direction: column;
  }

  #main-box {
    min-width: initial;
  }

  #side-box {
    max-width: initial;
    min-height: initial;
  }

  input[type=text] {
    min-width: initial;
  }
}
