

.container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: 100%;
    padding-top: 20px;
}

img {
    max-width: 100%;
}

.top-text {
    position: absolute;
    top: 18%;
    left: 51%;
    transform: translateX(-50%);
    font-family: 'Trispace', sans-serif;
    font-size: 30px;
    color: white;
    padding: 30px 10px;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.5);
}

.figure {
    position: relative;
    margin: 0 auto;
    width: 50%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.figure img.image-hover {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.2s;
    will-change: opacity;
}

.figure:hover img.image-hover {
    opacity: 1;
}

#imageContainer {
    position: relative;
    width: 100%;
    height: 100vh;
}

.img-wrapper {
    position: absolute;
    cursor: url('snippets/hand.png'), auto;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

.cards {
    position: fixed;  
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    width: 30vmin;  
    height: 30vmin;
}

.cards img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-width: none;
    max-height: none;
}

@media (max-width: 520px) {
    .cards {
        width: 40vmin;
        height: 40vmin;
    }
}

.homebutton {
    z-index: 10000;
    position: fixed;
    top: 0;
    margin: 10px;
    transition: opacity 0.2s;
}

.homebutton:hover {
    opacity: 1;
}

#chaos {
    right: 0;
}

#openbox {
    cursor: url('snippets/hand.png'), auto;
}

@media (max-width: 520px) {
    .cards img {
        max-width: 90vw;
    }
}
