body {
    font-family: 'Comic Neue', cursive;
    background-color: #ffebf3;
    margin: 0;
    padding: 0;
    color: #d42d7a;
    transition: font-family 0.3s ease;
}


.sidebar {
    position: fixed;
    left: -250px;
    top: 0;
    width: 250px;
    height: 100vh;
    background-color: #ffc0d8;
    transition: left 0.3s ease;
    z-index: 100;
    box-shadow: 5px 0 15px rgba(212, 45, 122, 0.2);
}

.sidebar-toggle {
    position: absolute;
    right: -40px;
    top: 20px;
    width: 40px;
    height: 40px;
    background-color: #ff3d8b;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 0 10px 10px 0;
    font-size: 20px;
}

.sidebar-content {
    padding: 20px;
    height: 100%;
    overflow-y: auto;
}

.sidebar h3 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: #d42d7a;
    border-bottom: 2px dashed #ff6b9d;
    padding-bottom: 5px;
}

.font-option {
    padding: 8px;
    margin: 5px 0;
    background-color: #ffebf3;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s;
}

.font-option:hover {
    background-color: #ff9ec6;
    color: white;
}


.editor-wrapper {
    max-width: 900px;
    margin: 20px auto;
    padding-left: 20px;
    transition: padding-left 0.3s ease;
}

.editor-container {
    background-color: #fff0f7;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(212, 45, 122, 0.2);
    overflow: hidden;
}

.header {
    background: linear-gradient(45deg, #ff9ec6, #ff6b9d);
    padding: 15px 20px;
    color: white;
    text-align: center;
}

h1 {
    margin: 0;
    font-size: 28px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.toolbar {
    margin-top: 15px;
}

.flop-btn {
    background-color: #ff3d8b;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-family: 'Comic Neue', cursive;
    font-weight: bold;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
    box-shadow: 0 3px 6px rgba(212, 45, 122, 0.3);
}

.flop-btn:hover {
    background-color: #ff1a72;
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(212, 45, 122, 0.4);
}

#editor {
    width: 100%;
    height: 500px;
    border: none;
    padding: 20px;
    font-family: 'Comic Neue', cursive;
    font-size: 16px;
    resize: none;
    background-color: #fff9fc;
    color: #d42d7a;
    box-sizing: border-box;
}

#editor:focus {
    outline: none;
    background-color: white;
}


.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 192, 216, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fff0f7;
    margin: 15% auto;
    padding: 25px;
    border-radius: 15px;
    width: 80%;
    max-width: 500px;
    box-shadow: 0 5px 20px rgba(212, 45, 122, 0.3);
    position: relative;
}

.close {
    color: #d42d7a;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #ff1a72;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 2px solid #ff9ec6;
    font-family: 'Comic Neue', cursive;
    font-size: 16px;
    background-color: #fff9fc;
    color: #d42d7a;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #ff3d8b;
    background-color: white;
}


.sidebar.active {
    left: 0;
}

.sidebar.active ~ .editor-wrapper {
    padding-left: 270px;
}


@media (max-width: 768px) {
    .sidebar {
        left: -100%;
        width: 80%;
    }
    
    .sidebar.active ~ .editor-wrapper {
        padding-left: calc(80% + 20px);
    }
    
    .editor-wrapper {
        max-width: 100%;
        padding: 20px;
    }
    
    .sidebar.active {
        left: 0;
    }
}