body {
    margin: 0;
    padding-left: 16px;
    padding-right: 16px;
    display: flex;
    flex-direction: column;
    /* Arrange items vertically */
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f0f2f5;
    font-family: 'Inter', sans-serif;
    overflow: auto;
}

@media (max-width: 600px) {
    body {
        margin-top: 50px;
    }

    .scene,
    #resetIcon,
    .button-container {
        transform: scale(0.7);
        transform-origin: top center;
    }

    body .refresh-icon {
        margin-bottom: 50px;
    }

    body .scene {
        margin-bottom: 25px;
    }

    body .button-container {
        margin-top: 0px;
    }
}

/* Text box styling - now just plain text */
.company-info {
    text-align: center;
    margin-bottom: 50px;
    /* Space between text and refresh icon */
    font-size: 1rem;
    /* Smaller font size */
    color: #333;
    max-width: 600px;
}

.company-info p {
    margin: 0;
    line-height: 1.5;
}

/* Styling for the refresh icon (now above the cube) */
.refresh-icon {
    font-size: 1.8rem;
    /* Larger icon size */
    color: #555;
    /* Dark gray color */
    cursor: pointer;
    transition: color 0.3s ease, transform 0.2s ease;
    padding: 5px;
    /* Add some padding around the icon for easier clicking */
    margin-bottom: 80px;
    /* Increased space between refresh icon and cube */
}

.refresh-icon:hover {
    color: #333;
    /* Slightly darker on hover */
    transform: rotate(15deg);
    /* Subtle rotation on hover */
}

.refresh-icon:active {
    transform: rotate(0deg);
    /* Reset rotation on click */
}

.scene {
    width: 200px;
    height: 200px;
    perspective: 1000px;
    /* Defines the 3D perspective */
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 100px;
    /* Increased space between cube and buttons */
}


.cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    /* Ensures children are positioned in 3D space */
    /* Default transition for non-spin actions (drag, click, reset) */
    transition: transform 0.6s ease-in-out;
    /* Initial rotation to show multiple sides */
    transform: rotateX(-30deg) rotateY(45deg);
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.cube a,
.cube img {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: auto;
    /* Allow clicking */
}

.cube a,
.cube img {
    -webkit-user-drag: none;
    user-drag: none;
}

.cube__face {
    position: absolute;
    width: 200px;
    height: 200px;
    border: 2px solid #333;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    border-radius: 0;
    /* Rounded corners for all faces */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    /* Soft shadow */
    backface-visibility: hidden;
    /* Hide the back of the face when rotated */
    transition: background-color 0.3s ease, transform 0.3s ease;
    /* Hover effects */
}

/* Positioning each face and applying hover effect */
.cube__face--front {
    transform: rotateY(0deg) translateZ(100px);
    background-color: #2E575C;
    color: #F8F6F2;
}

.cube__face--front:hover {
    background-color: #1b3537;
    /* Darker shade of #2E575C */
    transform: rotateY(0deg) translateZ(100px) scale(1.02);
}

.cube__face--back {
    transform: rotateY(180deg) translateZ(100px);
    background-color: #414145;
    color: #F8F6F2;
}

.cube__face--back:hover {
    background-color: #232326;
    /* Darker shade of #414145 */
    transform: rotateY(180deg) translateZ(100px) scale(1.02);
    /* Combined transform */
}

.cube__face--right {
    transform: rotateY(90deg) translateZ(100px);
    background-color: #C4B395;
    color: #111827;
}

.cube__face--right:hover {
    background-color: #8a7a4e; /* Darker shade of #C4B395 */
    transform: rotateY(90deg) translateZ(100px) scale(1.02);
    /* Combined transform */
}

.cube__face--left {
    transform: rotateY(-90deg) translateZ(100px);
    background-color: #8A9BCE;
    color: #111827;
    /* Darker text for light background */
}

.cube__face--left:hover {
    background-color: #42507a;
    /* Darker shade of #8A9BCE */
    transform: rotateY(-90deg) translateZ(100px) scale(1.02);
    /* Combined transform */
}

