@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap');

@keyframes slidein {
    0% { transform: translate(-50%, 100%); }
    100% { transform: translate(-50%, -50%); }
}

body {
    background-image: url("https://eu1.imagehub.host/files/bg.png");
    background-color: #1f1f27;
    font-family: Inter, sans-serif;
    user-select: none;
    overflow: auto;
    transition: 1s;
    background-position: 0px 0px;
    animation: bg 25s infinite linear;
    padding: 0;
}

ul {
    display: flex;
    justify-content: center;
}

.nav {
    display:flex;
    justify-content: center;
}

.nav {
    list-style-type: none;
    margin: 0;
    padding: 0;
    margin-top: 1vh;
    font-size: 1.2rem;
}

.li {
    display: inline;
    margin-top: 1vh;
}

li {
    list-style-type: none;
}

.navlink {
    color: #c5c5c5;
    margin-left: 1vw;
    text-decoration: none;
    transition: 0.3s;
}

.navlink:hover {
    color: #fff;
    text-decoration: none;
}

.navlinkActive {
    margin-left: 1vw;
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 510;
}

nav {
    margin-bottom: 5%;
}

@keyframes bg {
    0% {
        background-position: 1000px 1000px;
    }
}

.card {
    position: absolute;
    top: 60%;
    left: 50%;
    margin-right: -50%;
    transform: translate(-50%, -50%);
    background-color: #2c2f33;
    box-shadow: 0px 0px 40px rgb(10, 10, 10);
    width: auto;
    height: auto;
    border-radius: 30px;
    padding: 20px;
    margin: 5px;
    text-align: center;
    font-size: 40px;
    font-weight: 300;
    color: white;
    animation-name: slidein;
    animation-duration: 1s;
    animation-iteration-count: 1;
    transition: 0.2s;
    overflow: auto;
}

@keyframes slidein {
    0% {
        transform: translate(-50%, 100%);
    }
    100% {
        transform: translate(-50%, -50%);
    }
}

@keyframes fadein {
    0% {
        filter: opacity(0%);
    }
    50% {
        filter: opacity(0%);
    }
    100% {
        filter: opacity(100%);
    }
}

.fancybutton {
    background-color: rgb(30, 30, 30);
    padding: 10px;
    border-style: solid;
    font-family: Roboto;
    color: white;
    border-radius: 10px;
    border-color: orange;
    transition: 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding-left: 25px;
    padding-right: 25px;
    text-align: center;
}

.fancybutton:hover {
    border-color: greenyellow;
    padding-left: 75px;
    padding-right: 75px;
    transform: scale(1.2);
}

h2 {
    margin: 0;
    padding: 0;
}

.contact a {
    color: #ffffff;
}

.contact a:hover {
    text-decoration: none;
}

#usernameText {
    position: absolute;
    top: 12%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@media (max-width: 400px) {
    .toggle-button {
        display: flex;
    }

    .navlink {
        display: none;
    }
}