:root {
    color-scheme: light dark;
}

body,
html {
    width: 100%;
    height: 100%;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: "Liberation Sans", "Open Sans", FreeSans, Arial,sans-serif;

    margin: 0;
}

#title,
.content {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#title {
    /* Remove hyperlink style */
    text-decoration: none;
    color: var(--text-color);
}

#title>.logo {
    width: 100%;
    height: 9em;
    background-repeat: no-repeat;
    background-position: center;
}

.content {
    padding-top: 8em;
    display: flex;
    gap: 3em;
}

#searchBar {
    position: relative;
    width: 40em;
    height: 3em;
    max-width: 80%;
    display: flex;
    background-color: var(--input-bg-color);
}
/* light-dark() doesn't work with some proprieties */
/* @media (prefers-color-scheme: light) {

} */
@media (prefers-color-scheme: dark) {
    #cursor {
        filter: invert(1);
    }
}
#search {
    width: 100%;
    margin-left: 1em;
    background: none;
    border: none;
    outline: none;
}
#searchBar>#searchIcon {
    width: 1.4em;
    margin: 0 .6em;
    user-select: none;
    pointer-events: none;
}


.creation {
    display: none;
    margin-top: 4em;
    width: 100%;
    align-items: center;
    flex-direction: column;
    gap: 1em;
}
.creation.show {
    display: flex;
}
.creation.show #copy {
    animation: tilt-shaking .2s 3;
}
@keyframes tilt-shaking {
    0% {transform: rotate(0deg);}
    25% {transform: rotate(6deg);}
    50% {transform: rotate(0deg);}
    75% {transform: rotate(-6deg);}
    100% {transform: rotate(0deg);}
}
#postCreation {
    display: none;
}
#postCreation.show {
    display: block;
}
#engines {
    display: flex;
    gap: 1em;
}
#engines>button {
    display: flex;
    gap: .6em;
    align-items: center;
}
#engines img {
    width: 1em;
    height: 1em;
}

#url {
    width: 32em;
}

#cursor {
    position: absolute;
    left: -1.5em;
    top: -1.5em;
    height: 1.5em;
    user-select: none;
    pointer-events: none;
}
