:root {
    --color: magenta;
    --main: rgb(255, 111, 255);
    --sub: rgb(209, 133, 209);
    --bg: rgb(6, 2, 10);
    --bg-transparent: rgba(6, 2, 10, 0.8);
    --bg-highlight: rgb(16, 12, 20);
    --bg-better: rgb(26, 10, 26);
    --strip-height: 4rem;
    --transparent-black: rgba(0, 0, 0, 0.5);
}



@font-face {
    font-family: Square;
    src: url(/data/fonts/square_sans_serif_7.ttf);
}

@font-face {
    font-family: Dekatron;
    src: url(/data/fonts/Dekatron-SemiBold.otf);
}

* {
    box-sizing: border-box;
}

body>.root {
    position: relative;
    width: 100%;
    margin-top: 5%;
    display: flex;
    z-index: 1;
    color: var(--main);
    justify-content: center;
    align-items: flex-start;
    font-family: Dekatron;
    text-transform: uppercase;
}

@keyframes marquee-content {
    from {
        transform: translateX(0%);
    }

    to {
        transform: translateX(calc(-100% - 1rem));
    }
}

.main {
    --width: 80vw;
    width: var(--width);
    max-width: 100%;
    display: flex;
    margin-bottom: min(5%, 2rem);

    & .content {
        flex: 3;
        background: var(--bg-transparent);
        border: 0px solid var(--color);

        & .header {
            position: relative;
            max-width: var(--width);
            display: flex;
            flex-direction: row;
            align-items: stretch;
            font-family: Square;
            border: 0px solid var(--bg-better);
            background-color: var(--transparent-black);
            letter-spacing: 0.15rem;
            overflow: hidden;

            & .center {
                z-index: 1;
                font-size: 0.75rem;
                line-height: 1.5rem;
                width: 30%;
                max-width: 30%;
                white-space: nowrap;
                display: flex;
                justify-content: start;
                gap: 1rem;

                & .marqueed {
                    flex-shrink: 0;
                    display: flex;
                    justify-content: space-around;
                    min-width: 100%;
                    animation: 120s marquee-content linear infinite;
                }
            }

            & .left,
            & .right {
                --corner-shape: bevel;
                corner-shape: bevel;
                color: white;
                display: flex;
                align-items: center;
                flex: 1;
                height: auto;
                background-color: var(--bg-better);

                z-index: 2;
            }

            & .left {
                padding-left: 0.5em;
                border-top-right-radius: 999rem;
                background: RGB(109, 32, 109);
                background: linear-gradient(90deg, var(--bg) 70%, var(--bg-better) 100%);
            }

            & .right {
                padding-right: 0.5em;
                border-top-left-radius: 999rem;
                background: linear-gradient(-90deg, var(--bg) 70%, var(--bg-better) 100%);
            }
        }
    }
}

@keyframes blink {
    50% {
        filter: brightness(120%);
    }
}

page-[view="0"] {
    max-height: var(--strip-height);
}

page-[view="1"] {

    max-height: 100vh;
}

page- {
    & strip- .status img {
        height: 32px;
    }

    & strip- .status .on {
        display: none;
    }

    & strip- .status .off {
        display: initial;
    }

    & strip- .status.active .on {
        display: initial;
        animation: blink 2s steps(1, start) infinite;
    }

    & strip- .status.active .off {
        display: none;
    }

    display: block;
    overflow: hidden;
    transition: max-height 360ms linear;
    will-change: max-height;

    & strip- {
        font-family: Square;
        display: flex;
        flex-direction: row;
        align-items: center;
        padding-right: 2rem;
        gap: 0.5rem;
        height: var(--strip-height);
        border-top: 1px solid var(--sub);
        border-bottom: 1px solid var(--sub);
        font-size: 1rem;
        letter-spacing: 0.1rem;
        image-rendering: pixelated;
        image-rendering: crisp-edges;
        background-color: var(--bg-better);
        cursor: pointer;

        & .icon {
            overflow: hidden;
            display: flex;
            justify-content: flex-start;
            background: linear-gradient(-90deg, var(--bg) 0%, var(--bg-better) 100%);
            border-top: 1px solid var(--color);
            border-right: 1px solid var(--color);
            border-bottom: 1px solid var(--color);
            border-left: none;
            width: 5rem;
            padding: 0.5rem;
            border-bottom-right-radius: 9999rem;
            --corner-shape: bevel;
            corner-shape: bevel;

            & img {
                margin-left: 0.5rem;
                aspect-ratio: 1;
                height: 1rem;
            }

        }

        & .status {
            aspect-ratio: 1;
            height: 2rem;
        }
    }

    &>rem {
        padding: 1rem;
    }

    & content- {
        display: block;
        max-height: calc(100vh - var(--strip-height));
        overflow-y: scroll;
        scrollbar-width: none;
    }

}



