* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nanum Myeongjo', serif;
    background-color: #f7f4ef;
    color: #2c3e50;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.6;
}

.container {
    text-align: center;
    max-width: 800px;
    padding: 2rem;
}

.quote-container {
    margin-bottom: 3rem;
    position: relative;
}

.quote {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.4;
    color: #2c3e50;
}



.word {
    font-style: italic;
    transition: all 0.6s ease;
}

.word.relations {
    color: #2c3e50;
}

.word.stories {
    color: #2c3e50;
}

.word.magic {
    color: #2c3e50;
}

.author {
    position: absolute;
    right: -120px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    font-weight: 500;
    color: #908c88;
    opacity: 0;
    transition: all 0.4s ease;
    font-style: italic;
}

.quote-container:hover .author {
    opacity: 1;
    right: -100px;
}

.signature {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 1rem;
    font-weight: 500;
    color: #908c88;
    font-style: italic;
}


.word.relations.active {
    color: #EA7499;
}

.word.stories.active {
    color: #639EE0;
}

.word.magic.active {
    color: #f39c12;
}

.symbols-container {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.symbol {
    font-size: 2.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    padding: 0.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
}

.symbol:hover {
    transform: translateY(-5px);
    background-color: rgba(44, 62, 80, 0.05);
}

.symbol.heart {
    color: #EA7499;
}

.symbol.book {
    color: #639EE0;
}

.symbol.fire {
    color: #f39c12;
}

.symbol.heart.active {
    background-color: rgba(234, 116, 153, 0.1);
    transform: translateY(-5px) scale(1.1);
}

.symbol.book.active {
    background-color: rgba(99, 158, 224, 0.1);
    transform: translateY(-5px) scale(1.1);
}

.symbol.fire.active {
    background-color: rgba(243, 156, 18, 0.1);
    transform: translateY(-5px) scale(1.1);
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .symbols-container {
        gap: 2rem;
    }
    
    .symbol {
        font-size: 2rem;
        width: 3.5rem;
        height: 3.5rem;
    }
}

@media (max-width: 480px) {
    .quote {
        font-size: 1.3rem;
    }
    
    .symbols-container {
        gap: 1.5rem;
    }
    
    .symbol {
        font-size: 1.8rem;
        width: 3rem;
        height: 3rem;
    }
}
