/* style.css */

body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f4f4f4;
    margin: 0;
}

.container {
    text-align: center;
    display: flex;
    flex-direction:column;
}

.dice-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px; /* Buffer space */
    gap: 20px; /* Padding between dice */
}

.dice {
    width: 100px;
    height: 100px;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateX(0deg) rotateY(0deg);
    transition: transform 1s;
    border-radius: 15px; /* Rounded edges */
}

.side {
    position: absolute;
    width: 100px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 14px;
    color: white;
    border: 2px solid black;
    box-sizing: border-box;
    border-radius: 15px; /* Rounded edges */
}

.front  { background-color: #d62d20; color: #ffffff; transform: translateZ(50px); } /* Red */
.back   { background-color: #f6c90e; color: #000000; transform: rotateY(180deg) translateZ(50px); } /* Yellow */
.left   { background-color: #009e49; color: #ffffff; transform: rotateY(-90deg) translateZ(50px); } /* Green */
.right  { background-color: #00a3e0; color: #ffffff; transform: rotateY(90deg) translateZ(50px); } /* Blue */
.top    { background-color: #8e2d81; color: #ffffff; transform: rotateX(90deg) translateZ(50px); } /* Purple */
.bottom { background-color: #dcdcdc; color: #000000; transform: rotateX(-90deg) translateZ(50px); } /* Light Gray */


/* Button style */
button {
    background-color: #007bff; /* Default color for Button 1 */
    color: #ffffff; /* Text color */
    border: 2px solid #0056b3; /* Border color for Button 1 */
    padding: 10px 20px; /* Padding inside the button */
    font-size: 16px; /* Font size */
    border-radius: 5px; /* Rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Shadow for elevation */
    transition: box-shadow 0.3s ease, transform 0.3s ease; /* Smooth transition */
    cursor: pointer; /* Pointer cursor on hover */
}

#rollButton {
    background-color: #007bff; /* Blue */
    border: 2px solid #0056b3; /* Darker Blue */
}

#putterButton {
    background-color: #28a745; /* Green */
    border: 2px solid #1e7e34; /* Darker Green */
}

button:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

#rollButton:active, #putterButton:active {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Reduced shadow when pressed */
    transform: translateY(6px); /* Move button down */
}

/* Result text spacing */
#result {
    margin-top: 20px; /* Buffer space for the result */
}
