body {
    margin: 0;
    overflow: hidden;
    background-color: #202124;
    font-family: sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#dice-container {
    width: 100vw;
    height: 70vh;
}

.ui {
    position: absolute;
    bottom: 30%;
    text-align: center;
}

#result-display {
    color: white;
    font-size: 5rem;
    margin: 0 0 20px 0;
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
}

button {
    padding: 15px 40px;
    font-size: 1.2rem;
    background-color: #4285f4;
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

button:hover { background-color: #357ae8; }
button:active { transform: scale(0.95); }

.lang-container {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 100;
    font-family: sans-serif;
}

#lang-toggle {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 16px;
    font-size: 1rem;
    border-radius: 8px;
    margin: 0;
    box-shadow: none;
    min-width: 70px;
    display: flex;
    color: white;
    gap: 5px;
    justify-content: center;
    align-items: center;
}

#lang-toggle:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.lang-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 5px;
    background-color: #303134;
    border: 1px solid #5f6368;
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.lang-dropdown.show {
    display: block;
}

.lang-option {
    padding: 10px 15px;
    color: white;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.lang-option:hover {
    background-color: #424548;
}

.footer {
    position: fixed;
    bottom: 15px;
    left: 20px;
    color: rgba(255, 255, 255, 0.925);
    font-size: 0.85rem;
    z-index: 100;
    user-select: none;
}
