/* body {
    font-family: Arial, sans-serif;
    background-color: #c0c0c0;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
} */

body {
    font-family: Arial, sans-serif;
    background-color: #c0c0c0;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
}



header {
    background-color: #004085;
    color: white;
    padding: 10px;
    width: 100%;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* --- tighter header --- */
header{
    padding: 4px 10px;        /* was 10px top/bottom → now 4px */
    display:flex;             /* optional: keeps logo + text on one line */
    align-items:center;       /* vertically centres contents */
    justify-content:center;   /* centres horizontally */
  }
  
  header h1{
    margin:0;                 /* kill the default 0.67em margins */
    font-size:1.5rem;         /* tweak to taste – default is 2rem */
    line-height:1.2;          /* keeps text compact */
  }

main {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 400px;
    text-align: center;
}

form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

label {
    font-weight: bold;
    text-align: left;
}

input[type="text"], input[type="file"] {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
}

button {
    background-color: #bc72ea;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
}

button:hover {
    background-color: #218838;
}

#img-preview {
    margin-top: 10px;
    max-width: 100px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.logo{
    width:180px;    /* or whatever size feels right */
    height:auto;    /* preserve aspect-ratio */
    max-width:30vw; /* optional safety cap on very small screens */
    margin: 5px auto; 
    display: block
}


/* Message Banner Styles */
.message-banner {
    position: fixed;
    top: 10px;
    left: 50%;
    width: 500px;
    text-align: center;
    transform: translateX(-50%);
    padding: 10px 10px;
    font-size: 16px;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: none;
    opacity: 0;
    transition: opacity 3s;
    z-index: 1000;
}

/* Success Message */
.message-banner.success {
    background-color: #28a745;
    color: white;
}

/* Error Message */
.message-banner.error {
    background-color: #dc3545;
    color: white;
}

/* Info Message */
.message-banner.info {
    background-color: #17a2b8;
    color: white;
}

footer {
    text-align: center;
    font-size: 0.8em;
    color: #777;
    margin-top: 2em;
    padding: 1em 0;
    border-top: 1px solid #ccc;
}

@media (max-width:600px){
    header h1{font-size:1.25rem;}
  }