@font-face {
    font-family: VT323;
    src: url("fonts/VT323.ttf")
}

@font-face {
    font-family: PressStart2P;
    src: url("fonts/pressstart2p.ttf")
}

@font-face {
    font-family: Childlike;
    src: url("fonts/childlike.ttf")
}

@font-face {
    font-family: RainyHearts;
    src: url("fonts/rainyhearts.ttf")
}
/* CSS Variables for a clean palette */

:root {
    --color-black: #000000;
    --color-primary: #B4F8C8;
    --color-secondary: #98FF98;
    --color-tertiary: #00FFFF;
    --color-box-bg: #0D1B2A;
    --color-box-border: #00A896;
    --color-nav-border: #00A896;
    --color-footer: #00FFFF;
    --color-site-name: #98FF98;
}

/* For WebKit browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 8px; /* makes the scrollbar thin */
}

::-webkit-scrollbar-track {
    background: #0D1B2A;
}

::-webkit-scrollbar-thumb {
    background-color: #00A896 ; /* makes the scrollbar black */
    border-radius: 4px;
}

/* For Firefox */
* {
    scrollbar-width: thin; /* makes the scrollbar thin */
    scrollbar-color: #00A896 #0D1B2A; /* black thumb, transparent track */
}

/* General Body and Typography Styles */
body {
    background-color: var(--color-black);
    background-image: url(images/starsbg.gif);
    color: var(--color-primary);
    font-family: RainyHearts, monospace;
    font-size: 1.25rem;
    cursor: url(images/sparklepointer.gif), auto;
    line-height: 1.5;
    margin: 0 0 0 0;
}

.pixelated-font {
    font-family: PressStart2P, cursive;
}

h1, h2, h3 {
    font-family: PressStart2P, cursive;
}

/* Main Layout and Sections */
.container {
    max-width: 950px;
    margin: 0 auto;
    padding: 2rem;
}

.main-section {
    min-height: 80vh;
    padding: 2rem 0;
    margin-bottom: 8rem;
}

.indiv-section {
    min-height: 40vh;
    padding: 2rem 0;
    margin-bottom: 4rem;
}

.section-header {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--color-secondary);
}

.section-header h2 {
    font-size: 1.5rem;
}

@media (min-width: 768px) {
    .section-header {
        font-size: 2rem;
    }
}

/* Navigation */
.nav-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--color-nav-border);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
}

.nav-header .site-name {
    color: var(--color-site-name);
    margin-bottom: 0.5rem;
}

.nav-header .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.nav-link {
    position: relative;
    text-decoration: none;
    color: var(--color-secondary);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--color-secondary);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}

.nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

@media (min-width: 640px) {
    .nav-header {
        flex-direction: row;
    }
    .nav-header .site-name {
        margin-bottom: 0;
    }
    .nav-header .nav-links {
        justify-content: flex-start;
    }
}

/* Content Boxes and Cards */
.content-box:not(#home) {
    background-color: var(--color-box-bg);
    border: 2px solid var(--color-box-border);
    border-radius: 8px;
    box-shadow: 4px 4px 0 var(--color-box-border);
    padding: 1.5rem;
    transition: all 0.2s;
    min-height: 400px;
    overflow: auto;
}

.indiv-box {
    background-color: var(--color-box-bg);
    border: 2px solid var(--color-box-border);
    border-radius: 8px;
    box-shadow: 4px 4px 0 var(--color-box-border);
    padding: 1.5rem;
    transition: all 0.2s;
    min-height: 200px;
}

.content-box.large-padding {
    padding: 3rem;
}

.content-box:hover {
    box-shadow: 6px 6px 0 var(--color-box-border);
    transform: translate(-2px, -2px);
}

.content-box a {
    text-decoration: none;
    color: var(--color-secondary);
}

.box-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1rem;
}

