/* styles.css */

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

header {
    background-color: #333;
    color: #fff;
    padding: 10px;
    text-align: center;
    position: relative;
}

header img {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 100px; /* Itt állíthatod be a kívánt szélességet */
    height: auto;
}

h2 {
    margin-top: 20px; /* Némi tér az image és a cím között */
}

/* styles.css */

/* ... (korábbi stílusok) */

nav {
    background-color: #f0f0f0;
    padding: 10px;
    width: 200px; /* Számítógépes nézet: fix szélesség */
    float: left;
    height: 100vh;
}

nav a {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: #333;
}

/* ... (további stílusok) */

/* Media query a kisebb képernyőkhöz */
@media only screen and (max-width: 768px) {
    nav {
        width: 100%; /* Kisebb képernyő: teljes szélesség */
        float: none; /* Float eltávolítása */
    }

    nav a {
        width: 100%; /* Teljes szélesség a kisebb képernyőn */
        box-sizing: border-box; /* Padding és border számolása a szélességhez */
    }
}



.active {
    background-color: #1912b8;
    color: #fff;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around; /* Módosítás: space-between-ről space-around-ra */
    padding: 20px;
}

.gallery-item {
    width: 100%; /* Módosítás: teljes szélesség minden eszközön */
    max-width: 300px; /* Korlátozás a nagy képernyőn */
    margin-bottom: 20px;
    cursor: pointer;
    text-align: center;
}

.gallery-item img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.image-name {
    margin-top: 10px;
    font-weight: bold;
}

footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 10px;
    position: fixed;
    bottom: 0;
    width: 100%;
}

/* Általános formázás a car-details id-hoz */
#car-details {
    margin: 20px;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 10px;
    text-align: center; /* Középre igazítás */
}

/* Felszereltség lista stílusai */
.car-details-list,
.price-list {
    list-style-type: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center; /* Középre igazítás */
}

.car-details-list li,
.price-list p {
    margin-bottom: 8px;
    font-weight: bold;
}
