/* style.css */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f4f8;
    margin: 0;
    padding: 0;
    color: #333;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 600px; /* Szerokość typowego telefonu */
    background: white;
    padding: 20px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
    min-height: 100vh;
    animation: fadeIn 0.8s ease-in-out;
}

h1 {
    color: #2c3e50;
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    background: #e8f4fd;
    padding: 15px;
    border-radius: 15px;
    border-left: 5px solid #3498db;
}

iframe {
    width: 100%;
    height: 250px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.task-box {
    background: #fff3cd;
    border: 2px solid #ffeeba;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    margin-top: 20px;
    animation: slideUp 0.5s ease-out;
}

button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 15px 25px;
    width: 100%;
    margin: 10px 0;
    border-radius: 30px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
}

button:active {
    transform: scale(0.95);
}

button.correct {
    background-color: #2ecc71; /* Zielony */
    animation: bounce 0.5s;
}

button.wrong {
    background-color: #e74c3c; /* Czerwony */
    animation: shake 0.5s;
}

input[type="text"], input[type="number"] {
    width: 80%;
    padding: 10px;
    font-size: 1.2rem;
    margin-bottom: 10px;
    border: 2px solid #ddd;
    border-radius: 10px;
    text-align: center;
}

.next-step {
    display: none; /* Ukryte dopóki zadanie nie zostanie wykonane */
    margin-top: 30px;
    text-align: center;
    background: #d4edda;
    color: #155724;
    padding: 20px;
    border-radius: 15px;
    border: 2px dashed #c3e6cb;
}

/* Animacje */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes bounce { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }
@keyframes shake { 0% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } 100% { transform: translateX(0); } }