:root {
    --primary-color: #6B5B95;
    --secondary-color: #F8F9FA;
    --text-color: #333;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Raleway', sans-serif;
    background-image: url('background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.header {
    text-align: center;
    margin-bottom: 2rem;
}

.logo {
    width: 211px;
    height: auto;
    margin-bottom: 1rem;
}

h1 {
    color: var(--primary-color);
    margin: 0;
    font-size: 2.5rem;
}

h2 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin: 1rem 0;
}

.subtitle {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #51257f;
    font-style: italic;
    font-weight: bold;
    margin-top: 1rem;
}

.dream-input-container {
    background: rgba(255, 255, 255, 0.4);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 6px var(--shadow-color);
    margin: 0 auto;
    width: 80%;
    max-width: 800px;
}

.dream-input-container h3 {
    font-style: italic;
    opacity: 0.9;
    color: #666666; /* gri renk */
}

textarea {
    background: rgba(255, 255, 255, 0.8);
    width: calc((100% - 300px) * 1.8);
    height: 150px;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 10px;
    resize: none;
    margin: 1rem auto;
    font-size: 1rem;
    font-family: 'Raleway', sans-serif;
    display: block;
}

textarea::placeholder {
    font-style: italic;
    opacity: 0.6;
    color: #666666;
}

.button-container {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    transition: transform 0.2s, opacity 0.2s;
    opacity: 0.9;
}

.interpret-btn {
    background-color: var(--primary-color);
    color: white;
}

.voice-btn {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

button:hover {
    transform: translateY(-2px);
    opacity: 1;
}

.interpretation-container {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: 0 4px 6px var(--shadow-color);
}

.hidden {
    display: none;
}

/* Mobil cihazlar için responsive tasarım */
@media screen and (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .dream-input-container {
        width: 90%;
        padding: 1rem;
        margin: 0 auto;
    }

    textarea {
        width: 100%;
        height: 120px;
        margin: 0.5rem auto;
    }

    .button-container {
        flex-direction: column;
        gap: 0.5rem;
    }

    button {
        width: 100%;
        justify-content: center;
        opacity: 0.9;
    }

    h2 {
        font-size: 1rem;
    }

    .subtitle {
        font-family: 'Playfair Display', serif;
        font-size: 0.7rem;
        color: #666666;
        font-style: italic;
        margin-top: 1rem;
    }
}

/* Masaüstü görünümü için */
@media screen and (min-width: 769px) {
    .subtitle {
        font-family: 'Playfair Display', serif;
        font-size: 0.9rem;
        color: #666666;
        font-style: italic;
        margin-top: 1rem;
    }
}

/* Çok küçük ekranlar için ek düzenlemeler */
@media screen and (max-width: 480px) {
    .dream-input-container {
        width: 95%;
        padding: 0.8rem;
    }

    textarea {
        height: 100px;
        font-size: 0.9rem;
        width: 90%;
        opacity: 0.9;
    }
}

.loading-spinner {
    text-align: center;
    margin: 2rem 0;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--secondary-color);
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

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

#charCount {
    font-size: 0.7rem;
    font-style: italic;
    color: #666666;
    opacity: 0.7;
    text-align: right;
    margin-top: 0.5rem;
}

@keyframes slideUp {
    from {
        bottom: -100px;
    }
    to {
        bottom: 0;
    }
}

.legal-disclaimer {
    position: fixed;
    bottom: -100px; /* Start off-screen */
    left: 0;
    width: 100%;
    background-color: #f8f9fa;
    color: #666666;
    text-align: center;
    padding: 5px;
    font-size: 0.6rem;
    border-top: 1px solid #cccccc;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    opacity: 0.8;
}

.legal-disclaimer.show {
    animation: slideUp 2s ease-in-out forwards; /* Use keyframe animation */
}

.dismiss-btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 5px 10px;
    margin-top: 5px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 0.6rem;
    width: auto;
    display: inline-block;
}

.dismiss-btn:hover {
    background-color: #0056b3;
} 