/* Grundlegende Seitengestaltung */
body {
    font-family: sans-serif;
    background-color: #114e88;
    color: #f0f8ff;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    line-height: 1.6;
}

h1, h2, h3, h4 {
    color: #ffffff;
    margin-top: 0;
    text-align: center;
}

a {
    color: #a8d8ff;
    text-decoration: none;
}

a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Formularelemente */
input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
textarea,
select {
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid #0c3d66;
    border-radius: 4px;
    padding: 10px;
    margin: 5px 0;
    width: 100%;
    max-width: 300px;
    color: #333;
}

input[type="submit"],
button,
.hint-button,
#hint-btn {
    background-color: #5290c9;
    color: white;
    border: none;
    padding: 12px 20px;
    margin: 10px 0;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

input[type="submit"]:hover,
button:hover,
.hint-button:hover,
#hint-btn:hover {
    background-color: #1565c0;
}

input[type="submit"]:disabled,
button:disabled,
#hint-btn:disabled {
    background-color: #547b9e;
    cursor: not-allowed;
}

/* Bilder */
img {
    max-width: 100%;
    max-height: calc(100vh - 140px);
    display: block;
    margin: 15px auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Hinweis-Boxen */
.hinweis-box,
.hinweis,
.fussball-tipp,
.quiz-riddle {
    background-color: rgba(30, 136, 229, 0.2);
    padding: 15px;
    border-left: 4px solid #5290c9;
    margin: 20px 0;
    border-radius: 4px;
    color: #e1f5fe;
}

form {
    margin: 20px 0;
}


.hinweis-box strong,
.fussball-tipp strong {
    color: #bbdefb;
}

.hinweis:nth-child(-n+4) {
    display: block;
}

/* Memory-Grid */
.memory-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    max-width: 500px;
    margin: 20px auto;
}

.memory-card {
    background-color: #e3f2fd;
    border: 2px solid #90caf9;
    border-radius: 5px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    color: #0d47a1;
    transition: all 0.3s ease;
}

.memory-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(144, 202, 249, 0.5);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.hinweis-box,
.memory-card {
    animation: fadeIn 0.5s ease-out;
}

/* Responsive Anpassungen */
@media (max-width: 600px) {
    body {
        padding: 15px;
    }
    
    .memory-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    input[type="text"],
    input[type="number"] {
        max-width: 100%;
    }
}

#cooldown-info {
    color: #666;
    font-style: italic;
    margin-top: 10px;
}

audio {
    width: 100%;
    margin: 20px 0;
    background: #f5f5f5;
    border-radius: 10px;
    padding: 10px;
}

audio:focus {
    outline: none;
    box-shadow: 0 0 5px rgba(81, 203, 238, 1);
}

.restaurant-text {
    font-style: italic;
    color: #555;
    margin: 15px 0;
}

#dino-game-container {
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

#runner-canvas {
    display: block;
    background: #fff;
}

#game-form {
    text-align: center;
    margin-top: 20px;
}

#game-submit {
    padding: 10px 30px;
    font-size: 18px;
}

#game-submit:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.quiz-riddle h3 {
    color: #343a40;
    margin-top: 0;
}

.quiz-riddle p {
    font-family: monospace;
    font-size: 1.1em;
    margin-bottom: 0;
}

/* Stile für die Model-Frage */
img[alt="Germany's Next Topmodel Folge"] {
    border: 3px solid #f8bbd0;
    max-height: 60vh;
}

input[placeholder="Name der Gewinnerin"] {
    width: 250px;
    padding: 10px;
    font-size: 16px;
}

input[type="password"] {
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
}

.error {
    color: #ffcdd2;
    background-color: #c62828;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
}
