:root {
    --border: #30535e;
    --dark: #fdd8fd;
    --darker: #dddddd;
    --darkest: #FFFFFF;
    --text-one: #03191E;
    --text-two: ;
    --accent-one: #35A7FF;
    --accent-two: #2886cd;
    --bg-url: url('../img/people-bg.png');
}

html[data-theme="dark"] {
    --border: #323232;
    --dark: #202020;
    --darker: #171717;
    --darkest: #101010;
    --text-one: #eeeeee;
    --text-two: ;
    --accent-one: #0096FF;
    --accent-two: #006ebd;
    --bg-url: url('../img/people-bg-dark.png');
}

*,*::after,*::before {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: sans-serif;
    color: var(--text-one);
    font-size: 14px;
}

img {
    image-rendering: pixelated;
}

body {
    background-color: var(--darkest);
    background: var(--bg-url);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

main {
    position: relative;
    width: 900px;
    height: 600px;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(12, 1fr);
    gap: 5px;
    transform: translateY(-50px);
    padding: 5px;
}

#hero-image {
    background: url('../img/banner.png');
    background-position: center;
    background-size: cover;
    grid-column: 1/5;
    grid-row: 1/3;
}

#top-bar {
    grid-column: 5/13;
    grid-row: 1/3;
}

#main-content {
    display: flex;
    flex-direction: column;
    align-items: start;
    padding: 0px;
    gap: 5px;
    overflow-y: scroll;
    grid-column: 3/11;
    grid-row: 3/12;
    scrollbar-width: none;
}

#nav {
    grid-column: 1/3;
    grid-row: 3/9;
}

#nav-list {
    display: flex;
}

ul {
    list-style-type: none;
}

.post-links {
    padding: 1rem;
}

.post-link {
    color: var(--accent-one);
    gap: 0.75rem;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: underline;
}

.post-link:hover {
    color: var(--accent-two);
    text-decoration: underline;
}

.sub-container {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    background-color: var(--darkest);
    border: solid 1px var(--border);
    box-shadow: 2px 2px 2px rgba(0,0,0,0.15);
    border-radius: 0px;
}

.sub-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 0.5rem;
    padding: 1rem;
}

.sub-list > div {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sub-list > div > h6 {
    font-size: 10px;
}
 
.sub-list li,
.sub-list a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: underline;
}

.sub-list li p:hover {
    color: var(--accent-one);
}

.divider {
    width: 100%;
    height: 1px;
    background-color: var(--dark);
    margin: 0.25em 0;
}

.small-gif {
    width: 20px;
    height: 20px;
}

.header {
    height: 32px;
    width: 100%;
    font-size: 0.65rem;
    background-color: var(--dark);
    /* border-top-left-radius: 6px;
    border-top-right-radius: 6px; */
    /* border-bottom: solid 1px var(--border); */
    padding-inline: 1rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: space-between;
}

#nav .header button {
    display: none;
    cursor: pointer;
}

#fishtank {
    grid-column: 1/3;
    grid-row: 9/12;
    overflow: hidden;
}

#currently {
    grid-column: 11/13;
    grid-row: 3/9;
}

#status {
    display: inline;
    position: relative;
    margin-left: 70px;
    border: solid 1px var(--border);
    border-radius: 0px;
    padding: 0.5em 0.75rem;
    font-style: italic;
    font-size: 1em;
}
#status::before {
    content: '';
    position: absolute;
    height: 12px;
    aspect-ratio: 1/1;
    top: 50%; 
    left: -13px; 
    transform: rotate(46deg) translateY(-8px); 
    border-bottom: solid 1px; 
    border-left: solid 1px; 
    border-top-right-radius: 999px;
    background-color: var(--darkest);
    border-color: var(--border)!important;
}
#status-date {
    margin-left: 84px;
    font-size: 11px;
    color: var(--border);
}

#kaiying-art {
    grid-column: 11/13;
    grid-row: 9/12;
    overflow: hidden;
    background: url('../img/kaiying.png');
    background-position: center;
    background-size: cover;
}

#kaiying-bg {
    width: 100%;
    flex: 1;
    background: url('../img/kaiying.png');
    background-position: center;
    background-size: cover;
}

.main-sub-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    border: solid 1px var(--border);
    background-color: var(--darkest);
    border-radius: 0px !important;
    box-shadow: 2px 2px 2px rgba(0,0,0,0.15);
}

.main-sub-header {
    width: 100%;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: start;
    background-color: var(--dark);
    /* border-top-left-radius: 3px;
    border-top-right-radius: 3px; */
    /* border-bottom: solid 1px var(--border); */
    padding: 0 1em;
}

.main-sub-container p {
    padding: 1em;
    white-space: pre-wrap;
}

.scrollable {
    scrollbar-width: none;
}

