/* CSS Reset */
body, html {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Quicksand', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Header Styles */
header {
    position: relative;
    height: 300px;
    overflow: hidden;
}

#p5-sketch {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.title-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
    background-color: rgba(255, 255, 255, 0.85);
    padding: 2rem 3rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-width: 80%;
}

h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    margin: 0;
    color: #2c3e50;
    font-weight: 600;
}

.subtitle {
    font-size: 1.3rem;
    color: #7f8c8d;
    margin-top: 0.5rem;
    font-style: italic;
}

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

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin: 2rem 0;
}

section {
    margin-bottom: 2.5rem;
}

h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #34495e;
    margin-bottom: 1rem;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
}

h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.description p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #555;
}

/* Requirements */
.requirements {
    background-color: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.requirements ul {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.requirements li {
    margin-bottom: 0.8rem;
    position: relative;
}

.requirements li:before {
    content: "🌿";
    position: absolute;
    left: -1.5rem;
}

.details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.detail-item {
    background-color: #e8f4fc;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.detail-item h3 {
    color: #2980b9;
    margin-top: 0;
}

/* Instructions */
.instructions {
    background-color: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.instructions ol {
    padding-left: 1.5rem;
}

.instructions li {
    margin-bottom: 1.2rem;
    padding-left: 0.5rem;
}

.instructions ul {
    padding-left: 1.5rem;
    margin: 0.5rem 0;
}

.instructions ul li {
    margin-bottom: 0.5rem;
    list-style-type: circle;
}

/* Notes */
.notes {
    background-color: #f0f7ff;
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 2rem;
}

.notes p {
    font-size: 1.1rem;
    color: #2c3e50;
}

/* Navigation */
.navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #ddd;
}

.nav-btn {
    padding: 0.8rem 2rem;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.3s, transform 0.2s;
}

.nav-btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}


/* Tablet Styles */
@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    h1 {
        font-size: 2.8rem;
    }
    
    .container {
        padding: 1.5rem;
    }
    
    .title-container {
        padding: 1.5rem 2rem;
    }
}

/* Mobile Styles */
@media (max-width: 425px) {
    #p5-sketch {
        display: none;
    }
    
    header {
        height: auto;
        min-height: 200px;
        background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    }
    
    .title-container {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin: 2rem auto;
        width: 90%;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .container {
        padding: 1rem;
    }
    
    .details {
        grid-template-columns: 1fr;
    }
    
    .navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-btn {
        text-align: center;
    }
    
    h2 {
        font-size: 1.6rem;
    }
}