@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Montserrat:wght@400;700;900&display=swap');

:root {
    --red: #e63946; --blue: #1d3557; --yellow: #ffb703; --white: #ffffff; --black: #1a1a1a;
}

body {
    background-color: var(--white);
    background-image: linear-gradient(var(--black) 1px, transparent 1px), linear-gradient(90deg, var(--black) 1px, transparent 1px);
    background-size: 50px 50px;
    color: var(--black); font-family: 'Montserrat', sans-serif;
    margin: 0; min-height: 100vh; display: flex; justify-content: center; align-items: center; padding: 20px; position: relative;
    overflow-x: hidden;
}

/* THE 3x3 LOGO ANCHOR */
.school-logo {
    position: fixed; bottom: 0; right: 0; width: 150px; height: 150px;
    z-index: 10; pointer-events: none; object-fit: contain; padding: 10px; box-sizing: border-box;
}

.container { width: 100%; max-width: 480px; text-align: center; position: relative; z-index: 5; }

h1 { font-family: 'Archivo Black', sans-serif; font-size: 2.8rem; display: flex; align-items: center; justify-content: center; margin: 0; text-transform: uppercase; letter-spacing: -1px; }
h1::before { content: ''; display: inline-block; width: 12px; height: 45px; background: var(--red); margin-right: 15px; }

.card { background: white; border: 6px solid var(--black); padding: 40px; box-shadow: 15px 15px 0px var(--blue); position: relative; text-align: left; margin-top: 20px; }

h2 { font-family: 'Archivo Black', sans-serif; font-size: 1.6rem; text-transform: uppercase; margin-bottom: 20px; }

input { width: 100%; background: white; border: 4px solid var(--black); padding: 18px; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 1rem; margin-bottom: 20px; outline: none; border-radius: 0; box-sizing: border-box; }

button { width: 100%; padding: 20px; background: var(--red); color: white; font-family: 'Archivo Black', sans-serif; font-size: 1.2rem; text-transform: uppercase; border: 4px solid var(--black); cursor: pointer; transition: 0.1s; border-radius: 0; }
button:hover { background: var(--blue); transform: translate(-3px, -3px); box-shadow: 6px 6px 0px var(--yellow); }

.search-suggestions { position: absolute; top: 100%; left: 0; right: 0; background: white; border: 4px solid var(--black); z-index: 100; box-shadow: 10px 10px 0px var(--blue); max-height: 300px; overflow-y: auto; }
.search-item { padding: 15px; border-bottom: 2px solid var(--black); cursor: pointer; }
.search-item:hover { background: var(--yellow); }

.highlight-red { color: var(--red); font-weight: 900; }
.highlight-code { background: var(--black); color: white; padding: 2px 4px; }

/* THE GALLERY CARD (For Results Page) */
.gallery-card {
    background: white; border: 4px solid var(--black); box-shadow: 8px 8px 0px var(--black);
    display: flex; flex-direction: column; padding: 12px; height: 100%; box-sizing: border-box;
}

.scrolling-text { white-space: nowrap; animation: scroll-left 40s linear infinite; padding-left: 100%; }
@keyframes scroll-left { 0% { transform: translateX(0); } 100% { transform: translateX(-200%); } }

.voted-btn { background: #ccc !important; color: #888 !important; pointer-events: none !important; box-shadow: none !important; }
.hidden { display: none; }

@media (max-width: 500px) { h1 { font-size: 2.2rem; } .school-logo { width: 100px; height: 100px; } .card { padding: 25px; } }
