* {
  box-sizing: border-box;
}
body {
  font-family: 'Cabin', sans-serif;
	width: 100%;
  height: 100%;
	margin: 0;
	text-align: center;
  padding: 0;
  color: ghostwhite;

}

header {
  background-color: #84152E;
  width: 20%;
  height: 2500px;
  margin: 0;
  padding: 0;
  position: absolute;
  top: 0;
}

section {
  width: 80%;
  height: 2500px;
  margin: 0;
  padding: 0;
  position: absolute;
  top: 0;
  left: 20%;
}

/*header button*/
header {
  display: flex;
  flex-flow: column nowrap;
  justify-content: space-around;
  align-items: center;
}

button {
  font-size: 1em;
  color: ghostwhite;
  border: 1px solid ghostwhite;
  border: 1px solid ghostwhite;

  width: 100% ;
  height: 12.5%;
  margin: 0;
  padding: 1%;
  font-size: 100%;
  background: #84152E;

}
button:hover {
  background: #000000;
}

button:first-child {
  height:300px;
}
button:first-child img {
background-color: rgba(250,250,250, 0.85);
    width: 100%;
  height: 100%;
  border-radius: 50%;
}

/*word card*/
.card-container {
  cursor: pointer;
  height: 300px;
  perspective: 600;
  position: relative;
  width: 300px;
}
.card {
  height: 100%;
  position: absolute;
  transform-style: preserve-3d;
  transition: all 1s ease-in-out;
  width: 100%;
}
.card:hover {
  transform: rotateY(180deg);
}


.card .side {
  backface-visibility: hidden;
  border-radius: 6px;
  height: 100%;
  position: absolute;
  overflow: hidden;
  width: 100%;
}
.card .back {
  background: white;
  line-height: 300px;
  text-align: center;
  transform: rotateY(180deg);
}

.card .back img {
  width: 100%;
}
.card .side img {
  width: 100%;

}


/*box display and position*/
section {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  align-items: center;
}

#big-card{
  width: 100%;
  height: 300px;
  position: relative;
  top: 0;
  margin: 0;
  padding: 0;
}
#big-card .card {
  position: relative;
  top: 10%;
  width: 70%;
  height: 80%;
  margin: 0 15%;
}
#big-card h1{
  margin: 5%;
  font-size: 4em;
}
#big-card .card .side {
  background-color: #84152E;
}
#big-card .card .back {
  background-color: transparent;
}
#big-card .card .back img{
  height: 100%;

}

.accordion-container {
  width: 90%;
  height: 2200px;
  position: relative;
  top: 0;
  margin:0;
  padding:0;
  display: flex;
  flex-flow: column nowrap;
  justify-content: flex-start;
  align-items: center;

}

.accordion-item {
  width: 100%;
  height: 15%;
  margin-bottom: 2%;

  display: flex;
  flex-flow: row nowrap;
  justify-content: space-around;
  align-items: center;
}
.card-container {
  width: 40%;
  height: 100%;
  margin: 0;
}
.text {
  width: 50%;
  height: 100%;
  margin: 0;
  text-align: left;
  overflow: scroll;
}
.card-container img{
  width: 100%;
  height: 100%;
}

.accordion-heading,
.accordion-item-body {
  display: block;
}

.side {
  display: flex;
  flex-flow: row nowrap;
  justify-content: center;
  align-items: center;
}


/*Dropdown text*/
.accordion-heading {
  border: 1px solid black;
  padding: .5em;
  margin: 0;
  background-color: black;
}
.accordion-heading:hover {
  background: #84152E;
  cursor: pointer;
}
.accordion-item-body {
  padding: 1em;
  background: #84152E;
}
.hidden {
  display: none;
}
.selected {
  display: block;
}

/*responsive design*/
@media screen and (max-width: 700px) {
  header {
    width: 100%;
    height: 200px;
    margin: 0;
    display: flex;
    flex-flow: row wrap;
    justify-content: space-around;
    align-items: center;
    position: absolute;
    top: 0;
  }
  button {
  width: 25%;
  height: 50%;
  border: 1px solid ghostwhite;
  font-size: 80%;
  }
  button:first-child {
    height:50%;
  }

  section {
    width: 100%;
    margin: 0;
    padding: 0;
    position: absolute;
    top: 200px;
    left: 0;

    display: flex;
    flex-flow: row wrap;
    justify-content: space-around;
    align-items: flex-start;
  }
  #big-card {
    width: 100%;
    height: 150px;
    margin: 0;
  }
  #big-card .card{
    width: 90%;
    margin-left: 5%;
  }
   #big-card .card h1{
    font-size: 2em;
   }

  .accordion-container {
      width: 90%;
      height: 4000px;
      margin:0;
      position: relative;
      top: 0;
      display: flex;
      flex-flow: column nowrap;
      justify-content: flex-start;
      align-items: center;

    }
  .accordion-item {
    width: 100%;
    height: 13%;
    display: flex;
    flex-flow: row wrap;
    justify-content: space-around;
    align-items: center;
  }
  .accordion-item .card-container {
    width: 100%;
    height: 60%;
  }
    .text {
      width: 100%;
      height: 40%;
  }



}


