/* Genel Stil */
body {
    font-family: Arial, sans-serif;
    text-align: center;
    background-color: #222;
    color: white;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    transition: background-color 0.5s ease-in-out;
    flex-direction: column;
}

.container {
    width: 90%;
    max-width: 500px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ball-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

/* Magic 8 Ball */
.ball {
    width: 150px;
    height: 150px;
    background-color: black;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    font-weight: bold;
    color: white;
    border: 5px solid white;
    margin: 20px auto;
    position: relative;
    transition: transform 0.5s ease-in-out, box-shadow 0.5s ease-in-out;
}

/* Sallama ve Zıplama Animasyonu */
.shaking {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(10deg); }
    50% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
    100% { transform: rotate(0deg); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.bouncing {
    animation: bounce 0.5s ease-in-out;
}

/* Işık efekti */
.glow {
    box-shadow: 0px 0px 30px rgba(255, 255, 255, 0.9);
}

/* Cevap Animasyonu */
.answer-animate {
    animation: answer-shake 0.5s ease-in-out;
}

@keyframes answer-shake {
    0% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(-5px); opacity: 0.8; }
    100% { transform: translateY(0); opacity: 1; }
}

/* Butonlar */
button {
    background-color: #4CAF50;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin: 5px;
    box-shadow: 0px 0px 20px rgba(60, 65, 60, 0.8);
}

button:hover {
    background-color: #45a049;
    transform: scale(1.1);
}

/* Geçmiş Cevaplar */
#history {
    list-style: none;
    padding: 10px;
    text-align: center;
    width: 300px;
    max-width: 350px;
    height: 150px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#history li {
    margin: 5px;
    padding: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 5px;
    text-align: center;
    width: 100%;
    max-width: 250px;
}

h1 {
    text-shadow: 2px 2px 5px rgba(24, 9, 9, 0.5);
    color: white;
    cursor:default;
}
h2 {
    text-shadow: 2px 2px 5px rgba(24, 9, 9, 0.5);
    color: white;
}

/* Responsive Tasarım */
@media (max-width: 600px) {
    .ball {
        width: 120px;
        height: 120px;
        font-size: 14px;
    }
    button {
        font-size: 16px;
        padding: 10px 20px;
    }
    #history li {
        font-size: 14px;
    }
}
