@font-face {
    font-family: 'Overwatch';
    src: url('fonts/overwatch-regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Overwatch';
    src: url('fonts/overwatch-italic.woff') format('woff');
    font-weight: normal;
    font-style: italic;
}

body {
    font-family: 'Overwatch', 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background: #0a0e17;
    color: #fff;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
}

h1 {
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 3rem;
    margin-bottom: 40px;
    text-shadow: 0 0 10px rgba(255, 165, 0, 0.7);
    font-family: 'Overwatch', 'Arial', sans-serif;
}

.search-container {
    margin-bottom: 20px;
}

#searchInput {
    padding: 10px;
    font-size: 1rem;
    border: 2px solid rgba(255, 165, 0, 0.3);
    border-radius: 5px;
    background: #1a1f2b;
    color: #fff;
    width: 200px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    justify-content: center;
    padding: 0 20px;
}

.grid-item {
    width: 100%;
    height: 300px;
    max-width: 250px;
    max-height: 300px;
    background-size: cover;
    color: white;
    border-radius: 10px;
    cursor: pointer;
    user-select: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 165, 0, 0.3);
    position: relative;
    overflow: hidden;
    font-family: 'Overwatch', 'Arial', sans-serif;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    margin: 0 auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grid-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 50%, rgba(0,0,0,0.7) 100%);
    z-index: 1;
}

.grid-item span {
    position: relative;
    z-index: 2;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.7);
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.grid-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.6);
}

.grid-item:active {
    transform: scale(1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.message {
    padding: 15px;
    border-radius: 5px;
    max-width: 300px;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s;
    position: fixed;
    bottom: 10vh;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
}

.message.show {
    opacity: 1;
    z-index: 5;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    z-index: 5;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    z-index: 5;
}

footer{
     text-align: center;
}