@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background: linear-gradient(45deg, #ff0057, #a800ff);
    font-family: 'Press Start 2P', cursive;
    color: #fff;
    overflow: hidden;
    position: relative;
}

h1 {
    margin: 0;
    padding: 10px 0;
    text-shadow: 0 0 5px #00ffea, 0 0 10px #00ffea, 0 0 20px #00ffea, 0 0 40px #00ffea;
}

.dice-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.dice {
    width: 150px;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
    border: 4px solid #00ffea;
    border-radius: 10px;
    box-shadow: 0 0 20px #00ffea, inset 0 0 20px #00ffea;
    font-size: 2.5em;
    cursor: pointer;
    user-select: none;
    transition: transform 0.3s, box-shadow 0.3s;
    padding: 10px;
    animation: none;
}

.dice:active {
    transform: scale(0.95);
    box-shadow: 0 0 10px #00ffea, inset 0 0 10px #00ffea;
}

.dice-modifier {
    font-size: 2.5em;
    margin-left: 10px;
    text-shadow: 0 0 5px #00ffea, 0 0 10px #00ffea, 0 0 20px #00ffea, 0 0 40px #00ffea;
}

.neon {
    color: #fff;
    text-shadow: 0 0 5px #00ffea, 0 0 10px #00ffea, 0 0 20px #00ffea, 0 0 40px #00ffea;
}

@keyframes glow {
    0% { box-shadow: 0 0 5px #00ffea; }
    50% { box-shadow: 0 0 20px #00ffea; }
    100% { box-shadow: 0 0 5px #00ffea; }
}

@keyframes roll {
    0% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.2) rotate(360deg); }
    100% { transform: scale(1) rotate(720deg); }
}

.dice.roll-animation {
    animation: roll 0.6s ease-in-out;
}

.buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

button {
    background: #000;
    border: 4px solid #00ffea;
    border-radius: 10px;
    padding: 10px 20px;
    color: #fff;
    font-size: 1em;
    cursor: pointer;
    text-shadow: 0 0 5px #00ffea, 0 0 10px #00ffea;
    transition: transform 0.3s, box-shadow 0.3s;
}

button:active {
    transform: scale(0.95);
    box-shadow: 0 0 10px #00ffea;
}

#message {
    font-size: 1.5em;
    text-shadow: 0 0 5px #00ffea, 0 0 10px #00ffea;
}

.success {
    box-shadow: 0 0 20px #00ffea, inset 0 0 20px #00ffea;
    color: #00ffea;
}

.failure {
    box-shadow: 0 0 20px #ff0000, inset 0 0 20px #ff0000;
    color: #ff0000;
}

.draw-inject {
    box-shadow: 0 0 20px #ffff00, inset 0 0 20px #ffff00;
    color: #ffff00;
}

.settings {
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.settings span {
    margin-left: 5px;
    text-shadow: 0 0 5px #00ffea, 0 0 10px #00ffea, 0 0 20px #00ffea, 0 0 40px #00ffea;
}

.settings-window {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #00ffea;
    border-radius: 10px;
    padding: 20px;
    display: none;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.settings-window input[type="range"] {
    width: 100%;
}

.settings-window input[type="checkbox"] {
    margin-left: 10px;
}

.settings-window button {
    background: #000;
    border: 2px solid #00ffea;
    border-radius: 5px;
    padding: 5px 10px;
    color: #fff;
    cursor: pointer;
    text-shadow: 0 0 5px #00ffea, 0 0 10px #00ffea;
    transition: transform 0.3s, box-shadow 0.3s;
    margin-top: 10px;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 500;
}
