body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: url('./media/background.jpg') no-repeat center center fixed;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: #fff;
}

#container {
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(15px);
    border-radius: 24px;
    padding: 35px 30px;
    width: 90%;
    max-width: 800px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
}

#logo {
    width: 55px;
    height: 55px;
    border-radius: 5px;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

h1 {
    font-size: 2.2rem;
    margin: 0;
    font-weight: 600;
    color: #ffd700;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 1rem;
    opacity: 0.8;
}

input {
    font-size: 1.2rem;
    width: 120px;
    padding: 10px;
    text-align: center;
    font-weight: bold;
    border: 2px solid #ffd700;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    outline: none;
    transition: border-color 0.2s;
}

input:focus {
    border-color: #ffaa00;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.button-row {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

button {
    font-size: 1.1rem;
    font-weight: bold;
    padding: 12px 28px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #1a1a2e;
}

#roll-btn {
    background: #ffd700;
}

#roll-btn:hover {
    background: #ffcc00;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
}

#clear-btn {
    background: #e67e22;
    color: #fff;
}

#clear-btn:hover {
    background: #d35400;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(230, 126, 34, 0.4);
}

#diceResult {
    margin: 20px 0;
    font-size: 1.3rem;
    font-weight: bold;
    color: #ffd700;
    min-height: 1.5rem;
    word-break: break-word;
}

#diceSum {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffaa00;
    margin-bottom: 10px;
    min-height: 1.5rem;
}

#diceImages {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    max-height: 400px;
    overflow-y: auto;
    padding: 10px 0;
}

#diceImages img {
    width: 80px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    transition: transform 0.2s;
    background: rgba(0, 0, 0, 0.3);
}

#diceImages img:hover {
    transform: scale(1.15);
    border-color: #ffd700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

@media (max-width: 600px) {
    #container {
        padding: 20px 15px;
    }

    h1 {
        font-size: 1.6rem;
    }

    #diceImages img {
        width: 60px;
    }

    .button-row {
        flex-direction: column;
        gap: 10px;
    }

    button {
        width: 100%;
    }
}