.rounded-iframe {
        width: 100%;
        max-width: 600px;
        height: 800px;
        border: 1px solid #ccc;
        border-radius: 15px;
        overflow: hidden;
        margin: 0 auto;
}

.megosztas {
    background-color: #007BFF;
    color: white;
    border: none;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 12px;
    transition: background-color 0.3s;
}

.megosztas:hover {
    background-color: #0056b3;
}

.mode-switcher {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ccc;
    color: #333;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 20px;
    transition: background-color 0.3s, color 0.3s;
}

.mode-switcher:hover {
    background-color: #aaa;
    color: #fff;
}

body.dark-mode {
    background-color: #333;
    color: #fff;
}

body.dark-mode section {
    background-color: #444;
    color: #fff;
}

.logo {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 50px;
    height: auto;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #e0f7fa;
    color: #333;
    transition: background-color 0.3s, color 0.3s;

}

header {
    background-color: #4CAF50; 
    color: white; 
    padding: 1rem 0; 
    text-align: center; 
    position: relative;
}

header h1 {
    margin: 0; 
    transition: color 0.3s; 
}

header h1:hover {
    color: #FFD700; 
}

nav ul {
    list-style: none; 
    padding: 0; 
    display: flex; 
    justify-content: center; 
    flex-wrap: wrap; 
}

nav ul li {
    margin: 0.5rem 1rem; 
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 10px 20px; 
    border-radius: 5px; 
    transition: background-color 0.3s, color 0.3s;
}

nav ul li a:hover {
    background-color: #388e3c;
    color: #fff; 
}

main {
    padding: 1rem;
}

section {
    padding: 2rem;
    margin: 2rem auto; 
    max-width: 800px; 
    background-color: white; 
    border-radius: 8px; 
    box-shadow: 0 0 10px rgba(0,0,0,0.1); 
    text-align: center; 
}

section h2 {
    border-bottom: 2px solid #4CAF50; 
    padding-bottom: 0.5rem; 
    transition: border-color 0.3s;
}

section h2:hover {
    border-color: #FFD700; 
}

section img {
    margin-top: 1rem; 
    max-width: 100%; 
    height: auto; 
    border-radius: 8px; 
    transition: transform 0.3s; 
}

section img:hover {
    transform: scale(1.1); 
}

footer {
    width: 100%;
    background-color: hsl(173, 100%, 17%);
    padding: 10px 0;
    text-align: center;
    border-radius: 14px; 
}

.contact-name {
    font-size: 1.2rem;
    margin: 0.5rem 0;
    transition: color 0.3s;
}

.contact-name:hover {
    color: #4CAF50;
}

.emoji-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.emoji {
    position: absolute;
    left: calc(100vw * random());
    font-size: 47px;
    animation: emoji-fall 6s linear infinite;
}

@keyframes emoji-fall {
    0% {
        transform: translateY(-50vh) scale(0.5);
        opacity: 0;
    }
    100% {
        transform: translateY(100vh) scale(1);
        opacity: 1;
    }
}

@media (max-width: 600px) {
    nav ul {
        flex-direction: column;
    }

    nav ul li {
        margin: 0.5rem 0;
    }

    section {
        padding: 1rem;
        margin: 1rem auto;
    }

    section h2 {
        font-size: 1.5rem;
    }

    .contact-name {
        font-size: 1rem;
    }
}
