@font-face {
    font-family: 'AppleGaramond';
    src: url('../fonts/AppleGaramond.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'AppleGaramond', sans-serif;
    background: url('/static/images/BGtest2.jpg') no-repeat center center fixed, #ffffff;
    background-size: cover;
}

button {
    font-family: 'AppleGaramond', sans-serif;
}

header {
    background-color: #1f1f1f;
    color: white;
    padding: 0px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

header h1 {
    text-align: center;
    flex: 1;
}

header nav {
    flex: 2;
}

header nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 0;
    margin: 0;
}

header nav ul li {
    margin: 0 6px;
    position: relative;
}

header nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 5px 15px;
    position: relative;
    transition: color 0.3s ease;
    display: inline-block;
}

header nav ul li a::after {
    content: "";
    display: block;
    width: 0;
    height: 2px;
    background-color: white;
    position: absolute;
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;
}

header nav ul li a:hover::after {
    width: 100%;
}

.nav-icon {
    margin-right: 5px;
    max-width: 20px;
    height: auto;
}

.nav-button {
    color: #ffffff;
    text-decoration: none;
    padding: 10px 20px;
    border: 2px solid white;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
    margin: 0 10px;
}

.nav-button:hover {
    background-color: white;
    color: #333;
}

header h1.move-left, header nav.move-left {
    transform: translateX(-100px);
}

header h1.move-right, header nav.move-right {
    transform: translateX(100px);
}

.content-box {
    width: 50%;
    max-width: 800px;
    height: 625px;
    margin: 10px auto;
    padding: 60px;
    border: 1px solid #2c2c2c;
    border-radius: 10px;
    background-color: #2c2c2c;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.featured-products-container {
    background-color: #2c2c2c;
    padding: 20px;
    border-radius: 10px;
    max-width: 1200px;
    margin: 0 auto;
}

.featured-products-header {
    text-align: center;
    color: #ffffff;
    font-size: 2.5em;
    margin: 20px 0;
}

#product-highlights {
    padding: 20px 10px;
    margin: 0 auto;
    max-width: 1200px;
}

.product-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    justify-content: center;
}

.product-item {
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
    border: none;
    background-color: #2c2c2c;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.8);
    transition: box-shadow 0.3s ease;
}

.product-item:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 1);
}

.product-item img {
    max-width: 80%;
    height: auto;
    width: 256px;
    height: 256px;
    object-fit: contain;
}

.product-item h3 {
    font-size: 1.2rem;
    margin-top: 10px;
    color: #ffffff;
}

.product-item p {
    font-size: 0.9rem;
    margin: 5px 0;
}

.product-item .btn {
    padding: 8px 16px;
    font-size: 0.9rem;
    margin-top: 10px;
}

.learn-more-btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin: 10px;
    text-align: center;
}

.learn-more-btn:hover {
    background-color: white;
    color: black;
}

.learn-more-btn-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .learn-more-btn-container {
        flex-direction: column;
        align-items: center;
    }
}

#slideshow-container {
    width: 65%;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0;
    border: 25px solid #2c2c2c;
    border-radius: 10px;
    position: relative;
    background-color: black;
}

#milestone-slideshow {
    width: 100%;
    height: 400px;
    position: relative;
    overflow: hidden;
}

