:root {
    /* Colors */
    /* using https://flatuicolors.com/palette/es */
    --first-color: #ffca09;
    --second-color: #474787;
    --third-color: #ffb142;
    --fourth-color: #ff793f;
    --fifth-color: #2c2c54;
    --sixth-color: #5c646b;
    /* Fonts */
    font-family: copperplate, papyrus, fantasy;
}

/* Styles for common elements */

body {
    margin: 5;
    background-color: var(--fifth-color);
    color: var(--fourth-color);
    height: 200px;
    position: relative;
    border: 0px solid black;
    text-align: left;
    display: flex
}

.footer {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    text-align: right;
    font-size: small;
}

.home {
    text-align: right;
    font-weight: bolder;
    font-size: large;

    a:link,
    a:visited {
        text-decoration: none;
    }
}

.cookies {
    text-align: left;
    padding-left: 2%;
    font-weight: normal;
    font-size: small;

    a:link,
    a:visited {
        text-decoration: none;
    }
}

/* Headlines */
h1 {
    justify-content: center;
    margin-left: 20px;
    margin-top: 40px;
}

h2 {
    text-align: left;
    margin-left: 20px;
    margin-top: 40px;
}

h3 {
    text-align: left;
    margin-left: 30px;
}

code {
    background-color: var(--second-color);
}

/* Links */

a:link {
    text-decoration: none;
    color: var(--fourth-color)
}

a:visited {
    text-decoration: none;
    color: var(--third-color)
}

a:hover {
    text-decoration: underline;
}

a:active {
    text-decoration: underline;
}


/* Lists */

li {
    padding-top: 5px;
    padding-bottom: 0px;
}

ul.ingredients {
    list-style: disc;
    padding-left: 1.2rem;
}

/* Remove regular bullet for the last item */
ul.ingredients li:last-child {
    list-style: none;
    position: relative;
    text-align: right;
    padding-right: 5em;
    /* space for custom marker */
    font-weight: bold;
}

/* Insert custom marker */
ul.ingredients li:last-child::after {
    content: "gKh/100g";
    position: absolute;
    right: 0;
    /* aligns marker on the right */
    font-weight: bold;
    /* optional */
}

ul.lastlist {
    /*preventing the last list on the page from being overlapped by the footer items */
    padding-bottom: 2cm;
}

/* Responsive Navbar */

ul.sidenav {
    list-style-type: none;
    margin: 0;
    padding: 0;
    width: 25dvw;
    background-color: var(--second-color);
    color: var(--fourth-color);
    position: fixed;
    height: 100dvh;
    overflow: auto;
}

ul.sidenav li a {
    display: block;
    color: var(--fourth-color);
    padding: 8px 16px;
    text-decoration: none;
}

ul.sidenav li a.active {
    background-color: #4CAF50;
    color: white;
}

ul.sidenav li a:hover:not(.active) {
    background-color: #555;
    color: white;
}

ul.sidenav li a:visited {
    background-color: #555;
    color: var(--third-color);
}

div.content {
    margin-left: 25dvw;
    padding: 1px 16px;
    height: 100dvh;
}

@media screen and (max-width: 900px) {
    body {
        flex-direction: column;
        height: auto; /* Fix body height constraint on mobile */
    }

    ul.sidenav {
        width: 100%;
        height: auto;
        position: relative;
        display: flex;
        flex-wrap: wrap;
    }

    ul.sidenav ul {
        display: flex;
        flex-wrap: wrap;
        padding: 0;
        margin: 0;
    }

    ul.sidenav li {
        list-style-type: none;
    }

    ul.sidenav li a {
        padding: 15px;
        float: none;
    }

    div.content {
        margin-left: 0;
    }
}

@media screen and (max-width: 400px) {
    ul.sidenav li {
        width: 100%;
    }
    ul.sidenav li a {
        text-align: center;
    }
}

/*
  Buttons 

.container {
  height: 200px;
  position: relative;
}

.center {
  margin: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}


.button-group {
    width: 80%;
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}


.button-01 {
  height: 100px;
  width: 100px;
  border-radius: 20%;
  background-color: var(--third-color);
  font-size: x-large;
  font-weight: bolder;
}

*/