* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #121212;
    color: #f1f1f1;
    line-height: 1.6;
}

header {
    text-align: center;
    padding: 40px 20px;
    background-color: #1a1a1a;
}

header h1 {
    font-size: 3em;
    margin-bottom: 10px;
}

header p {
    font-size: 1.2em;
    color: #bbb;
}

main {
    padding: 40px 20px;
}

.full-machine, .parts {
    margin-bottom: 40px;
}

h2 {
    font-size: 2.2em;
    margin-bottom: 20px;
    color: #f39c12;
}

/* Kisebb képek a rácsban */
img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

/* Kép hover effektus */
img:hover {
    transform: scale(1.05);
}

/* Teljes gép képe nagyobb legyen */
.full-machine img {
    width: 80%; /* A teljes gép képét egy kicsit nagyobbra állítjuk */
    margin: 0 auto;
    display: block;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* A képek kisebbek */
    gap: 20px;
}

/* Modal Styles */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9); 
    padding-top: 60px;
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
}

.caption {
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    font-size: 1.2em;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #f39c12;
    text-decoration: none;
    cursor: pointer;
}

.prev,
.next {
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    color: #f1f1f1;
    font-size: 24px;
    font-weight: bold;
    background-color: rgba(0,0,0,0.5);
    border: none;
    cursor: pointer;
    user-select: none;
    transition: 0.3s;
}

.prev:hover,
.next:hover {
    background-color: rgba(0,0,0,0.8);
}

.prev {
    left: 0;
    border-radius: 3px 0 0 3px;
}

.next {
    right: 0;
    border-radius: 0 3px 3px 0;
}

/* Reszponzív képek */
@media (max-width: 768px) {
    .image-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); /* Még kisebb képek mobilon */
    }

    .full-machine img {
        width: 90%;
    }
}

/* Vissza gomb stílusai */
.back-button-container {
    text-align: center;
    margin-top: 40px;
}

.back-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: #f39c12;
    color: white;
    text-decoration: none;
    font-size: 1.2em;
    border-radius: 50px;
    text-transform: uppercase;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.back-button:hover {
    background-color: #e67e22;
    transform: scale(1.1);
}

.back-button:active {
    background-color: #d35400;
}

