/* Google Fonts - cute defaults and calligraphic for "Who am I" */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Calligraffitti&display=swap'); /* For el yazısı başlık */

body {
    margin: 0;
    padding: 0;
    font-family: 'Fredoka', sans-serif;
    background-color: #f3e8ff; /* Light lavender background */
    color: #4c1d95; /* Deep purple text from design */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    text-align: center;
}

.screen-container {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(109, 40, 217, 0.15);
    max-width: 600px;
    width: 90%;
    position: relative; /* Position decorations relative to this */
}

.game-title {
    font-size: 3rem;
    color: #7c3aed; /* Bright purple */
    margin-bottom: 10px;
    /* GRAPHIC DESIGNER NOTE: Can swap h1 for image */
}

.subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #6b7280;
}

.button-group {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* Updated Cute Buttons based on Image 0 */
.cute-btn {
    border: none;
    padding: 15px 30px;
    font-size: 1.2rem;
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
    text-decoration: none;
    display: inline-block;
}

/* Primary "GO!" button from design */
#go-btn.cute-btn {
    background-color: #7c3aed;
    color: white;
}

#go-btn.cute-btn:hover {
    background-color: #6d28d9;
    transform: translateY(-3px);
}

/* Secondary "How To Play?" button from design */
.cute-btn.secondary {
    background-color: #ddd6fe;
    color: #5b21b6;
    border: 2px solid #ddd6fe;
}

.cute-btn.secondary:hover {
    background-color: #c4b5fd;
    border-color: #c4b5fd;
}

.instructions-box {
    background-color: #faf5ff;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 30px;
    text-align: left;
    border: 2px dashed #c4b5fd;
}

.hidden {
    display: none !important;
}

/* Single Card Layout with decorations from design */
.card-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    position: relative; /* Position decorations relative to card */
}

/* Card main flower bunch from design */
.card-decorations {
    position: absolute;
    top: -15px; /* Pull it slightly above card border */
    left: 20px;
    width: 80px;
    height: 80px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><g fill="%23a78bfa"><path d="M50 0 C60 10, 60 20, 50 30 C40 20, 40 10, 50 0 M50 100 C40 90, 40 80, 50 70 C60 80, 60 90, 50 100 M0 50 C10 40, 20 40, 30 50 C20 60, 10 60, 0 50 M100 50 C90 60, 80 60, 70 50 C80 40, 90 40, 100 50"/></g></svg>'); /* Example flower shape */
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 10; /* Above card front */
}

.next-btn {
    background-color: #10b981;
    color: white;
    margin-top: 10px;
}

.next-btn:hover {
    background-color: #059669;
}

/* THE FLIP ANIMATION MASK */
.card {
    background-color: transparent;
    width: 250px;
    height: 350px;
    perspective: 1000px;
    cursor: pointer;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-radius: 20px; /* Softer corners from design */
}

.card.is-flipped .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}


/* Önceki .card-front kodunu bununla değiştirin: */
.card-front {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    background-color: transparent; /* Arka planı şeffaf yaptık */
    border: none; /* Çerçeveyi kaldırdık çünkü resimde var */
    padding: 0; /* Boşlukları sıfırladık */
}

/* Karta tam oturan resim için yeni kod: */
.full-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Resmi karta tam oturtur */
    border-radius: 20px; /* Köşeleri yuvarlatır */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Resme hafif bir gölge verir */
}
.card-back {
    background-color: #faf5ff;
    color: #5b21b6;
    transform: rotateY(180deg);
    border: 3px solid #8b5cf6;
}

.scientist-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
    border: 3px solid #8b5cf6;
}

.riddle-text {
    font-size: 1.1rem;
    line-height: 1.4;
    color: #4c1d95; /* Purple text from design */
    margin-bottom: 20px; /* Space for script title */
    /* El yazısı gibi görünmesi için tasarımcının fontu buraya gelecek */
}

/* Script Title "Who am I?" styling */
.who-am-i {
    font-family: 'Calligraffitti', cursive;
    font-size: 1.8rem;
    color: #4c1d95;
    position: relative;
    margin-bottom: 25px; /* Space for flower row below */
}

/* Add small flower row below title with pseudo-element */
.who-am-i::after {
    content: '❀❀❀❀❀❀';
    display: block;
    font-family: sans-serif; /* For Unicode flower */
    font-size: 0.8rem;
    color: #a78bfa;
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

.hint {
    margin-top: 15px;
    font-size: 0.8rem;
    color: #a78bfa;
    text-transform: uppercase;
}

.info-link {
    font-size: 0.9rem;
    color: #7c3aed;
    text-decoration: underline;
    margin-top: 5px;
}

/* Language Toggle Button */
.language-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: #ddd6fe;
    color: #5b21b6;
    padding: 8px 12px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background-color 0.2s, transform 0.2s;
    z-index: 100;
}

.language-btn:hover {
    background-color: #c4b5fd;
    transform: translateY(-2px);
}

/* End Screen Typography */
.quote {
    font-size: 1.8rem;
    color: #7c3aed;
    font-style: italic;
    margin: 20px 0;
}

.iwd-message {
    font-size: 1.5rem;
    color: #10b981;
    margin-bottom: 30px;
}
/* Ana ekran PNG başlık ayarı */
.title-img {
    max-width: 100%;
    height: auto;
    margin-bottom: 0px; /* Boşluğu tamamen sıfırladık. Hala fazlaysa burayı -15px yapabilirsiniz */
    display: block;
    margin-left: auto;
    margin-right: auto;
}