@font-face {
    font-family: 'basiic';
    src: url('./basiic.ttf') format('truetype');
}

@font-face {
    font-family: 'heartfont';
    src: url('./heartfont.ttf') format('truetype');
}

@font-face {
    font-family: 'comicoro';
    src: url('./Comicoro.ttf') format('truetype');
}

@font-face {
    font-family: 'pixelp';
    src: url('./pixelpoiiz.ttf') format('truetype');
}

@font-face {
    font-family: 'cherish';
    src: url('./Cherish.ttf') format('truetype');
    font-weight: bold;
}

@font-face {
    font-family: 'GrapeSoda';
    src: url('./GrapeSoda.ttf') format('truetype');
}

/* start light mode styling */
:root {
    --text: #428256;
    --border: #428256;
    --accent: #657870;
    --bg: #7b9e72;
    --gradientTop: white;
    --gradientBottom: rgb(240, 248, 255, .8);
}

header {
    background: url('***light mode banner image***');
    font-family: 'pixelp', sans-serif !important;
}

/* end light mode styling */

* {
    box-sizing: border-box;
}

body {
    padding: 10px;
    font-family: 'comicoro', sans-serif !important;
    color: var(--text);

    /* page background pattern */
    background-color: var(--gradientTop);
    background-image: url('./water.gif');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

.container {
    max-width: 55rem;
    margin: 5vw auto 12px auto;
    border: 6px ridge #004D26;
    outline-offset: 4px;
    border-radius: 10px;
    display: flex;
    flex-wrap: wrap;
    padding: 5px;
    gap: 5px;

    /* container background pattern */
    background-image: url('./forest-green-forest.gif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* these control the column widths */
.small {
    flex: 1 1 9%;
    min-width: 0;
}

.large {
    flex: 1 1 82%;
    min-width: 0;
}

.full {
    flex: 1 1 100%;
    min-width: 0;
}

.half {
    flex: 1 1 49%;
    min-width: 0;
}

header {
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 120px;
    position: relative;
}

header span {
    font-size: 2.5rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
    margin: 0;
    font-weight: bold;
    text-shadow: 2px 2px #004D26,
        -2px 2px #004D26,
        2px -2px #004D26,
        -2px -2px #004D26;
    color: #04C762;
}

nav {
    border: 2px ridge var(--border);
    border-radius: 5px;
    padding: 5px;
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(150, 185, 140, 0.85));
}

nav div {
    text-align: center;
    font-size: 1.25rem;
    margin: 5px 5px 10px 5px;
}

nav a {
    display: block;
    margin: 5px;
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(150, 185, 140, 0.75));
    border: 2px ridge var(--border);
    border-radius: 5px;
    padding: 2px 7px;
    text-decoration: none;
}

nav a:link,
nav a:visited {
    color: var(--text);
}

nav a:hover,
nav a:focus {
    background: linear-gradient(to right, var(--bg), var(--gradientBottom), var(--gradientTop));
}

div.small>img {
    display: block;
    margin: 5px auto;
    border: 2px ridge var(--border);
    border-radius: 5px;
}

section {
    border: 2px ridge var(--border);
    border-radius: 5px;
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(150, 185, 140, 0.85));
    padding: 5px;
}

footer {
    text-align: center;
    margin-bottom: 5vw;
    font-size: 0.8rem;
}

footer a {
    text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
    margin: 5px;
    line-height: 1.2;
}

h1 {
    font-family: 'pixelp', sans-serif !important;
    color: #6BC285;
    font-size: 1.3rem;
    letter-spacing: 2px;
    font-weight: normal;
    text-align: center;
    border-bottom: 2px ridge var(--border);
    padding-bottom: 5px;
}

h2 {
    font-family: 'GrapeSoda', sans-serif !important;
    color: #428256;
    font-size: 1.25rem;
    font-weight: normal;
    text-align: center;
}

h3 {
    font-size: 1.1rem;
}

h4 {
    font-size: 1rem;
    color: var(--accent);
    padding-left: 12px;
}

img {
    max-width: 100%;
}

pre {
    overflow-x: auto;
}

a:hover,
a:focus {
    font-style: italic;
}

a:visited {
    color: var(--accent);
}

.stamp-marquee {
    overflow: hidden !important;
    width: 100%;
    max-width: 100%;
    padding: 10px 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.stamp-track {
    display: flex;
    gap: 15px;
    width: max-content;
    animation: scrollStamps 25s linear infinite;
}

.stamp-track img {
    height: 50px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

@keyframes scrollStamps {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.player-btn {
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(123, 158, 114, 0.75));
    border: 2px ridge var(--border);
    border-radius: 5px;
    padding: 4px 10px;
    font-size: 1rem;
    cursor: pointer;
    color: var(--text);
    transition: background 0.2s, transform 0.1s;
}

.player-btn:hover {
    background: linear-gradient(to right, var(--bg), var(--gradientBottom), var(--gradientTop));
    transform: scale(1.05);
}

.player-btn:active {
    transform: scale(0.95);
}

/* Custom styling for the welcome section on home page */
.welcome-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 15px 20px;
}

.welcome-section h1 {
    font-size: 1.6rem;
    margin-bottom: 12px;
}

.welcome-section p {
    font-size: 1.35rem;
    margin: 10px;
    line-height: 1.4;
}

/* Custom styling for the currently section on home page */
.currently-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 15px 10px;
}

