/* Global Styles */
:root {
    --primary-color: #ff6b6b;
    --secondary-color: #4ecdc4;
    --text-color: #333;
    --background-color: #f5f5f5;
    --card-background: rgba(255, 255, 255, 0.1);
    --border-color: rgba(255, 255, 255, 0.2);
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Rain Button */
.rain-button-container {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
}

#rainButton {
    padding: 0.8rem 1.5rem;
    background-color: #2c3e50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

#rainButton:hover {
    background-color: #34495e;
}

#rainContainer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
}

.raining-image {
    position: absolute;
    width: 100px;
    height: auto;
    animation: rain 3s linear forwards;
}

@keyframes rain {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(calc(100vh + 100px)) rotate(360deg);
        opacity: 0;
    }
}

/* Header Styles */
header {
    text-align: center;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="white" stroke-width="0.5" opacity="0.1"/></svg>') repeat;
    opacity: 0.1;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

/* Daily Content Layout */
.daily-content {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.daily-stats {
    text-align: center;
    margin-top: 20px;
}

.daily-hefward {
    position: absolute;
    top: 0;
    right: 20px;
    width: 300px;
    text-align: center;
}

.daily-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.daily-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-color);
}

.daily-hefward h2 {
    color: white;
    font-size: 1.5em;
    margin: 0 0 10px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.hefward-input {
    margin: 1rem auto;
    max-width: 300px;
    position: relative;
    z-index: 10;
}

.hefward-input input {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    font-size: 1rem;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    transition: all 0.3s ease;
    cursor: text;
    position: relative;
    z-index: 10;
}

.hefward-input input:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.hefward-input input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

/* Content Container */
.content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Card Styles */
.card {
    background: var(--card-background);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Button Styles */
.button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--card-background);
    border-radius: 25px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-5px);
}

/* Menu Grid */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    padding: 40px;
    max-width: 1400px;
    margin: 0 auto;
    flex: 1;
}

.menu-item {
    background: var(--card-background);
    border-radius: 20px;
    padding: 50px 30px;
    text-align: center;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    border: 2px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 300px;
}

.menu-item h2 {
    font-size: 2.5em;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

.menu-item p {
    font-size: 1.4em;
    opacity: 0.9;
    line-height: 1.5;
    margin: 0;
}

.menu-item:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.15);
}

/* Gallery Styles */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    aspect-ratio: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Verses Styles */
.verses-list {
    display: grid;
    gap: 30px;
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

.verse {
    background: var(--card-background);
    border-radius: 20px;
    padding: 40px;
    transition: transform 0.3s ease;
    border: 2px solid var(--border-color);
}

.verse:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-color);
}

.verse p {
    font-size: 1.4rem;
    font-style: italic;
    line-height: 1.6;
    margin: 0;
}

