@import url('https://fonts.googleapis.com/css?family=Lato:300,500,700&display=swap');

* {
  box-sizing: border-box;
  /* margin:0; */
}

body {
    /*
  background-image: url('../images/flashcardsoriginal.png');
  background-position: 100px 100px;
  background-repeat: no-repeat;
  background-attachment: fixed;

 IF YOU INCLUDE, do not include the bottom portion

  background-size: cover; 
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover; 
  */

  background-color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  margin: 0;
  margin-top:-70px ;
  overflow: hidden;
  font-family: 'Lato', sans-serif;
}

h1 {
  position: relative;
  letter-spacing: 2px;
  color:#3baf07;

}

h1 button {
  position: absolute;
  right: 0;
  transform: translate(120%, -50%);
  z-index: 2;
}

.btn {
  cursor: pointer;
  display:block;
  background-color: #fff;
  border: 1px solid rgb(0, 148, 44);
  border-radius: 3px;
  font-size: 14px;
  letter-spacing: 2px;
  margin-top: 20px;
  padding: 10px 15px;
  background-color: rgb(247, 247, 247);
}
.btn:hover {
  background-color: rgb(186, 199, 1);
  color:white;
  border: 2px solid rgb(0, 148, 44);
}

.btn-small {
  font-size: 12px;
  padding: 5px 10px;
  border: 1px solid rgb(0, 148, 44);
  background-color:white;
}

.btn-ghost {
  border:2px solid black;
  background-color: transparent;
}
#next {
  border:1px solid black;
}
#next:hover {
  border:2px solid black;
  color:white;
  background-color: rgb(186, 199, 1);
}
#prev {
  border:1px solid black;
}
#prev:hover {
  border:2px solid black;
  color:white;
  background-color: rgb(186, 199, 1);
}
#trash {
  font-size:16px ;
}
#trash:hover {
  font-size:18px ;
}
#delete-card {
  margin-top:7px;
  color:#3baf07;
  letter-spacing:  2px;
  font-size: 18px ;
  font-family: 'Lato', sans-serif;
}
#memory-stick{
  display:flex;
  align-items:center;
  text-align: center;
  justify-content: center;
  position:absolute;
  top:40px;
  left:50%;
}
.clear {
  position: absolute;
  bottom: 30px;
  text-align: center;
  /* left: 50%; */
}

.cards {
  perspective: 1000px;
  position: relative;
  height: 300px;
  width: 500px;
  max-width: 100%;
  background-color: #287a02;
}

.card {
  position: absolute;
  opacity: 0;
  font-size: 1.5em;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  transform: translateX(50%) rotateY(-10deg);
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.card.active {
  cursor: pointer;
  opacity: 1;
  z-index: 10;
  transform: translateX(0) rotateY(0deg);
}

.card.left {
  transform: translateX(-50%) rotateY(10deg);
}

.inner-card {
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.7);
  border-radius: 4px;
  height: 100%;
  width: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.4s ease;
}

.card.show-answer .inner-card {
  transform: rotateX(180deg);
}

.inner-card-front,
.inner-card-back {
  backface-visibility: hidden;
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  background: #fff;
}

.inner-card-front {
  transform: rotateX(0deg);
  z-index: 2;
  padding:0px 7px;
}

.inner-card-back {
  transform: rotateX(180deg);
 padding:0px 7px;

}

.inner-card-front::after,
.inner-card-back::after {
  content: '\f021  Flip';
  font-family: 'Font Awesome 5 Free', Lato, sans-serif;
  position: absolute;
  top: 10px;
  right: 10px;
  font-weight: bold;
  font-size: 16px;
  color: rgb(255, 255, 255);
}

.navigation {
  display: flex;
  margin: 20px 0;
}

.navigation .nav-button {
  border: none;
  background-color: transparent;
  cursor: pointer;
  font-size: 16px;
}

.navigation p {
  margin: 0 25px;
}

.add-container {
  opacity: 0;
  z-index: -1;
  background-color: #f0f0f0;
  border-top: 2px solid rgb(1, 148, 70);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0;
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100%;
  transition: 0.3s ease;
}

.add-container.show {
  opacity: 1;
  z-index: 2;
}

.add-container h3 {
  margin: 10px 0;
}

.form-group label {
  display: block;
  margin: 20px 0 10px;
}

.form-group textarea {
  border: 1px solid rgb(48, 121, 0);
  border-radius: 3px;
  font-size: 16px;
  padding: 12px;
  min-width: 500px;
  max-width: 100%;
}
/*Start of: Media Queries */
/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {

}
/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {

  #flash-card-img{
    margin-top:22%;
    width:200px;
    text-align: center;
  }
  #show{
   display:flex;
   justify-content: center;
   align-items: center;
    text-align: center;

  }
  /* .card {
    text-align: center;
    position: absolute;
    opacity: 0;
    font-size: 1.5em;
    top: 0;
    left: 0;
    max-width:100%;
    width: 90%;
    transform: translateX(50%) rotateY(-10deg);
    transition: transform 0.4s ease, opacity 0.4s ease;
  }
  .form-group {
    display:flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width:95%;
  }
  .cards-container{
    text-align: center;

  }
  .card active {
    text-align:center;

  }
  .inner-card-front, .inner-card-back {
    text-align: center;
  } */

}


/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {

}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {

}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {

}

