body 
{
    margin: 0;
    background-color: #ef9385;
    background-image: url('Images/RinBG.png');
    background-repeat: repeat;
    color: #87382d;
    font-family: 'Nunito', sans-serif;
    animation: scrollBackground 50s linear infinite;
}

.loading-screen 
{
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #87382d;
    z-index: 200;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    animation: fadeOutLoader 0.5s ease-in-out 1s forwards;
}

.progress-bar-container 
{
    width: 90%;
    max-width: 500px;
    height: 36px;
    border: 2px solid #ef9385;
    border-radius: 6px;
    padding: 2px;
    box-sizing: border-box;
}

.progress-bar-fill 
{
    height: 100%;
    background-color: #ef9385;
    border-radius: 4px;
    width: 0%;
    animation: fillProgress 1s ease-in-out forwards;
}

.loading-text 
{
    margin: 0;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 2px;
    color: #ef9385;
}

.layout 
{
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 60px;
    box-sizing: border-box;
}

.top-bar 
{
    width: 100%;
    background-color: #87382d;
    padding: 0 40px;
    box-sizing: border-box;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    animation: swipeUp 0.8s cubic-bezier(0.77, 0, 0.175, 1) 1s forwards;
    height: 100vh;
}

.top-bar-content 
{
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    animation: fadeInText 0.6s ease-out 1.6s forwards;
    opacity: 0;
}

#top-text 
{
    transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
    transform: translateX(0);
}

.text-move-center 
{
    transform: translateX(calc(50vw - 50% - 40px)) !important;
}

.top-bar p 
{
    margin: 0;
    font-weight: 600;
    font-size: 20px;
    letter-spacing: 0.5px;
    color: #ef9385;
}

.main 
{
    flex: 1;
    padding: 20px 20px 100px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
}

.main-logo 
{
    width: 400px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.main-bottom 
{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.itch-link 
{
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}

.itch-icon 
{
    width: 200px;
    height: auto;
    display: block;
    transition: transform 0.2s ease;
}

    .itch-icon:hover 
    {
        transform: scale(1.1);
    }

@keyframes scrollBackground 
{
    from 
    {
        background-position: 0 0;
    }

    to 
    {
        background-position: 1920px 1080px;
    }
}

@keyframes swipeUp 
{
    from 
    {
        height: 100vh;
    }

    to 
    {
        height: 60px;
    }
}

@keyframes fadeInText 
{
    from 
    {
        opacity: 0;
    }

    to 
    {
        opacity: 1;
    }
}

@keyframes fadeOutLoader 
{
    from 
    {
        opacity: 1;
        visibility: visible;
    }

    to 
    {
        opacity: 0;
        visibility: hidden;
    }
}

@keyframes fillProgress 
{
    from 
    {
        width: 0%;
    }

    to 
    {
        width: 100%;
    }
}

.logo-pulsing {
    animation: musicHeartbeat 0.5s ease-in-out infinite;
}

@keyframes musicHeartbeat 
{
    0% 
    {
        transform: scale(1);
    }

    30% 
    {
        transform: scale(1.01);
    }

    60% 
    {
        transform: scale(0.99);
    }

    100% 
    {
        transform: scale(1);
    }
}

.fade-out-links 
{
    animation: fadeOutEffect 0.4s ease-in-out forwards;
}

.fade-in-links 
{
    animation: fadeInEffect 0.4s ease-in-out forwards;
}

@keyframes fadeOutEffect 
{
    from 
    {
        opacity: 1;
        visibility: visible;
    }

    to 
    {
        opacity: 0;
        visibility: hidden;
    }
}

@keyframes fadeInEffect 
{
    from 
    {
        opacity: 0;
        visibility: hidden;
    }

    to 
    {
        opacity: 1;
        visibility: visible;
    }
}

@media (max-width: 768px) 
{
    .top-bar 
    {
        animation: swipeUpMobile 0.8s cubic-bezier(0.77, 0, 0.175, 1) 1s forwards;
    }

    .top-bar-content 
    {
        flex-direction: column;
        justify-content: space-between;
        height: auto;
        padding: 5px 0;
    }

    .top-bar p 
    {
        padding: 10px 0;
        font-size: 16px;
        text-align: center;
    }

    .layout 
    {
        padding-top: 85px;
    }

    .main-logo 
    {
        width: 85%;
        max-width: 300px;
        pointer-events: none !important;
        cursor: default !important;
    }

    .main-bottom 
    {
        flex-direction: column;
        gap: 20px;
        margin-top: 30px;
    }

    .itch-icon
    {
        width: 160px;
    }

    @keyframes swipeUpMobile 
    {
        from {
            max-height: 100vh;
        }

        to {
            max-height: 120px;
        }
    }
}