body, html {
    height: 100%;
    font-family: 'Poppins', sans-serif;
    display: flex;
    flex-direction: column;
    background: #f9f9f9;
}

main.training-container {
    flex: 1;
    display: flex;
    padding: 1rem;
    gap: 1rem;
}

.left-panel {
    width: 250px;
    background: #fff;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 20%;
    left: 20px;
}

.center-panel {
    flex: 1;
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#scramble {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
    background: #eee;
    border-radius: 8px;
    text-align: center;
    min-width: 300px;
}

#timer {
    font-size: 4rem;
    margin: 1rem 0;
}

.small-button, .big-button {
    margin: 0.5rem;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
}

.small-button {
    background: #6c757d;
    color: white;
}

.small-button:hover {
    background: #565e64;
}

.big-button {
    background: #007bff;
    color: white;
    font-size: 1.2rem;
}

.big-button:hover {
    background: #0056b3;
}

table {
    width: 100%;
    margin-top: 1rem;
    border-collapse: collapse;
}

th, td {
    padding: 0.4rem;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

/* MODALE */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    max-width: 400px;
    width: 90%;
    text-align: center;
}

.hidden {
    display: none;
}

/* RESPONSYWNOŚĆ */
@media (max-width: 768px) {
    main.training-container {
        flex-direction: column;
        align-items: center;
    }

    .left-panel {
        width: 100%;
        order: 1;
        margin-bottom: 1rem;
    }

    .center-panel {
        width: 100%;
        order: 2;
    }

    #scramble {
        min-width: unset;
        width: 100%;
    }
}

@media (max-width: 480px) {
    #timer {
        font-size: 3rem;
    }

    .big-button {
        width: 100%;
    }

    .small-button {
        width: 100%;
    }
}