#title {
    font-size: 2rem;
    color: white;
    font-family: "KG Lego House";
    background-color: rgba(0, 0, 0, 0.712);
    box-shadow: 0px 0px 15px 5px black;
    max-width: 600px;
    width: 100%;
    margin: auto;
    text-align: center;
    border-radius: 10px;
    position: relative;
    top: 2.5rem;
    animation-name: zoom;
    animation-duration: 0.5s;
}

hr {
    height: 0.2rem;
    background-color: white;
    opacity: 100;
}

@keyframes zoom {
    0% {
        transform: scale(50%);
    }
}

html, body {
    background: linear-gradient(90deg, rgba(235, 9, 9, 1) 0%, rgb(67, 20, 138) 100%);
    background-size: 400% 400%;
    animation: bgMove 6s ease-in-out infinite alternate;
    height: auto;
    min-height: 100vh;
}

@keyframes bgMove {
  0% {
    background-position: 0% 50%;
  }

  50%{
    background-position: 50% 0%;
  }

  100% {
    background-position: 100% 100%;
  }
}

nav {
    background-color: rgba(220, 220, 220, 0);
    box-shadow: 0px 0px 15px 5px black;
    text-align: center;
    font-size: 2rem;
    font-family: "KG Lego House";
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    backdrop-filter: blur(100px);
}

@keyframes slideinzoom {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0px);
    }
}

.navitem:nth-child(1) {
    animation-name: slideinzoom;
    animation-duration: 0.3s;
}

.navitem:nth-child(2) {
    animation-name: slideinzoom;
    animation-duration: 0.7s;
}

.navitem:nth-child(3) {
    animation-name: slideinzoom;
    animation-duration: 1s;
}

.navitem:nth-child(4) {
    animation-name: slideinzoom;
    animation-duration: 1s;
}

#nava {
    text-decoration: none;
    color: white;
}

#nava::after {
    content: "";
    position: relative;
    width: 100%;
    height: 3px;
    background-color: white;
    text-align: center;
    opacity: 0%;
    transform: scaleX(0);
    transition: all 0.3s ease-in-out;
    display: flex;
}

#nava:hover::after {
    opacity: 100%;
    transform: scaleX(100%);
}

#maincontent {
    position: relative;
    top: 2.5rem;
    background-color: rgba(0, 0, 0, 0.712);
    box-shadow: 0px 0px 15px 5px black;
    border-radius: 10px;
    padding: 2rem;
    font-size: 2rem;
    color: white;
    font-family: "KG Lego House";
    max-width: 750px;
    width: 100%;
    margin: 2.5rem auto;
    animation-name: zoom;
    animation-duration: 0.5s;
    text-align: center;
}

a {
    text-decoration: none;
    color: white;
}

#row {
    font-size: 2rem;
    color: white;
    font-family: "KG Lego House";
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    display: grid;
    gap: 1em;
    padding: 2rem;
    text-align: center;
    max-width: 1500px;
    width: 100%;
    margin: 0px auto;
}


#element {
    background-color: rgba(0, 0, 0, 0.712);
    box-shadow: 0px 0px 15px 5px black;
    padding: 0rem 2rem 0rem;
    height: 170px;
    max-width: 700px;
    width: 100%;
    margin: 1rem auto;
    animation-name: slideinzoom;
    animation-duration: 0.7s;
}

@media (max-width: 600px) {

    #title {
        font-size: 2rem;
        color: white;
        font-family: "KG Lego House";
        background-color: rgba(0, 0, 0, 0.712);
        background-position: center;
        box-shadow: 0px 0px 15px 5px black;
        max-width: 600px;
        width: 90%;
        margin: auto;
        text-align: center;
        border-radius: 10px;
        position: relative;
        top: 2.5rem;
        animation-duration: 0.5s;
        animation-name: zoom;
    }

    nav {
        background-color: rgba(220, 220, 220, 0.178);
        box-shadow: 0px 0px 15px 5px black;
        text-align: center;
        font-size: 2rem;
        font-family: "KG Lego House";
        display: flex;
        flex-direction: column;
        justify-content: space-evenly;
        align-items: center;
    }

    #maincontent {
        position: relative;
        top: 2.5rem;
        background-color: rgba(0, 0, 0, 0.712);
        box-shadow: 0px 0px 15px 5px black;
        border-radius: 10px;
        padding: 2rem;
        font-size: 2rem;
        color: white;
        font-family: "KG Lego House";
        max-width: 750px;
        width: 90%;
        margin: 2.5rem auto;
        animation-name: zoom;
        animation-duration: 0.5s;
        text-align: center;
    }
}

@font-face {
    font-family: 'KG Lego House';
    src: url('KGLegoHouse.woff2') format('woff2'),
        url('KGLegoHouse.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
