:root {
    --mac-blue: #0070f5;
    --mac-gray: #f5f5f7;
    --mac-text: #1d1d1f;
    --mac-border: #d2d2d7;
    --mac-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    --mac-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
    font-family: var(--mac-font);
    background-color: var(--mac-gray);
    margin: 0;
    padding: 0;
    color: var(--mac-text);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: hidden;
}

.form-container {
    position: fixed;
    bottom: 0;
    width: 100vw;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end; 
    z-index: 10000;
}

form {
    display: flex;
    width: 30%;
    min-width: 20rem;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    z-index: 10001;
}

form button {
    background-color: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-left: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--mac-border);
    border-radius: 100%;
    background-color: white;
}

form button svg {
    width: 24px;
    height: 24px;
    transition: 0.2s;
}

form button:hover svg {
    scale: 1.1;
    transition: 0.2s;
}


form input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--mac-border);
    border-radius: 8px;
    font-family: var(--mac-font);
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    z-index: 10002;
    position: relative;
}



.close-button {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ff5f57;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.close-button::before {
    content: "×";
    color: rgba(0, 0, 0, 0);
    font-size: 10px;
    transition: color 0.2s;
}

.close-button:hover::before {
    color: rgba(0, 0, 0, 0.5);
}

#sentence-form {
    padding-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#sentence-input {
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--mac-border);
    font-family: var(--mac-font);
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

#sentence-input:focus {
    border-color: var(--mac-blue);
    box-shadow: 0 0 0 3px rgba(0, 112, 245, 0.2);
}

#enter-button {
    align-self: flex-end;
    background-color: var(--mac-blue);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 14px;
    font-family: var(--mac-font);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

#enter-button:hover {
    background-color: #0061d6;
}

#enter-button:active {
    background-color: #0051b3;
    transform: scale(0.98);
}

.wall-of-text-flex {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    margin-top: 20px;
    height: 100dvh;
    width: 100vw;
}

.wall-of-text-flex p {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: none;
    width: auto;
    margin: 0;
    cursor: pointer;
    z-index: 0;
    display: none;
    transition: background-color 0.2s, color 0.2s;
}

.wall-of-text-flex p:hover {
    background-color: rgba(176, 211, 251, 0.9);
    color: white;
    z-index: 1;
    transition: background-color 0.2s, color 0.2s;
}