article {
    background-color: var(--black);
    border-width: 1px;
    border-style: solid;
    border-color: var(--purple);
    border-radius: 5px;
    filter: drop-shadow(0px 0px 10px rgba(84, 41, 110, 0.4));
}

.mainflex {
    width: 1280px;
}

.main-container {
    height: 680px;
    width: 100%;
    display: block;
    position: relative;
}

.topbar {
    height: 25px;
    width: 100%;
    border-bottom: solid 1px var(--purple);
    background: linear-gradient(to right, var(--black), #1B0D28);
    position: relative;
    top: 0;
}
.about > .topbar {position: sticky;}

.topbar > img {
    position: absolute;
    right: -5px;
    pointer-events: none;
    user-select: none;
}

h1 {
    margin: 10px;
    text-align: center;
}

.about > h1 {margin-bottom: 5px;}
.about > p:first-of-type {margin-top: 0px;}

.webmaster > h1, .working-on > h1 {
    font-size: 24px;
}

p {
    margin-left: 15px;
    margin-right: 15px;
}

.about {
    position: relative;
    z-index: 2;
    width: 500px;
    height: 600px;
    margin: auto;
    top: 30px;
    overflow-y: auto;
    overflow-x: hidden;
}

#age-noscript-span {display: none;}
.about > ul {margin: 0;}
.about > p:has(+ul) {margin-bottom: 5px;}
.about .overlap {margin-right: 40px;} /* cancel this out on mobile */

.webmaster {
    width: 420px;
    height: 420px;
    position: absolute;
    top: 0px;
}

.webmaster ul {
    padding: 0;
    width: 80%;
    display: block;
    margin: auto;
    margin-top: 12px;
}

.webmaster li {
    text-align: center;
    list-style-type: none;
    background-color: var(--black);
    padding: 1px;
}

.webmaster li:first-of-type {
    padding-top: 5px;
}

.webmaster li:last-of-type {
    padding-bottom: 5px;
}

.id-buttons {
    width: 276px;
    margin: auto;
    margin-top: 5px;
}

.webmaster > img:first-of-type {
    width: 85%;
    display: block;
    margin: auto;
}

#this-bastard {
    width: 148px;
    height: 239px;
    position: absolute;
    background-image: url("/res/asset/about/webmaster.png");
    background-size: 297px 477px;
    left: 50%;
    bottom: 50px;
    transform: translateX(-50%) scale(1.28);
}

#this-bastard.blink {
    background-position: top right;
}

#this-bastard.annoyed {
    background-position: bottom left;
    cursor: grabbing;
}

#this-bastard.shocked {
    background-position: bottom right;
    cursor: grabbing;
}

#this-bastard.hover {
    cursor: pointer;
}

.webmaster .extra {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
}

.last-played {
    width: 330px;
    height: 145px;
    position: absolute;
    bottom: 95px;
    left: 45px;
}

.last-played h1 {
    font-size: 16px;
    margin-bottom: 15px;
    margin-top: 8px;
}

#widget {
    display: flex;
    position: relative;
    width: 95%;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    justify-content: center;
    align-items: center;
    height: 80px;
}

#widget p {
    margin: 0;
    margin-left: 20px;
}

#widget p:first-of-type {
    margin-top: 5px;
}

#widget div {
    overflow-x: hidden;
    overflow-y: auto;
    height: 100%;
}

#album-cover {
    max-width: 80px;
    object-fit: contain;
}

#last-played-credits {
    width: 100%;
    text-align: center;
    display: block;
    filter: opacity(80%);
    margin-top: 3px;
}

#loading {
    position: absolute;
    width: 30px;
    top: 63%;
    left: 50%;
    transform: translate(-50%, -50%);
    user-select: none;
    pointer-events: none;
}

#lastfm-error {
    position: absolute;
    left: 50%;
    top: 63%;
    translate: -50% -50%;
    user-select: none;
    display: none;
    z-index: 3;
}

#lastfm-error.visible {
    display: block;
    animation: error-appear 0.3s 1;
}

@keyframes error-appear {
    0% {transform: rotate(-3deg) scale(90%)}
    50% {transform: rotate(3deg)}
    100% {transform: rotate(0deg)}
}