.slide {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.slogan h2 {
    color: #ffffff;
    font-size: 1.5rem;
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.prev, .next {
    position: absolute;
    top: 50%;
    padding: 16px;
    color: white;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    color: white;
    font-size: 18px;
    background-color: rgba(0, 0, 0, 0.7);
    text-align: center;
    padding: 10px 0;
    box-sizing: border-box;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.prev:hover, .next:hover {
    background-color: rgba(255, 255, 255, 0.7);
}

.fade {
    animation: fade 5s ease-in-out infinite;
}

@keyframes fade {
    0% { opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; }
}

.centered-text {
    text-align: center;
    margin: 100px 0;
}

.ebay-link {
    text-align: center;
    margin-top: 20px;
}

.ebay-link p {
    font-size: 16px;
    margin-bottom: 1px;
}

.ebay-link img {
    width: 110px;
    height: auto;
    margin-top: 5px;
}

@media screen and (max-width: 768px) {
    .header nav ul li a {
        padding: 3px 10px;
        font-size: 10px;
    }

    .social-icons img {
        width: 25px;
        height: 25px;
    }

    .product-box img {
        max-width: 100%;
        height: auto;
    }

    .see-products-btn {
        padding: 8px 16px;
        font-size: 14px;
    }
}

@media screen and (max-width: 480px) {
    .header nav ul li a {
        padding: 3px 10px;
        font-size: 10px;
    }

    .social-icons img {
        width: 20px;
        height: 20px;
    }

    .product-container {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 10px;
    }

    .product-box {
        padding: 10px;
        font-size: 12px;
    }

    .product-box img {
        max-width: 100%;
        height: auto;
    }

    .see-products-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}

section p {
    color: #ffffff;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .navigation-box {
        flex-direction: column;
        padding: 15px;
    }

    .nav-button {
        margin-bottom: 10px;
    }
}

@media (max-width: 768px) {
    .footer-top {
        flex-direction: column;
        gap: 10px;
    }

    .info-block, .mission-statement, .contact-info {
        max-width: 100%;
        margin: 5px 0;
        padding: 8px;
    }
}

@media (max-width: 600px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }

    .footer-top {
        flex-direction: column;
        align-items: center;
    }

    .info-block, .mission-statement, .contact-info {
        min-width: 100%;
        text-align: center;
    }

    .centered-text img {
        max-width: 100%;
    }
}

body {
    overflow-x: hidden;
}

footer {
    text-align: center;
    padding: 5px;
    background: #1f1f1f;
    color: #fff;
}

.footer-container {
    width: 70%;
    max-width: 1000px;
    margin: 0 auto;
}

.upcoming-events-link {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

.upcoming-events-link:hover {
    color: #007bff;
    text-decoration: none;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-top > div {
    flex: 1;
    max-width: 30%;
    margin: 0 10px;
    padding: 8px;
    border-radius: 4px;
    text-align: center;
}

footer h2 {
    font-size: 16px;
    color: #fff;
    margin-bottom: 15px;
    text-align: center;
}

footer p {
    font-size: 14px;
    color: #e0e0e0;
}

.repair-button,
.footer-nav ul li a {
    color: white;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 5px;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

.repair-button {
    background-color: #007BFF;
    font-size: 14px;
}

.repair-button:hover {
    background-color: white;
    color: #333;
}

.footer-nav ul li a:hover {
    background-color: transparent;
    color: #ffffff;
    text-decoration: none;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
}

.footer-nav ul li {
    margin: 0 6px;
}

.social-icons a {
    margin: 0 8px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.social-icons a:hover {
    transform: scale(1.1);
    text-decoration: none;
}

.social-icons img {
    width: 25px;
    height: auto;
}

.region-link {
    margin-left: 85px;
    font-size: 16px;
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

.region-link:hover {
    text-decoration: none;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    padding: 10px 0;
    border-top: 1px solid #444;
}

.category-card,
.product-card {
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
    border: none;
    background-color: #2c2c2c;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.8);
    transition: box-shadow 0.3s ease;
    color: white;
}

.category-card:hover,
.product-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 1);
}

.category-card img,
.product-card img {
    max-width: 80%;
    height: auto;
    width: 256px;
    height: 256px;
    object-fit: contain;
}

.category-card h2,
.product-card h2 {
    font-size: 1.2rem;
    margin-top: 10px;
    color: white;
}

.category-card p,
.product-card p {
    font-size: 0.9rem;
    margin: 5px 0;
    color: white;
}

.product-card-link {
    text-decoration: none;
    color: inherit;
}

.categories-grid,
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    justify-content: center;
}

a {
    color: white;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.btn-blue {
    background-color: #007BFF; /* Blue color */
    color: white;
}

.btn-blue:hover {
    background-color: #0056b3; /* Darker blue on hover */
}

.container {
    color: white;
    max-width: 70%;
    margin: 0 auto;
    text-align: center;
}

h1 {
    color: white;
}

form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.form-labels,
.form-fields {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.form-fields input {
    width: 50%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

button {
    margin-top: 20px;
    padding: 10px;
    background-color: #007BFF;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 25%;
}

button:hover {
    background-color: #0056b3;
}

.register-button {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #007BFF;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
}

.register-button:hover {
    background-color: #0056b3;
}

.form-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.review-container {
    width: 50%;
    height: 25%;
    margin: 0 auto;
    text-align: center;
    background-color: #333;
    padding: 20px;
    border-radius: 10px;
}

.review-container textarea {
    width: 100%;
    height: 100%;
    resize: none;
}

.star-rating {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.star-rating input {
    display: none;
}

.star-rating label {
    font-size: 24px;
    color: #ccc;
    cursor: pointer;
    transition: color 0.3s;
}

.star-rating input:checked ~ label {
    color: #ccc;
}

.star-rating input:checked + label {
    color: #ffd700;
}
