:root {
    --primary-color: #ffffff;
    --secondary-color: #f0f0f0;
    --background-color: #ffffff;
    --text-color: #333333;
    --fade-color: rgba(255, 255, 255, 0.95);
}

.dark-theme {
    --primary-color: #1a1a1a;
    --secondary-color: #2d2d2d;
    --background-color: #121212;
    --text-color: #ffffff;
    --fade-color: rgba(18, 18, 18, 0.95);
}

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

body {
    font-family: 'Cormorant Garamond', serif;
    background-color: var(--background-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s, color 0.3s;
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    z-index: -2;
}

.fade {
    position: fixed;
    left: 0;
    width: 100%;
    height: 20vh;
    z-index: -1;
    background: linear-gradient(to bottom, var(--fade-color), transparent);
}

.fade.top {
    top: 0;
}

.fade.bottom {
    bottom: 0;
    transform: rotate(180deg);
}

.poem-container {
    max-width: 800px;
    width: 90%;
    margin: 2rem auto;
    text-align: center;
}

.poem-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.poem-author {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 300;
    font-style: italic;
}

.poem-wrapper {
    position: relative;
    height: 60vh;
    overflow: hidden;
    width: 100%;
    margin: 2rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.poem {
    font-size: 1.5rem;
    line-height: 2;
    position: absolute;
    width: 100%;
    animation: scroll 60s linear infinite;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform-origin: center;
}

.poem p {
    margin: 0.5rem 0;
    opacity: 1;
    transform: none;
    animation: none;
    text-align: center;
    width: 100%;
    max-width: 800px;
    padding: 0 1rem;
}

@keyframes scroll {
    0% {
        transform: translateY(100%);
    }
    100% {
        transform: translateY(-100%);
    }
}

.controls {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    background: var(--fade-color);
    padding: 1rem;
    border-radius: 2rem;
    backdrop-filter: blur(10px);
}

.control-select {
    font-family: inherit;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border: none;
    background: transparent;
    color: var(--text-color);
    cursor: pointer;
    outline: none;
}

.control-btn {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--text-color);
    transition: transform 0.2s;
}

.control-btn:hover {
    transform: scale(1.1);
}

.control-btn.play {
    font-size: 2rem;
}

@media (max-width: 768px) {
    .poem {
        font-size: 1.2rem;
        height: 50vh;
    }
    
    .poem-title {
        font-size: 2rem;
    }
    
    .poem-author {
        font-size: 1.2rem;
    }
    
    .controls {
        flex-wrap: wrap;
        justify-content: center;
        width: 90%;
    }
} 