

.grid {
    grid-template-areas:
        "header header"
        "top main"
        "b main"
        "bott under"
        "footer footer";
}

.under {
    grid-area: under;
    height: fit-content;
}



.box-titled:has(#chatbox) {
    height: fit-content;
    min-width: 45%;
}

#ce {
    justify-content: end;
    min-height: 180px;
}

#current-box {
    width: 60%;
    height: fit-content;

    background-color: var(--box-background-color);
    background-blend-mode: color-dodge;
    background-image: var(--plaid-pattern-1);
}


.no-border {
    border: none !important;
}


#lastfm-widget {
    display: flex;
    flex-direction: column;
    gap: 5px;
    position: relative;
    overflow: hidden;
}

#widget-content {
    display: flex;
    gap: 10px;
    align-items: center;
    z-index: 10;
}


:root {
    --widget-cd-size: 96px;
}

@media only screen and (max-width: 500px) {
    :root {
        --widget-cd-size: 80px;
    }
}

#cover-art {
    height: var(--widget-cd-size);
    width: var(--widget-cd-size);
    border-radius: 50%;
}


#cover-art-container {
    position: relative;
    height: var(--widget-cd-size);
    width: var(--widget-cd-size);
    z-index: 10;
    background-color: var(--box-border-color);
    mask-image: url(/_img/assets/cd.png);
    mask-size: contain;
}

#cover-art-container::after {
    content: "";
    position: absolute;
    width: var(--widget-cd-size);
    height: var(--widget-cd-size);
    top: 0;
    left: 0;
    background-color: white;
    mask-image: url("/_img/assets/cdshine.png");
    mask-size: contain;
    mix-blend-mode: soft-light;
    opacity: 70%;
    z-index: 11;
    border-radius: 50%;
}

.spinning {
    -webkit-animation:spin 5s linear infinite;
    -moz-animation:spin 5s linear infinite;
    animation:spin 5s linear infinite;
}

@-moz-keyframes spin { 100% { -moz-transform: rotate(360deg); } }
@-webkit-keyframes spin { 100% { -webkit-transform: rotate(360deg); } }
@keyframes spin { 100% { -webkit-transform: rotate(360deg); transform:rotate(360deg);}}


#song {
    font-weight: bold;
    font-size: 1.2em;
}

#song::before {
    content: "🎧🎶 ";
}

#widget-credit {
    font-size: 0.8em;
    opacity: 0.8;
    z-index: 10;
}


#background {
    position: absolute;
    top: -40%;
    left: -20%;
    border-radius: 3px;
    width: 140%;
    height: 180%;
    filter: blur(45px);
    opacity: 60%;
}

.rainworld-theme #background {
    mix-blend-mode: overlay;
}

.shoreline-theme #background {
    mix-blend-mode: overlay;
}


.music {
    position: relative;
}

#fm {
    position: absolute;
    height: 210px;
    top: -210px;
    image-rendering: auto;
}

.bott {
    justify-content: end;
}

.bott img {
    max-width: 100%;
}


#community {
    display: flex;
    flex-direction: row;
    gap: 5px;
    justify-content: space-between;
    align-items: flex-start;
}

@media only screen and (max-width: 700px) {
    #community {
        flex-direction: row;
        gap: 5px;
    }
}

@media only screen and (max-width: 550px) {
    #community {
        flex-direction: column;
        gap: 0px;
    }

    #community>* {
        width: 100%;
    }
}

#chattable-container {
    display: flex;
}

#chattable-container iframe{
    height: 420px;
    overflow: visible;
    min-width: 320px;
}

#chattable {
    border: 1px solid var(--box-border-color-2);
    border-radius: 3px;
}


.shoreline-theme .rainworld-ambient-img,
.rainworld-theme .shoreline-ambient-img,
.disco-theme .rainworld-ambient-img,
.disco-theme .shoreline-ambient-img
{
    display: none !important;
}

.rainworld-theme #amb-d1 {
    position: absolute;
    height: 200px;
    top: 0;
    right: 30px;
    z-index: 100;
}

.rainworld-theme #amb-d2 {
    position: absolute;
    height: 140px;
    top: 0;
    right: 70px;
    z-index: 100;
    transform: scaleX(-1);
}

