:root {
    --page-bg: radial-gradient(circle, #ffbfe8 80%, #FFB8DC 100%);
    
    --main-bg: #ffeff7;
    --main-border: 4px solid #b88fa4;
    
    --button-bg: #b88fa4;
    --button-border: hsl(329, 22%, 44%);
    
    --about-btn: #ffbfe8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8.5px;
}

::webkit-scrollbar-track {
    background: #ffadd6;
    border-radius: 12px;
    margin: 5px 0;
}

::-webkit-scrollbar-thumb {
    background: #e778c7;
    border-radius: 12px;
    
}

::-webkit-scrollbar-thumb:hover {
    background: #bb569e;
    cursor: grabbing;
}

/* Main */
body {
    font-family: Verdana, Geneva, Arial, sans-serif;
    background: var(--page-bg) no-repeat fixed center;
}

a {
    color: #743f6a;
    text-decoration: none;
}

a:hover {
    color: #b37595;
    text-decoration: underline;
}

.glossbox {
    display: flex;

    background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.4) 50%, rgba(187, 187, 187, 0.3) 100%);
    border-radius: 12px;
    box-shadow: 0px 0px 8px rgba(135, 135, 135, 0.45);

    background-color: var(--main-bg);
    border: var(--main-border)
}

.glossbutton {
    width: fit-content;
    padding: 7px 25px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.4), rgba(187, 187, 187, 0.3));
    border-radius: 12px;
    box-shadow: 0px 0px 8px rgba(135, 135, 135, 0.45);

    background-color: var(--button-bg);
    border: 1px solid var(--button-border);
    color: white;
    font-size: 12px;
    letter-spacing: 0.3px;
    font-weight: bold;
}

.glossbutton:after {
    content: '';
    position: absolute;
    inset: 0;
    background-color: white;
    opacity: 0;
}

.glossbutton:hover:after {
    opacity: 0.15;
}

/* Header */
.header {
    position: relative;
    width: 40%;
    height: 50px;
    margin: 10px auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header span {
    font-size: 20px;
    font-weight: bold;
}

/* Splash Text */
#splashText {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 45%;
    width: 100%;
    color: gold;
    font-size: 17px !important;
    text-shadow: 2px 2px 2px goldenrod;
    text-align: center;
    transform: rotate(-15deg);
    animation-name: splashBounce;
    animation-duration: 0.5s;
    animation-iteration-count: infinite;
    z-index: 3;
}

@keyframes splashBounce {
    0%   {scale: 100%;}
    50%  {scale: 120%;}
    100% {scale: 100%;}
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;

    position: absolute;
    top: 8px;
    left: -14px;
    /* temp left */
    /* left: -150px; */

    padding: 10px;
    width: 160px;

    z-index: 1;

    transition: left 0.3s ease-in-out;
}

.sidebar h4 {
    margin-bottom: 10px;
}

.sidebar:hover {
    left: -150px;
}

.sidebar > div.glossbutton:not(:first-of-type) {
    margin-top: 7px;
}

.sidebar > div.glossbutton:nth-child(6) {
    font-size: 10px;
    text-align: center;
}

.sidebar-container> .mobileButton {
    display: none;
}

/* Body */
.body-container {
    width: 40%;
    margin: 0 auto;
    position: relative;
}

.main-content {
    position: relative;
    z-index: 2;
}

.main-content > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;

    height: 600px;
}

.main-content p {
    font-size: 15px;
    margin: 5px 0;
}

.update-log {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 120px;
    width: 407px;
}

.update-log h3 {
    margin: 2px 0;
}

.update-log > div {
    padding: 5px;
    max-height: 130px;
    overflow-y: scroll;
    border-top: var(--main-border);
}

.update-log p {
    font-size: 13px;
}

.update-log p:not(:last-child):after{
    content: '';
    background-color: #b88fa4;
    width: 70%;
    height: 1px;
    display: block;
    margin: auto;
    margin-top: 9px;
}

/* About Page */
.about-content {
    display: flex;
    justify-content: space-evenly;
    margin-top: 10px;
}

.about-details {
    width: 50%;
    text-align: center;
}

.about-details h4 {
    margin: 0 auto;
    padding: 2px 7px;
    width: fit-content;
    background-color: var(--about-btn);
}

.about-details h4:before {
    content: '──────';
    margin-right: 5px;
}

.about-details h4:after {
    content: '──────';
    margin-left: 5px;
}

.about-details h4, .about-details p {
    font-size: 13px;
}

.about-details p {
    margin-bottom: 10px;
}

.about-image {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-image img {
    width: 250px;
}

.about-image h6 {
    font-size: 8px;
}

/* Links Page */
.links-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.links-container a > div {
    padding: 5px;
    background-color: var(--main-bg);
}

.links-container span {
    display: block;
    width: 104px;
    height: 40px;
}

#link-bitview span {
    background: url(img/png/bitview.png) center/contain no-repeat;
}

#link-bluesky span {
    background: url(img/svg/bluesky.svg) center/contain no-repeat;
}

#link-instagram span {
    background: url(img/svg/instagram.svg) center/contain no-repeat;
}

#link-reddit span {
    background: url(img/png/reddit.png) center/contain no-repeat;
}

#link-mastodon span {
    background: url(img/svg/mastodon.svg) center/contain no-repeat;
}

