html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

body {
    font-family: 'Lato', sans-serif;
    padding: 0;
    margin: 0;
    background-color: #f9f9f9;
    line-height: 1.6;
    color: #333;
    min-height: 100vh;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

footer {
    flex-shrink: 0;
    width: 100%;
    background-color: #222;
    color: white;
    padding: 0.5rem 0;
    text-align: center;
}


.flipbook-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem auto 4rem;
    width: 100%;
    max-width: 800px;
    height: auto;
    position: relative;
    padding-bottom: 1rem;
}

.flipbook {
    width: 100%;
    height: 100%;
    position: relative;
}

.flipbook .page {
    width: 100%;
    height: 100%;
    overflow: visible;
    position: absolute;
    top: 0;
    left: 0;
}

.flipbook .page img {
    width: 100%;
    height: auto; /* Maintain aspect ratio */
    object-fit: contain; /* Ensure the entire image is visible */
    display: block;
}

.hover-text {
    position: absolute;
    bottom: -70px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 0.8rem 1.5rem;
    border-radius: 20px;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    color: #333;
    opacity: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    pointer-events: none;
    text-align: center;
    max-width: 90%;
    width: auto;
    min-width: 200px;
    z-index: 1;
    white-space: nowrap;
    margin-bottom: 2rem;
}

.flipbook-container:hover .hover-text {
    opacity: 0;
    transform: translateX(-50%) translateY(5px);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .flipbook-container {
        max-width: 600px;
        height: auto;
    }
    .hover-text {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
        bottom: -50px;
        max-width: 95%;
        min-width: 180px;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .flipbook-container {
        max-width: 320px;
        height: auto;
    }
    .hover-text {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
        bottom: -40px;
        max-width: 100%;
        width: 280px;
        min-width: 160px;
        white-space: normal;
        line-height: 1.4;
        margin-bottom: 1rem;
    }
}

.project-info {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.info-row {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
}

.info-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #666;
    letter-spacing: 0.1em;
}

.info-text {
    font-size: 1rem;
    color: #333;
}

@media (max-width: 768px) {
    .project-info {
        padding: 0 1rem;
        margin: 1.5rem auto;
    }
    
    .info-row {
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .info-row {
        gap: 1.5rem;
    }
    
    .info-text {
        font-size: 0.9rem;
    }
}