body {
    font-family: 'Press Start 2P', cursive;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #2d3748;
    color: #f7fafc;
    margin: 0;
    padding: 20px;
    text-align: center;
}

.container {
    background-color: #4a5568;
    padding: 30px;
    border-radius: 12px;
    max-width: 800px;
    width: 100%;
    box-sizing: border-box;
}

h1 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #f56565;
}

.dice-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.dice {
    width: 50px;
    height: 50px;
    background-color: #f7fafc;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5em;
    box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    color: #2d3748;
}

button {
    padding: 10px 20px;
    font-size: 1em;
    background-color: #68d391;
    color: #2d3748;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: 'Press Start 2P', cursive;
    margin-top: 10px;
    margin-right: 10px;
}

button:hover {
    background-color: #48bb78;
}

#results {
    font-size: 1.2em;
    margin-top: 25px;
    color: #ffffff;
    font-weight: bold;
}

#num-dice-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

#num-dice-label {
    margin-right: 10px;
    color: #f7fafc;
    font-size: 1em;
}

#num-dice {
    padding: 8px;
    border-radius: 8px;
    border: 1px solid #cbd5e0;
    width: 80px;
    font-size: 0.9em;
    font-family: 'Press Start 2P', cursive;
    background-color: #edf2f7;
    color: #2d3748;
}

#num-dice:focus {
    outline: none;
    border-color: #68d391;
    box-shadow: 0 0 0 2px rgba(104, 211, 145, 0.2);
}

#stop-rolling {
    background-color: #f56565;
    color: #f7fafc;
}

#stop-rolling:hover {
    background-color: #c53030;
}

#return_button {
    background-color: rgb(0 0 0);
    color: white;
}

@media (max-width: 600px) {
    .container {
        padding: 20px;
    }
    .dice {
        width: 40px;
        height: 40px;
        font-size: 1.2em;
    }
    button {
        font-size: 0.9em;
        padding: 8px 16px;
        margin-right: 5px;
    }
    h1 {
        font-size: 1.75em;
    }
    #results {
        font-size: 1em;
    }
    .dice-container {
        gap: 10px;
    }
    #num-dice-label {
        font-size: 0.8em;
    }
    #num-dice {
        font-size: 0.8em;
        width: 70px;
        padding: 6px;
    }
}