/* Reset i podstawowe style */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header, footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    text-align: center;
    padding: 1rem;
    position: relative;
}

footer .footer-button {
    position: absolute;
    right: 1rem;
    top: 38%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #bdc3c7;
    font-size: 0.8em;
    cursor: pointer;
    text-decoration: underline;
}

footer .footer-button:hover {
    color: #ecf0f1;
}

header h1 {
    margin-bottom: 0.5rem;
}

main {
    flex: 1;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.section {
    margin-bottom: 2rem;
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hidden {
    display: none;
}

.tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.tile {
    background-color: #3498db;
    color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    text-align: center;
}

.tile:hover {
    background-color: #2980b9;
    transform: translateY(-5px);
}

.tile h3 {
    margin-bottom: 0.5rem;
}

.numbers {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
}

.number-display {
    font-size: 4rem;
    font-weight: bold;
    background-color: #e74c3c;
    color: #fff;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s;
}

button {
    background-color: #27ae60;
    color: #fff;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin: 0.5rem;
}

button:hover {
    background-color: #229954;
}

.question-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.question {
    background-color: #ecf0f1;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 5px solid #3498db;
}

.question h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.number-box {
    background-color: #ecf0f1;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
    color: #b31313;
    margin-left: 10px;
}

/* Responsywność */
@media (max-width: 768px) {
    main {
        padding: 1rem;
    }

    .section {
        padding: 1rem;
    }

    .numbers {
        flex-direction: column;
        gap: 1rem;
    }

    .number-display {
        width: 100px;
        height: 100px;
        font-size: 3rem;
    }

    .tiles {
        grid-template-columns: 1fr;
    }
}

/* Animacje */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.drawing {
    animation: spin 0.1s linear infinite;
}