/* Grundlegende Stile */
body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    height: 100%;
}

body {
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
    color: white;
}

@keyframes gradient {
    0% {background-position: 0% 50%;}
    50% {background-position: 100% 50%;}
    100% {background-position: 0% 50%;}
}

/* Header und Navigation */
header {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.nav-link {
    position: relative;
    text-decoration: none;
    color: white;
    font-weight: bold;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: white;
    transform: scaleX(0);
    transition: transform 0.3s ease-out;
}

.nav-link:hover {
    color: #23d5ab;
}
.nav-link:hover::after {
    transform: scaleX(1);
}

/* Parallax-Effekt */
.parallax {
    background-image: url('eiermixer-background.jpg'); /* Ersetzen Sie dies durch Ihr eigenes Hintergrundbild */
    height: 300px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Hauptinhalt */
main {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

h1, h2, h3 {
    text-align: center;
    color: #ffffff;
}

/* Glasmorphismus-Karten */
.glass-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    margin: 10px;
    transition: transform 0.3s ease;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Container für Inhalte */
.content-container, .character-container, .shop-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

/* Bilder in Karten */
.glass-card img {
    max-width: 100%;
    border-radius: 5px;
    transition: transform 0.3s ease;
}
.glass-card:hover img {
    transform: scale(1.05);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #23d5ab;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn:hover {
    background-color: #1fa789;
    transform: translateY(-2px);
}

/* Spiel-Container */
#game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

#game-canvas {
    border: 2px solid white;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

#game-controls {
    margin-top: 10px;
    text-align: center;
}

#start-button {
    font-size: 18px;
    padding: 10px 20px;
    background-color: #23d5ab;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

#start-button:hover {
    background-color: #1fa789;
    transform: translateY(-2px);
}

/* Kontaktformular */
#contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#contact-form input,
#contact-form textarea {
    padding: 10px;
    border: none;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    transition: background-color 0.3s ease;
}
#contact-form input:focus,
#contact-form textarea:focus {
    background-color: rgba(255, 255, 255, 0.2);
    outline: none;
}

#contact-form textarea {
    min-height: 100px;
    resize: vertical;
}

#contact-form button {
    align-self: flex-start;
    padding: 10px 20px;
    background-color: #23d5ab;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

#contact-form button:hover {
    background-color: #1fa789;
    transform: translateY(-2px);
}
/* Abenteuerseite */
.adventure-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.adventure-container .glass-card {
    max-width: 800px;
    margin: 0 auto;
}
.adventure-container h2 {
    color: #23d5ab;
    margin-bottom: 15px;
}
.adventure-container p {
    text-align: justify;
    line-height: 1.6;
}

/* Footer */
footer {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    text-align: center;
    padding: 10px 0;
    margin-top: 20px;
}

footer a {
    color: #23d5ab;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #1fa789;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        align-items: center;
    }

    .glass-card {
        width: 100%;
    }
    .parallax {
        height: 200px;
    }
}
/* Animationen */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.fade-in {
    animation: fadeIn 1s ease-in;
}
/* Zusätzliche Verbesserungen */
::selection {
    background-color: #23d5ab;
    color: white;
}
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}
::-webkit-scrollbar-thumb {
    background: #23d5ab;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #1fa789;
}