* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* fonts */


.alien-block-regular {
  font-family: "Alien Block", sans-serif;
  font-weight: 400;
  font-style: normal;
}
.dela-gothic-one-regular {
  font-family: "Dela Gothic One", sans-serif;
  font-weight: 400;
  font-style: normal;
}

body {
    background: #87ceeb;
    background-image: 
        url('bgm.jpg'),
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255,255,255,.05) 10px, rgba(255,255,255,.05) 20px),
        repeating-linear-gradient(-45deg, transparent, transparent 10px, rgba(255,255,255,.03) 10px, rgba(255,255,255,.03) 20px);

    background-size: cover, auto, auto;
    background-position: center, 0 0, 0 0;
    background-attachment: fixed, scroll, scroll;
    background-repeat: no-repeat, repeat, repeat;
    color: #1a1a2e;
    font-family: 'Comic Sans MS', 'Courier New', monospace;
    padding: 20px;
    position: relative;
    min-height: 100vh;
}




/* Decorative background elements */
.bg-decoration {
    position: absolute;
    pointer-events: none;
    z-index: 2;
    animation: floaty 8s ease-in-out infinite alternate;
}


@keyframes floaty {
    0%   { transform: translateY(0); }
    50%  { transform: translateY(-12px); }
    100% { transform: translateY(0); }
}

.container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}



/* Content boxes that sit on foreground */
.content-box {
    background: white;
    border: 3px solid #5b9bd5;
    border-radius: 20px;
    box-shadow: 
        2px 2px 0 #4a8bc2,
        5px 5px 0 #3a7baf,
        7px 7px 9px rgba(0,0,0,0.2);
    padding: 15px;
    margin-bottom: 25px;
}

header {
    text-align: center;
    padding: 30px;
}

.header-decorations {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.header-gif-space {
    width: 120px;
    height: 120px;
    background: #ffefd5;
    border: 3px dotted #ff8c00;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff8c00;
    font-size: 0.8em;
    text-align: center;
    margin: 10px;
}

h1 {
    font-size: 2.8em;
    color: #2c5f7a;
    text-shadow: 3px 3px 0 #87ceeb, 5px 5px 0 #5b9bd5;
    font-family: "Alien Block", sans-serif;
    letter-spacing: 3px;
    margin: 20px 0;
    line-height: 1.2;
}

.subtitle {
    color: #4a7c95;
    font-size: 1.3em;
    margin: 15px 0;
    font-style: italic;
}

.banner-space {
    width: 100%;
    max-width: 500px;
    height: 80px;
    background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
    border: 3px dashed #d63031;
    margin: 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d63031;
    font-weight: bold;
}

/* Site navigation - used on every page */
nav.site-nav {
    padding: 15px;
    text-align: center;
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
    border: 3px solid #0652dd;
    margin-bottom: 25px;
}

nav.site-nav a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
    font-weight: bold;
    font-size: 1.1em;
    padding: 8px 16px;
    background: rgba(255,255,255,0.2);
    border-radius: 5px;
    transition: all 0.3s;
    display: inline-block;
}

nav.site-nav a:hover {
    background: rgba(255,255,255,0.4);
    transform: translateY(-2px);
}

nav.site-nav .active {
    background: rgba(255,255,255,0.55);
    box-shadow: 0 0 0 2px #fff inset;
}

.layout-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
    margin-top: 25px;
}

.layout-wrapper.single-column {
    grid-template-columns: 1fr;
}

h2 {
    color: #2c5f7a;
    font-size: 2em;
    margin-bottom: 20px;
    border-bottom: 4px solid #5b9bd5;
    padding-bottom: 10px;
}

.blog-post {
    padding: 25px;
    margin-bottom: 30px;
    position: relative;
    background: #fff9e6;
    border-left: 6px solid #feca57;
}

.post-decoration-corner {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 80px;
    height: 80px;
    background: #ffe6f0;
    border: 2px dashed #ff6b9d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7em;
    color: #ff6b9d;
    text-align: center;
}

.post-inline-img {
    float: right;
    width: 150px;
    height: 150px;
    background: #e6f3ff;
    border: 3px solid #5b9bd5;
    margin: 0 0 15px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8em;
    color: #5b9bd5;
    text-align: center;
}

.post-banner-img {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #e0f7fa 0%, #b2ebf2 100%);
    border: 3px dashed #0097a7;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9em;
    color: #0097a7;
}

.post-date {
    color: #e17055;
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 10px;
}

h3 {
    color: #2c5f7a;
    font-size: 1.5em;
    margin: 15px 0;
}

.post-content {
    color: #2c3e50;
    line-height: 1.8;
    font-size: 1.05em;
}

.post-content p {
    margin-bottom: 12px;
}

/* Teaser used on the homepage in place of the full blog */
.post-teaser {
    padding: 20px;
    background: #fff9e6;
    border-left: 6px solid #feca57;
    margin-bottom: 15px;
}

.sidebar-widget {
    padding: 20px;
    margin-bottom: 25px;
    position: relative;
}

