/* CSS Document */

@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');

/* tags */

body {
	background-color: #444;
	font-family: 'Roboto', sans-serif;
	display: flex; flex-direction: column; min-height: 100vh; margin: 0;
	border: 15px solid #333; box-sizing: border-box;
}

p,
p a {
	color: #eee
}

h1 {
	color: #eee;
	text-align: center;
}

details > :not(summary) {
    margin-left: 15px;
}

summary {
	font-weight: 600
}

/* classes */

.hidden {
	display: none;
}

.banner {
	text-align: center;
	background-color: #333;
	padding: 1%
}

.home_page {
	color: #eee;
	text-align: center;
}

.character_page {
	color: #eee;
	padding-left: 2%; padding-right: 2%;
}

/* IDs */

#header,
#footer {
	padding: 2%;
	background-color: #333;
	color: #eee;
	text-align: center;
}

#header {
	font-size: 120%
}

#header a,
#footer a {
	color: #aaa;
	text-decoration: none;
	white-space: nowrap;
}

#header .active,
#header a:hover,
#footer a:hover {
	color: #eee;
}

#content {
	flex: 1
}

/* Dropdown */

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    display: none;
    position: absolute;
    background: #333;
    min-width: 150px;
    padding: 5px;
}

.dropdown-menu a {
    display: block;
    padding: 5px;
    text-decoration: none;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

/* cards */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
	padding: 5%
}

.card-grid-small {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
	padding: 5%
}

.card {
    background-color: #333;
    border-radius: 10px;
    color: #eee;
    border: 1px solid #444;
}

.card-grid .card {
    padding: 20px;
}

.card-grid-small .card {
    padding: 10px;
}

.card h2 {
	text-align: center;
}

.card img {
	width: 100%;
	border-radius: 10px
}