html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    background: white;
    color: #333;
    font-family: "Arial", serif;
    font-size: 20px;
    height: 100%;
}

/* Header */
header {
    background-color: #ffffff;
    color: #ffc60b;
    text-align: left;
    padding: 20px;
    font-family: "Verdana", serif;
    font-weight: bold;
    letter-spacing: 5px;
    z-index: 1000;
}

header h1 {
    background-color: #333;
    border-radius: 5px;
    padding: 10px;
}

h1, h2 {
    margin: 0;
}

/* Nav */
nav {
    padding: 0;
    box-shadow: rgba(0,0,0,0.1) 0 5px 10px;
}

nav ul {
    display: flex;
    list-style-type: none;
    height: 40px;
    justify-content: flex-start;
    align-items: center;
    background-color: #ffffff;
    gap: 20px;
    border-bottom: 1px solid #d8d8d8;
    border-top: 1px solid #d8d8d8;
    margin: 0;
    padding: 10px 0 10px 20px;
}

nav ul a {
    text-decoration: none;
    color: #333333;
    font-weight: bold;
    padding: 10px;
}

nav ul a:hover {
    background-color: #ffc60b;
    border-radius: 5px;
}

/* Main */
main {
    flex: 1 1;
    margin-bottom: 40px;
}

#homepage_welcome, #homepage_nav, #homepage_workers {
    width: 50%;
    height: 300px;
    justify-self: center;
    background-color: #fdfcf8;
    padding: 10px;
    border-radius: 10px;
    margin: 20px;
    box-shadow: rgba(0,0,0,0.1) 0 5px 10px;
    line-height: 1.5;
    border-bottom: 3px solid #d8d8d8;
    border-top: 3px solid #d8d8d8;
}

#homepage_nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

#homepage_nav_products {
    display: flex;
    flex-direction: row;
    gap: 10px;
    width: 100%;
}

#homepage_nav_products .product {
    height: 200px;
    background-color: white;
    box-shadow: none;
}

#homepage_nav a {
    text-decoration: none;
    color: #333333;
    font-weight: bold;
    padding: 10px;
}

#homepage_nav a:hover {
    background-color: #ffc60b;
    border-radius: 5px;
}

#homepage_workers {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
}

/* Footer */
footer {
    background-color: #ffffff;
    border-top: 1px solid #d8d8d8;
    padding: 10px;
    text-align: center;
    bottom: 0;
    height: 50px;
    color: #333;
    flex: 0;
}

div.flex-container {
    display: flex;
    flex: 1;
    flex-direction: column;
    height: 100%;
}

div.flex-container > div {
    margin: 5px;
    padding: 5px;
    height: 100%;
}

/* Product */
.product {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background-color: #fdfcf8;
    width: 420px;
    height: 300px;
    padding: 20px;
    border-radius: 5px;
    box-shadow: rgba(0,0,0,0.1) 0 5px 10px;
    border-bottom: 3px solid #d8d8d8;
    border-top: 3px solid #d8d8d8;
}

.product h2 {
    margin: 0;
}

.product-container {
    display: flex;
    flex-direction: row;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Admin */
#admin_menu {
    border-right: 1px solid #d8d8d8;
    width: 250px;
    padding: 20px;
    height: 100%;
}

#admin_menu ul {
    list-style-type: none;
    padding: 0;
}

#admin_menu ul li {
    margin-top: 10px;
}

#admin_menu a {
    text-decoration: none;
    color: #333333;
    padding: 5px;
}

#admin_menu a:hover {
    background-color: #ffc60b;
    border-radius: 5px;
}

#product_form {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 10px;
    height: 100%;
    width: 350px;
    padding: 10px 20px 0 20px;
    font-size: 20px;
    background-color: #fdfcf8;
    box-shadow: rgba(0,0,0,0.1) 0 5px 10px;
    border-radius: 5px;
    border-bottom: 3px solid #d8d8d8;
    border-top: 3px solid #d8d8d8;
}

#product_form input, textarea {
    font-family: "Arial", serif;
    font-size: 15px;
    padding-left: 5px;
    resize: none;
}

#product_form input {
    height: 30px;
}

#product_form textarea {
    height: 100px;
}

/* Table */
#product_table {
    border-collapse: collapse;
    width: 80%;
    height: 500px;
}

#product_table th {
    background-color: #333;
    color: #ffc60b;
    font-size: 25px;
}

#product_table td, th {
    border: black solid 2px;
    padding: 5px;
}
