/* Chickstar's Guide - Original Minimalist Style */

body {
    background-color: #fff9ae; /* Soft Pastel Yellow */
    font-family: 'Comic Sans MS', 'Chalkboard SE', sans-serif; /* 90s kid feel */
    color: #555;
    margin: 0;
    padding: 50px 20px;
    display: flex;
    justify-content: center;
}

#container {
    background-color: white;
    max-width: 600px;
    width: 100%;
    padding: 40px;
    border: 4px solid #b2cefe; /* Pastel Blue Border */
    border-radius: 30px;
    box-shadow: 12px 12px 0px #ffb7b2; /* Pastel Pink Block Shadow */
    position: relative;
}

header, nav {
    text-align: center;
    margin-bottom: 30px;
}

.logo {
    max-width: 100%;
    height: auto;
    width: 350px;
}

.subtitle {
    font-style: italic;
    color: #aaa;
    margin-top: 5px;
}

nav a {
    text-decoration: none;
    color: #b2cefe;
    font-weight: bold;
    padding: 0 10px;
}

/* The Reveal Effect */
.image-box {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1; /* Keeps Illustration.png square */
    margin: 20px 0;
    border: 3px dashed #ffb7b2;
    border-radius: 15px;
    overflow: hidden;
}

.img-top {
    position: absolute;
    width: 100%;
    z-index: 2;
    transition: opacity 0.5s ease;
}

.img-top:hover {
    opacity: 0; /* Hides Nana's drawing to show the dirty one */
}

.img-bottom {
    width: 100%;
}

.episode-card h3 {
    color: #ffb7b2;
    text-align: center;
}

.meaning {
    background: #f0faff;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
}

/* Floating Side Chickstar */
.side-character {
    position: absolute;
    width: 120px;
    bottom: -60px;
    right: -40px;
    transform: rotate(10deg);
}

footer {
    margin-top: 50px;
    text-align: center;
    font-size: 0.7em;
    color: #eee;
}

/* css for guest book */
/* Friends Page Specifics */

.submission-card {
    background: #fff5f7; /* Very light pink */
    border: 3px dashed #ffb7b2;
    padding: 20px;
    text-align: center;
    border-radius: 20px;
    margin: 30px 0;
}

.submit-button {
    display: inline-block;
    background: #b2cefe; /* Pastel Blue */
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    box-shadow: 0px 4px 0px #88aaff;
    margin-top: 10px;
    transition: transform 0.2s;
}

.submit-button:hover {
    transform: scale(1.05);
}

.pastel-divider {
    border: 0;
    height: 2px;
    background-image: linear-gradient(to right, transparent, #ffb7b2, transparent);
    margin: 40px 0;
}

.friends-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.polaroid {
    background: white;
    padding: 10px 10px 25px 10px;
    border: 1px solid #ddd;
    box-shadow: 5px 5px 0px #f0f0f0;
    transform: rotate(-2deg);
    text-align: center;
}

.polaroid img {
    width: 100%;
    height: auto;
    border-bottom: 1px solid #eee;
}

.polaroid.empty {
    border: 2px dashed #ccc;
    color: #ccc;
    padding: 50px 10px;
    transform: rotate(2deg);
}

.small-print {
    font-size: 0.7em;
    color: #ff9aa2;
    margin-top: 15px;
}

/* STORYYYY */
/* Story Page Styling */

.story-card {
    background: white;
    border: 4px solid #ffdefa; /* Pastel Purple */
    border-radius: 15px;
    margin: 40px auto;
    max-width: 500px;
    box-shadow: 8px 8px 0px #b2cefe; /* Pastel Blue Shadow */
    overflow: hidden;
}

.card-header {
    background: #ffdefa;
    padding: 5px 15px;
    font-size: 0.75em;
    font-weight: bold;
    color: #555;
    border-bottom: 2px solid #ffdefa;
}

.story-text {
    padding: 30px;
    line-height: 1.8;
    font-size: 1.1em;
    text-align: left;
}

.story-chick {
    display: block;
    width: 150px;
    margin: 20px auto;
    filter: drop-shadow(4px 4px 0px #fff9ae);
}

/* Mobile tweak */
@media (max-width: 600px) {
    .story-text {
        font-size: 1em;
        padding: 20px;
    }
}