/*
@font-face {
  font-family: 'Goudy Bookletter 1911';
  src: url("../assets/GoudyBookletter1911-Regular.ttf");
}
*/

html, body {
  padding: 0;
  margin: 0;
  font-family: 'Goudy Bookletter 1911', serif;
  overflow-x: hidden;
}

.background {
  position: fixed;
  top: 0;
  right:0;
  opacity:0.2;
  z-index:-1;
}

.bgs img {
  position: absolute;
}

.bg0 {
  width: 100%;
}

.bg1 {
  width: 100%;

}

.bg2 {
  width: 100%;
}

.bg3 {
  height: 100%;
  width:100%;
}

.letter {
  margin-top: 2rem;
}

.letters-buttons {
  width: 50vw;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  justify-items: center;

} 

.letters-buttons .button {
  width: 100px;
}

.letter-container {
  position: relative;
  font-size: 1.1rem;
}

.letter-container img {
  width:700px;
}

.letter-header {
  position: absolute;
  top: 90px;
  left: 65px;
}

.letter-body {
  position: absolute;
  top:50px;
  left:65px;
  height: 600px;
  overflow:auto;
  width:620px;
  word-wrap: anywhere;
}

.letter-footer {
  position: absolute;
  bottom:100px;
  left: 65px;
}

.fade-enter-active, .fade-leave-active {
  -webkit-transition: opacity 1.7s;
  -o-transition: opacity 1.7s;
  transition: opacity 1.7s;
}

.fade-enter, .fade-leave-to /* .fade-leave-active below version 2.1.8 */ {
  opacity: 0;
}

.timed-event {
  position: fixed;
  top: 1em;
  left: 1em;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
  text-align: center;
  width: 30%;
}

.timed-event .event-name {
  font-size: 2em;
}

.timed-event .event-timer {
  font-size: 1.3em;
  margin: 0.5em;
}

.timed-event .event-description {
}

.bg-color {
  position: fixed;
  z-index:-1000;
  top:0;
  left:0;
  width: 100%;
  height: 100%;
}

.container {
  width: 100%;
  height: 100%;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  margin-top: 3em;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align:center;
  -webkit-align-items:center;
      -ms-flex-align:center;
          align-items:center;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-column-gap: 1vw;
  grid-row-gap: 2vh;
}

.row {
  width: 100%;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -webkit-flex-direction: row;
      -ms-flex-direction: row;
          flex-direction: row;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
      -ms-flex-pack: center;
          justify-content: center;
}

.column {
  width: 100%;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
}

.stats {
  margin-top: 2em;
}

.stat-value {
  font-size: 1.2rem;
}

.stat-name {
  font-size: 15px
}

.main-stat-label {
  font-size: 30px;
}

.main-stat, .main-stat-centered {
  font-size: 3rem;
  margin-left: 1rem;
  display:-webkit-box;
  display:-webkit-flex;
  display:-ms-flexbox;
  display:flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
      -ms-flex-direction: column;
          flex-direction: column;
  margin-top:0em;
}

.main-stat-centered {
  margin: 0;
  margin-top: 10rem;
  margin-bottom: 5rem;
  -webkit-box-align: center;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
}


.buttons .column {
  margin: 1em;
}

.centered-text {
  text-align: center;
}

.button {
  text-align: center;
  cursor: pointer;
  border: 1px solid black;
  padding: 0.5rem;
  -ms-user-select: none;
      user-select: none;
  -moz-user-select: none;
  -webkit-user-select: none;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
      -ms-flex-pack: center;
          justify-content: center;
  background-color: white;
}

.read {
  font-size: 1.5rem;
  margin-top: 8rem;
}

.powerup-btn {
  width: 15vw;
}

.button-title {
  font-size: 1.3rem;
}

.buy-max {
  font-size: 1rem;
}

.buy-max:hover {
  font-weight:bold;
}

.button-description {
  font-size: 1rem;
  padding: 0.5em;
}

.button:active, .btn-selected {
  background-color: #efefef;
}

.chosen {
  background-color: #efefef !important;
}

.btn-night .chosen {
  background-color: #555555 !important;
}

.btn-night .button {
  background-color:#414042;
  border: 1px solid white; 
}

.btn-night .button:active, .btn-night .btn-selected {
  background-color: #555555; 
}

.milestone {
  margin-top: 2rem;
  width: 18vw;
}

.top-links {
  position: absolute;
  top: 1em;
  right: 1em;
}

.align-right {
  -webkit-box-align: end;
  -webkit-align-items: flex-end;
      -ms-flex-align: end;
          align-items: flex-end;
  margin-right: 1em;
}

.align-right a {
  text-decoration: none;
  color: black;
}

.night-link a {
  color: white;
}

.footer-link a {
  color:white;
  text-decoration: none;
}

.footer-link {
  cursor: pointer;
  margin-right: 5rem;
  white-space: nowrap;
}

.footer-link:hover {
  text-decoration: underline;
}

#delivery-btn {
  position: absolute;
  margin-top: 7%;
}

#next-phase-text {
  white-space: nowrap;
}

.stats-container {
  position: absolute;
  left: 8vw;
  top: 13vh;
}

.buttons-container {
  position: absolute;
  top: 15vh;
  right: 4vw;
  height: 80vh;
  overflow: auto;
}

.letter-body textarea {
  border:none;
  background:none;
  color:white;
  width: 560px;
  height: 510px;
  font-family: 'Goudy Bookletter 1911', serif;
  font-weight: 500;
  font-size: 1.1rem;
}

.close-btn {
  margin: 0 auto;
  width: 20vw;
  margin-bottom: 2rem;
}

.letter-button {
  margin: 1em;
}
