body {
    font-family: 'DM Serif Display', serif;
    display: block;
    background-color: #f2f1eb;
    animation: fadeInUp 0.6s ease forwards;
}

h1 {
    text-shadow: 4px 2px 4px #aeaeae;
}


input {
    width: 100%;
    height: 33px;
    margin: 10px 0;
}

button {
    font-family: 'DM Serif Display', serif;
}

/* Jakub: can we rename this to something else, because it applies to all h1 which is a disaster... */

.navbar {
    display: block;
    width: 100%;
    position: sticky;
    top: 0;
    color: #f2f1eb;
    background-color: #1c2a12;
    height: 70px;
    z-index: 1000;
    border-radius: 12px;

}

.navbar ul {
    list-style: none;
    margin: 0;
    padding: 0 1rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    /* center links horizontally */
    height: 100%;
    /* follow the navbar height */
}

.navbar a {
    display: inline-block;
    padding: 0.45rem 0.75rem;
    text-decoration: none;

    font-size: x-large;
    text-align: center;
}

.navbar>a {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    padding: 0;
    display: block;
    background: none;
    border: none;
}

/* Make navbar links white across the site */
.navbar a,
.navbar a:visited {
    color: #ffffff;
}

.navbar a:hover,
.navbar a:focus {
    opacity: 0.9;
    transform: scale(1.3);
    transition: transform 0.3s ease;
}

.navbar>a:hover,
.navbar>a:focus {
    transform: translateY(-50%);
}

@media (max-width: 600px) {
    .navbar ul {
        flex-direction: column;
        align-items: stretch;
        padding: 0.25rem;
    }

    .navbar a {
        padding: 0.6rem 0.75rem;
    }
}

/* top-left label inside navbar */
.nav-left {
    position: absolute;
    left: 8px;
    top: 50%;
    /* center vertically inside the navbar */
    transform: translateY(-50%);
    color: #ffffff;
    font-weight: 600;
    font-size: xx-large;
    /* match the links' size; change if needed */
    margin-left: 3px;
}

/* top-right label inside navbar */
.nav-right {
    position: relative;
    color: #ffffff;
    font-weight: 400;
    font-size: x-large;
    margin-left: 3px;
    cursor: pointer;
}

.navbar a .nav-right {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
}

.navbar>a:hover .nav-right,
.navbar>a:focus .nav-right {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}