.cube__face--top {
    transform: rotateX(90deg) translateZ(100px);
    background-color: #D8A3A8;
    color: #111827;
}

.cube__face--top:hover {
    background-color: #a06c73;
    /* Darker shade of #D8A3A8 */
    transform: rotateX(90deg) translateZ(100px) scale(1.02);
    /* Combined transform */
}

.cube__face--bottom {
    transform: rotateX(-90deg) translateZ(100px);
    background-color: #78C3D3;
    color: #111827;
}

.cube__face--bottom:hover {
    background-color: #35788a;
    /* Darker shade of #78C3D3 */
    transform: rotateX(-90deg) translateZ(100px) scale(1.02);
    /* Combined transform */
}

/* Button Container Styling */
.button-container {
    display: flex;
    gap: 20px;
    /* Space between buttons */
    margin-top: 20px;
    /* Space above the button container */
}

/* Default Button Styling (for other buttons if any, though only spin remains) */
.action-button {
    background-color: #007bff;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.action-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Specific style for the spin button - Slot Machine Look (Square & Translucent) */
.action-button.spin-button {
    /* Translucent background with subtle gradient for glass effect */
    background: rgba(255, 255, 255, 0.2);
    /* Very light, translucent white */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.1) 100%);
    color: #ccc;
    /* Light gray text for contrast on translucent background */
    border: 1px solid rgba(255, 255, 255, 0.4);
    /* Lighter, translucent border */
    border-radius: 8px;
    /* Square with slight rounding */
    width: 100px;
    /* Fixed width to make it square */
    height: 100px;
    /* Fixed height to make it square */
    padding: 0;
    /* Remove padding to allow width/height to control size */
    font-size: 1.5rem;
    /* Larger font for impact */
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8), 0 0 10px rgba(255, 255, 255, 0.6);
    /* Glowing text effect */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3),
        /* Main shadow for depth */
        inset 0 0 10px rgba(255, 255, 255, 0.5),
        /* Inner glow for glass effect */
        inset 0 0 20px rgba(255, 255, 255, 0.3);
    /* Larger inner glow */
    backdrop-filter: blur(5px);
    /* Glass blur effect */
    -webkit-backdrop-filter: blur(5px);
    /* Safari support */
    /* Pulsation animation */
    animation: pulsate 1.5s infinite alternate;
    /* 1.5s duration, infinite, alternates direction */
}

.action-button.spin-button:hover {
    background: rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.2) 100%);
    transform: translateY(-5px) scale(1.05);
    /* More pronounced lift and scale on hover */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4),
        inset 0 0 15px rgba(255, 255, 255, 0.7),
        inset 0 0 30px rgba(255, 255, 255, 0.5);
    animation: none;
    /* Stop pulsation on hover */
}

.action-button.spin-button:active {
    transform: translateY(0);
    /* Press down effect */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2),
        inset 0 0 5px rgba(255, 255, 255, 0.3);
    animation: none;
    /* Stop pulsation on active */
}

/* Keyframes for pulsation animation */
@keyframes pulsate {
    0% {
        transform: scale(1);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3),
            inset 0 0 10px rgba(255, 255, 255, 0.5);
    }

    50% {
        transform: scale(1.03);
        /* Slightly larger */
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4),
            inset 0 0 15px rgba(255, 255, 255, 0.7);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3),
            inset 0 0 10px rgba(255, 255, 255, 0.5);
    }
}


/* Message Box Styling */
.message-box-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.message-box-overlay.show {
    opacity: 1;
    visibility: visible;
}

.message-box {
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 400px;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.message-box-overlay.show .message-box {
    transform: translateY(0);
}

.message-box h3 {
    margin-top: 0;
    color: #333;
    font-size: 1.8rem;
}

.message-box p {
    color: #555;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.message-box button {
    background-color: #4CAF50;
    /* Green button */
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.message-box button:hover {
    background-color: #45a049;
    transform: translateY(-2px);
}