/* refactored with chatGPT - 07/02/2025 16:00 UK */

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
/*    background: black;*/
    color: black;
}

/* LOGO CONTAINER */
.logo-container {
    text-align: center;
    padding: 20px 0;
    background-color: black;
}

.logo {
    height: 70px;
}

/* NAVIGATION MENU */
nav {
    display: flex;
    justify-content: center;
    background: black;
    padding: 0;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

nav ul li {
    flex: 1;
    text-align: center;
}

nav ul li a {
    display: block;
    padding: 15px;
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease, transform 0.1s ease;
}

/* Button Colors */
.nav-home { background: #4caf50; } /* Green */
.nav-active { background: #f7c200; } /* Yellow (Active Page) */
.nav-about { background: #1976d2; } /* Blue */
.nav-contact { background: #ff5722; } /* Orange */

/* Hover State */
nav ul li a:hover {
    filter: brightness(90%); /* Slight darkening effect */
    transform: scale(1.05); /* Slight grow effect */
}

/* Pressed (Active/Selected) State */
.pressed {
    background: #51524E !important; /* Darker background for pressed look */
    color: white !important;
    box-shadow: inset 0px 3px 5px rgba(0, 0, 0, 0.4); /* Inset shadow to simulate press */
    transform: scale(0.97); /* Slight press-down effect */
}

.search-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.search-container input {
    padding: 5px;
}

.search-container button {
    background: green;
    color: white;
    border: none;
    padding: 5px 10px;
}

/* TITLE BAR */
.title-bar {
    background: #f7c200;
    padding: 20px;
    text-align: center;
}

/* GRID LAYOUT */
.grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 10px;
        padding:15px;
        background-color: white;
    }
    .card {
        padding: 20px;
        color: white;
        border-radius: 8px;
    }
    .green { background: #4caf50; }
    .blue { background: #1976d2; }
    .orange { background: #ff5722; }
    .light-green { background: #8bc34a; }
    .dark-blue { background: #3f51b5; }
    .purple { background: #9c27b0; }
    .teal { background: #009688; }
    .red { background: #d32f2f; }
    .yellow { background: #BCBC00; }

    ul {
        list-style-type: none;
        padding: 0;
    }
    ul li {
        margin: 5px 0;
    }
    ul li a {
        color: white;
        text-decoration: underline;
    }

/* FOOTER */
footer {
    background: black;
    color: white;
    text-align: center;
    padding: 20px;
}

.footer-text {
    max-width: 800px;
    margin: 0 auto;
/*    text-align: justify;*/
}

footer a {
    color: white;
    text-decoration: underline;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 10px;
}

.social-icons img {
    width: 35px;
}

/* MOBILE RESPONSIVENESS */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
    }
    
    .search-container {
        flex-direction: column;
    }
}


/*  THIS IS THE STYLING FOR THE PRODUCTS TABLES */

    /* Parent container for flexbox layout */
    .container {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: flex-start;
        gap: 10px;
        max-width: 1200px;
        margin: auto;
        background-color: white;
    }

    /* Table container (left) */
    .geojson-table-container {
        flex: 1;
        min-width: 300px;
        max-width: 48%; /* Limit width */
        padding-left:15px;
    }

    /* SVG container (right) */
    .svg-container {
        flex: 1;
        min-width: 300px;
        max-width: 48%; /* Limit width */
        text-align: center;
    }

    /* Table styling */
    .geojson-table {
        width: 100%;
        border-collapse: collapse;
    }

    .geojson-table th, .geojson-table td {
        border: 1px solid #ddd;
        padding: 5px;
        text-align: left;
    }

    .geojson-table th {
        background-color: #f4f4f4;
        font-weight: bold;
        width: 40%;
    }

    .geojson-table td {
        width: 60%;
    }

    /* SVG image */
    .geojson-svg {
        width: 90%;
/*        max-width: 400px;*/
        height: auto;
        border:1px solid black;
        margin-left:15px;
/*        margin-right:15px;*/
    }

  /* File Details Section */
    .file-details {
        margin-top: 20px;
        padding: 15px;
        border: 1px solid #ddd;
        background-color: #f9f9f9;
        border-radius: 5px;
    }

    .file-details h3 {
        margin-bottom: 10px;
    }

    .file-details p {
        margin: 5px 0;
    }

    /* Price & Buttons Section */
    .purchase-section {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-top: 15px;
    }

    .price {
        font-size: 1.5em;
        font-weight: bold;
        color: #333;
    }

    .button-group {
        display: flex;
        gap: 10px;
    }

    .button {
        padding: 10px 15px;
        border: none;
        cursor: pointer;
        border-radius: 5px;
        font-size: 1em;
    }

    .download-btn {
        background-color: #1976d2;
        color: white;
    }

    .buy-btn {
        background-color: #ff5722;
        color: white;
    }

    /* Responsive design for smaller screens */
    @media screen and (max-width: 768px) {
        .container {
            flex-direction: column;
            align-items: center;
        }

        .geojson-table-container, .svg-container {
            max-width: 100%;
            text-align: center;
        }
    }
    .compatibility-box {
    max-width: 1200px;
    margin: 7px auto;
    padding: 6px;
    background-color: #f8f9fa;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    font-family: Arial, sans-serif;
    line-height: 1.5;
    }

    .compatibility-box h3 {
        color: #333;
        margin-bottom: 4px;
        margin-bottom: 4px;
    }

    .compatibility-box p {
        color: #555;
        font-size: 16px;
        margin-top:0px;
    }