/* =========================================
   COLOR VARIABLES
========================================= */

:root {

    --background: #050505;

    --main-color: #ffb000;

    --dim-color: #6b4b00;

    --border-color: #ffb000;

    --text-color: #ffb000;

}


/* =========================================
   GREEN TERMINAL
========================================= */

body.green-theme {

    --main-color: #00ff66;

    --dim-color: #006b2c;

    --border-color: #00ff66;

    --text-color: #00ff66;

}


/* =========================================
   GENERAL
========================================= */

* {

    box-sizing: border-box;

}


body {

    margin: 0;

    padding: 20px;

    background: var(--background);

    color: var(--text-color);

    font-family:

        "Courier New",

        "Lucida Console",

        Monaco,

        monospace;

    font-size: 14px;

    line-height: 1.6;

}


a {

    color: var(--main-color);

    text-decoration: none;

}


a:hover {

    color: var(--dim-color);

    text-decoration: underline;

}


button {

    font-family: inherit;

    color: var(--main-color);

    background: transparent;

    border: 1px solid var(--border-color);

    padding: 7px 10px;

    margin: 4px 0;

    cursor: pointer;

    width: 100%;

    text-align: left;

}


button:hover {

    background: var(--dim-color);

    color: var(--background);

}


/* =========================================
   SITE
========================================= */

.site-wrapper {

    max-width: 1100px;

    margin: auto;

}


/* =========================================
   TERMINAL BOX
========================================= */

.terminal-box {

    border: 1px solid var(--border-color);

    padding: 15px;

    margin-bottom: 15px;

    background: #050505;

}


/* =========================================
   HEADER
========================================= */

.site-header {

    text-align: center;

    padding: 25px;

}


.header-symbol {

    font-size: 12px;

    color: var(--dim-color);

}


.site-title {

    font-size: 26px;

    letter-spacing: 3px;

    margin: 10px 0;

}


.site-subtitle {

    font-size: 12px;

    color: var(--dim-color);

}


/* =========================================
   LAYOUT
========================================= */

.main-layout {

    display: grid;

    grid-template-columns: 220px 1fr;

    gap: 15px;

    align-items: start;

}


.sidebar {

    position: sticky;

    top: 20px;

}


.content {

    min-width: 0;

}


/* =========================================
   MENU
========================================= */

.menu-box nav {

    display: flex;

    flex-direction: column;

}


.box-title {

    color: var(--main-color);

    margin-bottom: 12px;

    font-weight: bold;

    letter-spacing: 1px;

}


/* =========================================
   PAGES
========================================= */

.page {

    display: none;

}


.page.active {

    display: block;

}


h1,
h2 {

    font-weight: normal;

}


h1 {

    font-size: 20px;

}


h2 {

    font-size: 17px;

}


.dim-text {

    color: var(--dim-color);

}


.small-text {

    font-size: 11px;

    color: var(--dim-color);

}


/* =========================================
   HOME CLOCK + CALENDAR
========================================= */

.home-info-grid {

    display: grid;

    grid-template-columns:
        1fr
        1fr;

    gap: 15px;

}


.info-square {

    min-height: 160px;

}


#clock {

    font-size: 26px;

    letter-spacing: 3px;

    margin-top: 25px;

}


/* =========================================
   ORIGINAL CALENDAR
========================================= */


.custom-calendar-header {

    text-align: center;

    margin-bottom: 12px;

}


.custom-calendar-year {

    font-size: 14px;

    letter-spacing: 2px;

}


.custom-calendar-world-year {

    font-size: 11px;

    opacity: 0.6;

    margin-top: 3px;

}


.custom-calendar-date {

    margin-top: 5px;

    font-size: 20px;

    letter-spacing: 2px;

}



/*
=========================================
WEEKDAYS
=========================================
*/


.custom-calendar-weekdays {

    display: grid;

    grid-template-columns:
        repeat(7, 1fr);

    gap: 3px;

    margin-bottom: 3px;

    font-size: 9px;

    text-align: center;

    opacity: 0.6;

}



/*
=========================================
CALENDAR GRID
=========================================
*/


.custom-calendar-grid {

    display: grid;

    grid-template-columns:
        repeat(7, 1fr);

    gap: 3px;

}



/*
=========================================
CALENDAR DAY
=========================================
*/