.mainProfile {
    display: flex;
    flex-direction: row;
    gap: 8px;
    max-width: 100%;
    overflow: hidden;
    flex-wrap: wrap;

    & .profileCard {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
    }

    & .picture {
        max-width: 100%;
    }

    & .pictureWrapper {
        position: relative;
        width: var(--pfp-width);
        height: calc(var(--pfp-width)*1.2);
        max-width: 100%;
    }


    & .pictureWrapper .image {
        position: absolute;
        bottom: var(--pfp-frame);
        left: 0;
        width: var(--pfp-width);
        transform-origin: 20% 100%;
        transition: 0.5s all cubic-bezier(0.34, 2, 0.64, 1);
        filter: var(--globalized-hue-offset);

        & img {
            object-fit: cover;
            object-position: center;
        }
    }

    & .pictureWrapper .image img {
        width: 100%;
    }

    #clip0,
    #clip1,
    #clip2 {
        position: absolute;
        top: 0;
    }

    & .profileFrame {
        --pfp-frame: 0 px;
        --pfp-width: min(256px, 24cqi);
        background-image: url('/data/cyber/bg.jpg');
        background-size: cover;
        background-position: center center;
        width: var(--pfp-width);
        height: calc(var(--pfp-width)*1.2);
        display: flex;
        flex-wrap: wrap;
        position: relative;
        border: 1px solid #dc3545;
        margin: 0.3rem;

        & .disclaimer {
            width: 100%;
            height: 18px;
            bottom: 0;
            position: absolute;
            background-color: #dc3545;
            border: 1px solid #dc3545;
            color: white;
            font-family: Square;
            display: flex;
            justify-content: space-between;
            align-items: center;
            white-space: nowrap;

            & .text {
                font-size: min(1rem, 2cqi);
            }

        }
    }

    & .bigName {
        display: flex;
        flex-direction: column;
        align-items: start;
        font-family: Square;
        font-size: min(4rem, 13cqi);
        line-height: 3rem;
        overflow: hidden;
    }

    & .buttons-parent {
        margin-top: 1rem;
    }

    .contact {
        margin-left: auto;
        margin-right: 0.5rem;
        flex: 0.5;
        display: flex;
        flex-direction: column;
        justify-content: end;

        & .method {
            font-size: 0.75rem;
            padding-top: 1rem;
            padding-bottom: 0.25rem;
            gap: 1rem;
            display: flex;
            justify-content: space-between;
            border-bottom: 1px solid var(--sub);


            & b {
                text-shadow: 0px 0px 10px magenta;
                font-size: 1rem;
                color: magenta;
                text-transform: initial;
            }
        }
    }

}

.buttons31 {
    margin-top: 1rem;
    height: fit-content;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    min-width: unset;
    width: calc((88 + 8) * 12px);
    max-width: 100%;
}

.buttons31 .button {
    transition: transform 0.15s linear;
    z-index: 1;
    image-rendering: pixelated;
}

.buttons31 .button:hover {
    transform: scale(2);
    z-index: 2;
}

.nowplaying {
    margin-top: 1em;
    color: var(--globalized-text-color);
    border-left: 2px solid var(--globalized-color);
    padding: 4px;
    padding-top: 8px;
    padding-bottom: 8px;
    box-sizing: border-box;
    max-width: 100%;
    display: flex;
    flex-direction: row;
    background: linear-gradient(90deg, var(--secondary-color) 0%, rgba(255, 0, 255, 0) 10%);

    & .title {
        border-radius: 8px;
        box-shadow: inset 0 0 6px rgba(255, 255, 255, 0.4);
        background-color: rgba(177, 177, 177, 0.3);
        padding: 0.2em;
        padding-left: 0.5em;
        padding-right: 2em;
        white-space: nowrap;
        box-sizing: border-box;
        display: none;
    }
}

