* {
    box-sizing: border-box;
}

html, body {
    padding: 0;
    margin: 0;
    background-color: rgb(54, 54, 54);
    width: 100%;
    min-height: 100%;
    color: white;
}

nav {
    position: sticky;
    height: 2rem;
    width: 100%;
    background-color: rgb(39, 39, 39);
    top: 0;
    z-index: 1;
}

#search {
    height: 100%;
    width: 100%;
    background-color: rgb(100, 100, 100);
    border: none;
    border-bottom: 1px solid black;
    color: white;
    font-size: 1.25em;
    padding-left: 1em;
    padding-right: 1em;
}

#schemlist {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    grid-auto-columns: 1fr 1fr 1fr 1fr 1fr;
    gap: 16px;
    grid-auto-rows: auto;
    padding: 20px;
    justify-content: center;
}

.schem {
    width: 200px;
    height: 200px;
    position: relative;
    border-radius: 8px;
    border: 2px solid gray;
    transform: translateZ(0) scale(100%);
    transition-duration: 0.2s;
    transition-delay: 0.5s;
    z-index: 0;
    cursor: pointer;
    background-color: #484848;
}

.schem:hover {
    transform: translateZ(1px) scale(150%);
    z-index: 100000;
    border: 2px solid yellow;
}

.schem:hover:active {
    border: 2px solid red;
}

.schem img {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    object-fit: cover;
    pointer-events: none;
}

.schem .name {
    position: absolute;
    left: 0;
    width: 100%;
    text-align: center;
    bottom: 0;
    color: white;
    text-shadow: 1px 1px 10px black;
}

#notification-bottom {
    position: fixed;
    pointer-events: none;
    opacity: 0;
    margin: 0 auto;
    background-color: #3ccc37;
    padding: 8px;
    border-radius: 8px;
    color: black;
    inset: auto 20% 8px 20%;
    transition-duration: 0.2s;
}

#notification-bottom.open {
    opacity: 1;
}

.hidden {
    display: none;
}