@import url(fonts.min.css);

:root {
    --background: #0C0C0C;
    --primary: #CCFF00;
}

body {
    color: white;
    background: #0C0C0C;
    font-family: 'Poppins', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 900;
    text-transform: uppercase;
}

main h1 {
    color: white;
    font-size: 4.5rem;
    font-weight: 900;
    line-height: normal;
    text-transform: uppercase;
}

span.primary {
    color: var(--primary);
}

img#hero {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 8rem;
    cursor: pointer;
}

main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-top: 10rem;
}

button {
    border: none;
    border-radius: 6.25rem;
    background: var(--primary);
    color: #000;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    filter: drop-shadow(-2px 0 0 #829C19);

    display: flex;
    justify-content: center;
    align-items: center;

    width: 3rem;
    height: 3rem;

    transition: transform, filter;
    transition-duration: 200ms;
}

button:hover {
    filter: drop-shadow(-8px 0 0 #829C19);
    transform: translateX(4px);
}

#search-input {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 50%;
}

#search-input input {
    width: 100%;
    margin: 1rem 0;
    border: none;
    color: #000;
    font-size: 1rem;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    border-radius: 6.25rem;
    background: #D9D9D9;
    transition: filter 200ms;
    white-space: nowrap;
    text-overflow: ellipsis;
    padding: 1rem 4rem 1rem 1rem;
}

input:focus {
    outline: none;
    filter: drop-shadow(0 0 0.5rem var(--primary));
}

#search-input button {
    position: absolute;
    right: 0;
}

#error {
    color: red;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 1rem;
    font-style: italic;
}

#button-row {
    position: absolute;
    right: 1rem;
    top: 1rem;
}

#button-row img {
    aspect-ratio: 1;
    width: 5rem;
    cursor: pointer;
    transition: scale, opacity;
    transition-duration: .2s;
    opacity: .7;
}

#button-row img:hover {
    opacity: 1;
    scale: 1.1;
}

footer {
    position: absolute;
    opacity: .5;
    bottom: 0;
    left: 0;
    right: 0;
    font-weight: 600;
    transition: opacity;
    transition-duration: .2s;
    height: 4rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

footer:hover {
    opacity: 1;
}
footer a{
    color: unset;
    text-decoration: none;
    padding-inline: 5px;
}
a, footer:hover a {
    color: var(--primary);
    text-decoration: none;
}
footer a:hover{
    text-decoration: underline !important;
}
