html {
    min-width: 400px;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #d65050;
    padding: 10px 20px;
    color: #fff;
}

.header .logo {
    font-size: 1.5em;
}

.nav ul {
    list-style: none;
    display: flex;
    font-size: 1em;
}

.nav ul li {
    margin-left: 30px;
}

.nav ul li a {
    color: #fff;
    text-decoration: none;
    i {
        padding-right: 6px;
    }
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding-right: 20px;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 4px 0;
}

.sidebar {
    position: fixed;
    top: 0;
    right: -250px;
    width: 250px;
    height: 100%;
    background-color: #333;
    color: #fff;
    transition: right 0.3s ease;
    z-index: 1000;
}

.sidebar.open {
    right: 0;
}

.sidebar ul {
    list-style: none;
    padding: 20px;
    font-size: 1em;
}

.sidebar ul li {
    margin-bottom: 20px;
}

.sidebar ul li a {
    color: #fff;
    text-decoration: none;
    i {
        padding-right: 6px;
    }
    .lang {
        font-size: 0.8em;
    }
}

.about {
    display: flex;
    flex-wrap: wrap;
    padding: 40px 20px;
}

.about-content {
    display: flex;
}
.about-text,
.about-image {
    margin: 10px;
}
.about-image img {
    width: 100%;
    height: auto;
    border: 2px solid #e37e7e;
    border-radius: 5px;
}
.about-image {
    max-width: 300px;
    min-width: 300px;
}
.about-text h1 {
    font-size: 2em;
    margin-bottom: 20px;
}
.about-text p {
    line-height: 2em;
}
.gallerytitle {
    display: flex;
    flex-wrap: wrap;
    padding: 20px;
}
.gallerytitle h1 {
    font-size: 2em;
    color: black;
    margin: auto;
}
.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 40px 20px;
    background-color:  #e37e7e;
}

.gallery-item {
    text-align: center;
}

.gallery-item img {
    height: auto;
    border: 2px solid #ffffff;
    border-radius: 5px;
    width: 300px;
}

.contact {
    padding: 40px 20px;
    text-align: center;
}
.contact h1 {
    padding: 20px;
}
.contactbadge a, .contactbadge a:visited {
    color: #d65050;
    text-decoration: none;
}
.footer {
    background-color: #56606d;
    color: #fff;
    text-align: center;
    padding: 10px 20px;
}

.hometitle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white; /* A szöveg színe, hogy kontrasztos legyen a háttérrel */
    font-size: 5vw;
    z-index: 10;
}

@media screen and (max-width: 1260px) {
    .about {
        flex-direction: column;
    }

    .gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 948px) {
    .about {
        flex-direction: column;
    }
    .about-image {
        max-width: 100px;
        min-width: 100px;
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .gallery {
        grid-template-columns: 1fr;
    }

    .nav {
        display: none;
    }

    .hamburger {
        display: flex;
        padding-right: 0;
    }
    .hometitle {
        font-size: 9vw; /* Kicsit nagyobb betűméret kisebb képernyőkön */
    }
}

.logo {
    border: 2px solid #FFFFFF;
    border-radius: 5px;
}
.lang {
    font-size: 0.8em;
}
.contactbadge {
    width: 250px;
    margin: auto;
}

.skills {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.highlighted {
    font-size: 1.3em;
    color: #d65050;
    display: block;
    margin-bottom: 10px;
    position: relative;
}

.highlighted::after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background-color: #d65050;
    margin-top: 5px;
    }


.skills ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.skills li {
    font-size: 0.9em;
    background-color: #ffffff;
    margin: 5px 0;
    padding: 10px 15px;
    border-radius: 5px;
    transition: transform 0.3s ease-in-out, background-color 0.3s ease-in-out;
    position: relative;
    left: -50px;
    opacity: 0;
    cursor: default;
}

.skills li:hover {

    background-color: #f4f4f4;
}

.fade-in {
    animation: fadeInLeft 1s forwards;
}

@keyframes fadeInLeft {
    to {
        left: 0;
        opacity: 1;
    }
}
.carousel {
    width: 100%;
    overflow: hidden;
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: max-content;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 5px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 50%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    width: 200px;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}