#rating {
    margin: 0 1em 1em auto;
    padding: 0.5rem;
    background-color: var(--darker);
    border-radius: 0px;
    border: solid 1px var(--border);
}

.inactive {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}

.accent {
    color: var(--accent-one);
}

#footer {
    grid-column: 1/13;
    grid-row: 12/13;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
}

#footer div {
    display: flex;
    align-items: center;
    justify-content: center;
}

#footer-left {
    grid-column: 1/3;
}
#footer-middle {
    grid-column: 3/11;
    gap: 0.35em;
}
#footer-right {
    grid-column: 11/13;
    justify-content: space-evenly !important;
    gap: 2em;
}

#naruto {
    position: absolute;
    bottom: -118px;
    left: calc(50% - 51px);
}

#team7 {
    position: absolute;
    top: -15px;
    left: 30px;
    width: 232px;
}

#habbo-sprite {
    position: absolute;
    left: -15px;
    top: -25px;
    width: 96px;
}


.hidden {
    display: none !important;
}

.bottom-border {
    border-bottom: solid 1px var(--border) !important;
}

.standard {
    text-decoration: none !important;
    cursor: auto !important;
}



/* thanks  https://jsfiddle.net/evePU/ */
input[type="checkbox"] {
    background-image: -webkit-linear-gradient(hsla(0,0%,0%,.1), hsla(0,0%,100%,.1)),
                      -webkit-linear-gradient(left, #f66 50%, #6cf 50%);
    background-size: 100% 100%, 200% 100%;
    background-position: 0 0, 5px 0;
    border-radius: 15px;
    box-shadow: inset 0 1px 4px hsla(0,0%,0%,.5),
                inset 0 0 10px hsla(0,0%,0%,.5),
                0 0 0 1px hsla(0,0%,0%,.1),
                0 -1px 2px 2px hsla(0,0%,0%,.25),
                0 2px 2px 2px hsla(0,0%,100%,.75);
    cursor: pointer;
    height: 15px;
    margin: -12px -37px;
    padding-right: 25px;
    position: absolute;
    width: 30px;
    appearance: none;
    transition: .25s;
    -webkit-appearance: none;
    -webkit-transition: .25s;
}
input[type="checkbox"]:after {
    background-color: #eee;
    background-image: -webkit-linear-gradient(hsla(0,0%,100%,.1), hsla(0,0%,0%,.1));
    border-radius: 15px;
    box-shadow: inset 0 1px 1px 1px hsla(0,0%,100%,1),
                inset 0 -1px 1px 1px hsla(0,0%,0%,.25),
                0 1px 3px 1px hsla(0,0%,0%,.5),
                0 0 2px hsla(0,0%,0%,.25);
    content: '';
    display: block;
    height: 15px;
    left: 0;
    position: relative;
    top: 0;
    width: 15px;
}
input[type="checkbox"]:checked {
    background-position: 0 0, 25px 0;
    padding-left: 15px;
    padding-right: 0;
}



@media (max-width: 792px) {
    body {
        display: flex;
        align-items: start;
        justify-content: start;
    }
    main {
        transform: none;
        padding: 5px;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        height: auto;
    }

    #hero-image {
        /* grid-row: 1/2;
        grid-column: 1/7; */
        display: none;
    }
    #top-bar {
        /* grid-row: 1/2;
        grid-column: 7/13; */
        width: 100%;
        order: 3;
        /* display: none; */
    }
    #nav {
        /* grid-row: 2/5;
        grid-column: 1/13; */
        width: 100%;
        order: 0;
        overflow: hidden;
    }
    #main-content {
        /* grid-row: 5/7;
        grid-column: 1/13; */
        order: 1;
        width: 100%;
        height: 80vh;
        max-height: 700px;
    }
    #currently {
        /* grid-row: 7/9;
        grid-column: 1/13; */
        order: 3;
        width: 100%;
        display: none;
    }
    #fishtank {
        /* grid-row: 9/11;
        grid-column: 1/7; */
        order: 4;
        width: calc(50% - 2.5px);
        aspect-ratio: 1/1;
    }
    canvas {
        flex: 1;
    }
    #kaiying-art {
        /* grid-row: 9/11;
        grid-column: 7/13; */
        order: 5;
        width: calc(50% - 2.5px);
        aspect-ratio: 1/1;
    }
    #footer {
        order: 6;
        padding: 1em;

    }
    #footer-left {
        grid-column: 1/2;
    }
    #footer-middle {
        display: none !important;
    }
    #footer-right {
        grid-column: 6/13;
        justify-content: space-between !important;

    }


    #nav .header button {
        display: inline-block;
        background: none;
        border: none;
        padding: none;
        font-weight: bold;
        font-size: 18px;
        transform: rotate(90deg);
    }

    #nav .header {
        border-bottom: none;
    }

    .main-sub-header h2 {
        font-size: 10px;
    }
}