body {
    background-color: #0f0f0f;
    color: rgb(155, 155, 155);
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;}
.canvas {
    height: 100vh;
    width: 100vw;
    position: relative;
    background-color: #0f0f0f;
    
    display: flex;
    justify-content: center;
    align-items: center;
    
    transition: background-color 6s ease;}
.canvas::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
    
    background: 
        linear-gradient(to bottom, #0f0f0f 0%, transparent 30px),
        linear-gradient(to top, #0f0f0f 0%, transparent 30px),
        linear-gradient(to right, #0f0f0f 0%, transparent 30px),
        linear-gradient(to left, #0f0f0f 0%, transparent 30px);}
.space{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;}


.box {
    background-color: rgb(30, 30, 30);
    width: 60vw;
    position: relative;
    padding: 2rem;
    border-radius: 15px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    transition: background-color 0.5s ease, 
                padding 0.5s ease;
    z-index: 10;}

.box.expanded {
    background-color: transparent;
    padding: 0.5rem;}

.intro {
    text-align: center;
    color: whitesmoke;
    margin-bottom: 2rem;
    opacity: 1;
    
    transition: opacity 0.5s ease,
                max-height 0.5s ease,
                margin 0.5s ease;
    max-height: 500px;
    overflow: hidden;}
    .intro[style*="opacity: 0"] {
        max-height: 0;
        margin-bottom: 0;}

.main {
    width: 80%;
    transition: width 0.5s ease;}
#input {
    background-color: rgb(25, 25, 25);
    width: 100%;
    color: whitesmoke;
    border: none;
    border-radius: 15px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.1rem;
    padding: 1rem;
    
    min-height: 50px;
    max-height: 400px;
    overflow-y: auto;
    
    outline: none;
    white-space: pre-wrap;
    word-wrap: break-word;
    cursor: text;}

#input:empty:before {
    content: attr(data-placeholder);
    color: rgba(255, 255, 255, 0.5);
    pointer-events: none;}

#input:focus:before {
    content: none;}

    .emotion-word {
        display: inline;
        transition: color 0.8s ease;}
    .emotion-word.no-transition {
       transition: none;}




.bar {
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 100;}

.settings {
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    transition: opacity 0.3s ease;}
    .settings:hover {
        opacity: 0.7;}
.settings img {
    filter: invert(1);
    width: 35px;
    display: block;}

.dropdown {
    position: absolute;
    top: 50px;
    left: 0;
    background-color: rgb(30, 30, 30);
    border-radius: 8px;
    padding: 0.5rem;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;}
.dropdown.show {
    display: block;
    opacity: 1;
    transform: translateY(0);}

.dropdown-item {
    padding: 0.75rem;
    color: whitesmoke;
    border-radius: 4px;
    transition: background-color 0.2s ease;}
    .dropdown-item:hover {
        background-color: rgba(255, 255, 255, 0.05);}

.toggle-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;}

.toggle-container span:first-child {
    font-size: 0.95rem;}
.toggle-container input[type="checkbox"] {
    display: none;}

.toggle-slider {
    position: relative;
    width: 30px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    transition: background-color 0.3s ease;}

.toggle-slider::after {
    content: '';
    position: absolute;
    top: 0px;
    left: 0px;
    width: 10px;
    height: 10px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s ease;}

.toggle-container input[type="checkbox"]:checked + .toggle-slider {
    background-color: #a5a5a5;}

.toggle-container input[type="checkbox"]:checked + .toggle-slider::after {
    transform: translateX(20px);}


.particle-counter{
    position: fixed;
    bottom: 15px;
    left: 120px;
    background: rgba(0, 0, 0, 0.7);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 1rem;
    z-index: 99;
    pointer-events: none;}
.fps-counter {
    position: fixed;
    bottom: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.7);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 1rem;
    z-index: 100;}




h1 {
    font-size: 2.8rem;
    margin: 0 0 0.5rem 0;}
p {
    font-size: 1.1rem;
    margin: 0;}