@media (min-width: 768px) {
    .box-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .box-grid.three-cols {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.box-header {
    color: var(--color-tertiary);
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.box-link {
    text-decoration: underline;
    color: var(--color-secondary);
}

.box-link:hover {
    text-decoration: none;
}

.box-sub-text {
    font-size: 0.875rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

/* Home Section specific */
.home-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    height: 400px;
}

.home-content h1 {
    font-size: 1.875rem;
    color: var(--color-secondary);
}

.home-content p {
    font-size: 1.125rem;
}

@media (min-width: 768px) {
    .home-content h1 {
        font-size: 2rem;
    }
    .home-content p {
        font-size: 1.25rem;
    }
}

.widget {
    text-align: left;
    width: 100%;
    height: 20%;
}

.widget p {
    margin: 2px;
}

#time {
    text-align: left;
    font-family: RainyHearts, monospace;
}

#status > iframe {
    width: 100%;
    height: 100px;
}

#statuscafe {
    padding: 10px;
    background-color: transparent;
    border: 0 solid midnightblue;
    font-family: RainyHearts, monospace;
}
#statuscafe-username {
    margin-bottom: .25em;
    font-size: 14px;
}
#statuscafe-content {
    margin: 0 1em 0.5em 10px;
    color: white;
    font-size: 16px;
}

#lastfm {
    pointer-events: none;
    width: 100%;
}

/* Table css */
.comparison-table {
    width: 100%;
    overflow: auto;
}

.row {
    display: flex;
    align-items: start;
    margin-bottom: 2px;
    max-height: fit-content;
    vertical-align: center;
}

.title-left {
    flex: 1;
    text-align: left;
    font-weight: bold;
    max-width: 40%;
    margin-right: 10px;
}

.title-right {
    flex: 2;
    text-align: right;
    font-weight: bold;
    max-width: 45%;
    margin-right: 10px;
}

.title-far-right {
    flex: 3;
    text-align: right;
    font-weight: bold;
    max-width: fit-content;
    margin: auto 0px auto auto;
}

.data-left {
    flex: 1;
    text-align: left;
    max-width: 40%;
    color: var(--color-secondary);
}

.data-left::after {
    content: url("images/arrowright4.gif");
    vertical-align: center;
    margin: auto 5px;
    display: inline-block;
}

.data-right {
    flex: 2;
    text-align: right;
    max-width: 45%;
    margin: auto auto;
}

.data-far-right {
    flex: 3;
    text-align: right;
    max-width: 5%;
    vertical-align: center;
    margin: auto auto;
    display: inline-block;
}

/* Utility Classes */
.blinky {
    display: inline-block;
    animation: bounce 0.5s infinite alternate;
}

@keyframes bounce {
    from { transform: translateY(0); }
    to { transform: translateY(-5px); }
}

/* Bullet lists */
.list-style {
    list-style-type: none;
    margin-top: 0.5rem;
    line-height: 1rem;
}

ul {
    padding-left: 0;
}

li::before {
    content: url(images/sqbullet.gif);
    vertical-align: 2px;
    list-style: none;
    display: inline-block;
    padding: 0 0.5rem 0 0;
}

.text-center { text-align: center; }

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.w-full { width: 100%; }

.h-auto { height: auto; }

.rounded { border-radius: 0.375rem; }

.mb-4 { margin-bottom: 1rem; }

.mt-4 { margin-top: 1rem; }

/* Additions */
.top-img {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    object-fit: cover;
}

.paper {
    background-color: white;
    background-image: url(images/paperbg.jpg);
    background-size: 100%;
    background-position: top;
    background-repeat: repeat-y;
    font-family: Childlike, cursive;
    font-weight: bold;
    font-size: 1.25rem;
    padding: 1rem 1rem 1rem 1rem;
    margin: 1rem;
    color: black;
    border: 1px solid black;
    border-radius: 8px;
    box-shadow: 4px 4px 0 black;
}

.paper a {
    color: blue;
}

.paper h2 {
    font-family: Childlike, cursive;
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.heart {
    color: deeppink;
    font-size: 0.75em;
}

hr {
    border: 1px dashed var(--color-box-border);
}

strong {
    font-weight: bold;
    color: var(--color-secondary);
}

.sticker {
    float: right;
    margin-left: .5rem;
    align-content: center;
    clear: both;
}

.sticker-left {
    float: left;
    margin-right: 1rem;
    align-content: center;
    clear: both;
}

.sticker img {
    object-fit: cover;
    object-position: center;
}

#guestbook {
    height: 600px!important;
}

#guestbook-frame {
    width: 100%;
    height: 40rem;
    border: none;
    padding: 0;
    margin: 0;
    overflow: inherit;
}

/* Footer */
footer {
    padding: 2rem;
    text-align: center;
    font-size: 0.75rem;
    color: var(--color-footer);
}

footer a {
    text-decoration: underline;
    color: var(--color-secondary);
    font-size: 1rem;
}