.calendar-day {

    min-height: 24px;

    display: flex;

    align-items: center;

    justify-content: center;

    border:
        1px solid
        var(--border-color);

    font-size: 11px;

}



/*
=========================================
TODAY
=========================================
*/


.calendar-day.today {

    background:
        var(--text-color);

    color:
        var(--background);

    font-weight: bold;

}



/*
=========================================
LEAP DAY
=========================================
*/


.leap-day-note {

    margin-top: 8px;

    text-align: center;

    font-size: 9px;

    opacity: 0.6;

    letter-spacing: 1px;

}


/* =========================================
   BLOG
========================================= */

.blog-post {

    margin-bottom: 15px;

}


.post-date {

    font-size: 11px;

    color: var(--dim-color);

}


/* =========================================
   GUESTBOOK
========================================= */

.guestbook-preview {

    border: 1px dashed var(--dim-color);

    padding: 10px;

    margin: 10px 0;

}


.guestbook-placeholder {

    border: 1px dashed var(--dim-color);

    padding: 35px;

    text-align: center;

    color: var(--dim-color);

}


/* =========================================
   TABS
========================================= */

.writing-tabs {

    display: flex;

    gap: 10px;

    margin-bottom: 15px;

}


.writing-tabs button {

    width: auto;

}


/* =========================================
   GALLERY
========================================= */

.gallery-category {

    display: none;

}


.active-gallery-category {

    display: block;

}


.gallery-grid {

    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(150px, 1fr)
        );

    gap: 10px;

}


.gallery-item {

    border: 1px solid var(--border-color);

    min-height: 150px;

    display: flex;

    align-items: center;

    justify-content: center;

    cursor: pointer;

}


.gallery-item:hover {

    background: var(--dim-color);

    color: var(--background);

}


/* =========================================
   GALLERY MODAL
========================================= */

.gallery-modal {

    display: none;

    position: fixed;

    inset: 0;

    background: rgba(
        0,
        0,
        0,
        0.9
    );

    align-items: center;

    justify-content: center;

    padding: 20px;

}


.gallery-modal.active {

    display: flex;

}


.gallery-modal-content {

    position: relative;

    border: 1px solid var(--border-color);

    background: var(--background);

    padding: 25px;

    width: 100%;

    max-width: 600px;

}


.close-button {

    position: absolute;

    right: 10px;

    top: 10px;

    width: auto;

}


.gallery-image-placeholder {

    border: 1px dashed var(--dim-color);

    min-height: 250px;

    display: flex;

    align-items: center;

    justify-content: center;

    margin-bottom: 20px;

    color: var(--dim-color);

}


/* =========================================
   WRITINGS
========================================= */

.writing-category {

    display: none;

}


.active-writing-category {

    display: block;

}


.writing-layout {

    display: grid;

    grid-template-columns:
        200px 1fr;

    gap: 15px;

}


/* =========================================
   WRITING CONTENT
========================================= */

.writing-content {

    display: none;

}


.writing-content.active-writing-content {

    display: block;

}

/* =========================================
   WRITING INDEX ENTRIES
========================================= */

.writing-index-entry {

    width: 100%;

    border: none;

    border-bottom:
        1px dashed
        var(--dim-color);

    padding: 8px 0;

    margin: 0;

    color:
        var(--main-color);

    background:
        transparent;

    text-align: left;

}


.writing-index-entry:hover {

    background:
        var(--dim-color);

    color:
        var(--background);

}


.writing-index-entry:focus {

    outline:
        1px solid
        var(--border-color);

}


/* =========================================
   MEDIA
========================================= */

.media-list {

    display: flex;

    flex-direction: column;

}

/* =========================================
   MEDIA ITEMS
========================================= */

.media-item {

    display: flex;

    align-items: center;

    gap: 15px;

    border:
        1px solid
        var(--border-color);

    padding: 10px;

    margin-bottom: 10px;

    cursor: pointer;

}


.media-item:hover {

    background:
        var(--dim-color);

    color:
        var(--background);

}


.media-thumbnail {

    width: 100px;

    height: 100px;

    object-fit: cover;

    display: block;

    flex-shrink: 0;

}


.media-item-info {

    display: flex;

    flex-direction: column;

    gap: 4px;

}


.media-item-title {

    font-weight: bold;

    color:
        var(--main-color);

}


.media-item-date {

    font-size: 11px;

    color:
        var(--dim-color);

}

