:root {
    --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans,
        Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    --brown-light: #986536;
    --brown-dark: #663200;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font);
}

button,
.button {
    display: inline-block;
    font-size: 16px;
    border-radius: 8px;
    font-family: var(--font);
    padding: 8px 16px;
    color: #fff;
    background-color: #2b6cb0;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.danger,
.button--danger {
    background-color: #d9534f;
}

.layout {
    background-color: #fff;
    min-height: 100vh;
    padding: 16px;
}

.layout__content {
    max-width: 1250px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
}

.app-header {
    display: flex;
    justify-content: space-between;
    padding: 16px;
    margin-bottom: 32px;
    background-color: #f3dcbb;
    border-radius: 8px;
}

.app-header a {
    color: #000;
    text-decoration: none;
}

.navigation {
    padding-right: 8px;
    font-size: 20px;
}

.navigation ul {
    height: 100%;
    align-items: center;
    gap: 16px;
    display: flex;
    list-style: none;
}

.navigation a:hover {
    text-decoration: underline;
}

.sidebar {
    flex: 1;
    border: 2px solid #ccc;
    border-radius: 8px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

form,
fieldset {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 16px;
}

fieldset {
    border: none;
}

form label {
    width: 100%;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

form input,
form select,
form textarea {
    font-size: 1rem;
    display: block;
    padding: 12px;
    border: 1px solid #818181;
    border-radius: 4px;
    width: 100%;
}

form input:disabled,
form select:disabled,
form textarea:disabled {
    background-color: #ebebe4;
    opacity: 0.5;
}

.page-error {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #b33939;
    border: 2px solid #b33939;
    background-color: #fff6f6;
    border-radius: 8px;
}

.errors {
    width: 100%;
    color: #b33939;
    border: 2px solid #b33939;
    background-color: #fff6f6;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.errors ul {
    padding-left: 16px;
}

.falling-emoji {
    position: fixed;
    top: -4em;
    font-size: 4em;
    animation: falling-emoji 5s linear infinite;
}

@keyframes falling-emoji {
    0% {
        transform: translateY(calc(0% - 4em));
    }
    100% {
        transform: translateY(calc(100vh + 4em));
    }
}
