* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Varela Round', sans-serif;
}

body {
    background: linear-gradient(135deg, #87CEEB, #E0F7FA);
    min-height: 100vh;
    direction: rtl;
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
}

/* הוספת השמש המונפשת */
body::before {
    content: '';
    position: fixed;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, #FFD700, #FFA500);
    border-radius: 50%;
    animation: sunRise 2s ease-out forwards, sunGlow 2s infinite alternate;
    box-shadow: 0 0 50px #FFD700;
    z-index: -1;
}

/* עננים מונפשים */
body::after {
    content: '';
    position: fixed;
    top: 20px;
    left: 20px;
    width: 100px;
    height: 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 
        120px 20px 0 -10px white,
        60px -10px 0 -5px white;
    animation: floatingClouds 20s linear infinite;
    z-index: -1;
}

.screen {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
    animation: fadeIn 1s ease-out;
    overflow-y: auto;
}

.hidden {
    display: none;
}

h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    animation: bounceInDown 1s ease-out;
}

h2 {
    font-size: 2rem;
    color: #444;
    margin: 20px 0;
}

input {
    font-size: 1.5rem;
    padding: 15px;
    border: 3px solid #7CB9E8;
    border-radius: 15px;
    width: 80%;
    max-width: 400px;
    margin: 20px 0;
    text-align: center;
    animation: slideInUp 0.5s ease-out;
    background-color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

input:focus {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(124, 185, 232, 0.4);
    outline: none;
}

.big-button {
    font-size: 1.5rem;
    padding: 15px 40px;
    background: linear-gradient(45deg, #4CAF50, #45B649);
    color: white;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 10px;
    animation: bounceIn 0.8s ease-out;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.big-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    background: linear-gradient(45deg, #45B649, #4CAF50);
}

.buttons-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.mood-button, .food-button, .drink-button, .activity-button, .feeling-button {
    background: linear-gradient(to bottom, #ffffff, #f8f8f8);
    border: 3px solid #7CB9E8;
    border-radius: 15px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
    animation: fadeInUp 0.5s ease-out;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.mood-button:hover, .food-button:hover, .drink-button:hover, .activity-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.mood-button img, .food-button img, .drink-button img, .activity-button img {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
}

.mood-button span, .food-button span, .drink-button span, .activity-button span {
    font-size: 1.2rem;
    color: #333;
}

.mood-button i, .food-button i, .drink-button i, .activity-button i {
    color: #4CAF50;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.mood-button:hover i, .food-button:hover i, .drink-button:hover i, .activity-button:hover i {
    transform: scale(1.2);
    color: #45B649;
}

.selected {
    background-color: #E5F3FF !important;
    border-color: #4CAF50 !important;
    animation: selectedButton 0.5s ease-in-out;
    transform: scale(1.1);
}

.selected i {
    color: #4CAF50;
    animation: iconPulse 0.5s ease-in-out;
}

/* אנימציות */
@keyframes sunRise {
    from {
        transform: translate(50%, 50%);
        opacity: 0;
    }
    to {
        transform: translate(0, 0);
        opacity: 1;
    }
}

@keyframes sunGlow {
    from {
        box-shadow: 0 0 30px #FFD700;
    }
    to {
        box-shadow: 0 0 60px #FFD700;
    }
}

@keyframes selectedButton {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1.1);
    }
}

/* אנימציות נוספות */
@keyframes floatingClouds {
    from {
        transform: translateX(100vw);
    }
    to {
        transform: translateX(-200px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes bounceInDown {
    0% {
        transform: translateY(-500px);
        opacity: 0;
    }
    60% {
        transform: translateY(30px);
        opacity: 0.8;
    }
    80% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
    70% {
        transform: scale(0.9);
        opacity: 0.9;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes iconPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1);
    }
}

.navigation-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.prev-button {
    background: linear-gradient(45deg, #FF9800, #F57C00);
}

.next-button {
    background: linear-gradient(45deg, #4CAF50, #45B649);
    font-size: 1.8rem;
    padding: 15px 45px;
    box-shadow: 0 4px 15px rgba(69, 182, 73, 0.3);
}

.prev-button:hover {
    background: linear-gradient(45deg, #F57C00, #FF9800);
}

.next-button:hover {
    background: linear-gradient(45deg, #45B649, #4CAF50);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(69, 182, 73, 0.4);
}

.finish-button {
    background: linear-gradient(45deg, #2196F3, #1976D2);
}

.finish-button:hover {
    background: linear-gradient(45deg, #1976D2, #2196F3);
}

.success-animation {
    position: relative;
    width: 100%;
    height: 150px;
    margin-bottom: 30px;
}

.star-icon, .party-icon {
    width: 80px;
    height: 80px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.star-icon {
    animation: rotateStar 3s infinite linear, glowStar 1.5s infinite alternate;
}

.party-icon {
    animation: bounceParty 2s infinite ease-in-out;
    transform: translate(-120%, -50%);
}

.success-title {
    color: #2E7D32;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.success-subtitle {
    color: #1565C0;
    margin-bottom: 40px;
}

.inline-icon {
    width: 40px;
    height: 40px;
    vertical-align: middle;
    margin-right: 10px;
    animation: bounce 1s infinite;
}

.user-name {
    display: block;
    color: #E65100;
    font-size: 3rem;
    margin: 15px 0;
    text-shadow: 2px 2px 4px rgba(230, 81, 0, 0.2);
}

.restart-button {
    background: linear-gradient(45deg, #9C27B0, #7B1FA2);
    font-size: 1.5rem;
    padding: 15px 40px;
    animation: pulse 2s infinite;
}

.restart-button:hover {
    background: linear-gradient(45deg, #7B1FA2, #9C27B0);
}

@keyframes rotateStar {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes glowStar {
    from {
        filter: drop-shadow(0 0 5px gold);
    }
    to {
        filter: drop-shadow(0 0 20px gold);
    }
}

@keyframes bounceParty {
    0%, 100% {
        transform: translate(-120%, -50%);
    }
    50% {
        transform: translate(-120%, -70%);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(156, 39, 176, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 8px 25px rgba(156, 39, 176, 0.5);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(156, 39, 176, 0.3);
    }
}

.warning-button {
    background: linear-gradient(to bottom, #ffffff, #fff3f3);
    border-color: #ff6b6b;
}

.warning-button:hover {
    background: linear-gradient(to bottom, #fff3f3, #ffe9e9);
    border-color: #ff5252;
}

.warning-button.selected {
    background-color: #fff3f3 !important;
    border-color: #ff5252 !important;
}

.warning-button img {
    filter: opacity(0.7);
}

/* סגנונות לכפתורי הצבעים */
.color-button {
    background: linear-gradient(to bottom, #ffffff, #f8f8f8);
    border: 3px solid;
    border-radius: 15px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    animation: fadeInUp 0.5s ease-out;
}

.color-button img {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.color-button span {
    font-size: 1.2rem;
    font-weight: bold;
}

/* צבעים ספציפיים */
.color-button.blue {
    border-color: #1976D2;
}
.color-button.blue span {
    color: #1976D2;
}

.color-button.white {
    border-color: #757575;
}
.color-button.white span {
    color: #757575;
}

.color-button.red {
    border-color: #D32F2F;
}
.color-button.red span {
    color: #D32F2F;
}

.color-button.green {
    border-color: #388E3C;
}
.color-button.green span {
    color: #388E3C;
}

.color-button.black {
    border-color: #212121;
}
.color-button.black span {
    color: #212121;
}

.color-button.gray {
    border-color: #616161;
}
.color-button.gray span {
    color: #616161;
}

.color-button.yellow {
    border-color: #FBC02D;
}
.color-button.yellow span {
    color: #FBC02D;
}

/* אפקטים בהובר ובחירה */
.color-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.color-button.selected {
    transform: scale(1.1);
}

.color-button.blue.selected {
    background-color: #E3F2FD !important;
}
.color-button.white.selected {
    background-color: #FAFAFA !important;
}
.color-button.red.selected {
    background-color: #FFEBEE !important;
}
.color-button.green.selected {
    background-color: #E8F5E9 !important;
}
.color-button.black.selected {
    background-color: #EEEEEE !important;
}
.color-button.gray.selected {
    background-color: #F5F5F5 !important;
}
.color-button.yellow.selected {
    background-color: #FFF8E1 !important;
}

/* צביעת האייקונים לפי הצבע */
.color-button.blue img {
    filter: invert(31%) sepia(93%) saturate(1000%) hue-rotate(195deg) brightness(97%) contrast(97%);
}

.color-button.white img {
    filter: invert(99%) sepia(0%) saturate(0%) hue-rotate(87deg) brightness(119%) contrast(100%);
}

.color-button.red img {
    filter: invert(29%) sepia(94%) saturate(2779%) hue-rotate(343deg) brightness(91%) contrast(91%);
}

.color-button.green img {
    filter: invert(42%) sepia(96%) saturate(349%) hue-rotate(89deg) brightness(94%) contrast(89%);
}

.color-button.black img {
    filter: brightness(0%);
}

.color-button.gray img {
    filter: invert(38%) sepia(0%) saturate(1%) hue-rotate(231deg) brightness(95%) contrast(84%);
}

.color-button.yellow img {
    filter: invert(72%) sepia(95%) saturate(426%) hue-rotate(359deg) brightness(103%) contrast(94%);
}

/* הוספת אפקט הובר לאייקונים */
.color-button:hover img {
    transform: scale(1.1);
}

/* סגנונות לשדה הטקסט */
.wish-container {
    width: 90%;
    max-width: 600px;
    margin: 20px auto;
    position: relative;
}

.wish-input {
    width: 100%;
    min-height: 150px;
    padding: 20px;
    font-size: 1.3rem;
    border: 3px solid #7CB9E8;
    border-radius: 15px;
    background-color: rgba(255, 255, 255, 0.95);
    resize: vertical;
    transition: all 0.3s ease;
    font-family: 'Varela Round', sans-serif;
    direction: rtl;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.wish-input:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.2);
    transform: translateY(-3px);
}

.wish-input::placeholder {
    color: #999;
    opacity: 0;
    animation: placeholderFadeIn 0.5s ease forwards 0.5s;
}

/* אנימציית הקלדה */
.typing-effect {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 3px;
    height: 20px;
    background-color: #4CAF50;
    animation: typing 1s infinite;
    opacity: 0;
}

.wish-input:focus + .typing-effect {
    opacity: 1;
}

@keyframes typing {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

@keyframes placeholderFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* אנימציה לשדה הטקסט בכניסה */
.wish-container {
    animation: slideInUp 0.5s ease-out;
}

/* סגנונות למיכל האותיות */
.letters-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin: 20px auto;
    max-width: 1300px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.letter {
    width: 100px;
    height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #4CAF50, #45B649);
    border-radius: 15px;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: all 0.3s ease;
    animation: fadeIn 0.5s ease-out;
    padding: 10px;
    position: relative;
    margin: 0;
}

.letter * {
    pointer-events: none;
}

.letter.dragging {
    opacity: 0.6;
    cursor: grabbing;
}

.name-container.drag-over {
    background: rgba(124, 185, 232, 0.1);
    border-style: solid;
}

.letter img, .letter span {
    pointer-events: none;
}

.letter img {
    width: 50px;
    height: 50px;
    transition: all 0.3s ease;
}

.letter span {
    font-size: 2rem;
    color: white;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin-top: 5px;
}

.letter:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.letter:hover img {
    transform: scale(1.2);
}

/* עיצוב האותיות בשדה השם */
.name-letter {
    width: 60px !important;  /* גודל קטן יותר */
    height: 60px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2196F3, #1976D2) !important;
    border-radius: 12px;
    cursor: pointer;
    padding: 5px;
    margin: 0;
    transition: all 0.3s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.name-letter span {
    font-size: 2.5rem;  /* גודל גדול יותר לאות */
    color: white;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin: 0;
}

.name-letter:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(33, 150, 243, 0.3);
}

.name-container {
    min-height: 90px;  /* הקטנת הגובה המינימלי */
    min-width: 1000px;
    max-width: 90%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;  /* רווח קטן יותר בין האותיות */
    padding: 15px;
    background: rgba(255, 255, 255, 0.95);
    border: 3px dashed #7CB9E8;
    border-radius: 15px;
    transition: all 0.3s ease;
    flex-wrap: wrap;
    margin: 0 auto;
}

/* הסרת סגנונות מיותרים */
.name-container .letter img {
    display: none;
}

.name-builder {
    display: flex;
    align-items: center;
    gap: 10px;
}


.clear-button {
    width: 40px;
    height: 40px;
    border: none;
    background: none;
    cursor: pointer;
    padding: 5px;
    transition: all 0.3s ease;
}

.clear-button img {
    width: 100%;
    height: 100%;
    transition: all 0.3s ease;
}

.clear-button:hover img {
    transform: scale(1.2) rotate(15deg);
}

@keyframes dropIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.food-section {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.food-section h2 {
    color: #2196F3;
    margin: 30px 0 20px;
    font-size: 1.8rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    animation: slideInRight 0.5s ease-out;
}

/* עדכון גודל הכפתורים */
.food-section .color-button {
    min-width: 100px;
    margin: 10px;
}

@keyframes slideInRight {
    from {
        transform: translateX(50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* סגנונות להודעת שגיאה */
.error-message {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease-out;
}

.error-message.show {
    display: flex;
}

.error-content {
    background: white;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    max-width: 90%;
    width: 400px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    animation: slideInDown 0.4s ease-out;
}

.error-content img {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    animation: shake 0.5s ease-in-out;
}

.error-content p {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 25px;
    line-height: 1.4;
}

.error-content button {
    background: linear-gradient(45deg, #FF5722, #F4511E);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.error-content button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(244, 81, 30, 0.3);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

@keyframes slideInDown {
    from {
        transform: translateY(-100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}


.feeling-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(33, 150, 243, 0.3);
}

.feeling-button img {
    width:60px;
    height: 60px;
    margin-bottom: 10px;
}

.feeling-button span {
    font-size: 1.1rem;
    color: #333;
}

.feeling-button.selected {
    background: #E3F2FD;
    border-color: #1976D2;
}

.clothes-section {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.clothes-section h2 {
    color: #2196F3;
    margin: 30px 0 20px;
    font-size: 1.8rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    animation: slideInRight 0.5s ease-out;
}

/* עדכון גודל הכפתורים */
.clothes-section .color-button {
    min-width: 100px;
    margin: 10px;
}

.day-display {
    margin: 10px 0 30px;
    padding: 15px 30px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.day-display h3 {
    color: #2196F3;
    font-size: 1.8rem;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

#weekDay {
    color: #E65100;
    font-weight: bold;
}

.summary-container {
    background: rgba(255, 255, 255, 0.95);
    padding: 25px;
    border-radius: 20px;
    margin: 30px auto;
    max-width: 800px;
    width: 90%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.summary-container h3 {
    color: #2196F3;
    font-size: 1.6rem;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.summary-items {
    text-align: right;
    font-size: 1.2rem;
    line-height: 1.8;
}

.summary-items p {
    margin: 10px 0;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.summary-items span {
    color: #E65100;
    font-weight: bold;
}

/* הוספת אפקט לחיצה */
.letter:active, .name-letter:active {
    transform: scale(0.95);
    opacity: 0.8;
} 