/* Fonts */
@font-face {
    font-family: 'robotobold';
    src: url('fonts/roboto-bold-webfont.woff2') format('woff2'),
         url('fonts/roboto-bold-webfont.woff') format('woff');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'quicksandregular';
    src: url('fonts/quicksand-regular-webfont.woff2') format('woff2'),
         url('fonts/quicksand-regular-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

/* Global Styles */
h3 {
    margin-bottom: 0; 
}

h2 {
    margin: 25px 0px; 
}

/* Page Wrapper */
.wrapper {
    font-family: 'quicksandregular', Verdana, sans-serif; 
    max-width: 1300px;
    padding: 0 5px; 
    margin: 0 auto; 
}

/* Header */
.nav-container {
    display: flex; /* Creates a flex "container" to better control the child-elements inside */
    justify-content: center; /* Center the items in the container */
    background-color: #333;
    padding: 10px 20px; /* Padding around the navigation container */
    flex-wrap: wrap; /* Allow menu items to wrap to the next line */
}

.main-menu {
    list-style: none;
}

.menu-item {
    text-decoration: none; /* Remove text decoration for menu items */
    color: #fff; 
    padding: 10px 20px;
    transition: color 0.3s; /* Smooth color transition */
    flex: 1; /* Allow menu items to flex within the container */
    text-align: center; 
}

.menu-item:hover {
    color: #55a7e7; /* Change text color on hover */
}

.flex-menu {
    display: flex;
    background-color: #333; 
    padding: 10px; 
}

.flex-menu-item {
    font-family: 'robotobold', Verdana, sans-serif;
    color: #fff; 
    font-weight: bold; 
    text-align: center;
    margin: 0 10px; 
    font-size: 16px;
    line-height: 1.5;
    background-color: #333;
    border-radius: 5px; /* Rounded corners */
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s; /* Smooth color transition */
}

.flex-menu-item:hover {
    background-color: #555; /* Change background color on hover */
}

/* Image Center */
.picture-center {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 30%;
    height: auto;
}

/* Products / Main */
.products {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between; /* Space between product cards */
}

.product-card {
    padding: 1%; /* Padding around product cards */
    flex: 1 21%; /* Flex properties for product cards */
    display: flex;
    flex-direction: column;
    border: 1px solid #e1e1e1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s; /* Smooth transform transition */
    background-color: #fff; 
}

.product-card:hover {
    transform: translateY(-5px); /* Transform on hover */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Box shadow on hover */
    background-color: #f9f9f9; 
}

.product-image img {
    max-width: 100%; /* Maximum image width */
    height: auto; /* Automatic image height */
}

.product-info {
    text-align: center;
    padding: 20px;
}

.product-title {
    font-family: 'robotobold', Verdana, sans-serif;
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.product-price {
    color: #0070c9; 
    font-size: 1.1rem; 
}

.product-button {
    font-family: 'robotobold', Verdana, sans-serif;
    display: block;
    background-color: #0070c9;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    text-transform: uppercase;
    font-weight: bold;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.product-button:hover {
    background-color: #0058a5;
}

/* Text Center */
.text-center {
    text-align: center;
}

/* Paragraph Whitespace */
.paragraph-whitespace {
    white-space: pre-line; /* Preserve line breaks and spaces */
    font-size: 18px;
    margin-top: 8px; 
}

/* Footer Styles */
.footer-list ul {
    list-style-type: none; 
    padding: 0; 
}

.footer-list li {
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.footer-list a {
    text-decoration: none;
    color: #333;
    font-size: 14px;
}

.footer-list a:hover {
    text-decoration: underline;
    color: #0070c9;
}

/* Grid */
.grid-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between; /* Space between grid items */
    gap: 10px; /* Adjust the gap between items */
    width: 100%;
    background-color: rgba(188, 188, 188, 0.10);
}

.grid-item {
    flex: 1 23%; 
    padding: 20px; 
}

.grid-item-span {
    flex: 2;
    padding: 20px; 
    text-align: center;
}

/* Copyright Section Styling */
.copyright {
    background-color: #333; 
    color: #fff;
    text-align: center; 
    padding: 10px 0; 
}

.copyright p {
    margin: 0;
    font-size: 14px;
}

.copyright p:hover {
    text-decoration: underline;
}

/* Back to Top Button */
#myBtn {
    display: none; /* Initially hidden */
    position: fixed; /* Fixed position */
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99; /* Z-index for stacking order */
    border: none;
    outline: none;
    background: #333;
    color: #fff;
    cursor: pointer;
    padding: 15px 30px; 
    border-radius: 5px; 
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); 
    font-size: 18px; 
    transition: background 0.3s, transform 0.3s;
}

#myBtn:hover {
    background: linear-gradient(to bottom, #555, #333); 
    transform: translateX(-50%) scale(1.05); /* Scale and transform on hover */
}

#articlePadding {
    padding: 5px 15px; 
}

/* Media queries for responsiveness */
@media (max-width: 960px) {
    .products {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .product-card {
        flex: 1 30%; /* 30% for product cards on smaller screens */
    }

    .grid-item {
        flex: 1 30%; /* 30% for grid items on smaller screens */
    }

    .grid-item-span {
        flex: 1 100%; /* Full width for spanning items on smaller screens */
    }

    .footer-list a {
        font-size: 16px; /* Adjust font size for links on smaller screens */
    }

    .footer-list li {
        padding: 8px 0; /* Adjust padding for list items on smaller screens */
    }
}

@media (max-width: 768px) {
    .products {
        flex-wrap: wrap;
        justify-content: center; /* Center product cards on smaller screens */
    }

    .product-card {
        flex: 1 100%; /* Full width for product cards on smaller screens */
    }

    .grid-item {
        flex: 1 48%;
    }
}
