/* ======== BASE ======== */
/* @font-face {
    font-family: roboto-regular;
    src: url('font/Roboto-Regular.ttf');
}

@font-face {
    font-family: josefin-regular;
    src: url('font/JosefinSans-Variable.ttf');
} */

body {
    /* font-family: system-ui, sans-serif; */
    margin: 0;
    background: #f7f7f7;
    color: #333;
}

/* ======== HEADER ======== */
header {
    background: #ffffff;
    color: #009DB0;
    text-align: center;
    position: relative;
    border-color: #009DB0;
    border-bottom: 5px solid;
    margin-bottom: 1em;
}

.logo {
    width: 100px;
    height: 100px;
    border-radius: 15px;
    margin-top: 10px;
}

/* ======== NAVIGATION ======== */
nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5em;
    flex-wrap: wrap;
}

nav a {
    color: #009DB0;
    /* font-family: josefin-regular; */
    text-decoration: none;
    font-weight: bold;
}

nav .menu-element.is-active {
    background-color: #009DB0;
}

nav .menu-element.is-active span {
    color: #ffffff;
}

.menu-element {
    padding: 0.8em 1.5rem;
}

.menu-element:hover {
    background-color: #009DB0;
}

.menu-element:hover span {
    color: #ffffff;
}

/* ======== MAIN ======== */
main {
    /* min-height: 600px; */
    padding: 2em;
    max-width: 800px;
    margin: auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.219);
}

/* ======== BUTTONS ======== */
.btn {
    display: inline-block;
    background: #009caf;
    color: white;
    padding: 0.7em 1.2em;
    border-radius: 5px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn:hover {
    background: #009caf;
}

.btn.danger {
    background: #d9534f;
}

.btn.danger:hover {
    background: #b52b27;
}

/* ======== FORM ======== */
.form {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

input[type="email"],
input[type="password"] {
    padding: 0.5em;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.error {
    color: red;
    margin-top: 1em;
}

/* ======== FOOTER ======== */
footer {
    background: #ffffff;
    text-align: center;
    padding: 1em;
    margin-top: 2em;
    border-top: 5px solid;
    border-color: #ffcc00;

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1em;

    width: 100%;
    height: 100px;
    position: relative;
    bottom: 0;
    left: 0;
}

.footer-text {
    width: 12%;
    color: #009DB0;
    /* font-family: josefin-regular; */
    flex-wrap: wrap;
    line-height: 1.2em;
}

/* ======== HAMBURGER MENU ======== */
.menu-toggle {
    display: none;
    position: absolute;
    top: 1em;
    right: 1em;
    background: none;
    border: none;
    cursor: pointer;
    color: white;
    font-size: 1.8em;
}

.menu-toggle:focus {
    outline: none;
}

.footer-logo {
    height: 50px;
}

/* ======== RESPONSIVE ======== */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 0;
        background: rgba(0, 156, 175, 0.20);
        max-height: 0;
        overflow: hidden;
    }

    nav.open {
        max-height: 300px;
        padding-bottom: 1em;
    }

    nav a {
        display: block;
        margin: 0.5em 0;
    }

    .menu-toggle {
        display: block;
        color: #048ea1;
        font-size: 3em;
    }

    .footer {
        display: block;
    }

    .footer-text {
        width: 100%;
    }
}

@media (max-width: 480px) {
    main {
        padding: 1.2em;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}