@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300&family=Spectral:wght@200&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cormorant Garamond', serif;
}

body {
    width: 100%;
    min-height: 100vh;
    background: white;
    text-align: center;
    color: black;
    overflow-x: hidden;
}

.fade-in {
    animation: fadeIn 3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

#header {
    margin: 2rem 0 1rem;
    font-size: 2.5rem;
}

.search {
    margin: 1rem auto;
}

.search input {
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
    border: 3px solid #4A4A4A;
    border-top: 4px solid #5A5A5A;
    border-bottom: 4px solid #2A2A2A;
    background: white;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 400px;
    text-align: center;
    font-family: 'Cormorant Garamond', serif;
    letter-spacing: 0.5px;
    color: #333;
}

.search input:focus {
    outline: none;
    border-color: #5A5A5A;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 2px 12px rgba(0, 0, 0, 0.3);
}

.search input::placeholder {
    color: #999;
}

.spikedLine {
    margin: 1.5rem 0;
}

.spikedLine img {
    max-width: 120px;
    max-height: 120px;
}

.buttonClick {
    margin: 1rem 0;
}

.buttonClick button {
    padding: 0.75rem 2.5rem;
    font-size: 1.2rem;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(to bottom, #4A4A4A 0%, #2C2C2C 50%, #1A1A1A 100%);
    border: 3px solid #1A1A1A;
    border-top: 4px solid #5A5A5A;
    border-bottom: 4px solid #0A0A0A;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    color: #E0E0E0;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.buttonClick button:hover {
    background: linear-gradient(to bottom, #5A5A5A 0%, #3C3C3C 50%, #2A2A2A 100%);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    color: #FFFFFF;
}

.buttonClick button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.content-wrapper {
    position: relative;
    margin: 2rem auto;
    max-width: 1800px;
    padding: 0 2rem;
    min-height: 800px;
}

.models-container {
    position: absolute;
    left: -150px;
    top: -50px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 2rem;
    transition: opacity 0.3s ease;
    opacity: 0.5;
    z-index: 1;
}

.models-container.interacting {
    opacity: 1;
}

.EmpBust,
.EmpBust2 {
    width: 600px;
    height: 800px;
    flex-shrink: 0;
}

.EmpBust model-viewer,
.EmpBust2 model-viewer {
    width: 100%;
    height: 100%;
    background-color: transparent;
    --poster-color: transparent;
}

.EmpBust2 {
    display: none;
}

.EmpInfo {
    position: absolute !important;
    left: 350px;
    top: 100px;
    right: 50px;
    max-width: 950px;
    padding: 3rem 4rem;
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: opacity 0.5s ease;
    opacity: 1;
    z-index: 100 !important;
    backdrop-filter: blur(12px);
    pointer-events: none;
    transform: translateZ(0);
}

.EmpInfo em {
    font-style: italic;
    font-size: 1.15rem;
    line-height: 1.9;
}

.EmpInfo.faded {
    opacity: 0;
}

.EmpInfo h2 {
    margin: 0;
    font-weight: 300;
}

/* Custom positioning for specific emperors */

/* Augustus - more centered */
.models-container[data-emperor="augustus"] {
    left: 50px;
}

/* Claudius - centered */
.models-container[data-emperor="claudius"] {
    left: 100px;
}

/* Nero - centered */
.models-container[data-emperor="nero"] {
    left: 100px;
}

/* Titus - centered */
.models-container[data-emperor="titus"] {
    left: 100px;
}

/* Domitian - centered */
.models-container[data-emperor="domitian"] {
    left: 100px;
}

/* Nerva - centered */
.models-container[data-emperor="nerva"] {
    left: 100px;
}

/* Trajan - more centered */
.models-container[data-emperor="trajan"] {
    left: 20px;
}

/* Hadrian - more centered */
.models-container[data-emperor="hadrian"] {
    left: 30px;
}

/* Marcus Aurelius - centered */
.models-container[data-emperor="marcus-aurelius"] {
    left: 100px;
}

/* Commodus - keep default position */
.models-container[data-emperor="commodus"] {
    left: -150px;
}

/* Add more custom positions as needed */

/* Responsive design */

/* Large screens - full layout */
@media (min-width: 1600px) {
    .models-container {
        left: -100px;
        top: -80px;
    }
    
    .EmpBust,
    .EmpBust2 {
        width: 650px;
        height: 850px;
    }
    
    .EmpInfo {
        left: 400px;
        top: 120px;
    }
}

/* Medium-large screens */
@media (max-width: 1599px) and (min-width: 1200px) {
    .models-container {
        left: -100px;
        top: -30px;
    }
    
    .EmpBust,
    .EmpBust2 {
        width: 550px;
        height: 750px;
    }
    
    .EmpInfo {
        left: 300px;
        top: 80px;
        max-width: 800px;
        padding: 2.5rem 3.5rem;
    }
}

/* Medium screens - face behind text (overlapping) */
@media (max-width: 1199px) and (min-width: 900px) {
    .models-container {
        left: 0;
        top: 0;
        justify-content: center;
    }
    
    .EmpBust,
    .EmpBust2 {
        width: 500px;
        height: 700px;
    }
    
    .EmpInfo {
        left: 50%;
        transform: translateX(-50%) translateZ(0);
        top: 100px;
        max-width: 700px;
        padding: 2.5rem 3rem;
    }
}

/* Small-medium screens - face behind text (overlapping) */
@media (max-width: 899px) and (min-width: 600px) {
    .content-wrapper {
        min-height: 650px;
    }
    
    .models-container {
        position: absolute;
        left: -50px;
        top: 0;
        justify-content: flex-start;
        opacity: 0.6;
    }
    
    .EmpBust,
    .EmpBust2 {
        width: 450px;
        height: 600px;
    }
    
    .EmpInfo {
        position: absolute;
        left: 200px;
        right: 30px;
        top: 50px;
        transform: translateZ(0);
        max-width: none;
        padding: 2rem 2.5rem;
        pointer-events: none;
        font-size: 0.95rem;
    }
}

/* Small screens - face on left, text on right */
@media (max-width: 599px) {
    .content-wrapper {
        min-height: 550px;
        padding: 0;
    }
    
    .models-container {
        position: absolute;
        left: -120px;
        top: 0;
        justify-content: flex-start;
        opacity: 0.6;
    }
    
    .EmpBust,
    .EmpBust2 {
        width: 350px;
        height: 500px;
    }
    
    .EmpInfo {
        position: absolute;
        left: auto;
        right: 0;
        top: 30px;
        transform: translateZ(0);
        max-width: 55%;
        width: 55%;
        padding: 1.5rem;
        pointer-events: none;
        font-size: 0.85rem;
        line-height: 1.6;
        border-radius: 12px 0 0 12px;
    }
    
    /* Override custom emperor positions for small screens */
    .models-container[data-emperor] {
        left: -120px !important;
    }
}

/* Mobile screens */
@media (max-width: 768px) {
    #header {
        font-size: 1.8rem;
    }
    
    .EmpBust,
    .EmpBust2 {
        width: 90vw;
        max-width: 400px;
        height: 500px;
    }
    
    .models-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .EmpInfo {
        font-size: 0.95rem;
        padding: 1.5rem;
    }
}

