body {
    font-family: "Noto Sans", sans-serif;
    background: #111;
    color: #eee;
    margin: 0;
    padding: 0;
}

header, footer {
    background: #1a1a1a;
    padding: 40px 20px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.5);
}



header img {
    max-width: 350px;
    height: auto;
}

a{
    color: #00c8ff;
    text-decoration: none;
}

.container {
    padding: 40px 20px;
}

#searchBar {
    width: 100%;
    max-width: 400px;
    padding: 10px;
    margin: 0px auto;
    display: block;
    border-radius: 8px;
    border: none;
    font-size: 16px;
}

/* Category header styles */
.category-header {
    margin-top: 60px;
    padding: 8px 16px;
    display: inline-block;
    font-weight: bold;
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 2px 2px 0 #000;
    border-radius: 4px;
}

.category-generic { background-color: #3c3c3c; border: 3px solid #555; }
.category-minecraft { background-color: #0a7d3e; border: 3px solid #055522; }
.category-brand { background-color: #1d3f7a; border: 3px solid #102155; }
.category-badge { background-color: #a13c00; border: 3px solid #7a2c00; }

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.card-body{
    max-width: 80%;
    margin: 10px auto;
}

.card {
    background: #1a1a1a;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    position: relative;
}

.card img {
    max-width: 100%;
    height: 64px;
    image-rendering: pixelated;
    margin-bottom: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    border-radius: 4px;
}

.card img:hover {
    transform: scale(1.2);
    box-shadow: 0 0 12px #00c8ff;
}

.url {
    font-size: 12px;
    background: #222;
    padding: 6px;
    border-radius: 6px;
    word-break: break-all;
    margin-bottom: 8px;
}

.button-row {
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown button {
    background: #00c8ff;
    border: none;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    font-size: 12px;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #222;
    min-width: 100px;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.5);
    z-index: 1;
    flex-direction: column;
}

.dropdown-content button {
    width: 100%;
    margin: 0;
    border-radius: 0 !important;
    padding: 6px;
}

.dropdown:hover .dropdown-content {
    display: flex;
}

.button-row button{
    background: #00c8ff;
    border: none;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    font-size: 12px;
}

.button-row button:hover {
    background: #53ccee;
}

.footer {
    margin-top: 80px;
    font-size: 14px;
    opacity: 0.6;
    text-align: center;
    padding-bottom: 40px;
}

#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: none;
    background: #00c8ff;
    color: #111;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

#backToTop:hover {
    background: #00a3cc;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #1a1a1a;
    padding: 20px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 0 10px #00c8ff;
}

.modal-content input {
    width: 100%;
    padding: 8px;
    margin: 12px 0;
    border-radius: 6px;
    border: none;
    font-size: 14px;
}

.modal-content img {
    max-width: 100%;
    height: 64px;
    image-rendering: pixelated;
    margin: 12px 0;
}

.modal-close {
    background: #ff5555;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 12px;
}