:root {
    --purple: #450084;
    --gold: #CBB677;
    --background: white;
    --text: black;
    --headers: white;
}

.dark {
    --purple: #2c1245;
    --gold: #6f623c;
    --background: #303030;
    --text: white;
    --headers: white;
}

main,
aside,
header,
footer {
    padding: 10px;
}

* {
    font-family: Arial, Helvetica, sans-serif;
}

nav {
    font-size: large;
}

body {
    display: flex;
    flex-direction: column;
    margin: 0;
    min-height: 100vh;
}

.middler {
    flex-grow: 1;
    display: flex;
    flex-direction: row;
}

figcaption {
    width: 200;
}

main {
    flex-grow: 1;
    flex-basis: 0;
    color: var(--text);
    background-color: var(--background);
}

header,
footer {
    background-color: var(--purple);
    color: var(--headers);
}

aside {
    background-color: var(--gold);
    flex-basis: 150px;
}

a {
    color: var(--headers);
    transition: color 0.25s;
}

a:hover {
    color: var(--gold);
}

.menu-item-display {
    border: solid #444444;
    border-width: 2px;
    border-radius: 5px;
    padding: 10px;
    cursor: move;
    transition: all 0.3s ease;
}

#item-container {
    display: grid;
    grid-template-rows: repeat(auto-fill, minmax(150px, 1fr));
    grid-template-columns: 1200px;
    gap: 20px;
}

button {
    border: solid #444444;
    border-width: 2px;
    border-radius: 5px;
    background-color: var(--gold);
    color: var(--text);
    font-size: larger;
    transition: background-color 0.25s, color 0.25s;
}

button:hover {
    background-color: var(--purple);
    color: var(--headers);
}

.favorite-item {
    border: solid #444444;
    border-width: 2px;
    border-radius: 5px;
    padding: 10px;
    margin: 10px;
}

.favorite-box {
    float: right;
    box-sizing: border-box;
}

.favorite-item .favorite-check {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.favorite-star {
    color: black;
}

.favorite-item .favorite-check:focus ~ .favorite-star {
    border: 1px solid black;
}

.favorite-item .favorite-check:checked ~ .favorite-star {
    color: var(--gold);
}


.error-dialog {
	position: fixed;
	z-index: 1;
	bottom: 10px;
	background-color: #ff6666;
	width: 90%;
	border: none;
	box-shadow: 5px 5px;
}

.error-dialog-close {
	float: right;
	border: none;
	background: none;
}

.error-dialog-close:hover {
	background: none;
}

@media screen and (max-width: 640px) {
    .middler {
	flex-direction: column;
    }
}
