* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}

body {
    --xbox-color: #068802;
    --xbox-color-hover: #22bb1c;
    color: white;
    padding: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #a80f04, #3210f0);
    background-size: 400% 400%;
    animation: gradientAnimation 10s ease infinite;
}

main {
    margin: auto;
}

main > h1 {
    text-align: center;
}

.container {
    text-align: center;
    background-color: #ffffffa8;
    padding: 40px;
    margin: 20px 0;
    border-radius: 25px;
    box-shadow: 0 0 15px -5px black;
    max-width: 100%;
    border: 3px solid #ffffff65;
    position: relative;
    overflow: hidden;
}

.container-background {
    position: absolute;
    top: 0;
    left: -12.5%;
    height: 100%;
    z-index: -10;
}

input {
    width: 220px;
    max-width: 100%;
    padding: 15px;
    border: none;
    outline: none;
    border-radius: 30px;
    font-size: 1em;
    transition: width .5s cubic-bezier(0.79,0.14,0.15,0.86);
}

input:focus, input:valid {
    width: 380px;
}

button {
    padding: 15px 25px;
    border: none;
    background: var(--xbox-color);
    color: #ffffff;
    border-radius: 30px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color .3s ease, transform .3s ease;
}

button:hover {
    background: var(--xbox-color-hover);
    transform: translateY(-3px);
}

.error-container {
    text-align: center;
    margin-bottom: 20px;
    background-color: #eb6868b3;
    padding: 30px;
    border-radius: 25px;
    box-shadow: 0 0 30px #ff00004d;
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    gap: 20px;
}

.error-container p {
    color: #850404;
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 100%;
    position: relative;
}

.discord-button {
    padding: 15px 25px;
    background: #5865F2;
    color: #ffffff;
    border-radius: 30px;
    font-size: 1em;
    text-decoration: none;
    transition: background-color .3s ease, transform .3s ease;
    display: flex;
    margin-bottom: 15px;
    gap: 10px;
    align-items: center;
}

.discord-button:hover {
    background: #4854c9;
    transform: translateY(-3px);
}

.discord-button:active {
    transform: translateY(1px);
}

.discord-img {
    width: 20px;
    height: 20px;
}

.web-link {
    font-size: 1em;
    color: white;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.web-link:hover {
    color: var(--xbox-color-hover);
}

.loader {
    width: 100%;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    height: 0;
    margin: 0;
    transition: height .3s, margin .3s;
}

.loader.visible {
    margin-top: 20px;
    height: 5px;
}

.loader::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 30%;
    height: 100%;
    background: var(--xbox-color);
    border-radius: 10px;
    animation: loaderBarAnimation 1.3s cubic-bezier(.77,0,.18,1) infinite;
}

.profile-container {
    height: 0;
    width: 100%;
    overflow: hidden;
}

.profile-info {
    width: 100%;
    color: #333;
}

.profile-info.visible .profile-property {
    animation: profilePropertyReveal both .5s;
}

.profile {
    display: flex;
    flex-wrap: wrap;
}

.profile-details {
    max-width: 100%;
    text-align: left;
}

.profile-details h1 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.profile-details p {
    font-size: 1em;
    margin: 5px 0;
}

.profile-details a {
    color: #333;
}

.profile-header {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.profile-icon {
    width: 70px;
    height: 70px;
    border-radius: 10px;
}

.profile-property {
    display: flex;
    align-items: center;
    gap: 5px;
    transform: translateX(-20px);
    opacity: 0;
}

.profile-property img {
    width: 20px;
    height: 20px;
}

ul {
    list-style: none;
}

.watermarks-container {
    display: flex;
    align-content: start;
    flex-wrap: wrap;
    max-width: 140px;
    margin-left: auto;
}

.watermarks-container img {
    width: 70px;
}

ul.linked-accounts {
    padding-left: 20px;
}

.profile-info.visible .watermarks-container img {
    animation: watermarkReveal both .5s;
}

.footer {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer p {
    text-align: center;
}

.footer p:last-of-type {
    font-size: 13px;
    margin-top: 15px;
}

@keyframes loaderBarAnimation {
    from { left: -30%; }
    to { left: 100%; }
}

@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes profilePropertyReveal {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes watermarkReveal {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media screen and (max-width: 710px) {
    .profile {
        flex-direction: column;
    }

    .watermarks-container {
        margin-left: 0;
        margin-top: 50px;
        max-width: none;
    }
}