/* Base styles for body */
body {
    background: linear-gradient(135deg, #C8D9E6 30%, #2c3e50 100%);
    color: #2c3e50;
    font-family: 'Comic Neue', 'Comic Sans MS', cursive;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

/* Main container */
.container {
    background-color: #fdfdfd;
    border: 2px solid #2c3e50;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    max-width: 350px;
    width: 100%;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease-in-out;
    z-index: 1;
}

.container:hover {
    transform: translateY(-8px);
}

/* Buttons */
button {
    background-color: #ffffff;
    color: #2c3e50;
    border: 2px solid #2c3e50;
    padding: 0.8em 1.4em;
    margin-top: 1em;
    cursor: pointer;
    font-size: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

button:hover {
    background-color: #2c3e50;
    color: #ffffff;
    transform: scale(1.05);
}

/* Inputs */
input {
    background-color: #ffffff;
    color: #2c3e50;
    margin-top: 0.8em;
    padding: 0.6em;
    font-size: 1rem;
    border: 2px solid #2c3e50;
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

input:focus {
    border-color: #5f8fa1;
    box-shadow: 0 0 8px rgba(95, 143, 161, 0.6);
    outline: none;
}

/* Fade in animation */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Message box (no scroll) */
#messageBox {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-bottom: 20px;
}

#messageBox p {
    margin-bottom: 1px;
    font-size: 1rem;
    transition: transform 0.3s ease-out;
}

/* Input section */
#inputSection {
    display: none;
    margin-top: 20px;
    text-align: center;
    animation: slideUp 0.5s ease-out forwards;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive design */
@media screen and (max-width: 768px) {
    html {
        font-size: 90%;
    }

    .container {
        padding: 15px;
        max-width: 90%;
    }

    button {
        padding: 0.7em 1.2em;
        font-size: 0.95rem;
    }

    input {
        padding: 0.6em;
        font-size: 0.95rem;
    }

    #messageBox p {
        font-size: 0.95rem;
        margin-bottom: 6px;
    }
}

@media screen and (max-width: 480px) {
    html {
        font-size: 85%;
    }

    .container {
        padding: 12px;
        max-width: 100%;
    }

    button {
        padding: 0.6em 1em;
        font-size: 0.9rem;
    }

    input {
        padding: 0.5em;
        font-size: 0.9rem;
    }

    #messageBox p {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }
}

/* Mat Saleh font */
.mat-saleh {
    font-family: 'Playfair Display', serif;
}

/* Author footer */
.container::after {
    content: "by lunapuffin";
    display: block;
    text-align: center;
    margin-top: 20px;
    font-size: 0.9em;
    opacity: 0.5;
    font-style: italic;
    color: #2c3e50;
}
