@import url('https://fonts.googleapis.com/css2?family=Anta&family=Bebas+Neue&family=DotGothic16&family=Micro+5&family=Noto+Sans:ital,wght@0,100..900;1,100..900&display=swap');
* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    background: linear-gradient(45deg, purple,red 100%);
    background-size: cover;
    min-height: 100vh;
    overflow: auto;
    text-align: center;
}

.container {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}


h1 {
    animation-name: fontChange;
    animation-duration: 1s;
    animation-iteration-count: 2;
    font-size: 10rem;
    color: white;
    margin-top: 2rem;
}

h2 {
    font-size: 2.5rem;
    color: white;
    font-family: "Noto Sans", sans-serif;
    margin-top: -7rem;
    margin-bottom: 2rem;
}

iframe {
    border-radius: 1rem;
    width: 700px;
    height:375px;
    aspect-ratio: 16/9;
}

@keyframes fontChange {
    0% {
        font-family: 'Times New Roman', Times, serif;
    }
    20% {
        font-family: "Anta", sans-serif;
    }
    40% {
        font-family: "Micro 5", sans-serif;
    }
    60% {
        font-family: "Bebas Neue", sans-serif;
    }
    80% {
        font-family: "DotGothic16", sans-serif;
    }
    100% {
        font-family: "Noto Sans", sans-serif;
    }
}

@keyframes colorChange {
    0% {
        color: lightpink
    }
    50% {
        color: lightsalmon;
    }
    75% {
        color:lightcoral
    }
    100% {
        color: lightpink
    }
}

@media screen and (max-width: 768px) {
    h1 {
        font-size: 90px;
        margin-top: 75px;
    }
    h2 {
        font-size: 2rem;
        margin-top: -35px;
    }
    nav {
        font-size: 10px;
    }
    iframe {
        width: 400px;
        height: 250px;
        aspect-ratio: 16/9;
    }
}

nav {
    animation-name: SlideDown;
    animation-duration: 1s;
    position: fixed;
    background-color: white;
    padding: 5px;
    width: 360px;
	display: flex;
	justify-content: center;
	align-items: center;
    border-radius: 50px;
    box-shadow: 2px 2px 20px rgba(0,0,0,0,3);
    font-family: "Noto Sans", sans-serif;
    text-align: center;
    margin-top: 20px; /* Vagy absolute, attól függően, mi a szükség */
    left: 50%;
    transform: translateX(-50%);
    font-size: 25px;
}

nav > a {
    transition: 0.25s;
    color: black;
    text-decoration: none;
    padding: 5px 16px;
    border-radius: 50px;
}

nav > a:hover {
    transition: 0.25s;
    background: orangered;
    color:white;
}



@keyframes SlideDown {
    from {
        margin-top: -75px;
    }
    to {
        margin-top: 20px;
      
    }
}
