/* Global styles */
@keyframes moveBackground {
    0% { background-position: 0 0; }
    50% { background-position: 100% 0; }
    100% { background-position: 0 0; }
}

body {
    font-family: Arial, sans-serif;
    background-image: url('background.jpg'); /* Make sure the correct path to your image is used */
    background-size: cover; /* Ensures the background image covers the entire screen */
    background-repeat: no-repeat; /* Prevents the background from repeating */
    background-position: 0 0; /* Sets the initial position of the background */
    animation: moveBackground 90s linear infinite; /* Applies the background animation */
    color: #333;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.product-container {
    position: relative;
    display: inline-block;
    width: 100%; /* Adjust as necessary to fit the image size */
}

.product-container img {
    display: block;
    width: 100%; /* Ensure the image fills the container */
}

.info-overlay {
    position: absolute;
    bottom: 290px;
    right: 22px;
    background-color: rgba(228, 224, 224, 0.5);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    text-decoration: none;
}

.info-overlay:hover {
    background-color: rgba(57, 226, 85, 0.7);
}

.product-container2 {
    position: relative;
    display: inline-block;
    width: 100%; /* Adjust as necessary to fit the image size */
}

.product-container2 img {
    display: block;
    width: 100%; /* Ensure the image fills the container */
}

.info-overlay2 {
    position: absolute;
    bottom: 340px;
    right: 22px;
    background-color: rgba(228, 224, 224, 0.5);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    text-decoration: none;
}

.info-overlay2:hover {
    background-color: rgba(57, 226, 85, 0.7);
}

/* Header and Navigation */
header {
    background-color: #000;
    padding: 2px 0;
}

.yellow-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    background-color: #FFD700;
    padding: 2px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}
.nav-container {
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    background-color: #ffd700; /* Yellow background */
    padding: 2px; /* Padding around the content */
}

.header-text {
    margin: 0 20px; /* Adjust spacing around the header text */
    
}
.yellow-nav a {
    color: #000;
    text-decoration: none;
    padding: 2px;
    font-size: 20px;
    transition: text-decoration 0.2s ease-in-out;
}
.yellow-nav a:hover {
    text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 768px) {
    

    .header-text {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .yellow-nav {
        padding: 10px;
    }

    .yellow-nav h4 {
        font-size: 1em;
    }

    .header-text {
        font-size: 0.9em;
    }
}

/* Banner */
.banner {
    display: block;
    margin: 0 auto;
    width: 50%;
    max-height: 150px;
    object-fit: contain;
}

/* Main Content */
main {
    padding: 20px;
    padding-bottom: 90px;
    background: rgba(255, 255, 255, 0.2);
    margin: 20px;
    flex: 1;
    border-radius: 10px;
    animation: slideIn 1s;
}

.product-detail {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    max-width: 900px;
    margin: auto;
}

.product-images img {
    width: 200px;
    margin: 10px auto;
    cursor: pointer;
    transition: transform 0.2s;
}

.product-images img:hover {
    transform: scale(1.1);
}

.product-info {
    text-align: center;
}

.price {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

.product-description-title {
    font-size: 20px;
    font-weight: bold;
    margin-top: 20px;
    margin-bottom: 10px;
}

.product-description {
    list-style-type: none;
    padding: 0;
    text-align: left;
    line-height: 1.6;
}

.product-description li {
    margin-bottom: 10px; /* Increased margin for better spacing */
    position: relative;
    padding-left: 30px; /* Increased padding for better spacing */
}

.product-description li::before {
    content: url('images/checked_checkbox.png'); /* Path to your checked checkbox icon */
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%); /* Vertically align the icon with the text */
    width: 20px;
    height: 20px;
}

.more-details-container {
    margin-top: 20px;
}

.more-details-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.more-details-content {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 10px;
    max-width: 800px;
    margin: auto;
    line-height: 1.6;
}

.more-details-content img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 10px;
}

.more-details-text {
    text-align: center;
    line-height: 1.6;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    display: block;
    margin: auto;
    max-width: 80%;
    max-height: 80%;
}

.close {
    position: absolute;
    top: 20px;
    right: 45px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* Product List */
.product-list {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.product {
    width: 200px;
    margin: 20px;
    text-align: center;
    animation: zoomIn 1s;
}

.product img {
    width: 100%;
    border-radius: 10px;
}

.product-details {
    padding: 10px;
}

.product h2 {
    background-color: #f5f5dc;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 5px;
}

.product-description {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 10px;
    border-radius: 5px;
}

.product-price {
    background-color: yellow;
    padding: 5px;
    border-radius: 5px;
}

.quantity-wrapper {
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    margin-top: 10px; /* Adjust as needed */
}

.quantity-select {
    width: 70px;
    height: 30px;
    font-size: 16px;
    margin-right: 10px;
}

.submit-button {
    height: 30px;
    font-size: 16px;
    padding: 0 15px;
    background-color: #ffd700;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background-color: #e6b800;
}

.submit-button.priddat-do-kosika:hover {
    background-color: #00cc00; /* Change to your desired green color */
}
