﻿body, html {
    font-family: 'Segoe UI', Arial, sans-serif !important;
    background-color: black;
    overflow-x: hidden;
    scroll-behavior:smooth;
}

/* Header Styles */
.site-header {
    background-color: black; /* Match the color to the header in your image */
    color: #fff;
    padding: 10px 0;
}

.header-content {
    height: 40px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-left: 5%;
}

.header-logo {
    height: 200px;
    width: auto; /* Adjust the width as needed or remove it to use the image's own width */
}

.main-navigation {
    display: flex;
    gap: 20px; /* Space between navigation links */
}

.login-message-link {
    text-decoration: none; /* Remove underline from link */
    color: inherit; /* Inherit color from parent element */
    margin-left: auto; /* Push the message to the right */
    margin-right: 10px;
}

    .login-message-link:hover .login-message {
        text-decoration: underline; /* Underline the text on hover */
    }
/*Fullpagevideo*/
.full-page-section {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 90vh; 
    justify-content: center; /* Startar innehåll från toppen */
    text-align: center;
    flex-direction:column
}

#myVideo {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 90vh;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
}


.content{
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    z-index: 1;
    color: white;
    margin-left: 5%;
    text-align: left;
    flex-direction: column;
}
/* Stilar för huvudtexten */
.main-text {
    font-size: 3em; /* Stor text */
    margin: 0;
    padding-top: 150px; /* Justera enligt din bild och layout */
    text-shadow: 2px 2px 4px #000000; /* Lägg till textskugga för läsbarhet */
}

/* Stilar för undertext */
.sub-text {
    font-size: 1.2em;
    margin-bottom: 50px; /* Utrymme under undertexten */
}

/* Gemensamma stilar för knappar */
.button {
    width: 9.9em;
    display: inline-block;
    margin: 10px;
    padding: 15px 30px;
    border: 2px solid #FFFFFF;
    color: #FFFFFF;
    text-decoration: none; /* Ta bort understrykning från länkar */
    text-transform: uppercase; /* Stora bokstäver */
    transition: background-color 0.3s, color 0.3s; /* Animering för hover-effekt */
    animation: fadeIn 2s ease forwards;
}

    /* Hover-effekt för knappar */
    .button:hover {
        background-color: #FFFFFF;
        color: #000000;
    }

/* Fade-in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Separate animation for each button with different delay */
.Köper {
    font-weight: 200;
    opacity: 0;
    animation-delay: 0.3s; /* Köper fades in first after 0.5s delay */
}
.Säljer {
    font-weight: 200;
    opacity: 0;
    animation-delay: 1s; /* Säljer fades in second after 2s delay */
}
.text-button:hover {
    transform: scale(1.05); /* Slightly increase size on hover for interactive feedback */
}


/* Stilar för "Våra Bilar"-sektionen */
.car-section {
    background-color: #121212; /* Mörk bakgrundsfärg */
    padding: 40px 0;
    text-align: center;
    color: white;
}

    .car-section h2 {
        font-size: 2em;
        margin-bottom: 20px;
    }

.carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.carousel-container {
    overflow: hidden;
    width: 80%;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.car {
    min-width: 33.33%;
    box-sizing: border-box;
    padding: 10px;
}

    .car img {
        width: 100%;
        height: 85%;
        border-radius: 10px;
    }
        .car img:hover {
            transform: scale(1.05);
        }
.carousel-btn {
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    font-size: 2em;
    cursor: pointer;
    padding: 10px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

    .carousel-btn.left {
        left: 10px;
    }

    .carousel-btn.right {
        right: 10px;
    }



/*Samarbetspartners*/
h2 {
    color: white;
    text-align: center;
    margin-bottom: 30px; 
    text-transform: uppercase; 
    font-size: 2em; 
}
/* Samarbetspartners - Nya stilar med ikoner */
.services-section {
    padding: 80px 0; /* Ökad vertikal padding */
    background-color: #000000; /* Helt svart bakgrund */
}

    .services-section h2 {
        color: white;
        text-align: center;
        margin-bottom: 60px; /* Ökad margin under rubriken */
        font-size: 2.2em;
    }

.services-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 50px; /* Ökad gap mellan korten på desktop */
}

.service-box {
    flex: 1 1 300px;
    max-width: 350px;
    background-color: rgba(25, 25, 25, 0.6);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease;
}

    .service-box:hover {
        transform: translateY(-10px);
    }

.service-icon {
    font-size: 3em;
    margin-bottom: 20px;
    color: #d9534f; /* Röd färg som matchar din knapp */
}

.service-title {
    color: white;
    font-size: 1.8em;
    margin-bottom: 15px;
}

.service-description {
    color: #b4b4b4;
    font-size: 1em;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .services-section {
        padding: 60px 20px; /* Lägg till horisontell padding på mobil */
    }

    .services-container {
        gap: 35px; /* Mindre gap mellan korten på mobil */
        margin-left: 15px; /* Extra vänstermarginal på mobil */
        margin-right: 15px; /* Extra högermarginal på mobil */
    }

    .service-box {
        flex: 1 1 100%;
        margin-bottom: 20px; /* Extra margin under varje kort på mobil */
        max-width: none; /* Tillåt korten att ta upp full bredd */
    }

    .service-title {
        font-size: 1.6em; /* Mindre textstorlek på mobil */
    }
}

/* Overall styling for the sell your car section */
.sell-your-car-section {
    background-color: #121212; /* Slightly lighter black for the form section */
    padding: 40px;
    border-radius: 8px;
    margin: 30px auto;
    width: 80%;
    max-width: 800px; /* Adjust width as needed */
}

    .sell-your-car-section h2, .sell-your-car-section p {
        color: #e0e0e0; /* Light grey for readability */
        text-align: center;
    }

.sell-car-form {
    display: flex;
    flex-direction: column;
    gap: 15px; 
}

    .sell-car-form .form-field {
        display: flex;
        flex-direction: column;
    }

    .sell-car-form label {
        color: #ffffff; 
        margin-bottom: 5px;
    }

    .sell-car-form input[type="text"],
    .sell-car-form input[type="number"],
    .sell-car-form input[type="email"],
    .sell-car-form input[type="tel"],
    .sell-car-form textarea {
        padding: 12px;
        border: 1px solid #e0e0e0;
        border-radius: 4px;
        background-color: #262626; 
        color: #ffffff; 
    }


.sell-car-button {
    background-color: #d9534f; 
    color: #ffffff;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    .sell-car-button:hover {
        background-color: #c9302c; 
    }

.form-field label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
}


.fa {
    min-width: 20px; 
    text-align: center;
}


.form-field input[type="text"],
.form-field input[type="number"],
.form-field input[type="email"],
.form-field input[type="tel"] {
    padding-left: 40px; 
}


.sell-car-button i {
    margin-right: 5px;
}





/* Kontaktsektionens stilar */
.contact-section {
    margin: 0 auto;
    max-width: 1200px;
    color: white;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
    background-color: black;
    font-size: 12px;
}

.contact-info {
    flex-basis: 50%;
}

.contact-item {
    display: flex;
    align-items: center;
    font-size: 1.2em;
    margin-bottom: 10px;
}

    .contact-item i {
        color: white;
        margin-right: 10px;
        font-size: 1.5em;
    }
    .contact-item a {
        text-decoration: none;
        color: inherit;
    }
.opening-hours p {
    margin-bottom: 5px;
}

.map-container {
    flex-basis: 45%;
    border: 1px solid #ccc;
}

    .map-container iframe {
        width: 100%;
        height: 400px; 
        border: none;
    }



@media (max-width: 768px) {
    body {
        overflow-x: auto; /* Prevent horizontal overflow */
        text-align: center;
        }

    /*Första sidan*/
    .content{
        max-width: auto;
        margin-right: 5%
    }
    h2 {
        margin-left: 5%;
        font-size: 1.8em;
    }
    
        .main-text {
            font-size: 2em;
            padding-top: 20px;
        }

        .sub-text {
            font-size: 1em;
        }

        .button {
            padding: 10px 25px;
        }
    .carousel-container {
        width: 100%;
    }

    .car {
        min-width: 100%;
    }

    .carousel-btn {
        font-size: 1.5em;
        padding: 5px;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
    }

        .carousel-btn.left {
            z-index: 1;
            left: 0; /* Säkerställ att knappen visas längst till vänster */
        }

        .carousel-btn.right {
            z-index: 1;
            right: 0; /* Säkerställ att knappen visas längst till höger */
        }

    .car-section h2 {
        font-size: 1.5em;
    }
        /*Samarbetspartners*/
    .partners {
        flex-direction: column;
        align-items: center;
        margin-left: auto; /* Aligns content to the center by auto-adjusting margin */
        margin-right: auto;
    }

    .partner {
        max-width: 100%;
        align-items: center; /* Centers the content within each partner div */
    }
        /*Sälj din bil här*/
        .sell-your-car-section {
            width: 90%;
            padding: 20px;
        }

        .sell-car-form {
            gap: 10px;
        }

        .sell-car-button {
            padding: 10px 15px;
        }


        /*Konkta Oss*/
        .contact-section {
            flex-direction: column-reverse;
            font-size: inherit;
        }

    .map-container {
        margin-top: 20px;
        margin-right: auto;
        margin-left: auto;
    }
    }