#link-carrd span {
    background: url(img/png/carrd.png) center/contain no-repeat;
}

#links-carrdLabel {
    margin-top: 15px;
}

/* Guestbook Page */
.guestbook-frame {
    width: 80%;
    height: 500px;
}

.guestbook-frame iframe {
    overflow: hidden;
    width: 100%;
    border-radius: 9px;
}

/* Buttons Page */
.buttonpage-container {
    text-align: center;
    overflow-y: scroll;
}

.button-section h4 {
    margin: 0 auto;
    padding: 2px 7px;
    width: fit-content;
    background-color: var(--about-btn);
    font-size: 13px;
}

.button-section h4:before {
    content: '──────';
    margin-right: 5px;
}

.button-section h4:after {
    content: '──────';
    margin-left: 5px;
}

.button-section .mybutton {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 24px;
}

.button-section .mybutton img {
    margin: 5px 0;
}

.button-section textarea {
    width: 260px;
    height: 38px;
    resize: none;
}

.buttons-container {
    justify-self: center;
    margin-top: 3px;
    width: 98%;
    height: 120px;
    overflow-y: scroll;
}

/* Tech Page */
.device {
    width: 95%;
}

.device h4 {
    font-size: 15px;
}

.device h4:not(:first-of-type) {
    margin-top: 15px;
}

.device ul {
    margin-left: 30px;
}

.device li {
    font-size: 14px;
    line-height: 20px;
}

.device span {
    font-weight: bold;
}

.device h6 {
    margin-top: 10px;
    margin-left: 5px;
}

/* Footer */
.footer {
    margin: 10px auto 0 auto;
    width: fit-content;
}











/* Mobile Styles */
@media only screen and (max-width: 1130px) {
    .header, .body-container {
        width: 99%;
    }

    /* Header */
    .header {
        position: initial;
        margin-top: 56px;
    }

    .header span {
        font-size: 16px;
    }

    #splashText {
        display: none;
    }

    /* Sidebar */
    .sidebar {
        position: fixed;
        top: 0;
        left: -100vw;

        align-items: center;

        width: 100vw;
        height: 100vh;

        border: 0;
        border-radius: 0px;

        z-index: 5;
    }

    .sidebar.opened {
        left: 0;
    }

    .sidebar:hover {
        left: 0;
    }

    .mobileButton {
        display: block !important;
        width: 50px;
        height: 50px;
        padding: 0;
        position: fixed;
        top: 2px;
        left: 2px;
        z-index: 10;
    }

    .mobileButton:after {
        width: 0;
        height: 0;
        opacity: 1;
    }

    .mobileNav-button {
        width: 25px;
        height: 25px;

        background-image: url(mobileNav-button.png);
        background-size: contain;
        image-rendering: pixelated;

        margin: 11.25px;
    }

    .sidebar h4 {
        font-size: 22px;
    }

    .sidebar > .glossbutton {
        width: 60%;
        text-align: center;
        font-size: 16px;
    }

    .sidebar > div.glossbutton:not(:first-of-type) {
        margin-top: 18px;
    }

    .sidebar > div.glossbutton:nth-child(6) {
        font-size: 16px;
    }

    /* Body */
    .main-content > .glossbox {
        overflow-y: scroll;
    }

    .update-log {
        margin-top: 60px;
        width: 95%;
    }

    .update-log > div {
        max-height: 250px;
    }

    /* About Page */
    .about-content {
        flex-direction: column;
    }

    .about-details {
        width: 100%;
    }

    .about-image {
        flex-direction: column-reverse;
    }

    .about-image img {
        content: url(img/png/me-mobile.png);
        width: 240px;
    }

    /* Guestbook Page */
    .guestbook-frame {
        width: 100%;
    }
}


/* Dark Styles */
@media (prefers-color-scheme: dark) {
    :root {
                  /* hsl(322, 100%, 87%) */
        --page-bg: radial-gradient(circle, hsl(322, 5%, 17%) 80%, hsl(330, 5%, 17%) 100%);
        --main-bg: hsl(330, 5%, 0%);
        --main-border: 4px solid hsl(329, 5%, 22%);

        --button-bg: hsl(329, 10%, 17%);
        --button-border: hsl(329, 0%, 44%);

        --about-btn: hsl(322, 5%, 17%);
    }

    ::webkit-scrollbar-track {
        background: hsl(330, 5%, 17%);
    }
    
    ::-webkit-scrollbar-thumb {
        background: hsl(317, 5%, 17%);
    }
    
    ::-webkit-scrollbar-thumb:hover {
        background: hsl(317, 5%, 22%);
    }

    .glossbox {
        box-shadow: 0px 8px 8px rgba(37, 37, 37, 0.45)
    }

    .glossbutton {
        box-shadow: 0px 0px 8px rgba(37, 37, 37, 0.45);
    }

    .header span, h3, h4, p, h6, .mybutton span {
        color: white;
    }

    .update-log p:not(:last-child):after {
        background-color: var(--button-border);
    }

    .update-log p[style*="color: darkslateblue"] {
        color: hsl(248, 39%, 79%) !important;
    }

    .about-image a {
        color: #b37595;
    }

    .about-image a:hover {
        color: #af91a0;
    }
}