/* Reset and base styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #0a0020 0%, #160036 50%, #3e006e 100%);
    color: #ffffff;
    min-height: 100vh;
}

/* Navigation */
.navbar {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffffff;
    text-decoration: none;
    background: linear-gradient(45deg, #ff6ec7, #70d0ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #ff6ec7;
}

/* Main content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Hero section */
.hero {
    text-align: center;
    padding: 4rem 0;
    margin-bottom: 3rem;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #ff6ec7, #70d0ff, #ffd93d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rainbow 3s ease-in-out infinite;
}

.hero p {
    font-size: 1.2rem;
    color: #cccccc;
    max-width: 600px;
    margin: 0 auto;
}

@keyframes rainbow {
    0%, 100% { filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(180deg); }
}

/* Posts grid */
.posts-grid h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: #ffffff;
}

.post-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 110, 199, 0.3);
}

.post-card h3 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.post-card h3 a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-card h3 a:hover {
    color: #ff6ec7;
}

.post-excerpt {
    color: #cccccc;
    margin-bottom: 1rem;
}

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

.post-tags {
    display: flex;
    gap: 0.5rem;
}

.tag {
    background: rgba(255, 110, 199, 0.2);
    color: #ff6ec7;
    padding: 0.2rem 0.5rem;
    border-radius: 15px;
    font-size: 0.8rem;
}

/* Posts archive page */
.posts-archive {
    max-width: 1200px;
    margin: 0 auto;
}

.posts-archive h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #ff6ec7, #70d0ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.posts-archive > p {
    text-align: center;
    color: #cccccc;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.no-posts {
    text-align: center;
    color: #cccccc;
    font-size: 1.1rem;
    margin: 3rem 0;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

/* Post layout */
.post {
    max-width: 800px;
    margin: 0 auto;
}

.post-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.post-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #ff6ec7, #70d0ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.post-date {
    color: #cccccc;
    font-size: 1rem;
}

.post-content {
    color: #ffffff;
    line-height: 1.8;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.8);
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .post-title {
        font-size: 2rem;
    }
    
    .main-content {
        padding: 1rem;
    }
}

canvas {
    display: block;
    margin: 0 auto;
    border: 1px solid black;
}
/* Desktop styles */
@media screen and (min-width: 768px) {
    canvas {
        width: 800px;
        height: 800px;
    }
}
/* Mobile styles */
@media screen and (max-width: 767px) {
    canvas {
        width: 90vw; /* Use 90% of viewport width */
        height: 90vw; /* Square canvas */
        max-width: 500px; /* Cap for larger mobile screens */
        max-height: 500px;
    }
}


