/* styles.css */
h1,h2,h3,h4,h5,h6 {
    margin: 0;
}
* {
    touch-action: manipulation;
}

body,
html {
    margin: 0;
    padding: 0;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

html {
    font-size: 18px;
}

body {
    font-family: apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans,
        Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-weight: 600;
    color: black;
}
input[type="text"] {
    width: 100%; /* Full width */
    padding: 12px 20px; /* Padding inside the input */
    margin: 8px 0; /* Margin outside the input */
    display: inline-block; /* Display as inline-block */
    border: 1px solid #ccc; /* Light gray border */
    border-radius: 4px; /* Rounded corners */
    box-sizing: border-box; /* Include padding and border in element's total width and height */
    font-size: 16px; /* Font size */
    font-family: Arial, sans-serif; /* Font family */

    transition: border-color 0.3s, box-shadow 0.3s; /* Smooth transition for border and shadow */
}

#pen-sidebar {
    position: fixed;
    background-color: white;
    border-radius: 10px;
    width: 150px;
    padding: 10px;
    text-align: center;
}

#pen-sidebar > * {
    margin-top: 5px;
}

#pen-sidebar button {
    background-color: red;
    border-radius: 999px;
    width: 20px;
    height: 20px;
}

#pen-sidebar ul {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Create 3 equal columns */
    gap: 10px; /* Add space between items */
    list-style-type: none; /* Remove default list style */
    padding: 0; /* Remove default padding */
    margin: 0; /* Remove default margin */
}

#pen-sidebar li {
    text-align: center; /* Center align text */
    border-radius: 4px; /* Rounded corners */
}

#pen-sidebar .color {
    border: 1px solid #ccc; /* Light gray border */
}

#help {
    position: fixed;
    right: 20px;
    top: 20px;
    font-size: 1.3rem;
}

.toolbar {
    position: fixed;
    display: flex;
    flex-direction: column;
    width: 50px;
    top: 50px;
    padding: 4px;
    left: 20px;
    justify-content: space-around;
    background: white;
}

.toolbar .button {
    cursor: pointer;
    font-size: 1.5rem;
    padding: 10px 0;
    border-radius: 3px;
    text-align: center;
    position: relative;
}

.toolbar .button .sub-buttons {
    background-color: white;
    position: absolute;
    left: 50px;
    top: 0px;
}

.toolbar .button:not(:first-child) {
    margin-top: .25rem;
}

canvas {
    flex-grow: 1;
    cursor: crosshair;
    border: 1px solid #000;
}

.button.active {
    background-color: #d9dffc;
    color: #3859ff !important;
}

button {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
    color: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.hidden {
    display: none;
}

/* modal stuff */
.modal-window {
    position: fixed;
    background-color: rgba(255, 255, 255, 0.25);
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 999;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s;
}

.modal-window:target {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.modal-window>div {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1); /* Added subtle drop shadow */
    position: absolute;
    width: 80%;
    max-width: 600px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 2em;
    background: white;
}

.modal-window header {
    font-weight: bold;
}

.modal-window h1 {
    font-size: 150%;
    margin: 0 0 15px;
}

.get-started {
    display: block;
    padding: 12px 24px;
    background-color: #3859ff;
    color: white;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 4px rgba(56, 89, 255, 0.2);
    margin: 0 auto;
}

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

.get-started:hover {
    background-color: #2844db;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(56, 89, 255, 0.2);
}

.modal-close {
    color: #aaa;
    line-height: 50px;
    font-size: 80%;
    position: absolute;
    right: 0;
    text-align: center;
    top: 0;
    width: 70px;
    text-decoration: none;
}

.modal-close:hover {
    color: black;
}
.github .code {
    margin-top: 10px;
    font-size: 12px;
    font-weight: 300;
}

/* end modal stuff */

a {
    color: inherit;
    text-decoration: none;
}

.container {
    display: grid;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.modal-window>div {
    border-radius: 1rem;
}

.modal-window div:not(:last-of-type) {
    margin-bottom: 15px;
}

.logo {
    max-width: 150px;
    display: block;
}

small {
    color: lightgray;
}

.btn {
    background-color: white;
    padding: 1em 1.5em;
    border-radius: 0.5rem;
    text-decoration: none;
}

.btn i {
    padding-right: 0.3em;
}

.cursor {
    position: fixed;
    pointer-events: none; /* make it invisible to mouse events */
    font-family: Arial;
    font-size: 12px;
    color: purple;
    z-index: 10;
}