* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #000;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
}

.container {
    width: 100%;
    height: 100vh;
    position: relative;
}

.home {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #000;
    gap: 40px;
    perspective: 1000px;
}

.title {
    color: #fff;
    font-size: 3rem;
    font-weight: 300;
    text-align: center;
    letter-spacing: 2px;
}

.games {
    width: 100%;
    height: 100vh;
    background: #000;
    position: relative;
}

.hidden {
    display: none;
}

/* 3D Cube */
.cube-wrapper {
    width: 150px;
    height: 150px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.cube-wrapper:hover {
    transform: scale(1.1);
}

.cube-wrapper:hover .cube {
    animation-play-state: paused;
}

.cube {
    width: 150px;
    height: 150px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotate 10s infinite linear;
    transform-origin: center center;
}

@keyframes rotate {
    from {
        transform: rotateX(0deg) rotateY(0deg);
    }
    to {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

.cube-face {
    position: absolute;
    width: 150px;
    height: 150px;
    border: 2px solid #fff;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
}

.cube-front {
    transform: rotateY(0deg) translateZ(75px);
}

.cube-back {
    transform: rotateY(180deg) translateZ(75px);
}

.cube-right {
    transform: rotateY(90deg) translateZ(75px);
}

.cube-left {
    transform: rotateY(-90deg) translateZ(75px);
}

.cube-top {
    transform: rotateX(90deg) translateZ(75px);
}

.cube-bottom {
    transform: rotateX(-90deg) translateZ(75px);
}

.back-button {
    position: absolute;
    top: 20px;
    left: 20px;
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
    padding: 12px 24px;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.back-button:hover {
    background: #fff;
    color: #000;
}

.fullscreen-button {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
    padding: 12px 24px;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.fullscreen-button:hover {
    background: #fff;
    color: #000;
}

.game-area {
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    padding: 40px;
}

.game-button-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.game-name {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-align: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.game-button {
    background: transparent;
    color: #fff;
    border: none;
    width: 150px;
    height: 150px;
    padding: 0;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 5px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.game-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.game-button:hover {
    background: #fff;
    color: #000;
    transform: scale(1.05);
}

.game-button:hover .game-icon {
    transform: scale(1.1);
}

.game-view {
    width: 100%;
    height: 100vh;
    background: #000;
    position: relative;
}

.game-content {
    width: 100%;
    height: 100%;
    background: #000;
    position: relative;
    overflow: hidden;
    display: block;
}

.game-content iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    z-index: 1;
}
