body {
    margin: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100vh;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif
}

#toolbar {
    position: fixed;
    bottom: 4px;
    width: 98vw;
    display: flex;
    overflow-x: scroll;
    justify-content: space-between;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    border-top: 1px solid #ccc;
    gap: 10px;
    z-index: 10;
}

#toolbar input[type="color"] {
    border: none;
    padding: 0;
    margin: 0;
}

#toolbar .subtoolbar {
    display: flex;
    align-items: center;
    gap: 10px;
}

#toolbar .color {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 100%;
    outline: none;
    cursor: pointer;
}

#customColor, #appColor {
    border-radius: 100%;
    width: 30px;
    height: 30px;
}

#toolbar input[type="range"] {
    width: 100px;
}

#toolbar button {
    cursor: pointer;
    border-radius: 100%;
    border: 1px solid #ccc;
    height: 30px;
    width: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#eraser {
    background-color: white;
}

#canvasContainer {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    flex: 1;
}

.page {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: calc(100vh - 60px);
}

canvas {
    border: 1px solid rgba(255, 255, 255 ,0.3);
}

.deletePage {
    position: absolute;
    top: 10px;
    right: 10px;
    border: 1px solid rgb(255, 0, 0);
    width: 30px;
    height: 30px;
    border-radius: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    cursor: pointer;
    z-index: 5;
}

.aiStatus {
    display: flex;
    align-items: center;
    align-self: center;
}

.aiStatus svg {
    max-width: 30px;
    max-height: 30px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.2);
}

.modal-content {
    backdrop-filter: blur(5px);
    background-color: rgba(255,255,255,0.2);
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    border-radius: 10px;
    width: fit-content;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    animation: modalOpen 0.3s;
    display: flex;
    flex-direction: column;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

@keyframes modalOpen {
    from { opacity: 0; }
    to { opacity: 1; }
}