* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: linear-gradient(rgba(154, 205, 102, 0.8), rgba(1, 117, 192, 0.5)), url('img/bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.container {
    text-align: center;
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px;
    margin: 1rem;
}

.logo {
    width: 180px;
    height: auto;
    margin-bottom: 2rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.error-code {
    font-size: 6rem;
    color: #04441f;
    margin-bottom: 1rem;
    animation: float 6s ease-in-out infinite;
}

.ghost {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 2rem auto;
}

.ghost-body {
    background-color: #AED6F1;
    border-radius: 50% 50% 0 0;
    width: 100%;
    height: 100%;
    position: relative;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    animation: float 6s ease-in-out infinite;
}

.ghost-eyes {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    display: flex;
    justify-content: space-between;
}

.eye {
    width: 12px;
    height: 12px;
    background-color: #2d3436;
    border-radius: 50%;
    animation: blink 3s linear infinite;
}

.ghost-shadow {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 12px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    animation: shadow 6s ease-in-out infinite;
}

.error-message {
    font-size: 1.8rem;
    color: #0175C0;
    margin-bottom: 1rem;
    word-wrap: break-word;
}

.error-description {
    color: #255946;
    margin-bottom: 2rem;
    font-size: 1rem;
    padding: 0 1rem;
}

.home-button {
    padding: 0.8rem 1.6rem;
    font-size: 1rem;
    background-color: #0175C0;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: auto;
    min-width: 200px;
    max-width: 100%;
}

.home-button:hover {
    background-color: #138bdb;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes shadow {
    0%, 100% {
        transform: translateX(-50%) scale(1);
    }
    50% {
        transform: translateX(-50%) scale(0.8);
    }
}

@keyframes blink {
    0%, 100% {
        transform: scale(1);
    }
    10%, 90% {
        transform: scale(1);
    }
    95% {
        transform: scale(0.1);
    }
}

/* Mobil cihazlar için medya sorguları */
@media screen and (max-width: 480px) {
    .container {
        padding: 1.5rem;
        margin: 0.5rem;
    }

    .logo {
        width: 140px;
        margin-bottom: 1.5rem;
    }

    .error-code {
        font-size: 4rem;
    }

    .error-message {
        font-size: 1.4rem;
    }

    .error-description {
        font-size: 0.9rem;
        padding: 0;
    }

    .home-button {
        padding: 0.7rem 1.4rem;
        min-width: 180px;
    }
}

/* iOS Safari için arka plan düzeltmesi */
@supports (-webkit-touch-callout: none) {
    body {
        background-attachment: scroll;
    }
}

/* Yüksek DPI ekranlar için optimizasyon */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .container {
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
    }
}

/* Dikey mod için özel ayarlar */
@media screen and (max-height: 600px) {
    .container {
        padding: 1rem;
    }

    .logo {
        width: 120px;
        margin-bottom: 1rem;
    }

    .error-code {
        font-size: 3.5rem;
        margin-bottom: 0.5rem;
    }

    .error-message {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }

    .error-description {
        margin-bottom: 1rem;
    }
}

/* Karanlık mod desteği */
@media (prefers-color-scheme: dark) {
    .container {
        background-color: rgba(255, 255, 255, 0.95);
    }
} 