body {
    margin: 0;
    padding: 0;
    height: 100vh;
}

.container {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.image-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.centered-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    opacity: 0;
    transition: all 1.5s ease-in-out;
    filter: blur(0);
}

.centered-image.loaded {
    opacity: 1;
}

.centered-image.loading {
    opacity: 0.8;
    filter: blur(5px);
}

.poem-container {
    position: absolute;
    top: 50%;
    right: 50px;
    transform: translateY(-50%);
    writing-mode: vertical-rl;
    font-size: 24px;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    z-index: 2;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

.poem-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 20px;
}

.poem-author {
    font-size: 20px;
    margin-bottom: 15px;
}

.poem-content {
    line-height: 2;
}

.loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    opacity: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
}

.loading-spinner.active {
    opacity: 1;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    color: white;
    font-size: 16px;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    opacity: 0.8;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
} 