/* ================================
   90's NOSTALGIA WEDDING WEBSITE
   Easy to customize - read comments!
   ================================ */

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

body {
    /* Background - change this to any color or pattern! */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    font-family: 'Comic Sans MS', 'Arial', sans-serif;
    color: #000;
    line-height: 1.6;
    padding: 0;
    margin: 0;
}

/* TOP BAR WITH SCROLLING TEXT */
.top-bar {
    background: #FFD700;
    color: #FF1493;
    font-weight: bold;
    font-size: 1.1em;
    border-bottom: 3px solid #FF1493;
}

/* HEADER */
header {
    background: linear-gradient(to bottom, #FFB6C1, #FFC0CB);
    border: 5px ridge #FFD700;
    padding: 30px 20px;
    text-align: center;
    margin: 20px;
    box-shadow: 5px 5px 0px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

header h1 {
    font-size: 3em;
    color: #FF1493;
    text-shadow: 2px 2px #FFD700;
    margin-bottom: 10px;
    animation: rainbow 3s infinite;
}

.header-image {
    width: 150px;
    height: 150px;
    max-width: 150px;
    max-height: 150px;
    min-width: 150px;
    min-height: 150px;
    border-radius: 50%;
    border: 5px solid #FFD700;
    box-shadow: 0 0 0 3px #FF1493, 5px 5px 15px rgba(0, 0, 0, 0.3);
    object-fit: cover;
    margin: 20px auto 0;
    display: block;
}

.tagline {
    font-size: 1.3em;
    font-style: italic;
    color: #8B008B;
}

/* RAINBOW ANIMATION FOR HEADER */
@keyframes rainbow {
    0% { color: #FF1493; }
    25% { color: #FF69B4; }
    50% { color: #FF1493; }
    75% { color: #C71585; }
    100% { color: #FF1493; }
}

/* NAVIGATION */
nav {
    background: #00CED1;
    padding: 15px;
    text-align: center;
    border: 3px solid #FFD700;
    margin: 0 20px 20px 20px;
    box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.3);
}

nav a {
    color: #000;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    padding: 5px 10px;
    transition: all 0.3s;
}

nav a:hover {
    background: #FFD700;
    color: #FF1493;
    text-decoration: underline;
}

/* MAIN CONTAINER - holds sidebars and content */
.container {
    display: flex;
    gap: 20px;
    margin: 0 20px 20px 20px;
    flex-wrap: wrap;
}

/* SIDEBAR STYLING */
.sidebar-left,
.sidebar-right {
    flex: 0 0 200px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sidebar-box {
    background: #FFE4E1;
    border: 3px solid #FF69B4;
    padding: 15px;
    box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.3);
}

.sidebar-box h3 {
    color: #FF1493;
    margin-bottom: 10px;
    border-bottom: 2px dotted #FF69B4;
    padding-bottom: 5px;
}

.sidebar-box ul {
    list-style: none;
    padding-left: 0;
}

.sidebar-box ul li {
    margin: 8px 0;
}

.sidebar-box ul li::before {
    content: "💫 ";
}

.sidebar-box a {
    color: #8B008B;
    text-decoration: none;
}

.sidebar-box a:hover {
    text-decoration: underline;
    color: #FF1493;
}

/* BLINKING STAR EFFECT */
.blink {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0; }
}

/* MAIN CONTENT AREA */
.content {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.content-box {
    background: #FFF;
    border: 4px groove #FFD700;
    padding: 25px;
    box-shadow: 5px 5px 0px rgba(0, 0, 0, 0.3);
}

.content-box h2 {
    color: #FF1493;
    font-size: 2em;
    margin-bottom: 15px;
    text-align: center;
    text-shadow: 1px 1px #FFD700;
}

.content-box h3 {
    color: #8B008B;
    font-size: 1.3em;
    margin-top: 20px;
    margin-bottom: 10px;
}

.content-box p {
    margin-bottom: 15px;
}

/* DECORATIVE LINES */
center p {
    color: #FF1493;
}

.divider-line-mobile {
    display: none;
}

/* DRESS CODE HIGHLIGHT BOX */
.dress-code-highlight {
    background: linear-gradient(135deg, #FFF0F5, #FFE4E1);
    border: 3px dashed #FF69B4;
    border-radius: 10px;
    padding: 20px;
    margin: 15px 0;
    box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.2);
    font-size: 1.05em;
    line-height: 1.8;
}

.dress-code-highlight strong {
    color: #FF1493;
    font-size: 1.2em;
    display: block;
    /* margin-bottom: 5px; */
}

/* QUOTE SECTION */
#quote {
    max-width: 600px;
    margin: 15px auto;
    font-size: 1.1em;
    line-height: 1.8;
    padding: 0 20px;
}

/* FARM BACKGROUND */
.farm-background {
    position: relative;
    background-image: url('images/farm.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 400px;
    padding: 0 !important;
}

.farm-overlay {
    background: rgba(255, 255, 255, 0.85);
    padding: 25px;
    position: relative;
    z-index: 1;
}

.farm-overlay h2 {
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
}

.farm-overlay p,
.farm-overlay em {
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

/* REGISTRY LIST */
.registry-list {
    list-style: none;
    padding: 20px;
    background: #FFF0F5;
    border: 2px dashed #FF69B4;
}

.registry-list li {
    font-size: 1.2em;
    margin: 15px 0;
}

.registry-list a {
    color: #8B008B;
    text-decoration: none;
    font-weight: bold;
}

.registry-list a:hover {
    color: #FF1493;
    text-decoration: underline;
}

/* UNDER CONSTRUCTION SECTION */
.under-construction {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #FFF0F5, #FFE4E1);
    border: 3px dashed #FFD700;
    margin: 20px 0;
}

.construction-icon {
    font-size: 4em;
    display: inline-block;
    animation: bounce 1.5s infinite;
    margin: 0 20px;
}

.rotate {
    animation: rotate 2s linear infinite;
}

.blink-text {
    color: #FF1493;
    font-size: 2em;
    font-weight: bold;
    text-shadow: 2px 2px #FFD700;
    animation: blink-color 1s infinite;
    letter-spacing: 3px;
    margin: 20px 0;
}

.construction-message {
    font-size: 1.3em;
    color: #8B008B;
    margin: 20px 0;
    font-weight: bold;
}

.construction-bars {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.bar {
    width: 50px;
    height: 10px;
    background: #FFD700;
    border: 2px solid #FF1493;
    animation: loading 1.5s infinite;
}

.bar1 {
    animation-delay: 0s;
}

.bar2 {
    animation-delay: 0.3s;
}

.bar3 {
    animation-delay: 0.6s;
}

/* ANIMATIONS FOR UNDER CONSTRUCTION */
@keyframes bounce {
    0%, 100% { 
        transform: translateY(0); 
    }
    50% { 
        transform: translateY(-20px); 
    }
}

@keyframes rotate {
    0% { 
        transform: rotate(0deg); 
    }
    100% { 
        transform: rotate(360deg); 
    }
}

@keyframes blink-color {
    0%, 100% { 
        color: #FF1493; 
        opacity: 1;
    }
    50% { 
        color: #FFD700; 
        opacity: 0.7;
    }
}

@keyframes loading {
    0%, 100% { 
        transform: scaleY(1);
        background: #FFD700;
    }
    50% { 
        transform: scaleY(3);
        background: #FF1493;
    }
}

/* PHOTO GALLERY */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.photo-placeholder {
    background: linear-gradient(135deg, #FFB6C1, #FFD700);
    border: 3px solid #FF1493;
    padding: 40px 20px;
    text-align: center;
    font-weight: bold;
    color: #8B008B;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border: 4px solid #FF1493;
    box-shadow: 5px 5px 0px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, box-shadow 0.3s, opacity 0.3s;
    cursor: pointer;
}

.photo-grid img:hover {
    transform: scale(1.05) rotate(-2deg);
    box-shadow: 8px 8px 0px rgba(0, 0, 0, 0.4);
    border-color: #FFD700;
}

/* FORM STYLING */
.form-container {
    background: #FFF0F5;
    padding: 20px;
    border: 3px solid #FF69B4;
    margin: 20px 0;
}

form label {
    font-weight: bold;
    color: #8B008B;
}

form input[type="text"],
form input[type="email"],
form input[type="number"],
form textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #FFB6C1;
    background: #FFF;
    font-family: inherit;
    font-size: 1em;
}

form input[type="radio"] {
    margin-right: 5px;
}

form textarea {
    resize: vertical;
}

.submit-btn {
    background: linear-gradient(to bottom, #FF69B4, #FF1493);
    color: #FFF;
    border: 3px solid #FFD700;
    padding: 12px 30px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
}

.submit-btn:hover {
    background: linear-gradient(to bottom, #FFD700, #FFA500);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 5px 5px 0px rgba(0, 0, 0, 0.3);
}

.refresh-btn {
    background: linear-gradient(to bottom, #00CED1, #20B2AA);
    color: #FFF;
    border: 3px solid #FFD700;
    padding: 12px 25px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.3);
    transition: all 0.5s;
    margin: 15px 0;
}

.refresh-btn:hover {
    background: linear-gradient(to bottom, #FFD700, #FFA500);
    color: #000;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 5px 5px 0px rgba(0, 0, 0, 0.3);
}

.refresh-btn:active {
    transform: translateY(1px);
    box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.3);
}

.form-note {
    font-size: 0.85em;
    color: #666;
    font-style: italic;
    margin-top: 15px;
}

/* FOOTER */
footer {
    background: linear-gradient(to bottom, #FFB6C1, #FFC0CB);
    border: 5px ridge #FFD700;
    padding: 25px;
    text-align: center;
    margin: 20px;
    box-shadow: 5px 5px 0px rgba(0, 0, 0, 0.3);
    color: #8B008B;
}

footer p {
    margin: 5px 0;
}

/* VISITOR COUNTER */
.visitor-counter {
    margin-top: 20px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #FFE4E1, #FFF0F5);
    border: 3px solid #FFD700;
    display: inline-block;
    box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.3);
    border-radius: 5px;
}

.visitor-counter p {
    color: #FF1493;
    font-family: 'Comic Sans MS', 'Arial', sans-serif;
    font-size: 1em;
    margin: 5px 0;
    font-weight: bold;
}

.counter-display {
    display: flex;
    gap: 5px;
    justify-content: center;
    margin-top: 10px;
}

.counter-digit {
    background: linear-gradient(to bottom, #FFB6C1, #FF69B4);
    color: #FFF;
    font-family: 'Comic Sans MS', 'Arial', sans-serif;
    font-size: 1.5em;
    font-weight: bold;
    padding: 8px 12px;
    border: 3px ridge #FFD700;
    box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.3);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    min-width: 35px;
    text-align: center;
    border-radius: 3px;
}

/* RESPONSIVE DESIGN FOR MOBILE */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    .sidebar-left,
    .sidebar-right {
        flex: 1;
        width: 100%;
    }
    
    /* Make left sidebar use flexbox with wrap */
    .sidebar-left {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0;
    }
    
    /* Hide Quick Links on mobile */
    .sidebar-left .sidebar-box:nth-child(1) {
        display: none;
    }
    
    /* The Couple and Save the Date sit side-by-side */
    .sidebar-left .sidebar-box:nth-child(2),
    .sidebar-left .sidebar-box:nth-child(3) {
        flex: 1 1 calc(50% - 7.5px);
        width: calc(50% - 7.5px);
    }
    
    /* Adjust gap between side-by-side boxes */
    .sidebar-left .sidebar-box:nth-child(2) {
        margin-right: 7.5px;
        margin-bottom: 0;
    }
    
    .sidebar-left .sidebar-box:nth-child(3) {
        margin-left: 7.5px;
        margin-bottom: 0;
    }
    
    /* Smaller heading for save the date on mobile */
    .sidebar-box h3 {
        font-size: 0.95em;
        white-space: nowrap;
    }
    
    /* Show shorter divider lines on mobile */
    .divider-line {
        display: none;
    }
    
    .divider-line-mobile {
        display: block;
    }
    
    /* Floating music player for mobile */
    .music-player {
        position: fixed !important;
        bottom: 20px;
        right: 20px;
        width: 280px;
        max-width: calc(100vw - 40px);
        z-index: 9998;
        box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.5) !important;
        transition: all 0.3s ease;
    }
    
    .music-player.minimized {
        width: 60px !important;
        height: 60px !important;
        border-radius: 50%;
        padding: 0 !important;
        overflow: hidden !important;
    }
    
    .music-player.minimized .music-info,
    .music-player.minimized .music-controls,
    .music-player.minimized .equalizer,
    .music-player.minimized h3 {
        display: none;
    }
    
    .music-player.minimized .music-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        font-size: 2em;
    }
    
    .music-player.hidden {
        display: none;
    }
    
    /* Music player controls for mobile */
    .music-toggle {
        display: none;
        cursor: pointer;
    }
    
    .music-close {
        display: block !important;
        position: absolute;
        top: 5px;
        right: 5px;
        background: rgba(255, 20, 147, 0.8);
        color: white;
        border: none;
        border-radius: 50%;
        width: 25px;
        height: 25px;
        font-size: 14px;
        font-weight: bold;
        cursor: pointer;
        z-index: 10;
        line-height: 1;
        padding: 0;
    }
    
    .music-player.minimized .music-close {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
    
    header {
        margin: 10px;
        padding: 20px 15px;
    }
    
    header h1 {
        font-size: 1.6em;
        line-height: 1.3;
        margin-bottom: 10px;
    }
    
    .tagline {
        font-size: 1.1em;
        margin-bottom: 15px;
    }
    
    .header-image {
        width: 90px !important;
        height: 90px !important;
        max-width: 90px !important;
        max-height: 90px !important;
        min-width: 90px !important;
        min-height: 90px !important;
        margin: 10px auto 0 !important;
        border-width: 4px;
    }
    
    .farm-background {
        min-height: 300px;
    }
    
    .farm-overlay {
        padding: 20px;
    }
    
    /* Visitor counter responsive */
    .visitor-counter {
        padding: 10px 15px;
        max-width: 100%;
    }
    
    .visitor-counter p {
        font-size: 0.85em;
    }
    
    .counter-display {
        gap: 3px;
    }
    
    .counter-digit {
        font-size: 1.2em;
        padding: 6px 8px;
        min-width: 28px;
    }
    
    /* Comments responsive */
    #commentsContainer {
        max-height: 400px;
    }
    
    #commentsContainer::-webkit-scrollbar {
        width: 8px;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    header {
        margin: 8px;
        padding: 15px 10px;
    }
    
    header h1 {
        font-size: 1.3em;
        line-height: 1.3;
        word-wrap: break-word;
        overflow-wrap: break-word;
        margin-bottom: 8px;
    }
    
    .tagline {
        font-size: 1em;
        margin-bottom: 12px;
    }
    
    .header-image {
        width: 75px !important;
        height: 75px !important;
        max-width: 75px !important;
        max-height: 75px !important;
        min-width: 75px !important;
        min-height: 75px !important;
        margin: 8px auto 0 !important;
        border-width: 3px;
    }
    
    nav {
        font-size: 0.9em;
    }
    
    nav a {
        display: inline-block;
        margin: 5px;
    }
}

/* Very small mobile devices */
@media (max-width: 360px) {
    header {
        margin: 5px !important;
        padding: 12px 8px !important;
    }
    
    header h1 {
        font-size: 1.1em !important;
        line-height: 1.2 !important;
        margin-bottom: 6px !important;
    }
    
    .tagline {
        font-size: 0.9em !important;
        margin-bottom: 10px !important;
    }
    
    .header-image {
        width: 65px !important;
        height: 65px !important;
        max-width: 65px !important;
        max-height: 65px !important;
        min-width: 65px !important;
        min-height: 65px !important;
        margin: 6px auto 0 !important;
        border-width: 3px !important;
    }
}

/* SMOOTH SCROLLING */
html {
    scroll-behavior: smooth;
}

/* MUSIC PLAYER */
.music-player {
    background: linear-gradient(135deg, #E6E6FA, #DDA0DD) !important;
    text-align: center;
}

/* Hide close button and toggle on desktop */
.music-close,
.music-toggle {
    display: none;
}

.music-info {
    background: #FFF;
    border: 2px solid #FF69B4;
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
}

.music-info p {
    margin: 5px 0;
    font-size: 0.9em;
}

.music-controls {
    margin: 15px 0;
}

.music-btn {
    background: linear-gradient(to bottom, #FF69B4, #FF1493);
    color: #FFF;
    border: 2px solid #FFD700;
    padding: 8px 15px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
    border-radius: 5px;
    width: 100%;
    margin: 5px 0;
}

.music-btn:hover {
    background: linear-gradient(to bottom, #FFD700, #FFA500);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.3);
}

.music-btn:active {
    transform: translateY(0);
    box-shadow: 1px 1px 0px rgba(0, 0, 0, 0.3);
}

/* EQUALIZER ANIMATION */
.equalizer {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 5px;
    height: 50px;
    margin: 15px 0;
}

.eq-bar {
    width: 8px;
    background: linear-gradient(to top, #FF1493, #FFD700);
    border-radius: 3px;
    animation: equalize 0.8s ease-in-out infinite;
}

.eq-bar:nth-child(1) {
    animation-delay: 0s;
}

.eq-bar:nth-child(2) {
    animation-delay: 0.1s;
}

.eq-bar:nth-child(3) {
    animation-delay: 0.2s;
}

.eq-bar:nth-child(4) {
    animation-delay: 0.3s;
}

.eq-bar:nth-child(5) {
    animation-delay: 0.4s;
}

@keyframes equalize {
    0%, 100% {
        height: 10px;
    }
    50% {
        height: 40px;
    }
}

/* LINKS IN CONTENT */
.content a {
    color: #8B008B;
    font-weight: bold;
}

.content a:hover {
    color: #FF1493;
}

/* COMMENTS SECTION */
.comment-form-container {
    background: #FFF0F5;
    padding: 20px;
    border: 3px solid #FF69B4;
    margin: 20px 0;
    box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.3);
}

.comments-list {
    margin-top: 30px;
}

.comments-list h3 {
    color: #FF1493;
    margin-bottom: 20px;
    text-align: center;
}

#commentsContainer {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 600px;
    overflow-y: auto;
    padding-right: 10px;
}

/* Scrollbar styling for comments */
#commentsContainer::-webkit-scrollbar {
    width: 12px;
}

#commentsContainer::-webkit-scrollbar-track {
    background: #FFF0F5;
    border: 2px solid #FF69B4;
    border-radius: 10px;
}

#commentsContainer::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #FF69B4, #FF1493);
    border-radius: 10px;
    border: 2px solid #FFD700;
}

#commentsContainer::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #FF1493, #C71585);
}

.comment-item {
    background: linear-gradient(135deg, #FFF0F5, #FFE4E1);
    border: 3px solid #FFD700;
    padding: 15px;
    box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px dotted #FF69B4;
}

.comment-author {
    color: #FF1493;
    font-weight: bold;
    font-size: 1.1em;
}

.comment-date {
    color: #8B008B;
    font-size: 0.85em;
    font-style: italic;
}

.comment-text {
    color: #000;
    line-height: 1.6;
    word-wrap: break-word;
}

.loading-comments {
    text-align: center;
    color: #FF1493;
    font-style: italic;
    padding: 20px;
}

.no-comments {
    text-align: center;
    color: #8B008B;
    font-style: italic;
    padding: 30px;
    background: #FFF0F5;
    border: 2px dashed #FF69B4;
    border-radius: 5px;
}

/* ================================
   CUSTOMIZATION TIPS:
   
   1. Change colors throughout (search for #FF1493, #FFD700, etc.)
   2. Change fonts in the body selector
   3. Add background patterns/images to body
   4. Adjust border styles (solid, dashed, dotted, ridge, groove)
   5. Change animations speeds
   6. Add your own emoji or images
   
   Have fun! 🎉
   ================================ */


