* {
  box-sizing: border-box;
}

body {
  right-margin: 1px;
  left-margin: 1px;
  padding: 1px;
  font-family: 'American Typewriter', serif;
  font-size: 22px;
  background-color: #a81507;
}
header {
  background-color: clear;
  padding: 0px;
  font-size: 40px;
  font-color:#fafaf7;
  text-align: center;
  border-bottom: 2px solid black;
  border-top: 2px solid black;
  color: #fafaf7;
  text-align: center;
  font-family: Verdana;
  font-style: italic;
  font-weight: bold;

}
h1 {
  color: #fafaf7;
  text-align: center;
  font-family: Verdana;
  font-style: italic;
  font-weight: bold;
  padding: 0px;

}
h2 {
  Color: black;
  Text-align: center;
}

h3 {
  Color: black;
  Background: clear;
  Text-align: left;
  margin-left: 1px;
  Padding: 1px;
}
h4 {
  Padding:0px;
  font-weight: normal;
  font-family: American Typewriter;
  text-align: center;
}

p {
  color: black;
  text-align: left;
  margin-left: 0px;
  margin-right: 0px;
  font: typewriter;
  font-size: 15px;
  padding: 0px;
  }

/* Style the topnav */
ul.topnav {
  display: flex;
  list-style-type: none;
  margin: 0;
  padding: 0;
  background-color: clear;
}

/* Style links in topnav */
ul.topnav li a {
  display: block;
  color: #f1f1f1;
  padding: 12px 16px;
  text-decoration: none;
}

/* Change color on hover */
ul.topnav li a:hover {
  background-color: #f1f1f1;
  color: gray;
}
div {
  border: 0px #a81507;
  padding: 1px;
  margin: 1px;
}
.grid-container {
  display: grid;
  grid-template-columns: auto auto auto auto;
  grid-template-rows: auto auto auto auto;
  grid-gap: 5px;
  background-color: black;
  padding: 10px;
}

.grid-container > div {
  background-color: rgba(255, 255, 255, 0.9);
  text-align: center;
  padding: 12px;
  font-size: 18px;
}
div.a {
  position: relative;
  text-align: center;
  left: 25px;
  width: 750px;
  height: 450px;
  border: 0px solid black;
  Margin: 15%
}

div.b {
  position: absolute;
  left: 10px;
  width: 210px;
  height: 280px;
  border: 0px solid blue;
  Margin: 3%
} 

div.c {
  position: absolute;
  text-align: left;
  left: 240px;
  width: 210px;
  height: 280px;
  border: 3px solid green;
  Margin: 3%
} 
div.d {
  position: absolute;
  text-align: left;
  left: 460px;
  width: 210px;
  height: 280px;
  border: 3px solid green;
  Margin: 3%
} 
div.background {
  
  background: url(https://images3.penguinrandomhouse.com/cover/9780806544601) no-repeat;
  position: absolute;
  text-align: left;
  left: 10px;
  width: 750px;
  height: 600px;
  border: 0px black;
  Margin: 0%
}

div.transbox {
  
  position: relative;
  Margin-left: 5px;
  Margin-top: 1px;
  background-color: rgba(255, 255, 255, .1);
  border: 1px black;
  Text-align: left;
  
}

div.e {
  position: relative;
  text-align: left;
  left: 465px;
  width: 600px;
  height: 800px;
  border: 3px solid green;
  Margin: 3%
} 

.dropbtn {
  position: relative;
  background-color: #a81507;
  color: #f1f1f1;
  padding: 0px;
  font-size: 22px;
  font-family:"American Typewriter";
  font-color: white;
  border: none;
  cursor: pointer;
  margin-left: 753px;
  margin-top: 10px;
}

.dropdown {
  position: absolute;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: gray;
  min-width: 150px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  
}

.dropdown-content a {
  color: white;
  padding: 1px 1px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  background-color: gray;
}

.dropdown:hover .dropdown-content {
  display: block;
  background-color: clear;
}

.dropdown:hover .dropbtn {
  background-color: clear;
}
div.flex-container {
  display: flex;
  flex-direction: row;
}

div.flex-container > div {
  margin: 5px;
  gap: 2px;
}
@media screen and (max-width: 1200px) {
  div.flex-container {
     flex-direction: column;
     }
 }
img {
  float: left;
}

/* Style the footer */
footer {
  background-color: clear;
  padding: 8px;
  text-align: center;
}
.typewriter {
    letter-spacing: .1em;
    margin: 1px auto;
    overflow: hidden;
    white-space: nowrap;
    border-right: .12em solid black;
    animation: typing 6.5s steps(30, end), blinking-cursor .8s step-end infinite;
  }
  
  @keyframes typing {
    from {
      width: 0
    }
    to {
      width: 90%
    }
  }
  
  @keyframes blinking-cursor {
    from,
    to {
      border-color: transparent
    }
    50% {
      border-color: black;
    }
}
div.x {
  width: 100%;
  height: 10%;
  background-color: clear;
  position: relative;
  animation-name: myAnimation;
  animation-duration: 4s;
}

@keyframes myAnimation {

  25%  {background-color:clear; left:500px; top:0px;}

  75%  {background-color:clear; left:0px; top:0px;}
  100% {background-color:clear; left:0px; top:0px;}
}

