@font-face {
    font-family: 'CustomFont';
    src: url('font.ttf') format('truetype');
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'CustomFont', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: #e6bbbe;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.page-container {
    flex-grow: 1; /* To ensures this container fills space, pushing footer down */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px; /* Space between main content and sidebars */
    padding: 0 20px; /* Ensures some space on smaller screens */
    width: 100%;
}

.sidebar {
    flex: 1; /* Allows sidebars to take up available space */
    max-width: 200px; /* But not too much space */
}
.left-sidebar {
    text-align: right;
}
.right-sidebar {
    text-align: left;
}
.sidebar h3 {
    margin-bottom: 10px;
    color: #333;
}
.sidebar p {
    margin-bottom: 8px;
    color: #666;
}
.sidebar a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}
.sidebar a:hover {
    text-decoration: underline;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

h1 {
    color: #333;
    margin-top: 0;
    margin-bottom: 15px;
}

.controls {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

button {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    background-color: #007bff;
    color: white;
    font-family: inherit; 
}

button:hover {
    background-color: #0056b3;
}

#clearBtn {
    background-color: #dc3545;
}
#clearBtn:hover {
    background-color: #c82333;
}

#generationCounter {
    font-size: 16px;
    color: #555;
    min-width: 120px;
}

canvas {
    border: 2px solid #333;
    background-color: #fff;
    cursor: crosshair;
}

footer {
    padding: 15px;
    text-align: center;
    background-color: #161b22;
    color: #c9d1d9;
    width: 100%;
}

.footer-text {
    font-size: 1.1em;
    margin: 0 0 10px 0;
}