/* Default & Body */

html {
    --primary: #077A7D;
    --secondary: #FFC845;
    --dark: #06202B;
    --light: #FFF9F0;
    --text: #3A3A3A;
    --neutral-light: #F5F5F5;
    --neutral-dark: #333333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--light);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    box-sizing: border-box;
}

/* Header */

header {
    background-color: var(--dark);
    color: white;
    padding: 1rem;
    text-align: center;
    height: 130px;
}

/* Navigation */

.nav-main{
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    min-height: calc(100vh - 246px);

}

nav {
    background-color: var(--primary);
    padding: 1rem;
}

nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

nav a:hover {
    background-color: var(--secondary);
    color: var(--dark);
}

nav .active {
    background-color: var(--secondary);
    color: var(--dark);
    font-weight: bold;
}

/* Content */

main {
    flex: 1;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Buttons */

.btn {
    display: inline-block;
    background-color: var(--secondary);
    color: var(--dark);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 1rem;
    transition: transform 0.3s;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-3px);
}

/* Footer */

footer {
    background-color: var(--dark);
    color: white;
    width: 100%;
    margin: 0;
    padding: 20px;
    min-height: 100px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    /* display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem; */
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    margin-bottom: 50px;
}

footer a {
    color: var(--secondary);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* --------------------------------------------- */

/* Home & About */

.simple-textbox .center{
    text-align: center;
}

.simple-textbox table{
    margin: 10px 0;
}

table, th, td{
    border: 1px solid #999;
    border-collapse: collapse;
}

th, td{
    padding: 4px;
}

/* Products */

.products-box{
    text-align: center;
    display: flex;
    flex-direction: column;
}

.products-box .products-title{
    margin-bottom: 10px;
}

.products-box .product{
    margin: 10px;
    border: 1px solid #ccc;
    border-radius: 10px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: start;
    justify-content: left;
}

.products-box .product img{
    max-width: 100%;
    width: 300px;
    padding: 10px;
}

.products-box .product .product-text{
    text-align: left;
    padding: 10px;
}

/* Gallery */

.gallery-box{
    margin: auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.gallery-box .gallery-title{
    margin-bottom: 10px;
}

.gallery-box .gallery-content{
    margin: 10px;
    padding: 10px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.gallery-content .gallery-image{
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: fit-content;
    margin: 10px;
}
.gallery-content .gallery-image.no-border{
    border: none;
}

.gallery-image img{
    max-width: 100%;
    width: 300px;
}

.gallery-image span{
    margin-top: 5px;
    color: #555;
    font-style: italic;
}

/* Contact */

.contact-box{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-title{
    text-align: center;
    margin-bottom: 10px;
}

.contact-box form{
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    width: 500px;
    max-width: 90vw;
    margin: 10px auto;
}

form .form-group{
    display: flex;
    flex-direction: column;
    margin-bottom: 5px;
}

form .form-group input,
form .form-group textarea{
    font-size: 15px;
    padding: 5px;
    font-family: Arial, Helvetica, sans-serif;
    border: 1px solid #ccc;
}
form .form-group textarea{
    resize: vertical;
    height: 100px;
}
form .form-group label{
    font-weight: bold;
}

/* Media Queries */

/* Medium */
@media only screen and (max-width: 800px) {
    .nav-main{
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
    }
    nav ul {
        flex-direction: row;
        flex-wrap: nowrap;
    }
    .footer-content {
        flex-direction: column;
        margin-bottom: 50px;
    }
    .footer-content *{
        margin-bottom: 20px;
    }
    .footer-content *:last-child{
        margin-bottom: 0px;
    }
}

/* Small */
@media only screen and (max-width: 600px) {
    nav ul {
        flex-direction: column;
        flex-wrap: nowrap;
    }
    .products-box .product{
        flex-direction: column;
        align-items: start;
        justify-content: left;
    }
}