/* Full-screen background */
body, .hero {
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    font-family: Arial, sans-serif;
}

/* Hero video background */
.hero {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Full-screen video */
.hero video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Overlay container */
.overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Grid layout - Dice face pattern */
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    width: 100%;
    height: auto;
    gap: 20px;
}

/* Content boxes */
.box {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
	margin: 20px;
	text-align: center;
    width: 100%;
    min-height: 175px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Title (H2) - Full width and centered */
.box h2 {
	padding: 15px;
    font-size: 2vw;
    margin: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: opacity 0.3s ease-in-out;
}

/* Hide UL initially */
.box ul {
	display: none;
}

/* Dice face positioning */
#box1 { grid-column: 1; grid-row: 1; }
#box2 { grid-column: 3; grid-row: 1; }
#box3 { grid-column: 2; grid-row: 2; }
#box4 { grid-column: 1; grid-row: 3; }
#box5 { grid-column: 3; grid-row: 3; }

/* Responsive Adjustments */
@media (max-width: 768px) {
    .overlay {
        width: 90%;
        height: auto;
    }

    .grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
        gap: 5px;
    }

    .box {
        font-size: 3vw;
    }

    .box h2 {
        font-size: 4vw;
    }

    .box ul {
        font-size: 3vw;
    }
}
