/* GENERALS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* UTILITIES */
.flex-centered {
    display: flex;
    justify-content: center;
    align-items: center;
}

.enlight {
    background-color: yellow;
}

/* Page Loader */
#loader {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #aaa;
    color: #fff;
    font-size: 30px;
    font-weight: 700;
    text-align: center;
}

/* Main APP */
#vue {
    position: relative;
    min-height: 100vh;
}

#app {
    max-width: 1200px;
    padding: 0 30px;
    margin: 0 auto;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

#app .search-results {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

#app .search-results > div {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* APP options */
#app-options {
    background-color: #aaa;
    height: 100%;
    width: 100%;
    position: absolute;
    z-index: 3;
    visibility: hidden;
    opacity: 0;
    transition: .3s all;
}

#app-options .app-options-window {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1200px;
    padding: 20px;
    transform: translate(-50%, -50%);
    background-color: #fff;
    border: 2px solid #ddd;
    box-shadow: 0 0 10px #eee;
    border-radius: 20px;
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 4;
    visibility: hidden;
    opacity: 0;
    transition: .3s all;
}

#app-options .app-options-window i {
    position: absolute;
    top: -50px;
    right: 0;
    font-size: 2.5rem;
    cursor: pointer;
    transition: .3s all;
}

#app-options .app-options-window i:hover {
    color: #dc3545;
}

#app-options.active,
#app-options.active .app-options-window {
    visibility: visible;
    opacity: 1;
}

#app-options .app-options-window > div {
    width: 50%;
    padding: 10px;
    text-align: center;
}

#app-options-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 5rem;
    width: 5rem;
    background-color: #fff;
    border-radius: 10px 0 0 10px;
    border: 1px solid #bbb;
    box-shadow: 0 0 5px #ccc;
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    transition: .3s all;
    cursor: pointer;
    z-index: 2;
}

#app-options-icon i {
    font-size: 2.5rem;
}

#app-options-icon::before {
    content: 'Opzioni';
    position: absolute;
    top: 50%;
    left: -70%;
    transform: translate(-50%, -50%);
    text-transform: uppercase;
    color: #666;
    opacity: 0;
    visibility: hidden;
    transition: .3s all;
}

#app-options-icon:hover {
    border: 1px solid #4285f4;
    box-shadow: 0 0 8px #ACD2ED;
}

#app-options-icon:hover::before {
    opacity: 1;
    visibility: visible;
}

#app-options-icon:hover i {
    animation: rotating 3s linear infinite;
    color: #4285f4;
}

@keyframes rotating {
    0% {
        transform: rotate(0);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Search */
.search-box {
    position: relative;
    padding: 20px 0;
}

.search-box input {
    border-radius: 100rem;
    padding: .75rem 1.25rem;
}

.search-box i {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    cursor: pointer;
}


/* Results Box */
main.search-results h2 {
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
}

main.search-results h3 {
    font-size: 1.25rem;
}

.results > * {
    padding: 1rem;
}

.results-list {
    list-style: none;
    padding: 0;
}

.results-list li {
    margin-bottom: 20px;
}

/* Other results title  */
.title-container-other-results {
    position: relative;
}

.title-container-other-results > i {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    font-size: 1.5rem;
    cursor: pointer;
}

.title-container-other-results > i:hover {
    color: #dc3545;
}

.title-other-results {
    display: inline-block;
    padding: 10px 30px;
    background-color: #4285f4;
    border-radius: 100rem;
    color: #fff;
    transition: .3s all;
    cursor: pointer;
}

.title-other-results:hover {
    background-color: #0AD6FF;
}

.title-other-results.active {
    background-color: transparent;
    color: initial;
    cursor: initial;
    pointer-events: none;
}

/* Pages */
.pages {
    display: flex;
    justify-content: center;
    align-items: center;
}

.pages ul {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 0 25px;
    margin-bottom: 0;
}

.pages li {
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pages li .page {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    transition: .3s all;
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
}

.pages li .page.not-a-page {
    cursor: default;
    pointer-events: none;
}

.pages li .page:hover {
    background-color: #28a745;
    color: #fff;
}

.pages li .page.active {
    background-color: #4285f4;
    box-shadow: 0 0 5px #ccc;
    color: #fff;
    pointer-events: none;
}

.pages i {
    font-size: 30px;
    color: #4285f4;
    transition: .3s all;
    cursor: pointer;
}

.pages i:hover {
    color: #28a745;
}

.pages i.inactive {
    color: #ccc;
    cursor: not-allowed;
    pointer-events: none;
}

/* FOOTER */
header {
    padding: 20px 0 10px;
}

header img {
    max-width: 100%;
    padding: 10px;
}

footer {
    padding: 10px 0 20px;
    text-align: center;
}