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

h3 {
  margin-bottom: 10px;
  text-align: center;
}

a {
  text-decoration: none;
}

main {
  margin: 0 15%;
}

.page {
  display: none;
}

.page.show {
  display: block;
}

/* footer styling*/

footer {
  font-size: 17px;
  text-align: center;
  margin-top: 0.5%;
}

.footer-container {
  color: white;
  background: #54086d;
  position: absolute;
  bottom: 0;
  width: 100%;
  z-index: 999;
  text-align: center;
  line-height: 2;
}

/* Home section ============================== */

.homesection {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.homesection h1 {
  margin-top: 30px;
  margin-bottom: 0.5px;
  text-align: center;
  font-size: 40px;
  color: #54086d;
}

.homeCardContainer {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  flex-wrap: wrap;
  width: 100%;
  margin: auto;
  margin-top: 10px;
  padding: 10px 10px 20px;
  margin-left: 100px;
}

.homeCards {
  border-radius: 30px;
  padding: 80px;
  text-align: center;
  font-size: 18px;
  color: #f2f2f2;
  word-wrap: break-word;
  width: 400px;
  height: 200px;
  margin: 10px;
  background-color: rgb(230, 127, 44);
  box-shadow: 0 2px 4px 0 rgba(2, 2, 2, 0.5);
}

/* =========================================== */

/* Flashcard styling ========================= */

.flashhcardSection {
  flex-direction: column;
}

.flashcardHeading {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#signOut {
  flex-wrap: wrap;
  margin-top: 50px;
}

button {
  margin-top: 0%;
  padding: 7px;
  outline: none;
  cursor: pointer;
  border: 1px solid lightgrey;
  border-radius: 5px;
  background-color: rgb(255, 255, 255);
}

button:hover {
  background-color: rgba(0, 0, 0, 0.1);
  border: solid #26e4eb 1px;
  background: #07adb3;
  color: white;
  background-image: -webkit-linear-gradient(top, #1e62d0, #07adb3);
  background-image: -moz-linear-gradient(top, #1e62d0, #07adb3);
  background-image: -ms-linear-gradient(top, #1e62d0, #07adb3);
  background-image: -o-linear-gradient(top, #1e62d0, #07adb3);
  background-image: -webkit-gradient(to bottom, #1e62d0, #07adb3);
}

.createCardSection {
  display: none;
  width: 380px;
  margin: auto;
  padding: 20px;
  margin-top: 35px;
  border-radius: 5px;
  background-color: whitesmoke;
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.5);
}

.createBtns {
  display: flex;
  justify-content: space-around;
}

.createSection textarea {
  padding-top: 10px;
  padding-left: 5px;
  width: 100%;
  border-radius: 5px;
  border: 1px solid lightgrey;
}

.flashcardContainer {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  flex-wrap: wrap;
  width: 100%;
  margin: auto;
  margin-top: 10px;
  padding: 0 10px;
  padding-bottom: 0px;
}

.flashcard {
  word-wrap: break-word;
  width: 370px;
  height: 200px;
  margin: 10px;
  background-color: white;
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.5);
}

.flashcard p {
  display: none;
}

.showDisplay {
  display: block;
}

@media (max-width: 600px) {
  .flashcard {
    margin: 10px auto;
  }
}

/* =========================================  */

/* sidebar styling */

.sidebar {
  position: fixed;
  left: -240px;
  width: 240px;
  height: 100%;
  background-color: #54086d;
  transition: all 0.5s ease;
}

.sidebar h2 {
  font-size: 25px;
  color: white;
  text-align: center;
  line-height: 70px;
  background: #29024e;
  user-select: none;
}

.sidebar ul a {
  display: block;
  height: 65%;
  width: 100%;
  line-height: 80px;
  font-size: 20px;
  color: white;
  padding-left: 40px;
  box-sizing: border-box;
  border-top: 1.5px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1.5px solid rgb(199, 194, 194);
  transition: all 0.4s ease;
}

ul li:hover a {
  padding-left: 50px;
  border: solid #26e4eb 1px;
  background: #07adb3;
  color: white;
  background-image: -webkit-linear-gradient(top, #1e62d0, #07adb3);
  background-image: -moz-linear-gradient(top, #1e62d0, #07adb3);
  background-image: -ms-linear-gradient(top, #1e62d0, #07adb3);
  background-image: -o-linear-gradient(top, #1e62d0, #07adb3);
  background-image: -webkit-gradient(to bottom, #1e62d0, #07adb3);
}

.sidebar ul a i {
  margin-right: 16px;
}

#check {
  display: none;
}

label #barbtn,
label #cancel {
  position: absolute;
  cursor: pointer;
  background: #29024e;
  color: white;
  border-radius: 5px;
  border: 1px solid white;
  font-size: 29px;
  height: 45px;
  width: 45px;
  text-align: center;
  line-height: 40px;
  transition: all 0.5s ease;
}

label #barbtn {
  left: 15px;
  top: 5px;
  font-size: 25px;
  color: white;
  padding-left: 6px 12px;
}

label #cancel {
  z-index: 1105;
  left: 185px;
  top: 15px;
  font-size: 25px;
  color: white;
  padding: 4px 5px;
  opacity: 0;
  visibility: hidden;
}

#check:checked ~ .sidebar {
  left: 0;
}
#check:checked ~ label #barbtn {
  margin-left: 245px;
  opacity: 0;
  visibility: hidden;
}
#check:checked ~ label #cancel {
  margin-left: 0.3px;
  opacity: 1;
  visibility: visible;
}

#check {
  display: none;
}

#check:checked ~ .sidebar {
  left: 0;
}

/* =========================================  */

/* Scoreboard section ======================== */

.scoreboardSection h2 {
  text-align: center;
}

.scoreTable {
  margin-top: 20px;
  border-collapse: collapse;
  width: 100%;
}

.scoreTable td,
.scoreTable th {
  border: 1px solid #ddd;
  padding: 8px;
}

.scoreTable tr:nth-child(even) {
  background-color: #f2f2f2;
}

.scoreTable tr:hover {
  background-color: #ddd;
}

.scoreTable th {
  padding-top: 12px;
  padding-bottom: 12px;
  text-align: left;
  background-color: #54086d;
  color: white;
}

/* =========================================  */


.form {
  margin: 50px auto;
  width: 300px;
  padding: 30px 25px;
  background: white;
}
h1.login-title {
  color: #666;
  margin: 0px auto 25px;
  font-size: 25px;
  font-weight: 300;
  text-align: center;
}
.login-input {
  font-size: 15px;
  border: 1px solid #ccc;
  padding: 10px;
  margin-bottom: 25px;
  height: 25px;
  width: calc(100% - 23px);
}
.login-input:focus {
  border-color:#6e8095;
  outline: none;
}
.login-button {
  color: #fff;
  background: #54086d;
  border: 0;
  outline: 0;
  width: 100%;
  height: 50px;
  font-size: 16px;
  text-align: center;
  cursor: pointer;
}
