body {
    margin: 0;
    padding: 0;
    font-family:'Press Start 2p';
    background-color: #121212;
    color: white;
    text-align: center;
}

/* Domeček */
.home-icon {
    position: fixed;
    top: 15px;
    left: 15px;
    width: 80px;
    height: 80px;
    z-index: 100;
    transition: transform 0.2s ease-in-out;
}

.home-icon img {
    width: 100%;
    height: auto;
}

.home-icon:hover {
    transform: scale(1.2);
}

/* Nadpis */
.page-title {
    font-size: 2.5em;
    color: #4CAF50;
    margin-top: 50px;
    position: relative;
    display: inline-block;
}

.page-title::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -5px;
    width: 0;
    height: 3px;
    background: #4CAF50;
    animation: underlineAnimation 1s ease-out forwards;
}

/* Animace podtržení */
@keyframes underlineAnimation {
    0% {
        width: 0;
        left: 50%;
    }
    100% {
        width: 100%;
        left: 0;
    }
}

/* Kontejner na karty */
.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 70px;
    max-width: 900px; /* Zarovnání na střed */
    margin: 0 auto;
}

/* Karta projektu */
.project-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    width: 250px;
    transition: 0.3s ease-in-out;
    border: 2px solid transparent;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.project-card img {
    width: 100%;
    border-radius: 10px;
}

.project-card h2 {
    font-size: 1.5em;
    margin: 10px 0;
    color: #4CAF50;
}

.project-card p {
    font-size: 1em;
    line-height: 1.4;
}

/* Tlačítko */
.btn {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 15px;
    background: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: 0.3s ease-in-out;
}

.btn:hover {
    background: #388E3C;
}

/* Responzivita */
@media (max-width: 768px) {
    .projects-container {
        flex-direction: column;
        align-items: center;
    }

    .home-icon {
        width: 30px;
    }
}

.projects-container2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    row-gap: 70px;
    padding: 70px;
    max-width: 900px; /* Zarovnání na střed */
    margin: 0 auto;
}

/* Nadpis */
.page-title2 {
    font-size: 2.5em;
    color: #d1422f;
    margin-top: 50px;
    position: relative;
    display: inline-block;
}

.page-title2::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -5px;
    width: 0;
    height: 3px;
    background: #d1422f;
    animation: underlineAnimation 1s ease-out forwards;
}

/* Animace podtržení */
@keyframes underlineAnimation {
    0% {
        width: 0;
        left: 50%;
    }
    100% {
        width: 100%;
        left: 0;
    }
}

.project-card2 {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    width: 250px;
    height: 100%; /* Zabezpečí rovnakú výšku */
    transition: 0.3s ease-in-out;
    border: 2px solid transparent;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Vyrovná obsah */
    margin: 10px;
}

.project-card2 img {
    width: 100%;
    height: 200px; /* Všetky obrázky budú rovnako vysoké */
    object-fit: cover; /* Zachová pomer strán a vyplní priestor */
    border-radius: 10px;
}

.project-card2 h2 {
    min-height: 50px; /* Zabezpečí, že nadpisy nebudú meniť veľkosť karty */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d1422f;
    }



