/* General reset */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: Arial, sans-serif;
    overflow: hidden;
}

/* Background canvas */
#background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: #1a1a1a;
}

/* Welcome section */
.welcome {
    position: absolute;
    top: 5%;
    width: 100%;
    text-align: center;
    color: #fff;
    z-index: 10;
}
.welcome h1 {
    font-size: 3rem;
    margin: 0;
}
.welcome p {
    font-size: 1.5rem;
    margin: 5px 0;
}

/* Centered container with spacing from all sides */
.container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;          /* allows wrapping for smaller screens */
    gap: 40px;                /* space between boxes */
    z-index: 10;
    padding: 40px;            /* space from all four sides */
    box-sizing: border-box;
}

/* 3D Boxes */
.box {
    width: 200px;
    height: 200px;
    background: linear-gradient(145deg, #ff416c, #ff4b2b);
    border-radius: 15px;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.5),
                inset -5px -5px 15px rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transform: perspective(1000px) rotateX(0) rotateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.box:hover {
    transform: perspective(1000px) rotateX(-10deg) rotateY(10deg);
    box-shadow: 5px 5px 25px rgba(0, 0, 0, 0.8),
                inset -5px -5px 25px rgba(255, 255, 255, 0.3);
}

/* Box Specific Colors */
.box:nth-child(1) {
    background: linear-gradient(145deg, #1d4350, #a43931);
}
.box:nth-child(2) {
    background: linear-gradient(145deg, #3a1c71, #d76d77);
}
.box:nth-child(3) {
    background: linear-gradient(145deg, #00c6ff, #0072ff);
}
