/* Apply a blurred, semi-transparent background image */
body {
    background: url('../pictures/computer-background.png') no-repeat center center fixed; /* Your image URL */
    background-size: auto; /* Ensure the background covers the entire page */
    position: relative;
    z-index: 1;
}

/* Add a transparent overlay to make the background appear semi-transparent */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(1, 9, 41, 0.8); /* Dark overlay with slight transparency */
    z-index: -1;
    backdrop-filter: blur(10px); /* Apply the blur effect */
}

/* Center content vertically and horizontally */
.container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh; /* Full viewport height */
    position: relative;
    z-index: 2; /* Ensure content appears above the background */
}

.column {
    width: 100%;
    max-width: 400px; /* Limit width on smaller screens (mobile) */
    text-align: center;
}

h1 {
    font-style: italic; /* Make the header italic */
    width: 100%; /* Full width by default */
    margin-bottom: 20px; /* Add some space below the header */
    text-shadow: 0 0 8px #9ca3af, 0 0 12px #6b7280; /* Pale, somber glow */
    color: #c7d5ff; /* Maintain text color */
}

/* Styles for larger screens (like computers) */
@media (min-width: 769px) {
    .column {
        max-width: 600px; /* Make the container broader on larger screens */
    }

    h1 {
        max-width: 80%; /* Make the header wider */
        margin: 0 auto; /* Center the header text horizontally */
    }
}

.ominous-input {
    font-size: 1.2em;
    padding: 10px;
    border: none;
    border-bottom: 2px solid #c7d5ff;
    background: none;
    color: #b5c7ff;
    outline: none;
    width: 80%; /* Narrower input field */
    max-width: 300px; /* Set a maximum width for larger screens */
    text-align: center; /* Center text inside the input */
    text-shadow: 0 0 5px #5080ff, 0 0 10px #5080ff;
    transition: border-bottom 0.3s ease;
    margin: 0 auto; /* Center the input field */
}

/* Center the placeholder text */
.ominous-input::placeholder {
    text-align: center; /* Align the placeholder text to the center */
    color: #b5c7ff; /* Match the input text color */
}

.ominous-input:focus {
    border-bottom: 2px solid #ff4d4d;
}

button {
    background-color: #b2bbd4;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 1.1em;
    cursor: pointer;
    margin-top: 10px;
}

button:hover {
    background-color: #8a9ac5;
}

#message {
    margin-top: 10px;
    font-size: 1.2em;
    color: #b5c7ff; /* Initial color for "..." */
    visibility: visible; /* Ensure the message field is visible from the start */
}


/* SHAKE EFFECT */
.content-wrapper.shake {
    animation: shake 0.5s;
}

@keyframes shake {
    0% { transform: translate(1px, 1px) rotate(0deg); }
    10% { transform: translate(-1px, -2px) rotate(-1deg); }
    20% { transform: translate(-3px, 0px) rotate(1deg); }
    30% { transform: translate(3px, 2px) rotate(0deg); }
    40% { transform: translate(1px, -1px) rotate(1deg); }
    50% { transform: translate(-1px, 2px) rotate(-1deg); }
    60% { transform: translate(-3px, 1px) rotate(0deg); }
    70% { transform: translate(3px, 1px) rotate(-1deg); }
    80% { transform: translate(-1px, -1px) rotate(1deg); }
    90% { transform: translate(1px, 2px) rotate(0deg); }
    100% { transform: translate(1px, -2px) rotate(-1deg); }
}