.hidden {
    display: none;
}
.working-on {
    position: absolute;
    right: 170px;
    top: 0px;
    height: 320px;
    width: 200px;
}

.working-on h1 {
    margin-bottom: 0;
}

.working-on > p:first-of-type {
    border: 1px solid var(--purple);
    border-radius: 3px;
    padding: 10px;
    margin: 7px;
    margin-bottom: 0;
    height: 80px;
    overflow-y: auto;
    word-wrap: break-word;
}

.working-on > p:nth-of-type(2) {
    margin-top: 8px;
}

.working-on > img:first-of-type {
    position: absolute;
    z-index: -1;
    width: 65%;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
}

.sona {
    position: absolute;
    width: 320px;
    height: 320px;
    bottom: 0px;
    right: 100px;
    z-index: 3;
}

/* AAAAAAAAAAAAAAAAAAAAAAAAAAAA */
@media screen and (max-width: 1188px) {
    .mainflex {width: 100%}
    .main-container {
        display: flex;
        flex-direction: column;
        height: auto;
        justify-content: center;
        align-items: center;
    }
    
    .sona, .working-on, .webmaster {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
    }
    
    .last-played {
        bottom: auto;
        top: 430px;
        left: 12%;
    }
    
    .about {
        top: auto;
        width: 50%;
        margin: 0px;
    }
    
    .about .overlap {margin-right: 15px;}
    .about > ul {margin-bottom: 8px;}
    
    .left, .right {
        display: flex;
        justify-content: space-evenly;
    }
    
    .left {
        width: 85%;
    }
    
    .right {
        margin-top: 20px;
        width: 60%;
        flex-direction: row-reverse;
        margin-left: 0px;
    }
}

@media screen and (max-width: 1060px) {
    .left {width: 100%;}
    .right {width: 70%;}
    .last-played {left: 8%;}
}

@media screen and (max-width: 911px) {
    .pageheader {width: 100%;}
    
    .left {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    
    .webmaster {
        margin-top: 40px;
    }
    
    .about {
        margin: 0px;
        margin-top: 20px;
        width: 65%;
        height: auto;
    }
    
    .last-played {
        position: relative;
        left: auto;
        top: auto;
        margin-top: 10px;
    }
    
    .right {
        margin-top: 30px;
    }
}

@media screen and (max-width: 800px) {
    .right {
        width: 100%;
        justify-content: center;
    }
    
    .sona {margin-right: 8px;}
    .working-on {margin-left: 8px;}
}

@media screen and (max-width: 750px) {
    .about {width: 80%;}
}

@media screen and (max-width: 580px) {
    .webmaster {margin-top: 0px;}
    .right {
        flex-direction: column-reverse;
        align-items: center;
    }
    
    .sona {
        margin-right: 0;
        margin-bottom: 65px;
        margin-top: 5px;
    }
    
    .working-on {margin-left: 0;}
}

@media screen and (max-width: 510px) {
    .about {width: 95%;}
}

@media screen and (max-width: 430px) {
    .webmaster {
        aspect-ratio: 1 / 1;
        width: 100%;
        height: auto;
    }
    
    #this-bastard {
        transform: translateX(-50%) scale(1);
        bottom: 10%;
    }
}

@media screen and (max-width: 338px) {
    .sona {
        aspect-ratio: 1 / 1;
        width: 98%;
        height: auto;
        margin-top: 10px;
    }
    
    .sona .box {
        position: absolute;
        margin-top: 5%;
    }
    
    #viewport {
        position: relative;
        top: 23%;
        left: 25%;
        transform: scale(1) translate(-25%, -25%);
        aspect-ratio: 1 / 1;
        padding: 0px !important;
    }
    
    #fuck-css {display: none;}
    
    #this-bastard {
        transform: translateX(-50%) scale(90%);
        bottom: 0;
    }
    
    .last-played {
        height: auto;
        width: 70%;
    }
    
    #widget {
        flex-direction: column;
        height: auto;
    }
    
    #last-played-credits {
        position: absolute;
    }
}