/*global values*/

:root,
[data-selected-theme="purple"] {
    --font-family: "Kosugi", sans-serif;
    --font-size: 14px;
    --main-color: #1c163d;
    --secondary-color: #7484bc;
    --tertiary-color: #FFF;
    --purple-color: #593AEE;
    --green-color: #b7ff25;
    --cyan-color: #80cf9b;

    --glass-gradient: linear-gradient(180deg, rgba(184, 184, 184, 0.5) 0%, rgba(102, 102, 102, 0.5) 50%, rgba(212, 212, 212, 0.3) 70%);
    --main-gradient: linear-gradient(90deg, var(--purple-color), var(--cyan-color), var(--green-color));
    --main-banner: url(assets/banner2.png);
    --main-background: url(assets/background2.png);
}

[data-selected-theme="green"] {
    --main-color: #2f2f43;
    --secondary-color: #536e57;
    --purple-color: #00ff7b;
    --cyan-color: #8cff00;
    --green-color: #d4ff00;
    --main-gradient: linear-gradient(90deg, var(--purple-color), var(--cyan-color), var(--green-color));
    --main-banner: url(assets/banner2.png);
    --main-background: url(assets/frogbackground.jpg);
}

[data-selected-theme="grey"] {
    --main-color: #424242;
    --secondary-color: #666666;
    --purple-color: #2b2b2b;
    --cyan-color: #575757;
    --green-color: #bbbbbb;
    --main-gradient: linear-gradient(90deg, var(--purple-color), var(--cyan-color), var(--green-color));
    --main-background: url(https://images.unsplash.com/photo-1670488799864-b391cae611f6?q=80&w=1974&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=NHwxMjA3fDA%3D);
    --main-banner: url(assets/banner2grey.png);
}


a {
    color: var(--tertiary-color);
}

body {
    background: var(--main-background);
    background-size: cover;
    background-attachment: fixed;
    font-family: var(--font-family);
    font-size: var(--font-size);
    display: flex;
    flex-direction: column;
    color: var(--tertiary-color);
    gap: 25px;
    margin: 0px;
    text-transform: lowercase;
    align-items: center;
}



body.weblog {
    display: flex;
}

button {
    background: var(--glass-gradient), var(--main-gradient);
    border: groove 2px white;
    border-radius: 5px;
    box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.75);
    padding: 2px;
}

select:not([multiple]) {
    padding: 2px 3px;
    box-sizing: border-box;
    color: #222;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    position: relative;
    padding-right: 30px;
    background-image: var(--arrow-icon);
    background-position: center right;
    background-repeat: no-repeat;

    &:not(:disabled) {
        &:active {
            outline: none;
        }

        &:focus {
            box-shadow: none;
            outline: 1px dotted #000;
            outline-offset: -4px;
        }
    }
}




menu {
    display: flex;
    flex-direction: row;
    padding-inline-start: 0px;
    gap: 15px;
    background: var(--glass-gradient), var(--main-gradient);
    position: fixed;
    width: 100%;
    margin-block-start: 0em;
    margin-block-end: 0em;
    z-index: 10;
    align-items: center;

}

menu>li {
    font-size: 16px;
    padding: 5px;
    list-style-type: none;
}

menu>iframe {
    width: fit-content !important;
    margin-left: auto;
    max-width: 150px;
    height: 25px;
}


.theme {
    margin-left: auto;
    padding-right: 15px;
}



.page {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 760px;
}

.right {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 30px;
}

.left {
    display: flex;
    flex-direction: column;
    height: auto;
    width: 30%;
    max-width: 250px;
    gap: 30px;
}

.atabook {
    height: 600PX;
    border: none;
}

.column-right {
    display: flex;
    gap: 15px;
}

.surround {
    display: flex;
    gap: 15px;
    margin: 20px;
    margin-top: 40px;
    width: fit-content;
}

/*windows 7 style*/


.title-bar {
    align-items: center;
    background: var(--glass-gradient), var(--main-gradient);
    display: flex;
    justify-content: space-between;
    padding: 3px 2px 3px 3px;
    color: #FFF;
    border-bottom: 1px solid var(--main-color);
    border-radius: 5px 5px 0px 0px;
}

.title-bar-controls {
    display: flex;
}

.title-bar-controls button {
    display: block;
    min-height: 14px;
    min-width: 16px;
    padding: 0;
    margin-left: 3px;
    border-radius: 2px;
    box-shadow: 0px 1px 2px 0px var(--main-color);
    background: var(--secondary-color);
    border: none;
}

