body {
    display: grid;
    grid-template-areas: "header" "main" "footer";
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
}

header {
    grid-area: header;
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 10px 20px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

header > ul {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}

header > ul > li > a {
    color: #ecf0f1;
    text-decoration: none;
    font-weight: normal;
    transition: color .3s ease-in-out;
}

header > ul > li > a:hover { color: #1abc9c; }

main {
    padding: 20px;
    grid-area: main;
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: flex-start;
    align-items: center;
    overflow: auto;
}

main > h1 {
    color: #ecf0f1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

main > h1::after,
main > h1::before {
    display: block;
    content: '';
    width: 150px;
    height: 3px;
    background-color: #ecf0f1;
    border-radius: 3px
}

section {
    width: 800px;
    background-color: #ecf0f1;
    border: 1px solid #2c3e50;
    line-height: 150%;
    text-align: justify;
}

section > p {
    margin: 20px;
}

section > ul,
section > ol {
    margin: 20px 40px;
    list-style: disc;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

section > ol { list-style: decimal; }

section > ol > li > ol {
    margin: 20px 60px;
    list-style: lower-alpha;
}

section a {
    color: #e74c3c;
}

footer {
    grid-area: footer;
    background-color: #2c3e50;
    color: #ecf0f1;
    text-align: right;
    padding: 10px;
    font-size: 12px;
}

table {
    width: 800px;
    border: 1px solid #2c3e50;
    background-color: #ecf0f1;
    text-align: center;
    padding: 10px;
}

td, th {
    border: 1px solid #2c3e50;
    padding: 5px 10px;
    font-size: 14px;
}

td.hidden { border: none; }

table a {
    text-decoration: none;
    display: block;
    padding: 5px 10px;
    background-color: #3498db;
    color: #ecf0f1;
    transition: background-color .3s ease-in-out;
}

table a.reserve { background-color: #e74c3c; }

form {
    width: 800px;
    background-color: #ecf0f1;
    border: 1px solid #2c3e50;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

form > .element {
    width: 100%;
    display: flex;
    gap: 10px;
    align-items: center;
}

form > .element > label {
    flex: 3;
    text-align: right;
}

form > .element > input,
form > .element > select {
    flex: 5;
    padding: 5px 10px;
}

form > input {
    width: fit-content;
    border: none;
    outline: none;
    display: block;
    padding: 10px;
    background-color: #3498db;
    color: #ecf0f1;
    cursor: pointer;
    transition: background-color .3s ease-in-out;
}

table a:hover,
form > input:hover { background-color: #1abc9c; }

.log {
    width: 800px;
    background-color: #ecf0f1;
    border: 1px solid #2c3e50;
    padding: 20px;
    font-weight: bold;
}

.log-success {
    color: #27ae60;
    border-color: #27ae60;
}

.log-warning {
    color: #f39c12;
    border-color: #f39c12;
}