/* Impact Page Styles */
.testimonials {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial {
    background: var(--card-background);
    border-radius: 15px;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.testimonial:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.testimonial-header {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.testimonial-content {
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    line-height: 1.6;
}

.testimonial h2 {
    margin: 0;
    font-size: 1.2em;
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Header Decoration Styles */
.header-decoration {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.header-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
    animation: float 3s ease-in-out infinite;
}

.header-image:nth-child(2) {
    animation-delay: 0.5s;
}

.header-image:nth-child(3) {
    animation-delay: 1s;
}

/* Page-specific header images */
.gallery-page .header-decoration .header-image {
    content: url('assets/images/megawat.png');
}

.verses-page .header-decoration .header-image {
    content: url('assets/images/byleth.png');
}

.nicknames-page .header-decoration .header-image {
    content: url('assets/images/iD.png');
}

/* Footer */
footer {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    margin-top: 40px;
}

.footer .button-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer .back-button,
.footer .email-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 32px;
    font-size: 1.1em;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    min-width: 200px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.footer .back-button:hover,
.footer .email-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

.footer .back-button i,
.footer .email-button i {
    font-size: 1.2em;
}

.footer .email-button {
    background: rgba(255, 255, 255, 0.15);
}

.footer .email-button:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Responsive Design */
@media (max-width: 768px) {
    .menu-grid {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 30px;
    }
    
    .menu-item {
        padding: 40px 20px;
        min-height: 250px;
    }
    
    .menu-item h2 {
        font-size: 2em;
    }
    
    .menu-item p {
        font-size: 1.2em;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .content-container {
        padding: 1rem;
    }
    
    .verse {
        padding: 30px;
    }
    
    .verse p {
        font-size: 1.2rem;
    }
    
    .nickname-list {
        padding: 30px;
        margin: 20px;
        width: auto;
    }
    
    .nickname-list li {
        padding: 20px;
        font-size: 1.6em;
    }
    
    .footer .back-button,
    .footer .email-button {
        width: 100%;
        max-width: 300px;
        padding: 14px 28px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --text-color: #fff;
        --background-color: #1a1a1a;
        --card-background: rgba(255, 255, 255, 0.05);
    }
}

/* GIF Section Styles */
.gif-section {
    margin-bottom: 40px;
}

.gif-section h2 {
    text-align: center;
    color: var(--primary-color);
    font-size: 2em;
    margin-bottom: 20px;
}

.gif-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.gif-item {
    flex: 0 1 400px;
    max-width: 500px;
    margin: 0;
}

.gallery-gif {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Back Button */
.back-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    font-size: 1.2em;
    background: var(--card-background);
    border-radius: 30px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid var(--border-color);
    min-width: 200px;
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-8px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Nicknames Page Styles */
.nickname-list {
    background: var(--card-background);
    border-radius: 20px;
    padding: 40px 60px;
    margin: 40px auto;
    border: 2px solid var(--border-color);
    max-width: 1200px;
    width: 90%;
}

.nickname-list ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.nickname-list li {
    padding: 25px;
    border-bottom: 2px solid var(--border-color);
    transition: all 0.3s ease;
    font-size: 2em;
    text-align: center;
    margin: 10px 0;
}

.nickname-list li:last-child {
    border-bottom: none;
}

.nickname-list li:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateX(15px);
    color: var(--primary-color);
}

/* Gallery Page */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.gallery-item {
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.05);
}

/* Signature */
.signature {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.signature-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
}

/* Music Controls */
.audio-controls {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    gap: 10px;
    align-items: center;
    max-width: 200px;
    height: 50px;
    overflow: visible;
}

.music-toggle {
    background: var(--card-background);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    min-width: 50px;
    max-width: 50px;
    min-height: 50px;
    max-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--primary-color);
    font-size: 1.2em;
    padding: 0;
    flex-shrink: 0;
    flex-grow: 0;
}

.bongo-button, .chxmpy-button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: transform 0.3s ease;
    width: 50px;
    height: 50px;
    min-width: 50px;
    max-width: 50px;
    min-height: 50px;
    max-height: 50px;
    flex-shrink: 0;
    flex-grow: 0;
    position: relative;
}

.bongo-image, .chxmpy-image {
    width: 50px;
    height: 50px;
    min-width: 50px;
    max-width: 50px;
    min-height: 50px;
    max-height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    position: absolute;
    top: 0;
    left: 0;
}

.bongo-button:hover, .chxmpy-button:hover {
    transform: scale(1.1);
    z-index: 1001;
}

/* Flip Book Styles */
.book {
    perspective: 1500px;
    width: 800px;
    height: 600px;
    margin: 50px auto;
    position: relative;
}

.pages {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transform-origin: center;
}

.page {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-origin: left center;
    transition: transform 0.8s ease-in-out;
    transform-style: preserve-3d;
    background: #fff;
}

.front, .back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 20px;
    box-sizing: border-box;
}

.back {
    transform: rotateY(180deg);
    background: #f5f5f5;
}

.page img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    margin: 0;
    padding: 0;
    display: block;
}

.front {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fff;
    padding: 20px;
    box-sizing: border-box;
}

.cover {
    background: linear-gradient(45deg, #2c3e50, #3498db);
    color: white;
    text-align: center;
}

.cover .front {
    background: linear-gradient(45deg, #2c3e50, #3498db);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.cover h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.cover p {
    font-size: 1.2em;
    opacity: 0.8;
}

.controls {
    text-align: center;
    margin: 20px 0;
}

.flip-btn {
    padding: 10px 20px;
    margin: 0 10px;
    font-size: 1.1em;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.flip-btn:hover {
    background: #2980b9;
}

.flip-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
}

.flip-btn i {
    margin: 0 5px;
}

/* Responsive adjustments */
@media (max-width: 850px) {
    .book {
        width: 90%;
        height: 500px;
    }
}

@media (max-width: 600px) {
    .book {
        height: 400px;
    }
    
    .cover h1 {
        font-size: 2em;
    }
}

/* Header with Back Button */
.header-with-back {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 1rem;
    position: relative;
}

.header-with-back h1 {
    margin: 0;
}

.header-with-back .back-button {
    position: absolute;
    left: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
    font-size: 1rem;
    backdrop-filter: blur(5px);
}

.header-with-back .back-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-5px);
}

@media (max-width: 768px) {
    .header-with-back {
        flex-direction: column;
        gap: 15px;
    }

    .header-with-back .back-button {
        position: relative;
        left: 0;
        margin-bottom: 10px;
    }
}

/* Remove all guestbook styles */
.guestbook-page {
    display: none;
}

.guestbook-messages {
    display: none;
}

@media (max-width: 1200px) {
    .messages-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .messages-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .messages-list {
        grid-template-columns: 1fr;
    }
    
    .guestbook-messages {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .daily-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .daily-stats,
    .daily-hefward {
        position: static;
        width: 100%;
        margin-top: 20px;
    }
}

/* Messages Page Styles */
.messages-page {
    background: var(--background-color);
    color: var(--text-color);
}

.message-form {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: var(--card-background);
    border-radius: 15px;
    border: 2px solid var(--border-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.1em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1em;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.15);
}

.submit-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.8rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1em;
    transition: all 0.3s ease;
}

.submit-button:hover {
    background: #ff8585;
    transform: translateY(-2px);
}

.messages-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.message-card {
    background: var(--card-background);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform 0.3s ease;
}

.message-card:hover {
    transform: translateY(-5px);
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.message-header h3 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.2em;
}

.message-date {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9em;
}

.message-card p {
    margin: 0;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

.no-messages {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    padding: 2rem;
    grid-column: 1 / -1;
}

/* Remove any conflicting music-controls class */
.music-controls {
    display: none;
} 