.title-bar-controls button[aria-label="Close"],
.title-bar-controls button[aria-label].close {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg width='8' height='7' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M0 0h2v1h1v1h2V1h1V0h2v1H7v1H6v1H5v1h1v1h1v1h1v1H6V6H5V5H3v1H2v1H0V6h1V5h1V4h1V3H2V2H1V1H0V0z' fill='%23FFF'/%3E%3C/svg%3E");
    background-position: top 3px left 4px;
    background-repeat: no-repeat;
}

.title-bar-controls button[aria-label="Maximize"],
.title-bar-controls button[aria-label].maximize {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg width='9' height='9' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M9 0H0v9h9V0zM8 2H1v6h7V2z' fill='%23FFF'/%3E%3C/svg%3E");
    background-position: top 2px left 3px;
    background-repeat: no-repeat;

}

.title-bar-controls button[aria-label="Minimize"],
.title-bar-controls button[aria-label].minimize {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg width='6' height='2' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23FFF' d='M0 0h6v2H0z'/%3E%3C/svg%3E");
    background-position: bottom 3px left 4px;
    background-repeat: no-repeat;
}

.window-body {
    background: var(--main-color);
    padding: 5px;
    border-radius: 0px 0px 5px 5px;
    height: auto;
}

header>.window-body>img {
    width: 100%;
}

.window {
    width: 100%;
    position: relative;
}


.social-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-right: 5px;
}

.socials {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}





/*mobile layouts*/

@media (max-width: 1200px) {

    .surround {
        justify-content: center;
    }


    .column-right {
        flex-direction: column;
        width: 100%;
    }

    .page {
        max-width: none;
    }

    .left {
        order: 1;
    }

    .right {
        flex-direction: row;
        order: 2;
    }
}

@media (max-width:900px) {
    .surround {
        flex-direction: column;
    }

    .left {
        max-width: none;
        width: 100%;
        flex-direction: column;
        flex-wrap: wrap;
        max-height: 700px;
    }

    .left .window {
        max-width: none;
        width: calc(50% - 15px);
    }

    .socials {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    .atabook {
        width: 100%;
    }

    .social-container {
        flex-direction: row;
    }
}

@media(max-width:715px) {
    .right {
        flex-direction: row;
    }

    .atabook {
        width: 100%;
    }

    ws-widget {
        width: 100% !important;
        max-width: 300px !important;
    }
}

@media(max-width:600px) {
    .right {
        flex-direction: column;
    }
}

@media(max-width:355px) {
    .left {
        flex-direction: column;
        max-width: 100%;
    }

    .left .window {
        max-width: 100% !important;
    }

}

.rotate-img {
    animation: spin 2s infinite linear;
    border-radius: 50%;
    width: 90%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border: groove 4px var(--main-color);
    position: relative;
}

@media (prefers-reduced-motion: reduce) {
    .rotate-img {
        animation: none;
    }

}

.music-player {
    display: flex;
    flex-direction: column;
    padding: 15px;
    font-family: Silkscreen, monospace;
    background: var(--glass-gradient), var(--main-gradient);
    border: groove 2px white;
    border-radius: 5px;
    box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.75);

}

#now_playing {
    margin-top: 15px;
    padding: 3px;
    background-color: var(--main-color);
}

#album_art::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30%;
    aspect-ratio: 1 / 1;
    background: var(--main-color);
    border-radius: 100%;
    border: groove 2px rgb(0, 0, 0);
    box-shadow: inset 0px 0px 0px 5px rgba(0, 0, 0, 0.425);
    z-index: 2;
}

#album_art {
    display: flex;
    justify-content: center;
    align-self: center;
    width: 90%;
    position: relative;
}

@keyframes spin {
    from {
        transform: rotateZ(0deg);
    }

    to {
        transform: rotateZ(360deg);
    }
}

/* index page */