/* =========================================
   MEDIA MODAL IMAGE
========================================= */

.media-modal-image {

    max-width: 100%;

    max-height: 500px;

    display: block;

    margin: auto;

    object-fit: contain;

}

/* =========================================
   MEDIA MODAL
========================================= */

.media-modal {

    display: none;

    position: fixed;

    inset: 0;

    background: rgba(
        0,
        0,
        0,
        0.9
    );

    align-items: center;

    justify-content: center;

    padding: 20px;

    z-index: 1000;

}


.media-modal.active {

    display: flex;

}


.media-modal-content {

    position: relative;

    border: 1px solid var(--border-color);

    background: var(--background);

    padding: 25px;

    width: 100%;

    max-width: 600px;

    max-height: 90vh;

    overflow-y: auto;

}


.media-meta {

    display: flex;

    justify-content: space-between;

    gap: 20px;

    margin: 15px 0;

    padding: 8px 0;

    border-top: 1px dashed var(--dim-color);

    border-bottom: 1px dashed var(--dim-color);

    font-size: 12px;

}


.media-image-placeholder {

    min-height: 250px;

    border: 1px dashed var(--dim-color);

    display: flex;

    align-items: center;

    justify-content: center;

    margin-top: 20px;

    color: var(--dim-color);

}


.media-rating {

    font-size: 16px;

}


/* =========================================
   FOOTER
========================================= */

.footer {

    text-align: center;

    font-size: 12px;

    margin-top: 15px;

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 700px) {


    body {

        padding: 10px;

    }


    .main-layout {

        grid-template-columns: 1fr;

    }


    .sidebar {

        position: static;

    }


    .home-info-grid {

        grid-template-columns: 1fr;

    }


    .writing-layout {

        grid-template-columns: 1fr;

    }


    .site-title {

        font-size: 20px;

    }


}

/* =========================================
   ATABOOK GUESTBOOK
========================================= */

.guestbook-container {

    width: 100%;

    border: 1px solid var(--border-color);

    overflow: hidden;

    background: var(--background);

}


.guestbook-iframe {

    width: 100%;

    height: 700px;

    border: none;

    display: block;

}

/* =========================================
   SAINTS ARCHIVE
========================================= */


.saints-grid {

    display: grid;

    grid-template-columns:
        repeat(
            2,
            1fr
        );

    gap: 15px;

}


/* =========================================
   SAINT CARD
========================================= */


.saint-card {

    display: flex;

    flex-direction: column;

}


/* =========================================
   SAINT TITLE
========================================= */


.saint-title {

    color:
        var(--main-color);

    font-weight: bold;

    letter-spacing: 1px;

    margin-bottom: 12px;

}


/* =========================================
   IMAGE PLACEHOLDER
========================================= */


.saint-image-placeholder {

    width: 100%;

    min-height: 250px;

    border:
        1px dashed
        var(--dim-color);

    display: flex;

    align-items: center;

    justify-content: center;

    color:
        var(--dim-color);

    margin-bottom: 12px;

}


/* =========================================
   SAINT DATES
========================================= */


.saint-dates {

    border-top:
        1px dashed
        var(--dim-color);

    border-bottom:
        1px dashed
        var(--dim-color);

    padding:
        8px
        0;

    font-size: 11px;

    letter-spacing: 1px;

    text-align: center;

    color:
        var(--main-color);

}


/* =========================================
   SAINT INFORMATION
========================================= */


.saint-information {

    margin-top: 12px;

    border:
        1px dashed
        var(--dim-color);

    min-height: 130px;

    padding: 12px;

    color:
        var(--text-color);

}


.saint-information p {

    margin: 0;

    color:
        var(--dim-color);

}


/* =========================================
   MOBILE
========================================= */


@media (max-width: 700px) {


    .saints-grid {

        grid-template-columns:
            1fr;

    }


}

/* =========================================
   GALLERY IMAGES
========================================= */

.gallery-thumbnail {

    width: 100%;

    height: 223px;

    object-fit: cover;

    display: block;

}


.gallery-modal-image {

    max-width: 100%;

    max-height: 500px;

    display: block;

    margin: auto;

    object-fit: contain;

}

/* =========================================
   SAINT IMAGES
========================================= */

.saint-image {

    width: 100%;

    height: 223px;

    object-fit: cover;

    display: block;

    margin-bottom: 12px;

}