body {
    font-family: sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f0f0f0;
    margin: 0;
    padding: 20px; /* Add some padding around the whole app */
    box-sizing: border-box; /* Include padding in element's total width and height */
}

#app {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1200px;
    width: 350px;
    place-items: center;
}

.data-box {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 350px;
    height: 150px;
}

.frequency-container {
    overflow-y: auto;
}


h1 {
    color: #333;
    font-size: 1.2rem; /* Reduced font size */
}

.container h2, .history-container h2, .frequency-container h2 {
    text-align: center;
    color: #333;
    margin-top: 0;
    font-size: 1rem; /* Reduced font size */
}

.lotto-numbers {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 1rem 0; /* Reduced margin */
}

.plus {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 35px; /* Reduced size */
    height: 35px; /* Reduced size */
    margin: 0 0.3rem; /* Reduced margin */
    font-size: 1rem; /* Reduced font size */
    font-weight: bold;
    color: #333;
}


.number {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 35px; /* Reduced size */
    height: 35px; /* Reduced size */
    border-radius: 50%;
    background-color: #eee;
    margin: 0 0.3rem; /* Reduced margin */
    font-size: 1rem; /* Reduced font size */
    font-weight: bold;
    color: #333;
}

button {
    padding: 0.5rem 1rem; /* Reduced padding */
    font-size: 0.9rem; /* Reduced font size */
    color: white;
    background-color: #007bff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#history-list li {
    background-color: #f9f9f9;
    padding: 0.3rem; /* Reduced padding */
    border-radius: 5px;
    margin-bottom: 0.3rem; /* Reduced margin */
    font-size: 0.9rem; /* Reduced font size */
    text-align: center;
}

#frequency-list .freq-number {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 25px; /* Reduced size */
    height: 25px; /* Reduced size */
    border-radius: 50%;
    background-color: #e0e0e0;
    font-weight: bold;
    color: #333;
    margin-right: 0.5rem; /* Reduced margin */
    font-size: 0.8rem; /* Reduced font size */
}

#frequency-list .freq-details {
    display: flex;
    align-items: center;
    gap: 0.5rem; /* Reduced gap */
    font-size: 0.8rem; /* Reduced font size */
    color: #555;
}

#frequency-list .freq-count {
    font-weight: bold;
}

#frequency-list .freq-probability {
    color: #007bff;
    font-style: italic;
}