:root {
    --bg-color: #ffffff;
    --text-color: #000000;
    --dice-bg: linear-gradient(145deg, #fff, #e0e0e0);
    --dice-shadow: rgba(0,0,0,0.2);
    --input-bg: #ffffff;
    --input-text: #000000;
    --btn-bg: #007bff;
    --btn-text: #ffffff;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: Arial, sans-serif;
    text-align: center;
    margin: 50px 20px;

    display: flex;
    flex-direction: column;
    /*align-items: center;
    justify-content: center;*/
    min-height: 100vh; /* full viewport height */
}

.container {
    text-align: center;
    margin-bottom: 40px;
}

#weather-form input {
    width: 140px;
    background-color: var(--input-bg);
    color: var(--input-text);
    border-radius: 6px;
    padding: 8px 12px;
    border: 1px solid #ccc;
    margin-right: 6px;
}

#weather-form button {
    background-color: var(--btn-bg);
    color: var(--btn-text);
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
}

#dice-container {
    text-align: center;
    margin: 0 auto;

    display: flex;
    flex-direction: column; /* stack dice and number vertically */
    align-items: center;    /* horizontally center everything inside */
    justify-content: center; /* optional: vertical centering if needed */
}

#dice {
    font-size: 100px;
    cursor: pointer;
    user-select: none;
    display: flex; /*inline-block;*/
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px var(--dice-shadow);
    border-radius: 20px;
    background: var(--dice-bg);
    width: 120px;
    height: 120px;
    line-height: 120px;
    text-align: center;
    font-weight: bold;
    justify-content: center;
    /*aligen-items: center;*/
}

#number {
    font-size: 30px;
    margin-top: 20px;
}

body.dark-mode {
    --bg-color: #121212;
    --text-color: #f0f0f0;
    --dice-bg: linear-gradient(145deg, #333, #222);
    --dice-shadow: rgba(0,0,0,0.6);
    --input-bg: #222;
    --input-text: #f0f0f0;
    --btn-bg: #555;
    --btn-text: #fff;
}

footer {
    margin-top: 50px;
    font-size: 14px;
    color: gray;
}
