/* Yleiset tyylit */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 10px;
    background-color: #f9f9f9;
}

h1 {
    color: #007bff;
    font-size: 24px;
    margin-bottom: 10px;
}

p {
    font-size: 16px;
    color: #333;
}

/* Virheilmoitukset */
.error-message {
    display: none;
    background-color: #ffcccc;
    color: #d9534f;
    padding: 8px;
    margin-bottom: 8px;
    border-radius: 4px;
    font-weight: bold;
    text-align: center;
}

/* Painikepalkin tyyli */
.button-container {
    display: flex;
    align-items: center;
    gap: 10px; /* Väli painikkeiden välille */
    margin-bottom: 8px;
    justify-content: flex-start;
}

/* Koti-painike */
.home-button {
    background-color: transparent;
    cursor: pointer;
    border: none;
    border-radius: 4px;
    padding: 6px;
    outline: none;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-button img {
    width: 24px;
    height: 24px;
}

.home-button:hover {
    background-color: #5a6268;
}

/* Yleiset painikkeet (Lihaspeli, Lihaspeli Fast, Kysymyskone, Ohjeet) */
.add-button, .clear-button, .save-button, .help-button {
    display: inline-block;
    width: auto;
    min-width: 100px; /* Määritetään minimileveys */
    height: 40px;
    margin: 0;
    padding: 8px 12px;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: Arial, sans-serif;
    font-size: 14px;
    text-align: center;
    box-sizing: border-box;
    transition: background-color 0.3s;
}

/* Painikkeiden värit ja hover-efektit */
.add-button {
    background-color: #28a745;
}

.add-button:hover {
    background-color: #218838;
}

.clear-button {
    background-color: #ffc107;
}

.clear-button:hover {
    background-color: #e0a800;
}

.save-button, .help-button {
    background-color: #007bff;
}

.save-button:hover, .help-button:hover {
    background-color: #0056b3;
}

/* Sivun sisältö */
.content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Responsiiviset tyylit mobiililaitteille */
@media (max-width: 600px) {
    .mobile-button-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 15px;
        height: 100vh;
    }

    /* Mobiililaitteiden painikkeet keskitettyinä ja saman kokoisina */
    .home-button, .add-button, .clear-button, .save-button, .help-button {
        width: 80%;
        max-width: 250px;
        height: 50px;
        font-size: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .home-button img {
        width: 24px;
        height: 24px;
    }
}

/* Modal-tyylit */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fff;
    width: 90%;
    max-width: 400px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 20px;
    text-align: center;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.close-button {
    color: #aaa;
    font-size: 24px;
    font-weight: bold;
    position: absolute;
    top: 15px;
    right: 20px;
    cursor: pointer;
}

.close-button:hover {
    color: #000;
}