html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-family: Arial, sans-serif;
    background: linear-gradient(to bottom, #000000, #333333);
}

#renderCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.3;
}

#controls {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 5px;
}

button {
    padding: 10px 20px;
    margin: 0 10px;
    font-size: 16px;
    cursor: pointer;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    transition: background 0.3s;
}

button:hover {
    background: #45a049;
}

button:disabled {
    background: #cccccc;
    cursor: not-allowed;
}

#cardContainer {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 800px;
    height: 70%;
    perspective: 1000px;
    z-index: 2;
}

.card {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.5s ease-out;
}

.card-content {
    position: relative;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card-image {
    width: 100%;
    height: 70%;
    object-fit: cover;
    border-radius: 15px 15px 0 0;
}

.card-text {
    padding: 20px;
    background: linear-gradient(to bottom, #333333, #666666);
    color: white;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.card-title {
    margin: 0 0 10px 0;
    font-size: 1.8em;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.card-description {
    margin: 0 0 20px 0;
    font-size: 1.2em;
    line-height: 1.4;
    opacity: 0.9;
}

.vr-button {
    padding: 12px 24px;
    background: #666666;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    align-self: flex-start;
}

.vr-button:hover {
    background: #555555;
    transform: translateY(-2px);
}

.vr-button:active {
    transform: translateY(0);
}

#vrViewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black;
    z-index: 1000;
}

#vrViewer.hidden {
    display: none;
}

#vrCanvas {
    width: 100%;
    height: 100%;
}

.close-button {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 1001;
    transition: background 0.3s;
}

.close-button:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Swipe animations */
.card.swipe-left {
    transform: translateX(-100%) rotateY(-30deg);
    opacity: 0;
}

.card.swipe-right {
    transform: translateX(100%) rotateY(30deg);
    opacity: 0;
}

/* Touch feedback */
.card:active {
    transform: scale(0.98);
}

#thumbnailBar {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 8%;
    width: 80%;
    max-width: 800px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 12px;
    background: rgba(0,0,0,0.5);
    padding: 10px 0;
    border-radius: 10px;
    overflow-x: auto;
    z-index: 10;
}

.thumbnail {
    width: 60px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border 0.2s, transform 0.2s;
    opacity: 0.7;
}

.thumbnail.selected {
    border: 2px solid #4CAF50;
    opacity: 1;
    transform: scale(1.08);
} 