@font-face {
    font-family: 'Nintendo DS BIOS';
    src: url('Nintendo-DS-BIOS.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    background-image: url('Webback.jpg');
    background-color: #57007f;
    background-attachment: fixed;
    background-size: cover;
    color: white;
    font-size: 16px;
    font-family: 'Nintendo DS BIOS', monospace;
    margin: 0;
    padding: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

footer {
    font-size: 14px;
    text-align: center;
    background: linear-gradient(180deg, rgba(0,86,255,1) 0%, rgba(9,9,121,1) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    flex-shrink: 0;
    position: relative;
}

#siteTitle {
    display: block;
    width: 50%;
    max-width: 400px;
    margin: 5px auto;
    flex-shrink: 0;
}

a:link {
    color: white;
    text-decoration: none;
}

a:visited {
    color: white;
    text-decoration: none;
}

a:hover {
    text-decoration: underline dotted;
}

nav {
    display: block;
    background: linear-gradient(180deg, rgba(9,9,121,1) 0%, rgba(0,86,255,1) 100%);
    flex-shrink: 0;
}

img {
    width: 60px;
    max-width: 100%;
}

#navbar ul {
    display: flex;
    padding: 0;
    margin: 0;
    list-style-type: none;
    justify-content: space-evenly;
    font-size: 18px;
}

#navbar li {
    cursor: pointer;
    padding: 12px 20px;
}

/* Desktop Mode - Fixed square centered layout */
#layout {
    box-sizing: border-box;
    width: 500px;
    height: 550px;
    margin: 0;
    transform: none;
    display: flex;
    flex-direction: column;
}

#container {
    padding-left: 0;
    padding-right: 0;
    position: relative;
    top: 0;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

#main {
    border: 5px solid #0056b3;
    background-color: #948bf0;
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex: 1;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
    position: relative;
}

#peekingChar {
    bottom: 5px !important;
    left: 25px !important;
    transform: translateY(30px);
}

#peekingTyty {
    top: 5px !important;
    left: 25px !important;
    transform: translateX(-40px);
}

#peekingLeelee {
    bottom: 5px !important;
    right: 25px !important;
    transform: translateX(70px);
}

#main h3 {
    margin-top: 12px;
    margin-bottom: 8px;
    font-size: 20px;
}

#about-tab h3 {
    font-size: 22px;
}

#flexDiv {
    display: flex;
    padding: 0;
    margin: 0;
    flex: 1;
    overflow: hidden;
    position: relative;
}

#leftBar {
    max-width: 100px;
    word-wrap: break-word;
    background-color: rgb(80, 45, 107);
    display: block;
    padding: 8px;
}

#rightBar {
    max-width: 100px;
    word-wrap: break-word;
    background-color: rgb(80, 45, 107);
    display: block;
    padding: 8px;
}

.bars {
    text-align: center;
    font-size: 13px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Page title text */
.page-title {
    font-size: 24px;
    font-weight: bold;
}

/* Grid layouts */
.grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.grid-3col {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

/* Inline content boxes */
.content-box {
    background-color: rgba(200, 195, 255, 0.2);
    padding: 15px;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.content-box-small {
    background-color: rgba(200, 195, 255, 0.2);
    padding: 10px;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

/* Bluesky embed box */
.bsky-embed-box {
    background-color: rgba(200, 195, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 0;
    padding: 15px;
    margin: 0;
    overflow: hidden;
}

/* Watch buttons */
.watch-button {
    background: linear-gradient(90deg, rgba(9,9,121,1) 0%, rgba(0,86,255,1) 100%);
    padding: 6px 12px;
    display: inline-block;
    margin-top: 6px;
    border-radius: 5px;
    font-size: 14px;
}

/* News flex layout */
.news-flex {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.news-flex > div {
    flex: 1;
}

/* YouTube iframe responsive */
iframe {
    max-width: 100%;
}

/* Divider */
.divider {
    border: none;
    border-top: 2px solid rgba(255, 255, 255, 0.4);
    margin: 30px 0;
}

/* Content sections with borders */
.content-section {
    background-color: rgba(200, 195, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 0;
    padding: 15px;
    margin: 10px 0;
}
/* Phone Mode - Portrait orientation (height > width) */
@media screen and (orientation: portrait) {
    #layout {
        max-width: 100%;
        margin: 0;
        transform: scale(1);
    }

    #container {
        padding-left: 2%;
        padding-right: 2%;
        top: 0;
        margin-bottom: 10px;
    }

    #siteTitle {
        width: 90%;
        margin: 8px auto;
    }

    #flexDiv {
        flex-direction: column;
    }

    #leftBar, #rightBar {
        max-width: 100%;
        margin-bottom: 10px;
    }

    body {
        font-size: 14px;
    }

    .bars {
        font-size: 12px;
    }

    #main {
        padding: 12px;
        min-height: 200px;
        width: 100%;
        box-sizing: border-box;
    }

    #main h3 {
        font-size: 18px;
        margin-top: 15px;
        margin-bottom: 8px;
    }

    footer {
        font-size: 11px;
        padding: 10px;
    }

    .page-title {
        font-size: 18px;
    }

    .content-box {
        padding: 10px;
    }

    .content-box-small {
        padding: 8px;
    }

    .watch-button {
        font-size: 11px;
        padding: 5px 10px;
    }

    .news-flex {
        flex-direction: column;
        gap: 15px;
    }

    #navbar ul {
        flex-wrap: wrap;
        font-size: 13px;
    }

    #navbar li {
        padding: 10px 8px;
    }
}
