/* Style the main container */
.editor-container {
    width: 80%;
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
    background-color: #f9f9f9;
    border: 2px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-family: Arial, sans-serif;
}

/* The typing area (editable div) */
#editor {
    width: 100%;
    height: 300px;
    border: none;
    outline: none;
    padding: 10px;
    background-color: #fff;
    font-size: 16px;
    line-height: 1.5;
    white-space: pre-wrap; /* Keep formatting like line breaks */
    overflow-wrap: break-word; /* Break long words if needed */
    border-radius: 8px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Style for "a" characters (double size) */
.large-a {
    font-size: 32px;
    font-weight: bold;
}

/* Style for "b" characters (half size) */
.small-b {
    font-size: 8px;
}

/* Style for "c" spinning */
.spin-c {
    display: inline-block;
    animation: spin 0.5s linear;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Style for "d" being 25% larger */
.large-d {
    font-size: 20px;
}

/* Style for "e" being red */
.red-e {
    color: red;
}

/* Style for "g" fading in */
.fade-g {
    opacity: 0;
    animation: fadeIn 2s forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* Style for "h" being blue */
.blue-h {
    color: blue;
}

/* Style for "j" tilted */
.tilt-j {
    display: inline-block;
    transform: rotate(5deg);
}

/* Style for "k" wobble */
.wobble-k {
    display: inline-block;
    animation: wobble 1s infinite;
}

@keyframes wobble {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(5deg); }
    50% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
    100% { transform: rotate(0deg); }
}

/* Style for "l" spinning 4 times */
.spin-l {
    display: inline-block;
    animation: spin 0.5s linear 4;
}

/* Style for "m" rotating 180 degrees then flipping */
.flip-m {
    display: inline-block;
    transform: rotate(180deg);
    transition: transform 0.1s;
}

/* Style for "n" being grey and double sized */
.large-n {
    font-size: 32px;
    color: grey;
}

/* Style for "o" spinning vertically */
.spin-o {
    display: inline-block;
    animation: spinY 0.1s linear infinite;
}

@keyframes spinY {
    from { transform: rotateY(0deg); }
    to { transform: rotateY(360deg); }
}

/* Style for "p" rotating vertically */
.rotate-p {
    display: inline-block;
    transform: rotateX(180deg);
    transition: transform 0.2s;
}

/* New styles for the additional characters */

/* "x" - grey, 90% larger, fades in */
.large-grey-x {
    font-size: 30px;
    color: grey;
    opacity: 0;
    animation: fadeInX 1s forwards;
}

@keyframes fadeInX {
    to { opacity: 1; }
}

/* "y" - green */
.green-y {
    color: green;
}

/* "z" - 10% smaller */
.small-z {
    font-size: 14px;
}

/* "r" and "q" - green and uppercase */
.green-r, .upper-q {
    color: green;
}

/* "s" - rotated 10 degrees */
.rotate-s {
    display: inline-block;
    transform: rotate(10deg);
}

/* "t" - blue and double size */
.blue-t {
    font-size: 32px;
    color: blue;
}

/* "u" - mirrored horizontally */
.mirror-u {
    display: inline-block;
    transform: scaleX(-1);
}

/* "v" - grows to double size */
.grow-v {
    display: inline-block;
    transform: scale(1);
    animation: grow 0.1s forwards;
}

@keyframes grow {
    to { transform: scale(2); }
}

/* "w" - starts rotated 180 degrees */
.rotate-w {
    display: inline-block;
    transform: rotate(180deg);
}