body.index-page {
    background: url(classpect-webring/background-clouds.png);
    font-family: 'Courier New', Courier, monospace;
    margin: 50px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.index-left,
.index-right {
    display: flex;
    flex-direction: column;
    gap: 15px;

}

.index-right {
    max-width: 500px;
}

.index-page button {
    padding: 10px;
}

.index-container {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

.home-banner {
    content: var(--main-banner);
    width: 100%;
}


/* links page */
body.links {
    background: url(assets/peoplestilllivehere.png);
    background-size: cover;
    --main-color: #294634;
    --secondary-color: #536e57;
    --purple-color: #1eff00;
    --cyan-color: #00ff6a;
    --green-color: #25e6ff;
    --main-gradient: linear-gradient(90deg, var(--purple-color), var(--cyan-color), var(--green-color));

}


.link-context {
    display: flex;
    flex-direction: column;
    width: auto;
    max-width: 500px;
}

.link-context img {
    display: flex;
    width: 100%;
}

.webrings {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 15px;
    max-width: 100%;
}

.webrings .window {
    width: 100%;
}

.webring-outline {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    max-height: 500px;
    overflow: scroll;
}

.links table {
    font-size: var(--font-size);
    border-spacing: 0px;
    font-size: 12px;
}

.links p {
    margin-block: 0px;
    margin-bottom: 15px;
}

.links table td:not(:last-child) {
    border-right: 2px solid var(--purple-color);
}

.links table td {

    border-bottom: 2px solid var(--green-color);
    padding: 4px 15px;
}



/* Interest page */
body.interests {
    --main-color: #424242;
    --secondary-color: #666666;
    --purple-color: #2b2b2b;
    --cyan-color: #575757;
    --green-color: #bbbbbb;
    --main-gradient: linear-gradient(90deg, var(--purple-color), var(--cyan-color), var(--green-color));
    min-height: 2000px;
    background: #000000;

}

.bgfix {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    opacity: 0;
    transition: opacity 1s ease;
}

.bgfix.active {
    opacity: 1;
}

.backrooms {
    background: url('assets/backroomswallpaper.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.frogs {
    background: url('assets/frogbackground.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.homestuck {
    background: url('assets/homestuckwallpaperrr.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.shrinecontainer {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: 40px;
    align-items: end;
    gap: 400px;
}

.shrine {
    display: flex;
    height: 500px;
    width: 450px;
    margin: 40px;
    gap: 15px;
    flex-direction: column;
}

.shrine img {
    width: 99px;
}

@media (max-width:600px) {
    .shrine {
        width: auto;
    }
}


/* media page */

@media (max-width:915px) {
    .media-row {
        flex-direction: column;
    }

    .media-context {
        max-width: none !important;
        width: 100%;
    }

    .media-category {
        width: 45% !important;
    }
}

@media (max-width:500px) {
    .media-category {
        width: 100% !important;
    }
}

body.media-page {
    --main-color: #424242;
    --secondary-color: #666666;
    --purple-color: #2b2b2b;
    --cyan-color: #575757;
    --green-color: #bbbbbb;
    --main-gradient: linear-gradient(90deg, var(--purple-color), var(--cyan-color), var(--green-color));
    background: url(https://images.unsplash.com/photo-1670488799864-b391cae611f6?q=80&w=1974&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=NHwxMjA3fDA%3D);
    background-position: bottom;
    background-size: cover;
    background-attachment: fixed;
}

.tvscreen::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url(assets/tvimage2.png) center / 100% 100% no-repeat;
    pointer-events: none;
    z-index: 1;
    filter: grayscale();
}

.tvscreen {
    position: relative;
    width: 100%;
    max-width: 900px;
    aspect-ratio: 867 / 563;
}

#player {
    position: absolute;
    left: 3%;
    top: 12%;
    width: 73%;
    height: 72%;
    max-width: none;
    max-height: none;
    aspect-ratio: auto;
    background: #000;
    z-index: 0;
    border: 0;
}




#guide {
    display: flex;
    flex-direction: row;
    gap: 25px;
    flex-wrap: wrap;
    justify-content: center;
}

.media-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 50px;
    gap: 50px;
}

.media-category {
    display: flex;
    flex-direction: column;
    width: 250px;

}

.timeline {
    display: flex;
    flex-direction: column;
    padding: 5px;
    background-color: #2b2b2b;
}

.media-video:nth-child(odd) {
    background-color: #2b2b2b;
}

.media-video:nth-child(even) {
    background-color: #161616;
}

#guide a {
    color: #b7ff25;
}

.media-context {
    max-width: 300px;
    justify-self: center;
    align-self: center;
}

.media-video {
    font-size: 12px;
    padding: 5px;
}

.media-row {
    display: flex;
    width: 100%;
    gap: 25px;
    justify-content: center;
}


/* about page */

body.about {
    --main-color: #424242;
    --secondary-color: #666666;
    --purple-color: #2b2b2b;
    --cyan-color: #575757;
    --green-color: #bbbbbb;
    --main-gradient: linear-gradient(90deg, var(--purple-color), var(--cyan-color), var(--green-color));
    background: url(assets/);
}


/* test */