.rainworld-theme #amb-d3 {
    position: absolute;
    height: 175px;
    top: 0;
    left: 80px;
    z-index: 100;
}

.rainworld-theme #sl-d {
    position: absolute;
    height: 160px;
    right: 0px;
    bottom: 0px;
}

.shoreline-theme #amb-l1 {
    height: 80px;
    position: absolute;
    bottom: 252px;
    right: 10px;
    z-index: 3;
}

.shoreline-theme #amb-l2 {
    height: 130px;
    position: absolute;
    z-index: -1;
    bottom: 24px;
    left: -20px;
    transform: rotate(-2deg);
}

.shoreline-theme #sl-l {
    position: absolute;
    height: 70px;
    right: 0px;
    bottom: 0px;
}

#intro-box {
    position: relative;
}

.rainworld-theme #intro-box p {
    width: 85%;
}

.disco-theme #white {
    display: none;
}

.rainworld-theme #white {
    position: absolute;
    height: 120px;
    left: 90px;
    transform: rotate(-10deg);
    top: 30px;

    filter: invert(50%) brightness(130%) opacity(20%);
    transition: filter 100ms ease-in;
}

.shoreline-theme #white {
    position: absolute;
    height: 120px;
    left: 60px;
    transform: rotate(-20deg);
    top: 20px;

    filter: invert(50%) brightness(30%) opacity(25%);
    transition: filter 100ms ease-in;
}


#white:hover {
    filter: invert(0%) brightness(100%) opacity(100%);
}



#changelog-container {
    background-color: var(--box-background-color);
    border-radius: 3px;
    border: 1px dotted var(--box-border-color);
}

#changelog-container h3 {
    text-align: end;
    padding: 0px 10px;
    background-color: var(--box-background-color-2);
}

#changelog {
    font-size: 0.8em;
    display: flex;
    flex-direction: column;
    border-left: 1px dotted var(--box-border-color);
    margin: 3px 5px;
    height: 160px;
    overflow-y: auto;
}

.update-item {
    border-radius: 0px 0px 0px 3px;
    border-bottom: 1px dotted var(--box-border-color);
    padding-top: 5px;
}

.shoreline-theme .update-item {
    background-color: var(--box-background-color);
}

.update-date {
    background: linear-gradient(to right, var(--highlight-color-2-soft) 0%, #00000000 60%);
    padding: 0px 3px;
    color: var(--highlight-color);
    font-weight: bold;
}

.update-content li {
    list-style: "> ";
}

.update-content:not(:has(ul)) {
    padding-left: 15px;
    padding-top: 3px;
    padding-bottom: 3px;
}


#chattable-neighbor {
    display: flex;
    flex-direction: column;
    gap: 5px;
    height: 100%;
    justify-content: end;
}

#ad {
    width: 100%;
    height: auto;
    border-radius: 3px;
}


@media only screen and (max-width: 700px) {

    .header {
        order: 1;
    }

    .top {
        order: 2;
    }

    .main {
        order: 3;
    }

    .bott {
        order: 7;
        margin: -5px;
    }

    .under {
        order: 5;
    }

    footer {
        order: 6;
    }

    .bott img {
        max-width: 100%;
    }

    #status {
        background-color: var(--box-background-color);
        border: 1px dotted var(--box-border-color);
        padding: 10px;
    }

    #f1 {
        position: absolute;
        height: 130px;
        top: 147px;
        z-index: 1;
    }

    .music {
        padding-top: 190px;
    }

    #fm {
        top: -20px;
    }

    #current-box {
        min-height: 0px;
        width: 100%;
    }

    #ce {
        min-height: 0px;
    }


    #featured-img-container, #changelog-container {
        width: 100%;
    }


    .shoreline-theme #intro-box {
        padding-bottom: 55px;
    }

    .rainworld-theme #intro-box {
        padding-bottom: 60px;
    }

    .rainworld-theme #intro-box p{
        width: 100%;
    }

    .rainworld-theme #intro-box p:nth-of-type(2) {
        width: 80%;
    }

    .shoreline-theme #amb-l1, .shoreline-theme #amb-l2 {
        display: none;
    }

    #white {
        display: none;
    }

    #chattable-container iframe{
        width: 100%;
        /* height: 420px; */
    }

}