
header {
    background-color: darkblue;
    text-align: center;
    padding: 10px;
    left: 0;
    color: yellow;
    border-radius: 10px;
    border: solid 5px yellow;
}
body {
    background-color: cornflowerblue;
}
footer {
    background-color: darkblue;
    text-align: center;
    padding: 8px;
    color: yellow;
    position: fixed;
    width: 100%;
    bottom: 0;
    left: 0;
}
a, p, div{
    text-decoration: none;
    color: darkblue;
}
h2 {
    margin: 10px;
}

ul {
    list-style-type: none;
    margin-left: 5px;
    padding: 0;
    overflow: hidden;
    background-color: darkblue;
    border-radius: 10px;
}
ul li {
    float: left;
    margin: 5px;
    border: yellow 3px solid;
    border-radius: 10px;
    color: yellow;
}
ul li a {
    display: block;
    color: yellow;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
}
ul li a:hover {
    background-color: yellow;
}

form{
    border-radius: 10px;
    border: solid 1px grey;
}

div.flex-container {
    display: flex;
    /* Show the flex items horizontally */
    flex-direction: column;
}
div.flex-container > div {
    margin: 10px;
    border: solid 1pt grey;
    border-radius: 10px;
    padding: 20px;
    flex: 1;
    background-color: yellow;
    color: darkblue;
}
button{
    margin: 10px;
    border: solid 1pt grey;
    border-radius: 10px;
    padding: 10px;
    flex: 1;
    background-color: yellow;
    color: darkblue;
}
div.tooted{
    color: darkblue;
    background-color: white;
    border: solid 2px blue;
    margin: 20px;
    margin-left: 10px;
    padding: 10px;
    border-radius: 10px;
    left: 0;
}
/* Use media query and show the flex items vertically if screen width is less than 600px */
@media screen and (max-width:600px) {
    div.flex-container {
        flex-direction: column;
    }
}

/*Corner nav */
.topnav {
    position: absolute;
    top: 20px;
    right: 20px;
}
.topnav a {
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: bold;
    color: white;
}
.admin-btn {
    background-color: crimson;
}
.user-btn {
    background-color: seagreen;
}
.mode {
    text-align: center;
    font-weight: bold;
    padding: 8px;
    margin: 10px 0;
    border-radius: 6px;
}
.admin-mode {
    background-color: rgba(220, 20, 60, 0.2);
    color: crimson;
}
.user-mode {
    background-color: rgba(46, 139, 87, 0.2);
    color: seagreen;
}
