body{
  box-sizing: border-box;
  background-color: #f3eec3;
  font-family: American Typewriter;
  letter-spacing: 0.15em;
  padding: 70px;
  margin: 0;
  font-weight: 400;
  text-align: center;
}

p {
  font-size: 30px;
}

a:-webkit-any-link {
  text-decoration:none;
}

h1 {
  color: #283475;
  font-size: 80px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 400;
  font-style: normal;
}

h1 a {
  color: #283475;
  font-weight: 500;
}

/* Base Button Style */
.btn {
  position: relative;
  display: block;
  width: 60%;
  margin: 50px auto 20px;
  padding: 10px;
  background-color: #fff;
  border: 11px solid #283475;
  color: #000;
  text-align: center;
  text-decoration: none;
  transform-style: flat;
  transition: all 250ms ease-out;
  font-weight: 500;
  font-size: 30px;


  &:before,
  &:after {
      content: "";
      position: absolute;
      z-index: -2;
    	transition: all 250ms ease-out;
  }
}

/* Curl effects – curls corners on hover */
.paper-curl,
.paper-curl-right {
  &:before,
  &:after {
    bottom: 12px;
    width: 50%;
    height: 55%;
    max-width: 200px;
    max-height: 100px;
	 box-shadow: 1px 8px 12px rgba(31, 31, 31, 0.6);
  }
  &:before {
    left: 10px;
  }
  &:after {
    right: 10px;
  }

  &:hover {
    &:before,
    &:after {
      box-shadow: 1px 8px 12px rgba(31, 31, 31, 0.8);
    }
    &:before {
	    transform: skew(-8deg) rotate(-3deg);
    }
    &:after {
      transform: skew(8deg) rotate(3deg);
    }
  }
}
.paper-curl {
  &:hover {
    border-radius: 0 0 40% 40% / 0 0 30% 30%;
  }
}
.paper-curl-right {
  &:before {
    display: none;
  }

  &:hover {
    border-radius: 0 0 40% 0 / 0 0 30% 0;
	}
}

.paper.paper-curl-right p {
  border: 2px solid #283475;
    padding: 20px 10px;
    margin: 0;
    font-family: cursive;
    font-size: 35px;
}

h2{
  font-size: 40px;
  font-weight: 400;
  color: #283475 ;
  font-family: "Space Grotesk", sans-serif;
  background-color: #fff;
  width: 20%;
  padding: 12px;
  margin: auto;
}

.book-spread h2 {
  font-family: "Space Grotesk", sans-serif;
  color: #283475;
  width: auto;
    background: none;
    margin-bottom: 20px;
}



#top-img {
  width: 80%;
  display: block;
  margin: 50px auto;
}

#top h2, #top p,  #top h2 a, #top p a {
  color: #000;
}




p span {
  font-weight: 400;
}

ul {
    margin: 40px auto -60px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: left;
    align-items: baseline;
}

li {
    list-style: none;
    width: 30%;
    margin: 10px;
    margin-bottom: 70px;
}

li img {
  width: 100%;
}

.modal-open-button {
  padding: 10px 20px;
  color: white;
  text-decoration: none;
  cursor: pointer;
  background-color: #777608;
  border: none;
  border-radius: 5px;
  font-weight: 400;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1;
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background-color: rgb(0 0 0 / 60%);
}

.modal-content {
  padding: 20px;
  font-weight: 400;
}


.modal-content h2 {
    color: #283475;
    width: auto;
    background: none;
    margin-bottom: 20px;
}

.modal-content hr {
  width: 120%;
  margin-left: -10%;
  margin-right: -10%;
  border-top: 5px double;
  margin-top: -14px;
  border-color: #283475;
}

.modal-content hr.single-line {
  width: 120%;
  margin-left: -10%;
  margin-right: -10%;
  border-top: 1px solid;
  margin-top: -14px;
  border-color: #283475;
}

.modal-content h3 {
    font-size: 30px;
}

.modal:target {
  display: flex;
}

.close {
  position: absolute;
  top: 40px;
  right: 40px;
  font-size: 100px;
  color: #283475;
  text-decoration: none;
  cursor: pointer;
  transform: translate(50%, -50%);
}

.modal-wrapper {
  position: relative;
  width: 70%;
  /* max-width: 500px; */
  max-height: 70%;
  padding: 20px 40px;
  margin: auto;
  overflow: scroll;
  background-color: #fffb77;
  border-radius: 5px;
  color: #283475;
  background-image: url("https://www.transparenttextures.com/patterns/textured-paper.png");
  text-align: left;
}