.widget-style-1 {
    background: #fff5f5;
    border: 3px solid #ff7675;
    border-left: 8px solid #d63031;
    box-shadow: 
        2px 2px 0 #D45150,
        5px 5px 0 #9E2828,
        7px 7px 9px rgba(0,0,0,0.2);
    padding: 15px;
}

.widget-style-2 {
    background: #f0f8ff;
    border: 3px solid #74b9ff;
    border-left: 8px solid #0984e3;
    box-shadow: 
        2px 2px 0 #4a8bc2,
        5px 5px 0 #3a7baf,
        7px 7px 9px rgba(0,0,0,0.2);
    padding: 15px;
}

.widget-style-3 {
    background: #f0fff4;
    border: 3px solid #55efc4;
    border-left: 8px solid #00b894;
    box-shadow: 
        2px 2px 0 #4a8bc2,
        5px 5px 0 #3a7baf,
        7px 7px 9px rgba(0,0,0,0.2);
    padding: 15px;
}

.widget-img-space {
    width: 100%;
    height: 120px;
    background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
    border: 2px dashed #e17055;
    margin: 15px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8em;
    color: #e17055;
}

.widget-corner-deco {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid currentColor;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6em;
}

.widget-title {
    color: inherit;
    font-size: 1.4em;
    margin-bottom: 15px;
    font-weight: bold;
}

.action-button {
    display: block;
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    background: linear-gradient(135deg, #fd79a8 0%, #e84393 100%);
    border: 3px solid #d63031;
    color: white;
    font-weight: bold;
    font-size: 1.1em;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.action-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(214, 48, 49, 0.3);
}

.button-alt {
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
    border-color: #0652dd;
}

.button-green {
    background: linear-gradient(135deg, #55efc4 0%, #00b894 100%);
    border-color: #00785e;
}

.mood-display {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
    border-radius: 10px;
    margin: 15px 0;
}

.mood-text {
    font-size: 1.5em;
    color: #d63031;
    font-weight: bold;
}

.interests-list {
    line-height: 2;
    font-size: 1.05em;
    color: #2c5f7a;
}

.interests-list div {
    padding: 5px 0;
    border-bottom: 1px dotted #dfe6e9;
}

.scattered-decoration {
    position: absolute;
    pointer-events: none;
    z-index: 10;
}

.deco-1 {
    top: -15px;
    left: 20px;
    width: 40px;
    height: 40px;
    background: #ff6b9d;
    border-radius: 50%;
    opacity: 0.6;
}

.deco-2 {
    bottom: -10px;
    right: 30px;
    width: 30px;
    height: 30px;
    background: #4ecdc4;
    transform: rotate(45deg);
    opacity: 0.6;
}

footer {
    text-align: center;
    padding: 30px;
    margin-top: 30px;
}

.footer-images {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.footer-img-space {
    width: auto;
    height: auto;
    background: linear-gradient(135deg, #fab1a0 0%, #ff7675 100%);
    border: 3px dashed #d63031;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8em;
    color: #d63031;
}

marquee {
    background: white;
    border: 3px solid #fdcb6e;
    border-left: 8px solid #e17055;
    border-right: 8px solid #e17055;
    padding: 12px;
    margin: 20px 0;
    font-weight: bold;
    color: #2c5f7a;
    box-shadow: 3px 3px 10px rgba(0,0,0,0.1);
}

/* ---------- Art Gallery ---------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 20px;
}

.gallery-frame {
    background: #fff9e6;
    border: 3px solid #5b9bd5;
    box-shadow: 4px 4px 0 #4a8bc2;
    padding: 10px;
    text-align: center;
    transition: transform 0.2s ease;
}

.gallery-frame:hover {
    transform: translateY(-4px) rotate(-1deg);
}

.gallery-img-space {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, #e0f7fa 0%, #b2ebf2 100%);
    border: 2px dashed #0097a7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8em;
    color: #0097a7;
    margin-bottom: 10px;
    overflow: hidden;
}

.gallery-img-space img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-caption {
    color: #2c5f7a;
    font-weight: bold;
    font-size: 0.95em;
}

.gallery-date {
    color: #e17055;
    font-size: 0.8em;
    margin-top: 4px;
}

/* ---------- Guestbook ---------- */
.guestbook-frame-wrap {
    border: 3px dashed #5b9bd5;
    background: #f0f8ff;
    padding: 15px;
    margin: 20px 0;
}

.guestbook-frame-wrap iframe {
    width: 100%;
    min-height: 500px;
    border: 3px solid #74b9ff;
    background: white;
}

.guestbook-note {
    background: #fff5f5;
    border: 2px dashed #ff7675;
    padding: 15px;
    margin-bottom: 20px;
    color: #d63031;
    font-size: 0.95em;
    line-height: 1.6;
}

.guestbook-note code {
    background: #fff;
    padding: 2px 6px;
    border: 1px solid #ff7675;
    border-radius: 3px;
}

@media (max-width: 768px) {
    .layout-wrapper {
        grid-template-columns: 1fr;
    }
    h1 {
        font-size: 2em;
    }
    
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    nav.site-nav a {
        display: inline-block;
        margin: 4px;
    }
}

.bg-slider {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 2.5s ease-in-out;
    z-index: -2;
}