html,
body {
    min-height: 100%;
    margin: 0;
    padding: 0;
}

body {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

nav {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
    max-height: 48px;
    padding: 0 2.5em;
    background-color: rgba(255, 255, 255, 0.6);
}

.nav-logo {
    height: 100%;
    max-height: 46px;
    margin-right: 1em;
    text-decoration: none;
    color: inherit;
    text-transform: uppercase;
    font-family: Arial, sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-logo:hover {
    font-weight: 700;
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5em;
    margin: 0 0 0 auto;
    padding: 0;
    list-style: none;
}

.nav-links li {
    position: relative;
    margin: 0;
    text-transform: capitalize;
    font-family: Arial, sans-serif;
    color: #1b1b1b;
    font-weight: 600;
    letter-spacing: 0.1px;
}

.nav-links li small {
    text-transform: lowercase;
}

.nav-links a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #8f2525;
}

.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0.25em 1em;
    color: inherit;
    font: inherit;
    background: transparent;
    border: 0;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.nav-dropdown-toggle:hover {
    color: #8f2525;
    background: rgba(143, 37, 37, 0.15);
    padding: 0.25em 1em;
    border-radius: 3px;
}

.nav-dropdown-toggle span {
    font-size: 1.75em;
    margin-top: 2px;
    display: inline-block;
    transition: transform 0.2s ease;
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    z-index: 100;
    min-width: 230px;
    margin: 0;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 0;
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.nav-dropdown-menu li {
    width: 100%;
    color: whitesmoke;
}

.nav-dropdown-menu a {
    display: block;
    padding: 10px 12px;
    color: whitesmoke;
    white-space: nowrap;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus {
    color: rgb(143, 37, 37);
    background: rgba(255, 255, 255, 0.7);
    font-weight: 550;
}

.nav-dropdown.open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown.open .nav-dropdown-toggle span {
    transform: rotate(180deg);
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

footer {
    display: flex;
    justify-content: center;
    flex-direction: column;
    background-color: rgba(255, 255, 255, 0.6);
    padding: 10px;
    text-align: center;
    min-height: 50px;
    margin-top: auto;
}

footer p {
    margin: 0;
    font-size: 0.8em;
    font-family: Arial, sans-serif;
}

.footer-developer {
    font-size: 0.8em;
    font-family: Arial, sans-serif;
    margin-top: 1em;
    color: #1b1b1b;
}

footer a {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
}


/* ** MESSAGES *************************************/

.messages {
    position: absolute;
    top: 20px;
    left: 50%;
    z-index: 1000;
    width: min(90%, 460px);
    transform: translateX(-50%);
}

.message {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 16px;
    margin-bottom: 10px;
    color: #1b1b1b;
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
    background: whitesmoke;
    border-left: 4px solid #777;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
}

.message-success {
    border-left-color: #3c7a57;
}

.message-error {
    border-left-color: #a33;
}

.message-warning {
    border-left-color: #b8860b;
}

.message-info {
    border-left-color: #4f6870;
}

.message-close {
    padding: 0;
    color: inherit;
    font-size: 1.25rem;
    line-height: 1;
    background: transparent;
    border: 0;
    cursor: pointer;
}