body {
    font-family: 'Assistant', sans-serif;
    background-color: #000000;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header {
    background-color: black;
    color: white;
    width: 100%;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header .logo {
    width: 170px;
    height: auto;
    margin-left: 38px;
    margin-top: 36px;
}

.header .menu {
    font-size: 48px;
    margin-right: 25px;
    margin-top: 25px;
    font-weight: bold;
    cursor: pointer;
}

.submenu {
    display: none;
    position: absolute;
    top: 60px;
    right: 10px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 10px;
    z-index: 1000;
}

.submenu a {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: black;
    font-weight: bold;
    border-bottom: 1px solid #ddd;
}

.submenu a:last-child {
    border-bottom: none;
}

.submenu a:hover {
    background-color: #f0f0f0;
}

.pen-container {
    width: 100%;
    background-color: black;
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

.pen-image {
    width: 8%;
    position: relative;
    top: -105px;
}

.login-container {
    background-color: white;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 100%;
    max-width: 400px;
    position: absolute;
    bottom: 0px;
}

.tabs {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.tab-button {
    flex: 1;
    padding: 10px;
    border: none;
    background-color: #ddd;
    cursor: pointer;
}

.tab-button.active {
    background-color: white;
    font-weight: bold;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

input[type="text"],
input[type="password"] {
    width: 94%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    text-align: right; /* Align text to the right */
}

.btn {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.btn.primary {
    background-color: #333;
    color: white;
}

.btn.google {
    background-color: #db4437;
    color: white;
}

.btn.apple {
    background-color: #000;
    color: white;
}

.or {
    text-align: center;
    margin: 10px 0;
}

.search-bar {
    background-color: #333;
    padding: 10px;
    text-align: center;
}

.search-bar input {
    width: 80%;
    padding: 10px;
    border: none;
    border-radius: 5px;
    color: black;
}

.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.container h2 {
    text-align: center;
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Changed to 2 columns */
    gap: 20px;
    width: 100%;
    padding: 20px;
}

.notebook {
    position: relative;
    width: 120px;
    height: 180px;
    background-color: #3a3a3a;
    border-radius: 10px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    overflow: hidden;
}

.notebook.new {
    background-color: grey;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 48px;
    color: white;
}

.label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 25px;
    background-color: white;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
}

.spirals {
    position: absolute;
    top: 10px;
    right: -15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: calc(100% - 20px);
    padding: 5px 0;
}

.spiral {
    width: 30px;
    height: 5px;
    background-color: black;
    margin: 5px 0;
}

.bottom-label {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 20px;
    background-color: black;
    color: white;
    font-size: 10px;
    font-weight: bold;
    text-align: center;
    border-bottom-right-radius: 10px;
    border-bottom-left-radius: 10px;
    padding: 3px 0;
}

.color-picker {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 10px;
    z-index: 1000;
}

.color-picker .color {
    width: 30px;
    height: 30px;
    border-radius: 5px;
    cursor: pointer;
    margin: 5px;
}

.color-picker .color.custom {
    border: 2px solid #ccc;
}

.color-picker .row {
    display: flex;
    justify-content: space-between;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.page {
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    position: relative;
}

.page img {
    max-width: 100%;
    border-radius: 5px;
}

.page-number {
    position: absolute;
    bottom: 5px;
    right: 5px;
    font-size: 12px;
    color: grey;
}

.add-button {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: black;
    color: white;
    font-size: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.canvas-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
}

#drawingCanvas {
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 10px;
    width: 300px;
    height: 480px;
}

.toolbar {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: black;
    border-radius: 10px;
    padding: 10px;
    width: calc(100% - 40px);
    position: absolute;
    bottom: 10px;
}

.toolbar label, .toolbar input, .toolbar button {
    margin: 0 5px;
}

.toolbar button {
    cursor: pointer;
}
