body {
  font-family: 'Lato', sans-serif;
}

#popup {
  top:15px;
  display: none;
  margin-left: auto;
  margin-right: auto;
  left: 0px;
  right: 0px;
  background: rgba(239, 239, 239, 0.9);
  border-radius: 15px;
  width: 90%;
  padding-bottom: 25px;
  position: absolute;
}

.selectbutton {
  border: none;
  background: transparent;
  position: absolute;
  top: 15px;
  left:15px;
  text-align: center;
  color: black;
  width: 22px;
  height: 22px;
  font-weight: bold;
}

.wrapper {
  overflow:hidden;
  padding: 10px;
}

.cardTermTitle {
  text-align: center;
  display: inline-block;
  color: grey;
  font-size: 40px;
  margin-left: 15%;
}

.definitionTitle {
  text-align: left;
  color: grey;
  font-size: 20px;
  padding: 50px;
  padding-top: 20px;
}

.subSectionTitle {
  text-align: center;
  display: inline-block;
  color: white;
  font-size: 30px;
  margin-left: 50px;
}

.subDefinitionTitle {
  text-align: left;
  color: white;
  font-size: 18px;
  padding: 50px;
  padding-top: 20px;
}

.sectionSelector {
  font-weight: bold;
  color: white;
  border: none;
  padding: 0;
  width: 33.3333%;
  height: 25px;
  font-size: 11px;
  cursor: pointer;
}
.sectionSelector:active {
  transform: translateY(2px);
}

#button {
  border: none;
  background: transparent;
  position: absolute;
  top: 15px;
  left:15px;
  text-align: center;
  color: black;
  width: 22px;
  height: 22px;
  font-weight: bold;
}

.square {
  margin-top: 50px;
  margin-bottom: 140px;
  width: 260px;
  -webkit-flex: 4;
  -moz-flex: 4;
  -ms-flex: 4;
  -o-flex: 4;
  flex: 4;
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  text-align: center;
  -webkit-justify-content: center;
  -moz-justify-content: center;
  -ms-justify-content: center;
  -o-justify-content: center;
  justify-content: center;
  -webkit-flex-flow: column wrap;
  -moz-flex-flow: column wrap;
  -ms-flex-flow: column wrap;
  -o-flex-flow: column wrap;
  flex-flow: column wrap;
  position: relative;
}
.card-container {
  cursor: pointer;
  height: 150px;
  perspective: 600;
  position: relative;
  width: 260px;
  z-index: 0;
  border-radius: 20px;
  margin: auto;
  border: none;
  background: transparent;
  top: -100px;
}
.card {
  box-shadow: 2px 2px 2px rgba(200, 200, 200, .4);
  height: 260px;
  font-size: 14px;
  color: white;
  position: absolute;
  transform-style: preserve-3d;
  transition: all 1s ease-in-out;
  width: 260px;
 -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 35px;
}
.card-flip {
transform: rotateY(180deg);
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
}
.card i{
  position: absolute;
  bottom: 8;
  right: 8;
  color: white;
  z-index: 2;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.instruction{
  font-size: 10pt;
  font-family: Lato;
  font-weight: 400;
  text-shadow: 1px 1px 2px #000;
  -webkit-backface-visibility: hidden;
backface-visibility: hidden;
}

.card .side {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 6px;
  height: 200px;
  position: absolute;
  overflow: hidden;
  width: 100%;
  z-index: 1;
  transform: translateY(10%);
}
.card .back {
  box-shadow: 2px 2px 2px rgba(200, 200, 200, .4);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  background: rgba(255, 255, 255, 0.73);
  color: #000;
  height: 260px;
  border-radius: 35px;
  line-height: 2em;
  transform: rotateY(180deg);
  z-index: 1;
  overflow-y: hidden;
}

.text {
  padding: 12px;
  margin-left: 12px;
  margin-right: 12px;
  text-align: left;
  line-height: 20px;
  font-size: 10pt;
  color: #404040;
}

.frontText {
  padding: 12px;
  margin-left: 12px;
  margin-right: 12px;
  text-align: center;
  line-height: 1.2em;
  font-size: 15pt;
  color: #fff;
}

.row {
  -webkit-flex: 5;
  -moz-flex: 5;
  -ms-flex: 5;
  -o-flex: 5;
  flex: 5;
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  flex-wrap: wrap;
  -webkit-flex-direction: row flex;
  -moz-flex-direction: row flex;
  -ms-flex-direction: row flex;
  -o-flex-direction: row flex;
  flex-direction: row flex;
}

/* width */
::-webkit-scrollbar {
  width: 10px;
}

/* Track */
::-webkit-scrollbar-track {
  background: #f1f1f1;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: #888;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #555;
}
