body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f0f0f0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.container {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#emotions-table-container {
    width: 100%;
    text-align: center;
}

#center-circle {
    margin-bottom: 20px;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#emotions-table {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
}

.emotion-cell {
    padding: 10px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.emotion-cell:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.emotion-cell.selected {
    font-weight: bold;
    border: 2px solid #000;
}

#selected-emotions, #intensity-selector, #output-text, #generate-button, #copy-button {
    margin-top: 20px;
    width: 100%;
}

button {
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #45a049;
}

#output-text {
    width: 100%;
    min-height: 100px;
    padding: 10px;
    box-sizing: border-box;
    resize: vertical;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.hidden {
    display: none;
}

@media (max-width: 600px) {
    body {
        padding: 10px;
    }

    #emotions-table {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    }

    .emotion-cell {
        padding: 8px;
        font-size: 0.9em;
    }
}

.button-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 20px;
}

#home-button, #refresh-button {
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#home-button:hover, #refresh-button:hover {
    background-color: #45a049;
}