.np-artist,
.np-title,
.np-name,
.np-duration {
    display: inline-block;
    white-space: nowrap;
    transform-origin: left;
    align-self: flex-end;
}

.tinyText {
    font-size: min(0.75rem, 2cqi);
    align-self: flex-end;
    color: var(--sub);
}

.cssShoutBox {
    width: 100%;
    height: 20rem;
    border: none !important;
    background-color: transparent !important;
}

.thoughts {
    height: 26rem;
    overflow-y: scroll;
    padding: 1rem;
    max-width: min(100%,40rem);
    background-color: var(--bg-highlight);
}

.thought {
    flex: 1;
    margin: 0.5rem;
    border: 1px solid var(--main);
    overflow: hidden;
    color: rgb(222, 217, 211);
}

.thought .header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border: 1px solid var(--main);
    background-color: #1a1a1a;
}

.thought .content {
    padding: 1rem 0.75rem;
    background-color: black;
    color: white;
}

.thought .footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    border: 1px solid var(--main);
}

.footer .comments {
    cursor: not-allowed;
}


.footer .icons {
    display: flex;
    gap: 0.75rem;
}

.footer .icons svg {
    width: 1.5rem;
    height: 1.5rem;
    cursor: not-allowed;
}

.display-name {
    font-weight: 700;
    color: white;
}

.likes-grid {
    margin-left: auto;
    margin-right: auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 8px;

    & like- {
        display: block;
        position: relative;
        background-color: black;
        aspect-ratio: 2/1;
        justify-content: center;
        align-items: center;

        & .background {
            font-family: Square;
            z-index: 1;
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            filter: grayscale(50%) blur(3px) brightness(60%);
            -webkit-filter: grayscale(50%) blur(3px) brightness(60%);
            -moz-filter: grayscale(50%) blur(3px) brightness(60%);
        }

        & b {
            font-weight: unset;
            font-family: Square;
            width: fit-content;
            z-index: 2;
            display: block;
            position: relative;
            padding-top: 5%;
            padding-left: 5%;
            padding-right: 1%;
            border-bottom: 1px solid magenta;
            border-right: 1px solid magenta;
            background-color: var(--transparent-black);
            font-size: 2rem;
        }

        & span {
            text-align: end;
            font-weight: unset;
            width: fit-content;
            z-index: 2;
            position: absolute;
            right: 0px;
            bottom: 0px;
            background-color: var(--transparent-black);

            padding-bottom: 5%;
            padding-left: 5%;
            padding-right: 1%;
            padding-top: 1%;
            border-top: 1px solid magenta;
            border-left: 1px solid magenta;
        }
    }
}

.webrings {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;

    & a {
        color: rgb(0, 146, 0);
    }

    & a:hover {
        color: rgb(0, 255, 0);
    }
}

#ibutton {
    cursor: pointer;
}

#dialogTitle {
    writing-mode: vertical-rl;
    font-family: Square;
    font-size: 2rem;
    max-height: 20rem;
}

#dialogDiv {
    padding: 1rem;
    font-size: 1.5rem;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 1rem;
}


#dialogIcon {
    object-fit: contain;
    object-position: top;
}

#rollNewDialog,
#muteBlips {
    aspect-ratio: 1;
    padding: 0.5rem;
    align-self: flex-start;
    margin-left: auto;
    background-color: var(--transparent-black);
    border: 1px solid var(--main);
    margin-bottom: 1rem;
    margin-left: 1rem;
}

.win7 {
    max-width: 100%;
}

.flex2 {
    display: flex;
    justify-content: start;
    flex-wrap: wrap;
    flex-grow: 1;
    flex-direction: column;
    width: 100%;
    margin-top: 32px;
}

.keygen ul {
    list-style: none;
    padding-left: 0;
}

.keygen .bigText {
    font-size: 2rem;
}

.keygen .biggerText {
    font-size: 3rem;
}

.keygen .smallText {
    font-size: 0.7rem;
}

.keygen .parent {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
}

.keygen {
    position: relative;
    display: flex;
    flex-direction: column;
    margin-left: 8px;
    margin-right: 8px;
}


.keygen a:visited,
.keygen a:link,
.keygen a:active {
    color: white;
}

.keygen .banner {
    filter: var(--globalized-hue-offset)
}

.keygen button {
    flex-grow: 1;
    margin: 0.25rem;
    background-color: black;

    border: 1px var(--main) solid;
    padding: 0.5rem;
}

