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

body {
    font-family: 'Georgia', serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;   /* fallback для старых браузеров */
    min-height: 100dvh;  /* исправляет лишний вертикальный скролл на мобильных */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-repeat: no-repeat;
    background-size: cover;
    background-image: url(https://quotes.to.digital/static/bg/bg.jpg);
    background-position: center;
}

.container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    max-width: 800px;
    width: 100%;
    text-align: center;
    animation: fadeIn 1s ease-out;
    opacity: 0.95;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 0.95;
        transform: translateY(0);
    }
}

.header {
    margin-bottom: 40px;
}

.title {
    font-size: 2.5em;
    color: #2c3e50;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.subtitle {
    font-size: 0.9em;
    color: #5a6c7d;
    line-height: 1.2;
    max-width: 600px;
    margin: 0 auto;
    margin-top: 2em;
}

.quote-container {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 15px;
    padding: 30px;
    margin: 20px 0;
    margin-bottom: 0px;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.quote-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: shimmer 3s infinite;
}

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

.quote-mark {
    font-size: 4em;
    color: #667eea;
    opacity: 0.3;
    position: absolute;
    top: 10px;
    left: 20px;
    font-family: 'Times New Roman', serif;
}

.quote-text {
    font-size: 1.5em;
    color: #2c3e50;
    line-height: 1.8;
    margin: 20px 0;
    position: relative;
    z-index: 1;
    font-style: italic;
}

.new-quote-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1em;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.new-quote-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

.new-quote-btn:active {
    transform: translateY(0);
}

@media (max-width: 600px) {
    .container {
        padding: 20px;
    }

    .title {
        font-size: 2em;
    }

    .subtitle {
        font-size: 0.7em;
    }

    .quote-text {
        font-size: 1.2em;
        line-height: 1.3em;
    }
}
