@font-face {
  font-family: 'Tofino Pro';
  src: url('../fonts/tofinopro-book.woff2') format('woff2'),
       url('../fonts/tofinopro-book.woff') format('woff');
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: 'Tofino Pro';
  src: url('../fonts/tofinopro-bookitalic.woff2') format('woff2'),
       url('../fonts/tofinopro-bookitalic.woff') format('woff');
  font-weight: 300;
  font-style: italic;
}

@font-face {
  font-family: 'Tofino Pro';
  src: url('../fonts/tofinopro-regular.woff2') format('woff2'),
       url('../fonts/tofinopro-regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Tofino Pro';
  src: url('../fonts/tofinopro-medium.woff2') format('woff2'),
       url('../fonts/tofinopro-medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'Avenir Next';
  src: url('../fonts/AvenirNext-Medium.woff2') format('woff2'),
       url('../fonts/AvenirNext-Medium.woff') format('woff');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Avenir Next';
  src: url('../fonts/AvenirNext-DemiBold.woff2') format('woff2'),
       url('../fonts/AvenirNext-DemiBold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
}

html {
  height: 100%;
}

body {
  height: 100%;
  min-width: 830px;
  min-height: 690px;
  display: flex;
  background-color: #f9f9f9;
  font-family: "Avenir Next", Helvetica, Arial, sans-serif;
  color: #333;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.main-container {
  box-sizing: border-box;
  height: 100%;
  width: 550px;
  padding: 40px 40px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #ffffff;
}

.header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.logo {
  font-size: 1.125em;
  font-weight: 700;
  color: #666;
}

.links {
  display: flex;
  color: #999;
  font-size: 0.875em;
  line-height: 1.5;
}

.links > * + * {
  margin-left: 15px;
}

.title {
  width: 100%;
  margin-bottom: 0;
}

.description {
  width: 100%;
  margin-bottom: 30px;
  line-height: 1.4;
}

.link {
  color: #b1587a;
  text-decoration: none;
}

.link:hover {
  color: #955291;
}

.button.add-button {
  width: 50px;
  height: 50px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #ffffff;
  background: rgb(230,100,70);
  background: linear-gradient(135deg, rgba(230,100,70,1) 0%, rgba(140,80,150,1) 100%);
  border-radius: 25px;
}

.button.add-button:hover {
  color: #ffffff;
}

.current-card-container {
  box-sizing: border-box;
  width: 100%;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.spacer {
  width: 20px;
}

.add-container {
  width: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card-container {
  position: relative;
}

.card-container.small {
  width: 150px;
  height: 210px;
  margin-right: 30px;
  margin-bottom: 30px;
}

.card-container.large {
  width: 300px;
  height: 420px;
}

.card {
  box-sizing: border-box;
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  box-shadow: 0 6px 20px 6px rgba(0, 0, 0, 0.25);
  background-size: cover;
  background-position: center;
  font-family: "Tofino Pro", Helvetica, Arial, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.3s ease;
}

.card.front {
  padding: 30px 45px;
  background-image: url("../images/card_front.png");
}

.card-container.small > .card {
  box-shadow: 0 2px 6px 2px rgba(0, 0, 0, 0.35);
  border-radius: 6px;
  cursor: pointer;
}

.card-container.small.active > .card {
  cursor: auto;
}

.card-container.small > .card.front {
  padding: 15px 22.5px;
}

.card-container.small > .card.back:hover {
  transform: scale(1.05);
}

.revealed-cards > .card-container {
  opacity: 0.6;
}

.revealed-cards > .card-container.active {
  opacity: 1;
}

.card.back {
  background-image: url("../images/card_back.png");
}

.invisible {
  opacity: 0;
}

.tab-contents.invisible {
  z-index: -1;
}

.button.invisible:hover,
.back.invisible:hover {
  cursor: auto;
}

.question {
  margin: auto;
  font-size: 24px;
  line-height: 1.25;
  color: #555;
}

.card-container.small .question {
  font-size: 12px;
}

.source-container {
  font-weight: 300;
  color: #888;
}

.italic {
  font-size: 14px;
  font-style: italic;
}

.card-container.small .italic {
  font-size: 7px;
}

.source {
  font-size: 18px;
  white-space: pre;
}

.card-container.small .source {
  font-size: 9px;
}

.counter {
  color: #aaa;
}

.instructions-modal-container {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  padding: 30px;
  position: absolute;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
  transition: all 0.3s ease;
}

.instructions-modal-container.invisible {
  z-index: -1;
}

.instructions-modal {
  box-sizing: border-box;
  width: 750px;
  height: 100%;
  max-height: 800px;
  padding: 40px;
  margin-right: 40px;
  background: #fff;
  box-shadow: 0 0 5px 1px rgba(0, 0, 0, 0.15);
}

.instructions-container {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.instructions-header {
  display: flex;
  height: 41px;
  margin-bottom: 10px;
}

.tab-container {
  height: 100%;
  position: relative;
}

.tab-contents {
  height: 100%;
  position: absolute;
  font-size: 23px;
  padding: 0 20px;
  transition: all 0.3s ease;

  overflow-y: scroll;
}

.tab-contents::-webkit-scrollbar {
  display: none;
}

.tab-title {
  margin: 0;
  font-size: 36px;
  font-weight: 700;
  transition: all 0.3s ease;
}

.tips-title {
  margin-left: 30px;
}

.tip-list {
  margin-top: 34px;
}

.tip-item {
  margin: 30px;
}

.faded {
  opacity: 0.5;
}

.faded:hover {
  cursor: pointer;
}

.instructions-step-header {
  margin-bottom: 14px;
  font-weight: 700;
  font-size: 30px;
  color: #333;
}

.instructions-step {
  margin-top: 0;
  color: #555;
  line-height: 1.3;
}

.instructions-step:last-of-type {
  margin-bottom: 0;
}

.instructions-separator {
  border: none;
  border-top: 1px solid #a45586;
}

.button {
  background: none;
  border: none;
  outline: none;
  color: #999;
  text-decoration: none;
}

.button:hover {
  cursor: pointer;
  color: #666;
}

.close-instructions {
  height: 28px;
  padding: 0;
  margin-left: auto;
  line-height: 0.6;
  font-size: 48px;
}

.close-instructions:before {
  content: "\00d7";
}

.revealed-cards-container {
  box-sizing: border-box;
  height: 100%;
  padding: 40px;
  flex-grow: 1;
  background: rgb(230,100,70);
  background: linear-gradient(135deg, rgba(230,100,70,1) 0%, rgba(140,80,150,1) 100%);
  box-shadow: inset 6px 0 8px rgba(0,0,0,0.25);
}

.revealed-cards {
  box-sizing: border-box;
  width: 200px;
  height: 100%;
  padding: 10px;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  overflow-y: scroll;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE 10+ */
}

.revealed-cards::-webkit-scrollbar {
  display: none;
}

@media (min-width: 1020px) {
  .revealed-cards {
    width: 380px;
  }
}

@media (min-width: 1200px) {
  .revealed-cards {
    width: 560px;
  }
}

@media (min-width: 1380px) {
  .revealed-cards {
    width: 740px;
  }
}

@media (min-width: 1560px) {
  .revealed-cards {
    width: 920px;
  }
}

@media (min-width: 1740px) {
  .revealed-cards {
    width: 1100px;
  }
}
