/* אנימציות */
@keyframes floatTitle {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes buttonFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes instructionFadeIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes titleGlow {
    0% {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    }

    50% {
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.8), 0 0 30px rgba(255, 165, 0, 0.6);
    }

    100% {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    }
}

/* סגנונות קיימים עם תוספות */
body {
    background-image: url("../images/background2.png");
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
    margin: 0;
    font-family: Arial, sans-serif;
    color: white;
    overflow: hidden; /* Prevent scrolling */
}

.container {
    margin-top: 50px;
    background: rgba(0, 0, 0, 0.6);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0px 0px 20px rgba(255, 255, 255, 0.3);
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden; /* Ensure no content overflows */
}

.welcome-title {
    font-size: 3em;
    margin-bottom: 10px;
    border-radius: 50% 50% 0 0;
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    animation: floatTitle 3s ease-in-out infinite, titleGlow 2s ease-in-out infinite;
    margin-top: 5%;
}

.title {
    font-size: 2.5em;
    margin-bottom: 20px;
    animation: titleGlow 2s ease-in-out infinite;
    animation-delay: 0.5s;
    margin-top: 0;
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.game-button {
    background: linear-gradient(45deg, peru, darkorange);
    color: white;
    font-size: 1.5em;
    padding: 15px 25px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40%;
    margin: 1% auto;
    opacity: 0;
    animation: buttonFadeIn 0.5s ease forwards;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.game-button:nth-child(1) {
    animation-delay: 0.3s;
}

.game-button:nth-child(2) {
    animation-delay: 0.5s;
}

.game-button:nth-child(3) {
    animation-delay: 0.7s;
}

.game-button:hover {
    transform: translateY(-5px) scale(1.05);
    background: linear-gradient(45deg, darkorange, #ff8c00);
    box-shadow: 0 8px 20px rgba(255, 165, 0, 0.4);
}

.btn_instruction {
    position: absolute;
    bottom: 70px;
    right: 40px;
    width: 200px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    animation: instructionFadeIn 0.5s ease forwards 1s;
}

.btn_instruction:hover {
    transform: scale(1.1) rotate(5deg);
    filter: brightness(1.2);
}

/* תאימות למובייל */
@media (max-width: 768px) {
    .welcome-title {
        font-size: 2em;
        padding: 20px;
    }

    .title {
        font-size: 1.8em;
    }

    .game-button {
        width: 80%;
        font-size: 1.2em;
    }

    .btn_instruction {
        width: 150px;
        bottom: 40px;
        left: 20px;
    }
}