/* Custom Font Declaration */
@font-face {
    font-family: 'SaldaSoft Black';
    src: url('../fonts/SaldaSoft-Black.otf') format('opentype'),
         url('../fonts/SaldaSoft-Black.otf') format('otf');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* General Page Styling */
body {
    font-family: 'SaldaSoft Black', 'Comic Sans MS', cursive, sans-serif;
    background: linear-gradient(135deg, #a3e8ff 0%, #f0c5ff 100%);
    background-image: url('../images/background.png');
    background-size: cover;
    background-attachment: fixed;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    color: #222;
}

/* Main Content Wrapper */
.main-content {
    flex: 1 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Header Section */
.header {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 30px;
}

.main-logo {
    max-width: 600px;
    width: 90%;
    height: auto;
    margin-bottom: 10px;
    filter: drop-shadow(3px 3px 5px rgba(0,0,0,0.2));
    transition: transform 0.3s ease;
}

.main-logo:hover {
    transform: scale(1.05);
}

.title {
    font-size: 3.5rem;
    font-weight: bold;
    text-shadow: 3px 3px 5px rgba(0,0,0,0.2);
    margin-bottom: 10px;
    color: #000;
}

.sub-title {
    font-size: 2.5rem;
    margin-top: 0;
    color: #000;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.15);
}

/* Main Container */
.container {
    flex: 1 0 auto;
    display: flex;
    justify-content: space-around;
    width: 90%;
    max-width: 1200px;
    flex-wrap: wrap;
    margin: 0 auto 50px auto;
}

/* Character Rig Boxes */
.rig-box {
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    padding: 20px;
    width: 400px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    margin: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rig-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

/* Character Image Container */
.character {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.character img {
    max-width: 100%;
    max-height: 100%;
    transition: transform 0.3s ease;
}

.character img:hover {
    transform: scale(1.05);
}

/* Rig Name with Icon */
.rig-name {
    font-size: 2rem;
    margin: 15px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
}

.rig-icon {
    width: 40px;
    height: 40px;
}

/* Version Badge Styling */
.version-badge {
    font-size: 0.8rem;
    background-color: #4285F4;
    color: white;
    padding: 3px 8px;
    border-radius: 10px;
    position: relative;
    top: -5px;
    margin-left: 5px;
    font-weight: bold;
}

/* Download Button Styling */
.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.download-btn {
    background-color: #fff;
    border: 2px solid #000;
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #000;
}

.download-btn:hover {
    background-color: #f0f0f0;
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

.download-btn.drive {
    border-color: #4285F4;
    color: #4285F4;
}

.download-btn.drive:hover {
    background-color: #4285F4;
    color: white;
}

.download-btn.mediafire {
    border-color: #1299F3;
    color: #1299F3;
}

.download-btn.mediafire:hover {
    background-color: #1299F3;
    color: white;
}

.download-btn.coming-soon {
    border-color: #888;
    color: #888;
    cursor: default;
}

.download-btn.coming-soon:hover {
    transform: none;
    box-shadow: none;
}

.footer-tos {
    margin-top: 15px;
    font-size: 0.9em;
    opacity: 0.8;
}

/* Footer */
footer {
    margin-top: auto;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.5);
    text-align: center;
    padding: 15px 0;
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .title {
        font-size: 2.5rem;
    }
    
    .sub-title {
        font-size: 1.8rem;
    }
    
    .rig-box {
        width: 90%;
    }
    
    .version-badge {
        font-size: 0.7rem;
        padding: 2px 6px;
    }

    .changelog-toggle,
    .submit-comment {
        font-size: 0.9rem;
    }

    .comment-header {
        flex-direction: column;
    }
}

/* Animation for Download Buttons */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.download-btn:not(.coming-soon):hover {
    animation: pulse 1s infinite;
}

/* Changelog Styling */
.changelog-container {
    margin: 15px 0;
    width: 100%;
}

.changelog-toggle {
    background-color: #4285F4;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 15px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: 'SaldaSoft Black', 'Comic Sans MS', cursive, sans-serif;
}

.changelog-toggle:hover {
    background-color: #3367d6;
}

.changelog-content {
    display: none;
    background-color: white;
    border-radius: 8px;
    padding: 15px;
    margin-top: 10px;
    text-align: left;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    max-height: 300px;
    overflow-y: auto;
}

.changelog-content h3 {
    margin-top: 0;
    font-size: 1.3rem;
    color: #333;
    text-align: center;
    margin-bottom: 15px;
}

.changelog-item {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.changelog-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.changelog-version {
    font-weight: bold;
    font-size: 1rem;
    color: #4285F4;
    margin-bottom: 5px;
}

.changelog-item ul {
    margin: 0;
    padding-left: 20px;
}

.changelog-item li {
    margin-bottom: 3px;
    font-size: 0.9rem;
}

/* Comments Section Styling */
.comments-section {
    margin-top: 25px;
    border-top: 1px solid #ddd;
    padding-top: 15px;
    text-align: left;
}

.comments-section h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    text-align: center;
    color: #333;
}

.comments-container {
    max-height: 350px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.comment {
    background-color: white;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.commenter-name {
    font-weight: bold;
    color: #4285F4;
}

.comment-date {
    color: #888;
}

.comment-content {
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Comment Form */
.comment-form {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
}

.comment-form h4 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.1rem;
    color: #333;
}

.commenter-name-input, 
.comment-input {
    width: 100%;
    padding: 8px 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.9rem;
    box-sizing: border-box;
}

.comment-input {
    height: 80px;
    resize: vertical;
}

.submit-comment {
    background-color: #4285F4;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 15px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: 'SaldaSoft Black', 'Comic Sans MS', cursive, sans-serif;
}

.submit-comment:hover {
    background-color: #3367d6;
}

/* Loading and state indicators */
.loading-comments {
    text-align: center;
    padding: 15px;
    color: #666;
    font-style: italic;
}

.no-comments {
    text-align: center;
    padding: 15px;
    color: #666;
    border: 1px dashed #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
}

.comments-error {
    text-align: center;
    padding: 15px;
    color: #d32f2f;
    border: 1px solid #ffcdd2;
    border-radius: 8px;
    background-color: #ffebee;
    font-size: 0.95rem;
}

/* Popup Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.popup-container {
    width: 90%;
    max-width: 500px;
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    animation: popup-appear 0.5s ease forwards;
    border: 3px solid #4285F4;
}

.popup-content {
    text-align: center;
}

.popup-content h2 {
    color: #4285F4;
    margin-top: 0;
    font-size: 1.8rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.popup-content p {
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 15px;
    color: #333;
}

.popup-button {
    background-color: #4285F4;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 30px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'SaldaSoft Black', 'Comic Sans MS', cursive, sans-serif;
    margin-top: 10px;
}

.popup-button:hover {
    background-color: #3367d6;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

@keyframes popup-appear {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive styles for popup */
@media (max-width: 768px) {
    .popup-container {
        padding: 20px;
    }
    
    .popup-content h2 {
        font-size: 1.5rem;
    }
    
    .popup-content p {
        font-size: 1rem;
    }
    
    .popup-button {
        font-size: 1rem;
        padding: 8px 25px;
    }
}
/* Add these styles to your existing CSS for the animated Pibby */
.animated-pibby {
    position: fixed;
    width: 150px;
    height: 150px;
    z-index: 1001;
    pointer-events: none; /* Allow clicks to go through the character */
}

.animated-pibby img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.3));
}

/* Animation keyframes for bobbing effect */
@keyframes floating {
    0% {
        transform: translateX(-50%) translateY(0px);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
    100% {
        transform: translateX(-50%) translateY(0px);
    }
}

/* Add a floating animation while Pibby is visible */
.animated-pibby.floating {
    animation: floating 3s ease-in-out infinite;
}

/* Add bounce effect for fall animation */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-20px);
    }
    60% {
        transform: translateX(-50%) translateY(-10px);
    }
}

.animated-pibby.bouncing {
    animation: bounce 2s ease;
}

/* Enhance popup effect */
.popup-overlay {
    backdrop-filter: blur(3px);
}

.popup-container {
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.popup-overlay[style*="opacity: 1"] .popup-container {
    transform: scale(1);
}

.rules-container {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    text-align: left;
    border-left: 4px solid #4285F4;
}

.rules-container h3 {
    margin-top: 0;
    color: #333;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.rules-list {
    margin: 0;
    padding-left: 20px;
}

.rules-list li {
    margin-bottom: 5px;
    font-size: 1rem;
    line-height: 1.4;
}

/* Timer styling */
.timer-container {
    margin: 15px 0;
    text-align: center;
}

.timer-container p {
    margin: 5px 0;
}

#timer-countdown {
    font-weight: bold;
    color: #4285F4;
    font-size: 1.2rem;
}

.timer-bar-container {
    height: 10px;
    background-color: #e0e0e0;
    border-radius: 5px;
    margin: 10px auto;
    overflow: hidden;
    width: 100%;
}

.timer-bar {
    height: 100%;
    background-color: #4285F4;
    width: 100%;
    transition: width 1s linear;
}

/* Disabled button state */
.popup-button[disabled] {
    background-color: #ccc;
    cursor: default;
    pointer-events: none; /* This prevents clicking without showing the not-allowed cursor */
    transform: none !important;
    box-shadow: none !important;
    opacity: 0.7; /* Adding slight opacity to indicate it's disabled */
}

.popup-button.active {
    animation: button-ready 1s;
}

@keyframes button-ready {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Make popup scrollable if content is too large */
.popup-content {
    max-height: 80vh;
    overflow-y: auto;
    padding-right: 5px;
}

/* Make popup slightly larger to accommodate the new content */
.popup-container {
    max-width: 550px;
    max-height: 90vh;
}

/* Responsive adjustments for the timer and rules on mobile */
@media (max-width: 768px) {
    .rules-container {
        padding: 10px;
    }
    
    .rules-list li {
        font-size: 0.9rem;
    }
    
    #timer-countdown {
        font-size: 1.1rem;
    }
    
    .timer-bar-container {
        height: 8px;
    }
}

.nav-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    gap: 10px;
    width: 90%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.tab-button {
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid #4285F4;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'SaldaSoft Black', 'Comic Sans MS', cursive, sans-serif;
    flex: 1;
    color: #4285F4;
}

.tab-button:hover {
    background-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}

.tab-button.active {
    background-color: #4285F4;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(66, 133, 244, 0.3);
}

/* Tab Content */
.tab-content {
    display: block;
    width: 100%;
}

.tab-content.hidden {
    display: none;
}

/* Tutorial Tab Styles */
.tutorial-box {
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    padding: 25px;
    width: 90%;
    max-width: 900px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    margin: 20px auto;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tutorial-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.tutorial-box h3 {
    font-size: 2rem;
    margin-top: 0;
    margin-bottom: 20px;
    color: #4285F4;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    margin-bottom: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

.tutorial-info {
    text-align: left;
    padding: 0 15px;
}

.tutorial-info h4 {
    font-size: 1.5rem;
    color: #333;
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 2px solid #4285F4;
    padding-bottom: 5px;
    display: inline-block;
}

.tutorial-info ol, .tutorial-info ul {
    padding-left: 25px;
    margin-bottom: 20px;
}

.tutorial-info li {
    margin-bottom: 10px;
    font-size: 1.1rem;
    line-height: 1.5;
}

.tutorial-tips {
    background-color: #f5f5f5;
    border-radius: 10px;
    padding: 15px 20px;
    margin-top: 20px;
    border-left: 4px solid #4285F4;
}

.tutorial-tips h4 {
    margin-top: 0;
    margin-bottom: 10px;
    border-bottom: none;
}

/* Tutorial Tabs Container */
.tutorial-tabs-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
}

/* Individual Tutorial Boxes */
.tutorial-left,
.tutorial-right {
    flex: 1;
    min-width: 45%;
    max-width: 48%;
}

/* Responsive Design for Smaller Screens */
@media (max-width: 1024px) {
    .tutorial-tabs-container {
        flex-direction: column;
    }
    
    .tutorial-left,
    .tutorial-right {
        max-width: 100%;
        min-width: 100%;
    }
}

/* Video Container Adjustments for Side-by-Side Layout */
.tutorial-left .video-container iframe,
.tutorial-right .video-container iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    max-width: 500px;
}

/* Tutorial Box Styling Adjustments */
.tutorial-box h3 {
    text-align: center;
    margin-bottom: 15px;
    color: #333;
    font-size: 1.2em;
}

/* Darkness Download Section */
.darkness-download-section {
    background-color: #f0f8ff;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    text-align: center;
    border: 2px dashed #007bff;
}

.darkness-download-section h4 {
    color: #007bff;
    margin-bottom: 8px;
    font-size: 1.1em;
}

.darkness-download-section p {
    margin-bottom: 12px;
    color: #555;
    font-size: 0.9em;
}

.download-darkness-btn {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.download-darkness-btn:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 123, 255, 0.4);
}

.download-darkness-btn:active {
    transform: translateY(0);
}

.download-darkness-btn span {
    margin-right: 8px;
    font-size: 1.1em;
}

.tutorial-info {
    margin-top: 15px;
}

.tutorial-info h4 {
    color: #555;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.tutorial-info ol,
.tutorial-info ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.tutorial-info li {
    margin-bottom: 5px;
    line-height: 1.4;
}

.tutorial-tips {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

/* Responsive Styles for Tutorial Tab */
@media (max-width: 768px) {
    .nav-tabs {
        width: 95%;
    }
    
    .tab-button {
        font-size: 1rem;
        padding: 8px 15px;
    }
    
    .tutorial-box {
        padding: 15px;
    }
    
    .tutorial-box h3 {
        font-size: 1.5rem;
    }
    
    .tutorial-info h4 {
        font-size: 1.3rem;
    }
    
    .tutorial_info li {
        font-size: 1rem;
    }
    
    .tutorial-tips {
        padding: 10px 15px;
    }
}

.custom-cursor-area {
    cursor: none; /* Hide the default cursor */
}

.cursor {
    width: 32px;
    height: 32px;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none; /* Ensures the custom cursor doesn't interfere with clicks */
    z-index: 9999;
    transition: transform 0.1s ease;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    /* Fix: Add fallback cursor shapes in case images don't load */
    background-color: transparent;
}

.cursor-default {
    background-image: url('../images/cursor-default.png');
    /* Fallback in case image doesn't load */
    cursor: default;
}

.cursor-pointer {
    background-image: url('../images/cursor-pointer.png');
    /* Fallback in case image doesn't load */
    cursor: pointer;
}

.cursor-text {
    background-image: url('../images/cursor-text.png');
    /* Fallback in case image doesn't load */
    cursor: text;
}

.cursor-clicking {
    background-image: url('../images/cursor-clicking.png');
    transform: scale(1.1); /* Optional: add a slight scale effect when clicking */
}

/* Define clickable and selectable elements */
.clickable {
    cursor: none !important; /* Override any cursor styles */
}

/* Adding cursor-text class to text elements for text selection cursor */
input, textarea, [contenteditable="true"], .selectable-text {
    cursor: none !important;
}

/* Fix: Add a style for when the custom cursor is disabled */
.cursor-disabled {
    display: none !important;
}

/* Creator Comment Styling */
.creator-comment {
    border-left: 4px solid #4285F4;
    background-color: rgba(242, 248, 255, 0.8);
    box-shadow: 0 3px 10px rgba(66, 133, 244, 0.15);
}

.creator-name {
    color: #4285F4;
    font-weight: bold;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

.creator-badge {
    background-color: #4285F4;
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 5px;
    font-weight: bold;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    animation: badge-glow 2s infinite alternate;
}

@keyframes badge-glow {
    from {
        box-shadow: 0 0 5px rgba(66, 133, 244, 0.5);
    }
    to {
        box-shadow: 0 0 10px rgba(66, 133, 244, 0.8);
    }
}

/* Security notification for reserved usernames */
.name-error {
    color: #d32f2f;
    font-size: 0.8rem;
    margin-top: 5px;
    display: none;
}

/* Forums Section Styling */
.forums-section {
    margin-top: 25px;
    text-align: left;
}

.forums-section h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    text-align: center;
    color: #333;
}

/* Owner Authentication */
.owner-auth {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.owner-auth h4 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.1rem;
    color: #333;
}

.owner-code-input {
    width: 250px;
    padding: 8px 10px;
    margin-right: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.9rem;
}

.verify-owner {
    background-color: #4285F4;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 15px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: 'SaldaSoft Black', 'Comic Sans MS', cursive, sans-serif;
}

.verify-owner:hover {
    background-color: #3367d6;
}

/* Owner Post Form */
.owner-post-form {
    background-color: #f0f8ff;
    border: 2px solid #4285F4;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.owner-post-form h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: #4285F4;
    text-align: center;
}

.post-title-input,
.post-content-input,
.post-image-input {
    width: 100%;
    padding: 10px;
    margin-bottom: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    box-sizing: border-box;
}

.post-title-input {
    font-weight: bold;
    font-size: 1.1rem;
}

.post-content-input {
    height: 120px;
    resize: vertical;
    line-height: 1.4;
}

.post-form-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.submit-post,
.cancel-post {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'SaldaSoft Black', 'Comic Sans MS', cursive, sans-serif;
}

.submit-post {
    background-color: #4285F4;
    color: white;
}

.submit-post:hover {
    background-color: #3367d6;
    transform: translateY(-2px);
}

.cancel-post {
    background-color: #f44336;
    color: white;
}

.cancel-post:hover {
    background-color: #d32f2f;
    transform: translateY(-2px);
}

/* Forums Container */
.forums-container {
    max-height: 600px;
    overflow-y: auto;
    margin-top: 20px;
}

/* Forum Post Styling */
.forum-post {
    background-color: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.forum-post:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.post-header {
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 12px;
    margin-bottom: 15px;
}

.post-title {
    font-size: 1.4rem;
    color: #333;
    margin: 0 0 8px 0;
    font-weight: bold;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.post-author {
    color: #4285F4;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}

.post-date {
    color: #888;
}

.post-image {
    margin: 15px 0;
    text-align: center;
}

.post-image img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.post-content {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    white-space: pre-wrap;
}

/* Loading and State Indicators for Forums */
.loading-forums {
    text-align: center;
    padding: 30px;
    color: #666;
    font-style: italic;
    font-size: 1.1rem;
}

.no-posts {
    text-align: center;
    padding: 30px;
    color: #666;
    border: 2px dashed #ddd;
    border-radius: 12px;
    font-size: 1rem;
    background-color: #fafafa;
}

.forums-error {
    text-align: center;
    padding: 20px;
    color: #d32f2f;
    border: 2px solid #ffcdd2;
    border-radius: 12px;
    background-color: #ffebee;
    font-size: 1rem;
}

/* Responsive Styles for Forums Tab */
@media (max-width: 768px) {
    .owner-code-input {
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .verify-owner {
        width: 100%;
    }
    
    .post-form-buttons {
        flex-direction: column;
    }
    
    .submit-post,
    .cancel-post {
        width: 100%;
    }
    
    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .post-title {
        font-size: 1.2rem;
    }
    
    .forums-container {
        max-height: 500px;
    }
}

/* Add a little bounce when clicking download buttons */
.download-btn:active,
.download-darkness-btn:active {
    animation: bounce 0.2s;
}

@keyframes bounce {
    0% { transform: scale(1); }
    30% { transform: scale(0.96); }
    60% { transform: scale(1.04); }
    100% { transform: scale(1); }
}

/* Optional: Add a subtle border glow on hover for both download buttons */
.download-btn:hover,
.download-darkness-btn:hover {
    box-shadow: 0 0 0 4px rgba(78, 205, 196, 0.15), 0 6px 16px rgba(0,0,0,0.3);
}

/* Optional: Make the download icon more visible */
.download-btn:before {
    color: #fff;
    text-shadow: 0 2px 4px #44a08d;
}
.download-darkness-btn:before {
    color: #fff;
    text-shadow: 0 2px 4px #ee5a6f;
}