/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=Quintessential&family=Cinzel:wght@400;700&family=Lora:ital,wght@0,400;0,700;1,400&display=swap');

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

body {
    font-family: 'Cinzel', serif;
    background-color: #f5f5dc;
    color: #3e2723;
}

header {
    background-color: #5d4037;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

h1 {
    font-family: 'Quintessential', cursive;
    font-size: 3.5rem;
    color: #d4af37;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 2px;
    font-weight: 400;
    text-transform: uppercase;
}

main {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 150px);
    padding: 20px;
}

.cabinet-container {
    width: 100%;
    max-width: 100%;
    position: relative;
}

.cabinet-container img {
    width: 100%;
    height: auto;
    display: block;
    cursor: default;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
}

.modal-parchments{
    margin-bottom: 30px;
}

.modal-content {
    background-color: #f4e4c1;
    background-image: 
        linear-gradient(90deg, rgba(139, 69, 19, 0.1) 1px, transparent 1px),
        linear-gradient(rgba(139, 69, 19, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    padding: 40px;
    border: 3px solid #8b4513;
    border-radius: 10px;
    width: 90%;
    max-width: 1000px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
    font-family: 'Lora', serif;
    color: #3e2723;
    position: relative;
    /* Animation properties */
    animation: modalGrow 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-origin: center center;
}

@keyframes modalGrow {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.close {
    color: #8b4513;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
}

.close:hover,
.close:focus {
    color: #d4af37;
}

.modal-content h2 {
    font-family: 'Quintessential', cursive;
    color: #8b4513;
    margin-bottom: 30px;
    text-align: center;
    font-size: 2.5rem;
    font-weight: 400;
}

.modal-body {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.modal-left {
    flex: 1;
    padding-right: 20px;
}

.modal-left p {
    line-height: 1.8;
    text-align: justify;
    font-size: 1rem;
}

.modal-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-right img {
    width: 100%;
    height: auto;
    border: 2px solid #8b4513;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.modal-date {
    font-weight: 700;
    color: #8b4513;
    font-size: 1.1rem;
}

.modal-caption {
    font-size: 0.9rem;
    line-height: 1.6;
    text-align: justify;
}

/* Responsive design */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    .modal-content {
        width: 95%;
        padding: 20px;
    }
    
    .modal-content h2 {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    
    .modal-body {
        flex-direction: column;
    }
    
    .modal-left {
        padding-right: 0;
    }
}

/* Cursor styles for clickable areas */
area {
    cursor: pointer;
}

area.drawer:hover,
area.open-door:hover {
    cursor: pointer;
}


/* Footer styles */
footer {
    background-color: #5d4037;
    color: #f5f5dc;
    padding: 30px 20px;
    margin-top: 40px;
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.3);
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}
.footer-info {
    text-align: center;
    margin-bottom: 25px;
}
.footer-info p,
.footer-info p a{
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #d4af37;
    margin: 0;
}
.footer-info p a:hover{
    text-decoration: none;
}
.footer-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    padding: 20px 0;
}
.footer-logos img {
    height: 60px;
    width: auto;
    object-fit: contain;
    background-color: white;
    padding: 8px;
    border-radius: 5px;
    transition: transform 0.3s ease;
}
.footer-logos img:hover {
    transform: scale(1.05);
}

/* Responsive footer */
@media (max-width: 768px) {
    .footer-info p {
        font-size: 0.85rem;
    }
    .footer-logos {
        gap: 15px;
    }
    .footer-logos img {
        height: 45px;
    }
}