.currently-section h2 {
    font-weight: bold;
    font-size: 1.6em;
    color: #6BC285;
    margin-bottom: 12px;
}

.currently-section p {
    font-size: 1.3em;
    margin: 6px 0;
    line-height: 1.3;
}

/* Guestbook and Status Widget CSS */
.guestbook-status-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 15px !important;
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(150, 185, 140, 0.85)) !important;
    border: 2px ridge var(--border) !important;
    border-radius: 5px !important;
}

.bulletin-header h2 {
    margin-top: 0;
    border-bottom: 2px ridge var(--border);
    padding-bottom: 5px;
}

.status-widget {
    width: 100%;
}

.status-bubble-wrapper {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.status-bubble {
    flex-grow: 1;
    background: transparent !important;
    border: none !important;
    padding: 10px;
    position: relative;
}

.status-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.85em;
    color: var(--accent);
    margin-bottom: 4px;
    border-bottom: 1px dashed rgba(66, 130, 86, 0.3);
    padding-bottom: 2px;
}

.status-author {
    font-weight: bold;
}

.status-text {
    font-family: 'comicoro', sans-serif !important;
    font-size: 1.2em;
    color: #004D26;
    line-height: 1.3;
}

.status-admin-trigger {
    display: flex;
    justify-content: flex-end;
    margin-top: 4px;
}

.mini-btn {
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 0.85em;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}

.mini-btn:hover {
    color: #004D26;
    font-style: italic;
}

.status-editor-form {
    display: flex;
    gap: 6px;
    margin-top: 10px;
    background: rgba(255, 255, 255, 0.3) !important;
    border: 2px ridge var(--border);
    border-radius: 8px;
    padding: 8px;
}

.status-editor-form.hidden {
    display: none;
}

.status-editor-form input {
    flex-grow: 1;
    border: 2px ridge var(--border);
    border-radius: 4px;
    padding: 4px 8px;
    font-family: 'comicoro', sans-serif;
    font-size: 1.1em;
    background: rgba(255, 255, 255, 0.4) !important;
    color: #004D26;
}

.status-editor-form button {
    padding: 2px 6px;
    font-size: 0.8em;
}

.section-divider {
    border: none;
    border-top: 2px ridge var(--border);
    width: 100%;
    margin: 5px 0;
}

.guestbook-widget h3 {
    font-family: 'GrapeSoda', sans-serif !important;
    font-size: 1.4rem;
    color: #004D26;
    text-align: center;
    margin-bottom: 10px;
}

.guestbook-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.form-row {
    display: flex;
    gap: 8px;
}

.form-row input, .form-row select, .form-row textarea {
    border: 2px ridge var(--border);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.4) !important; /* Soft transparency instead of pure solid white */
    font-family: 'comicoro', sans-serif;
    font-size: 1.15em;
    padding: 6px;
    color: #004D26;
}

/* Fix option backgrounds inside dropdown so text stays readable */
.form-row select option {
    background-color: #f0f8ff; 
    color: #004D26;
}

.form-row input {
    flex: 2;
}

.form-row select {
    flex: 1;
    cursor: pointer;
}

.form-row textarea {
    width: 100%;
    resize: vertical;
}

.sign-btn {
    align-self: center;
    padding: 4px 12px;
    font-size: 0.95em;
    font-weight: bold;
}

.guestbook-comments-container {
    border: 2px ridge var(--border);
    border-radius: 5px;
    background: transparent !important;
    padding: 8px;
    max-height: 220px;
    overflow-y: auto;
}

.guestbook-comments-container::-webkit-scrollbar {
    width: 8px;
}

.guestbook-comments-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 5px;
}

.guestbook-comments-container::-webkit-scrollbar-thumb {
    background: var(--border);
    border: 1px solid white;
    border-radius: 5px;
}

.guestbook-comments-container::-webkit-scrollbar-thumb:hover {
    background: #004D26;
}

.guestbook-comments {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gb-entry {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(66, 130, 86, 0.4);
    border-radius: 8px;
    padding: 8px;
    box-shadow: 1px 1px 3px rgba(0,0,0,0.05);
}

.gb-entry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85em;
    color: var(--accent);
    border-bottom: 1px dashed rgba(66, 130, 86, 0.2);
    padding-bottom: 4px;
    margin-bottom: 4px;
}

.gb-entry-name {
    font-weight: bold;
    color: #004D26;
}

.gb-entry-mood {
    font-size: 1.1em;
}

.gb-entry-date {
    font-style: italic;
}

.gb-entry-message {
    font-family: 'comicoro', sans-serif !important;
    font-size: 1.15em;
    line-height: 1.25;
    color: var(--text);
    word-break: break-word;
}