/* Genel Stil */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    transition: background-color 0.3s ease, color 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: background 0.5s ease, box-shadow 0.5s ease;
}

h1 {
    font-size: 2.5em;
    color: #333;
    transition: color 0.3s ease;
}

/* Sallanma Animasyonu */
@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(0); }
    75% { transform: translateX(5px); }
    100% { transform: translateX(0); }
}

button {
    padding: 12px 25px;
    background-color: #8eba00;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-size: 1.1em;
    margin: 10px 0;
    transition: background-color 0.3s ease, transform 0.2s ease;
    animation: shake 2s ease-in-out infinite; /* Sallanma animasyonu */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

button:hover {
    background-color: #6f7d00;
    transform: scale(1.05);
}

input, select, .radio-group {
    padding: 12px;
    margin: 10px 0;
    border-radius: 5px;
    border: 2px solid #ddd;
    width: 100%;
    transition: border 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

input:focus, select:focus {
    border-color: #8eba00;
}

#error-message {
    color: red;
    font-size: 0.9em;
}

#result {
    margin-top: 20px;
    font-size: 1.5em;
    font-weight: bold;
    color: #333;
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #8eba00;
    background-color: rgba(255, 255, 255, 0.8);
    opacity: 0;
    transform: scale(0.9);
    animation: fadeInResult 0.5s ease-out forwards, shake 1.5s infinite;
}

#result #copy-button {
    background-color: #444;
    color: white;
    margin-left: 15px;
}

#result #copy-button:hover {
    background-color: #555;
}

@keyframes fadeInResult {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Karanlık ve Aydınlık Tema */
.dark-mode {
    background-color: #121212;
    color: white;
}

.dark-mode .container {
    background: rgba(30, 30, 30, 0.9);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.dark-mode button {
    background-color: #6f7d00;
}

.dark-mode input, .dark-mode select {
    border-color: #444;
    background-color: #222;
    color: white;
}

.dark-mode #result {
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border-color: #444;
}

/* Aydınlık Tema */
.light-mode {
    background-color: #f0f0f0;
    color: black;
}

.light-mode .container {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.light-mode button {
    background-color: #8eba00;
}

.light-mode input, .light-mode select {
    border-color: #ddd;
    background-color: white;
    color: black;
}

/* Animasyonlar */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

#result {
    animation: fadeIn 1s ease-in-out;
}

/* Responsive Tasarım */
@media (max-width: 600px) {
    .container {
        padding: 20px;
    }

    button, input, select {
        width: 100%;
    }

    h1 {
        font-size: 1.8em;
    }
}
