body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    min-height: 100vh;
}

h1 {
    color: #6a5acd;
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    letter-spacing: 1px;
}

.controls {
    background-color: #fff;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    border: 3px dashed #9370DB;
    text-align: center;
}

.button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.level-button {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(145deg, #ff85a2, #ff9e78);
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    padding: 5px;
    font-family: inherit;
}

.level-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

.level-button.active {
    background: linear-gradient(145deg, #6a5acd, #9370DB);
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

.level-icon {
    font-size: 2.5rem;
    margin-bottom: 5px;
}

.dropdown-container {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 100px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    border-radius: 15px;
    z-index: 1;
    top: 110px;
    left: 0;
    right: 0;
    margin: 0 auto;
    overflow: hidden;
}

.dropdown-content button {
    display: block;
    width: 100%;
    padding: 12px;
    text-align: center;
    background: none;
    border: none;
    cursor: pointer;
    color: #6a5acd;
    font-family: inherit;
    font-size: 1.1rem;
}

.dropdown-content button:hover {
    background-color: #f1f1f1;
}

.show {
    display: block;
}

.start-button {
    background-color: #ff85a2;
    color: white;
    border: none;
    padding: 15px 25px;
    font-size: 1.3rem;
    border-radius: 15px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    font-family: inherit;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin-top: 20px;
    display: inline-block;
}

.start-button:hover {
    background-color: #ff5c8a;
    transform: scale(1.02);
}

.story-container {
    display: none;
    background-color: #fff;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 3px dashed #9370DB;
}

.story-title {
    text-align: center;
    color: #6a5acd;
    margin-bottom: 20px;
    font-size: 2rem;
}

.images-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.image-card {
    background-color: #faf3fd;
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 180px;
    transition: transform 0.3s;
}

.image-card:hover {
    transform: scale(1.05);
}

.image-card img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 10px;
    border: 2px solid #9370DB;
    background-color: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.image-caption {
    font-size: 1.1rem;
    color: #6a5acd;
    font-weight: bold;
}

.loading {
    text-align: center;
    padding: 20px;
    font-style: italic;
    color: #6a5acd;
    font-size: 1.2rem;
}

.error-message {
    color: #e74c3c;
    text-align: center;
    padding: 10px;
    margin-top: 10px;
    background-color: #fadbd8;
    border-radius: 15px;
    display: none;
}

.instructions {
    font-size: 1.2rem;
    color: #6a5acd;
    margin-bottom: 15px;
    text-align: center;
}

.stars {
    position: absolute;
    width: 3px;
    height: 3px;
    background-color: white;
    border-radius: 50%;
    box-shadow: 0 0 3px 1px rgba(255, 255, 255, 0.5);
    animation: twinkle 5s infinite;
}

@keyframes twinkle {
    0% { opacity: 0.2; }
    50% { opacity: 1; }
    100% { opacity: 0.2; }
}

.pedagogy-link-container {
    text-align: center;
    margin-top: 30px;
}

.pedagogy-link {
    background-color: #9370DB;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 15px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-family: inherit;
}

.pedagogy-link:hover {
    background-color: #8a5ece;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #f5f0ff 100%);
    margin: 5% auto;
    padding: 30px;
    border: 3px dashed #9370DB;
    border-radius: 20px;
    width: 80%;
    max-width: 800px;
    max-height: 80%;
    overflow-y: auto;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    animation: modalFade 0.3s ease-in;
}

@keyframes modalFade {
    from {opacity: 0; transform: translateY(-30px);}
    to {opacity: 1; transform: translateY(0);}
}

.close-button {
    color: #9370DB;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover {
    color: #6a5acd;
}

.pedagogy-section {
    margin-bottom: 25px;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.pedagogy-section h3 {
    color: #6a5acd;
    margin-top: 0;
    border-bottom: 2px solid #e6e0f0;
    padding-bottom: 8px;
}

.pedagogy-section ul {
    padding-left: 20px;
}

.pedagogy-section li {
    margin-bottom: 10px;
    line-height: 1.5;
}

/* Vollbild-Button */
.fullscreen-button {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: rgba(147, 112, 219, 0.8);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 10;
    border: none;
    transition: transform 0.2s, background-color 0.3s;
}

.fullscreen-button:hover {
    background-color: #6a5acd;
    transform: scale(1.1);
}

.fullscreen-icon {
    font-size: 1.2rem;
}

/* Emoji-Stil */
.emoji-image {
    font-size: 80px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    background-color: white;
    border-radius: 10px;
    border: 2px solid #9370DB;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 10px;
}
