@font-face {
    font-family: Iosevka;
    src: url('/assets/Iosevka.ttf');
}

* {
    box-sizing: border-box;
    margin: 0 auto;
    font-family: Iosevka;
    color: #dddddd;
    user-select: none;
}

body {
    background-color: #181818ff;
    background-image: url('/assets/background.jpg');
    background-size: cover;
    width: 100%; height: 100%; position: absolute;
} 

@media (width >= 1280px) {  
    #card {
        width: 600px;
        height: 800px;
        backdrop-filter: blur(5px);
        border-radius: 100px;
    }

    #changelog-card { font-size: 36px; }
    
    .button {
        top: 40px; right: 40px;
        border-radius: 100px;
    }
    
    #pfp { height: 800px; }

    #username {
        font-size: 48px;
        margin: 20px 0;
    }

    #avatar {
        width: 256px; height: 256px;
    }

    #cherw, #cherw:hover {
        width: 128px;
        width: 128px;
    }

    #links { flex-direction: row; }

    #links:hover {
        width: 240px;
        padding: 0 20px;
    }
}

@media (width <= 450px) {
    #card {
        width: 300px;
        height: 400px;
        backdrop-filter: blur(2px);
        border-radius: 75px;
    }

    #changelog-card { font-size: 24px; }

    .button {
        top: 20px; right: 20px;
        border-radius: 75px;
        z-index: 2;
    } 

    #close { width: 36px; }
    
    #pfp { height: 400px; }

    #username {
        font-size: 36px;
        margin: 10px 0;
    }

    #avatar {
        width: 128px; height: 128px;
    }

    #cherw, #cherw:hover {
        width: 64px;
        width: 64px;
    }
}

@media (orientation: landscape) and (height < 400px) {
    #card {
        width: 600px;
        height: 300px;
        backdrop-filter: blur(2px);
        border-radius: 75px;
    }
    
    #changelog-card { font-size: 24px; }

    .button {
        top: 40px; right: 40px;
        border-radius: 75px;
    }
    
    #close { width: 24px; }

    #pfp { height: 300px; }

    #username {
        font-size: 24px;
        margin: 10px 0;
    }

    #avatar {
        width: 128px; height: 128px;
    }

    #cherw, #cherw:hover {
        width: 64px;
        width: 64px;
    }
    
    #links { flex-direction: column; }

    #links:hover {
        height: 240px;
        padding: 20px 0;
    }
}

@media (orientation: landscape) and (height >= 400px) and (width <= 1280px) {
    #card {
        width: 600px;
        height: 300px;
        backdrop-filter: blur(2px);
        border-radius: 75px;
    }

    #changelog-card { font-size: 24px;}

    .button {
        top: 40px; right: 40px;
        border-radius: 75px;
    }
    
    #pfp {
        height: 300px;
    }

    #username {
        font-size: 36px;
        margin: 10px 0;
    }

    #avatar {
        width: 128px; height: 128px;
    }

    #cherw, #cherw:hover {
        width: 64px;
        width: 64px;
    }

    #links { flex-direction: column; }

    #links:hover {
        height: 240px;
        padding: 20px 0;
    }
}

@media (width > 450px) and (orientation: portrait) and (width <= 1024px) {
    #card {
        width: 450px;
        height: 450px;
        backdrop-filter: blur(2px);
        border-radius: 75px;
    }

    #changelog-card { font-size: 36px; }

    .button {
        top: 40px; right: 40px;
        border-radius: 75px;
    }
    
    #pfp { height: 450px; }

    #username { 
        font-size: 32px; 
        margin: 10px 0; 
    }

    #avatar {
        width: 128px; height: 128px;
    }

    #cherw, #cherw:hover {
        width: 64px;
        width: 64px;
    }
}

@media (orientation: portrait) {
    #links { flex-direction: row; }

    #links:hover {
        width: 240px;
        padding: 0 20px;
    }
}

#changelog {
    width: 100%; height: 100%;
    position: absolute;
    background-color: #181818af;
    backdrop-filter: blur(15px);
    z-index: 2;
}

#changelog-card {
    position: absolute;
    width: min(80%, 600px); height: min(80%, 800px);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    border: 3px #4d4d4d7f solid;
    background-color: #2c2c2c7f;
    transition: .2s;
    overflow-y: scroll;
    padding: 25px;
}

#changelog-card .change:first-child {
    margin: 0;
}

#changelog-card .change {
    margin: 50px 0;
}

#card {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    border: 3px #4d4d4d7f solid;
    background-color: #2c2c2c7f;
    box-shadow: 0px 0px 100px 27px #0000009d;
    transition: .2s;
}

.button {
    position: absolute;
    border: 3px #4d4d4d7f solid;
    background-color: #2c2c2c7f;
    transition: .2s;
    padding: 10px 10px 5px 10px;
}

.button:hover {
    background-color: #4d4d4d7f;
}

#pfp {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: .2s;
}

#avatar {
    border-radius: 100%;
}

#avatar, #username {
    border: 0px #ddd solid;
    transition: .1s;
}

#avatar:hover {
    border: 3px #dddddd solid;
}

#username:hover {
    border-bottom: 3px #dddddd solid;
}

#cherw {
    content: url("/assets/cherw.png");
    user-select: none;
    position: relative;
}

#cherw:hover {
    content: url("/assets/cherw.gif");
}

#cherw-container {
    display: none;
    transition: .15s;
    justify-content: center;
    align-items: center;
}

li {
    list-style: '- ';
}

.change span.date {
    font-size: 32px;
    font-weight: 800;
}

.change li {
    font-size: 24px;
}

.crossed {
    text-decoration: line-through;
}

#links {
    position: absolute;
    bottom: 40px;
    right: 40px;
    width: 60px;
    height: 60px;
    background: #2c2c2c7f;
    border: 3px solid #4d4d4d7f;
    border-radius: 50px;
    box-shadow: 0 0 60px 20px #0000009d;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: .2s;
}

#links:hover {
    justify-content: space-between;
}

#links a {
    opacity: 0;
    transform: translateX(100px);
    pointer-events: none;
    transition: .2s;
}

#links:hover a {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

#links-icon {
    position: absolute;
    width: 35px;
    transition: .2s;
}

#links:hover #links-icon {
    opacity: 0;
}

.link {
    filter: invert();
}

.cherw-icon, .link {
    width: 35px;
}

#pages {
    position: absolute;
    display: flex;
    flex-wrap: wrap;
    bottom: 40px;
    left: 40px;
    border: 3px #4d4d4d7f solid;
    background-color: #2c2c2c7f;
    box-shadow: 0px 0px 100px 27px #0000009d;
    transition: .2s;
    border-radius: 25px;
    backdrop-filter: blur(2px);
}

.page {
    margin: 10px;
}

.page img {
    width: 35px;
}