/* styles.css */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: #333333; color: white;
}

.logo {
    height: 100px;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    margin-right: 20px;
}

nav ul li a {
    text-decoration: none;
    color: white;
}

.product-section, .contact-section {
    padding: 20px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.product {
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1); border-radius: 8px;
    padding: 10px;
    text-align: center;
}

.product-image {
    width: 100%;
    cursor: pointer;
}

footer {
    background-color: #333333; color: white;
    text-align: center;
    padding: 10px;
}

.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.popup-image {
    max-width: 80%;
    max-height: 80%;
}

.popup-info {
    color: #fff;
    text-align: center;
}

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

/* Increase menu size */
nav ul {
    font-size: 18px; /* Adjust font size */
    padding: 15px 0; /* Increase padding for better spacing */
}

/* Highlight menu option on hover */
nav ul li a:hover {
    background-color: #ffb366; /* Light orange highlight */
    color: white;
    transition: 0.3s;
}

/* Highlight the active menu option */
nav ul li a.active {
    background-color: #ff7f50; /* Darker highlight for active page */
    color: white;
    font-weight: bold;
}



/* Ensure the whole menu item is highlighted as a button on hover */
nav ul li a {
    display: block; /* Makes the whole area clickable */
    padding: 10px 15px; /* Increases clickable area */
    border-radius: 5px; /* Slightly rounded edges for button effect */
    text-align: center;
}

/* Hover effect for the entire button area */
nav ul li a:hover {
    background-color: #ffb366; /* Light orange background */
    color: white;
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

/* Active page highlighting */
nav ul li a.active {
    background-color: #ff7f50; /* Darker highlight for active page */
    color: white;
    font-weight: bold;
}



/* Increase logo size */
.logo img {
    width: 150px; /* Adjust width */
    height: auto; /* Maintain aspect ratio */
}


/* Adjust logo size in the menu bar */
.logo img {
    max-height: 80px; /* Increase height */
    width: auto; /* Maintain aspect ratio */
}

.banner {
    text-align: center;
}

html, body {
    height: 100%;
    margin: 0;
}

.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.content {
    flex: 1;
}

footer {
    position: relative;
    bottom: 0;
    width: 100%;
    text-align: center;
}

.banner {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
}


/* Centering the notice text */
.notice-text {
    text-align: center;
    display: block;
    width: 100%;
}


/* Make footer stick to the bottom */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

footer {
    margin-top: auto;
}



/* Mouseover highlight effect for individual product divs */
.product:hover {
    background-color: rgba(255, 223, 186, 0.5); /* Light orange background */
    transition: background-color 0.3s ease-in-out;
}


/* Center image inside the popup */
#popup img {
    display: block;
    margin: 0 auto; /* Centers the image horizontally */
}

/* Close popup when clicking anywhere on the page */
#popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8); /* Dim the background */
    justify-content: center;
    align-items: center;
}


/* Increase text size on the Kontaktai page */
.kontaktai-content {
    font-size: 2rem; /* Large text */
    text-align: center; /* Center align text */
    max-width: 800px; /* Restrict width for better readability */
    margin: 50px auto; /* Centering vertically and horizontally */
    padding: 20px;
}

/* Add a subtle border and background to make the page look less empty */
.kontaktai-box {
    border: 3px solid rgba(255, 165, 0, 0.5); /* Soft orange border */
    background-color: rgba(255, 223, 186, 0.2); /* Light orange background */
    border-radius: 15px;
    padding: 30px;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.1); /* Soft shadow */
}


/* Increase text size on the Kontaktai page */
.kontaktai-content {
    font-size: 2rem; /* Large text */
}


/* Center and enlarge text on the Kontaktai page */
.kontaktai-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60vh; /* Adjusts height for proper centering */
    text-align: center;
}

.kontaktai-container p {
    font-size: 2.5rem; /* Larger text */
    font-weight: bold;
    line-height: 1.5;
}


/* Ensure popup content is stacked vertically */
.popup {
    display: flex;
    flex-direction: column; /* Stack image and description vertically */
    align-items: center;
    justify-content: center;
    text-align: center;
}

.popup img {
    max-width: 90%;
    height: auto;
    margin-bottom: 20px; /* Space between image and description */
}

.popup-info {
    max-width: 90%;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
}

@media (max-width: 768px) {
    .kontaktai-container {
        text-align: center !important;
        font-size: 14px !important;
        padding: 20px !important;
        max-width: 90% !important;
        margin: auto !important;
    }

    .kontaktai-container p {
        font-size: 14px !important;
        line-height: 1.5 !important;
        word-break: break-word !important;
    }

    header {
        flex-direction: column !important;
        text-align: center !important;
    }

    .logo {
        height: 50px !important;
    }

    nav ul {
        flex-direction: column !important;
        padding: 0 !important;
    }

    nav ul li {
        margin: 5px 0 !important;
    }

    p, h1, h2, h3 {
        font-size: 16px !important;
        text-align: center !important;
    }

    .kontaktai-container p u {
        font-size: 16px !important;
    }
}

