* {

    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {


    --header-border: #d9d6fe;
    --text-dark: #2c3e50;
    --logo-color: #e9e7f9;


}

body {
    width: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
}

.main-header {
    width: 100%;
    padding: 1.5rem 2%;
    border: #5c9fe3 dotted 2px;
    border-bottom: 2px solid var(--header-border);
    background-size: 250px 40px;

    background-repeat: repeat;
    background-image: linear-gradient(135deg, rgba(158, 232, 250, 0.1) 15%, transparent 35%, transparent 50%, rgba(229, 199, 223, 0.1) 50%, rgba(225, 225, 229, 0.1) 75%, transparent 75%, transparent);
}

.logo {
    border: 3px solid var(--header-border);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--logo-color);
}

.logo:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);

    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}


.container {

    width: 90%;
    text-align: center;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.6s ease-out;
    margin-top: 0.5rem;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header {

    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    padding: 30px 20px;
    text-align: center;
    color: white;
}

.header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.header p {
    font-size: 1.2em;
    opacity: 0.9;
    text-align: center;
}

.name-input-section {
    padding: 30px 20px;
    background: #3950d4;
    text-align: center;
    border-bottom: 2px solid #e0e6ff;
}

.name-input-section h2 {
    color: #4a5568;
    margin-bottom: 20px;
    font-size: 1.4em;
}

.name-input {
    width: 100%;
    max-width: 300px;
    padding: 15px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 25px;
    font-size: 1.1em;
    outline: none;
    transition: all 0.3s ease;
    text-align: center;
}

.name-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 5px rgba(102, 126, 234, 0.1);
    transform: scale(1.03);
}

.content {
    width: 100%;
    position: center;
    padding-top: 3rem;
    padding: 30px 20px;
}

.question {

    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.question.visible {
    opacity: 1;
    transform: translateY(0);
}

.question.visible h2 {
    font-size: 1.5em;
    color: #2d3748;
    margin-bottom: 2rem;
}

.question-image {

    width: 100%;
    height: 200px;
    border-radius: 15px;
    object-fit: cover;
    margin-bottom: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.question-image:hover {
    transform: scale(1.02);
}

.question h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #2d4832;
    font-size: 1.3em;
}

.options-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 3rem;
}

.option {
    margin-bottom: 0.3rem;
    width: 100%;
    ;
    padding: 15px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
}

.option:hover {
    border-color: #667eea;
    background: #f7fafc;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.option.selected {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: scale(1.02);
}

.create-button {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #333;
    border: none;
    padding: 18px 40px;
    border-radius: 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    margin-top: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
    opacity: 0.5;
    pointer-events: none;
}

.create-button.enabled {
    opacity: 1;
    pointer-events: auto;
}

.create-button:hover.enabled {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
}

.story-result {
    margin-top: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #e8f5e8, #f0f8ff);
    border-radius: 15px;
    border-left: 5px solid #38a169;
    display: none;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.story-result h3 {
    color: #2d3748;
    margin-bottom: 15px;
    font-size: 1.4em;
}

.story-text {
    line-height: 1.6;
    color: #4a5568;
    font-size: 1.1em;
}

.hero-name {
    color: #667eea;
    font-weight: bold;
}

@media (max-width: 600px) {
    .options {
        grid-template-columns: 1fr;

    }

    .header h1 {
        font-size: 2em;
    }

    .container {
        text-align: center;
        max-width: 90%;

    }

    .options-container {
        grid-template-columns: 1fr;

    }
}


.question {
    display: block !important;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    margin-bottom: 40px;
    min-height: 200px;
}

.question.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}


.question h2 {
    font-size: 1.5em !important;
    color: #2d3748 !important;
    margin-bottom: 2rem !important;
    text-align: center !important;
    display: block !important;
    visibility: visible !important;
}


.options-container {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 15px !important;
    margin-bottom: 3rem !important;
    visibility: visible !important;
}

.option {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 60px !important;
    padding: 15px 20px !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 12px !important;
    background: white !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-align: center !important;
    font-weight: 500 !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.option:hover {
    border-color: #667eea !important;
    background: #f7fafc !important;
    transform: translateY(-2px) !important;
}

.option.selected {
    background: #667eea !important;
    color: white !important;
    border-color: #667eea !important;
}


.name-input {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    max-width: 300px !important;
    margin: 0 auto !important;
}

/* Loading animasyonu */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

/* Mobil uyumluluk */
@media (max-width: 600px) {
    .options-container {
        grid-template-columns: 1fr !important;
    }

    .question h2 {
        font-size: 1.3em !important;
    }
}