* {
  box-sizing: border-box;
}


body {
  font-family: "Elms Sans", sans-serif;
  font-size: 17px;
  background-image: url("https://images.unsplash.com/photo-1619147531445-82ddcc8d8fb1?q=80&w=1670&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D");
  background-size: cover;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.gridlayout {
  width: 1400px;
  display: grid;
  grid-template: 
    "header header" auto
    "nav nav" auto
    "main main" auto
    "footer footer" auto;
}

/* TABLE */

table, td, th {
  border: none;
  padding: 20px;
  text-align: center;
  justify-content: center;
  align-items: center;
  border-spacing: 20px;
  
}

table {
  border-collapse: separate;
  margin: auto;
  width: 100%;
}

td {
  max-width: 200px;
}

td:hover {background-color: coral;}


/* FONTS */

.elms-sans {
  font-family: "Elms Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
}


/* NAVIGATION */


nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: auto;
  padding: 12px;
  background: transparent;
  grid-area: nav;
  
}

nav a, .dropbtn {
  color: #fff0fe;
  padding: 10px 20px;
  text-decoration: none;
  background-color: #220e42;
  display: flex;
  font-family: "Elms Sans", sans-serif;
  font-weight: bold;
  font-size: 20px;
  letter-spacing: 3px;
  text-transform: uppercase;
  border-style: solid;
  border-color: #FFC467 ;
  
}

nav.dropdown {
  display: inline-block;
}

nav a:hover, .dropdown:hover .dropbtn {
  background-color: #220e42;
}

.dropdowncontent {
  display: none;
  position: absolute;
  background-color: #000000;
  min-width: 160px;
  z-index: 1;
}

.dropdowncontent a {
  color: #fff0fe;
  padding: 10px 20px;
  text-decoration: none;
  display: block;
  text-align: left;
}

.dropdowncontent a:hover {background-color: #000;}

.dropdown:hover .dropdowncontent {
  display: block;
  color: #000000
}


/* HEADER */ 

header {
  color: #fff;
  padding: 5px 5px;
  text-align: center;
  grid-area: header;
    
}

/* MAIN BODY */

main {
  overflow-y: auto;
  padding-left: 10px;
  grid-area: main;
  gap: 10px;
  justify-content: center;
  height: auto;
 
}

a {
  color: #FFC467;
}

a:hover {
  color: #ff7583;
}

/* MAIN SECTION */

section {
  background: #09420f;
  color: #fffef0;
  padding: 20px;
  margin-bottom: 15px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  grid-area: main;
  justify-content: center;
  align-items: center;
  border-style: solid;
  border-width: 2px;
  border-color: #000;
  text-align: center;
}

section img {
  align-items: center;
  justify-items: center;
  max-width: 100%;
}


section h1, h2 {
  margin-top: 0;
  text-transform: uppercase;
  color: #fff;
  text-align: center;
  justify-content: center;
}

/* CHARACTER CARD GRID */


.container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-items: center;
  gap: 5px;
}

.leftimage {
  float: left;
  margin: 25px;
}

.rightimage {
  float: right;
  margin-left: 25px;

}

.blocktext {
  vertical-align: middle;
  overflow: hidden;
}

.container .charactergrid {
  display: grid;
  justify-items: center;
  align-items: center;
  max-width: 30%;
  margin: 10px;
} 

.container .charactergrid h2{
  display: grid;
  flex-direction: column;
  flex-wrap: wrap;
   justify-content: center;
  text-align: center;
  overflow: hidden;
  margin-top: 5px;
}


.container .icon {
  max-width: 200px;
  
  
}


/* FOOTER */


footer {
  padding: 24px;
  text-align: center;
  color: #fff;
   font-size: 0.8rem;
  grid-area: footer;
}

footer a {
  color: white;
}