.win7 textarea {
    color: black;
}

.toys {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 1rem;
    max-width: 100%;

    & .forklift {
        display: flex;
        flex-wrap: wrap;
        flex-direction: row;
        max-width: 100%;
    }
}

.modfileWrapper {
    display: flex;
    flex-direction: row;
    box-sizing: border-box;
    max-width: 100%;
    flex-wrap: wrap;
}

.modfiles {
    gap: 8px;
    width: fit-content;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    grid-column-gap: 0px;
    grid-row-gap: 0px;
}

.modfile-info {
    width: 25%;
    border-left: 1px solid var(--globalized-color);
    overflow: hidden;
    position: relative;
    padding: 8px;
}

.file {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px;
    max-width: min(400px, 100%);
}

.file img {
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file span {
    margin-top: 16px;
    text-align: center;
    font-size: 24px;
}

div.root div.footer {
    min-height: var(--strip-height);
    background-color: black;
    display: flex;
    flex-direction: row;
    padding-right: 1rem;
    position: relative;
    background: linear-gradient(-0deg, var(--bg) 0%, var(--bg-better) 100%);
    flex-wrap: wrap;

    & button {
        margin: 0.25rem;
        background-color: transparent;

        border: 1px var(--main) none;
        & img{
            height: 2rem;
            width: 2rem;
            image-rendering: pixelated;
        }

        &:hover {
            filter: brightness(150%);
        }
    }

    & .controls {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 1rem;

        & .volume{
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
    }

    & .info{
        display: flex;
        font-family: Square;
        flex-direction: row;
        align-items: center;
        gap: 0.4rem;
        margin-left: auto;
        font-size: 1.25rem;
        flex-wrap: wrap;
        justify-content: center;
    }
}

#spectrum-canvas {
    height: var(--strip-height) !important;
    width: min(45%, 10rem);


    & canvas {
        height: 100%;
        width: 100%;
    }
}

/*********** Baseline, reset styles ***********/
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: pointer;
}

/* Removes default focus */
input[type="range"]:focus {
  outline: none;
}

/******** Chrome, Safari, Opera and Edge Chromium styles ********/
/* slider track */
input[type="range"]::-webkit-slider-runnable-track {
  background-color: #5f0061;
  border-radius: 0px;
  height: 0.5rem;
}

/* slider thumb */
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; /* Override default look */
  appearance: none;
  margin-top: -4px; /* Centers thumb on the track */
  background-color: #ff00ff;
  border-radius: 0rem;
  height: 1rem;
  width: 1rem;
}

input[type="range"]:focus::-webkit-slider-thumb {
  outline: 3px solid #ff00ff;
  outline-offset: 0.125rem;
}

/*********** Firefox styles ***********/
/* slider track */
input[type="range"]::-moz-range-track {
  background-color: #5f0061;
  border-radius: 0px;
  height: 0.5rem;
}

/* slider thumb */
input[type="range"]::-moz-range-thumb {
  background-color: #ff00ff;
  border: none; /*Removes extra border that FF applies*/
  border-radius: 0rem;
  height: 1rem;
  width: 1rem;
}

input[type="range"]:focus::-moz-range-thumb{
  outline: 3px solid #ff00ff;
  outline-offset: 0.125rem;
}

@media (max-aspect-ratio: 1/1) {
    .main {
        flex-direction: column;

        & .categories {
            transform: rotateZ(90deg);
            margin-right: 0rem;
            max-width: 25rem;
            margin-bottom: 4rem;
            align-self: end;
        }

        category- {
            transform: rotateZ(-45deg);
        }
    }

    .modfile-info {
        width: 100%;
    }
}


@media (max-aspect-ratio: 1/1.5) {
    .main {
        flex-direction: column;

        & .categories {
            transform: rotateZ(90deg);
            margin-right: 0rem;
            max-width: 25rem;
            align-self: end;
            gap: 1rem;
        }

        category- {
            transform: rotateZ(-0deg);
            border-bottom-right-radius: 0;
            min-width: unset;
            margin-right: -3rem;
        }
    }

    .likes-grid {
        grid-template-columns: 1fr;
    }

    #dialogDiv {
        flex-direction: column;
    }

    #dialogTitle {
        writing-mode: initial;
    }

    div.root div.footer {
        padding-left: 0rem;
        padding-right: 0rem;
    }

}