body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Roboto', sans-serif;
    background-color: #1a1a1a;
    color: white;
    overflow: hidden;
}

.back-button {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 24px;
    cursor: pointer;
    z-index: 100;
    display: none; /* Initially hidden */
}

#app {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    max-width: 400px;
    margin: 0 auto;
}

.view {
    display: none;
    width: 100%;
    height: 100%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.5s ease-in-out;
}

.view.active {
    display: flex;
}

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

/* Ansicht 1: Startseite */
#initial-view {
    justify-content: space-around;
}

.counts-container {
    display: flex;
    flex-direction: column; /* Vertical layout */
    justify-content: center;
    align-items: center;
    width: 100%;
    flex-grow: 2;
}

.count-item {
    text-align: center;
    margin: 10px 0; /* Adjusted margin */
}

.category-name {
    font-size: 14px;
    display: block;
    color: #aaa;
}

.count {
    font-size: 48px;
    font-weight: 700;
    display: block;
}

.main-button {
    width: 100%;
    padding: 15px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 700;
}

.main-button:hover {
    background-color: #2980b9;
}

/* Ansicht 2: Kategorieauswahl */
#category-view {
    justify-content: center;
}

.category-buttons {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.category-button {
    padding: 20px;
    margin: 10px 0;
    border: none;
    border-radius: 8px;
    font-size: 20px;
    color: white;
    cursor: pointer;
    transition: transform 0.2s ease;
    font-weight: 700;
}

.category-button:hover {
    transform: scale(1.05);
}

/* Ansicht 3: Texteingabe */
#editor-view {
    justify-content: flex-start;
    padding-top: 20px;
}

.selected-category-display {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-size: 20px;
    font-weight: 700;
    width: calc(100% - 30px);
    text-align: center;
}

#message-input {
    width: 100%;
    height: 50%;
    background-color: #2c2c2c;
    border: 1px solid #444;
    border-radius: 8px;
    color: white;
    padding: 15px;
    font-size: 16px;
    resize: none;
    box-sizing: border-box;
}

#char-counter {
    font-size: 12px;
    color: #aaa;
    margin-top: 5px;
    align-self: flex-end;
}

#send-button {
    margin-top: 20px;
}

/* Animationen */
.slide-up {
    animation: slideUp 0.5s forwards;
}

@keyframes slideUp {
    from { transform: translateY(0); opacity: 1; }
    to { transform: translateY(-100%); opacity: 0; }
}

.button-slide-up {
    animation: buttonSlideUp 0.7s forwards cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes buttonSlideUp {
    from { transform: translateY(0); }
    to { transform: translateY(-200px); }
}
