/* --- Base Styles --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4; 
}


.page-wrapper {
    display: flex;
    min-height: 100vh; 
    max-width: 1200px; 
    margin: 0 auto;
    background-color: white; 
    border: 1px solid #ccc;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}


.left-panel {
    flex: 0 0 30%; 
    background-color: #B5A7DF; 
    display: flex; 
   
    justify-content: center; 
    align-items: center; 
    padding: 0; 
}

.p5-sketch {
    width: 90%; 
    height: 90%; 
    border: none;
}


.right-panel {
    flex: 2; 
    padding: 40px;
    display: flex;
    flex-direction: column; 
    justify-content: space-between; 


h1 {
    font-size: 2.5em;
    margin-bottom: 0.1em;
    color: #333;
}

.description {
    font-size: 1.1em;
    margin-bottom: 2em;
    font-style: italic;
    color: #666;
}

h2 {
    font-size: 1.5em;
    border-bottom: 2px solid #B5A7DF; 
    padding-bottom: 5px;
    margin-top: 1.5em;
    margin-bottom: 1em;
    color: #B5A7DF; 
}

ul, ol {
    margin-left: 20px;
    margin-bottom: 1em;
}

li {
    margin-bottom: 0.8em;
}

strong {
    font-weight: bold;
    color: #333;
}




.navigation {
    margin-top: 3em;
    display: flex;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.nav-link {
    text-decoration: none;
    font-weight: bold;
    color: #B5A7DF; 
    padding: 8px 15px;
    border: 2px solid #B5A7DF; 
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}
}

.nav-link:hover {
    background-color: #B5A7DF; 
    color: white;
}


/* Tablet Styles */
@media (max-width: 768px) {
    .page-wrapper {
        flex-direction: column; 
        max-width: 100%; 
        border: none;
        box-shadow: none;
    }

    
    .left-panel {
        flex: none; 
        width: 100%;
        height: 300px; 
        padding: 0;
    }
    
    .p5-sketch {
        width: 100%;
        height: 100%;
    }

    .right-panel {
        padding: 30px 20px;
    }
}

/* Mobile Styles */
@media (max-width: 425px) {
    
    .left-panel {
        display: none; 
    }

    .right-panel {
        padding: 20px 15px; 
    }
    
    h1 {
        font-size: 2em;
    }
    
    h2 {
        font-size: 1.3em;
    }
}