html {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100%;
    background: whitesmoke;
    color: black;
    height: 100%;
}

.content {
    width: 90%;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    height: 90%;
    overflow-y: auto;

    box-sizing: border-box;
    padding: 4rem;
    padding-top: 1rem;

    gap: 1rem;

    border: 2px solid #eee;
    max-height: 800px;
    background: #f5f5f5;

    transition: .2s opacity ease;

    position: absolute;
    height: calc(100vh - 200px);
    top: 200px;

    z-index: 99;
}

.restaurant {
    width: 100%;
    background: white;
    border: 3px solid #eee;
    transition: .2s border;

    display: flex;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    transition: .2s transform ease;

    min-height: 90px;
    box-sizing: border-box;
    padding: .5rem 1rem;
}

* {
    outline: none;
}

.restaurant:hover {
    border: 3px solid var(--theme-primary-color, #189EDA);
    cursor: pointer;
    transform: scale(1.05);
}

.restaurant>div:nth-of-type(1) {
    background-size: cover;
    height: 100%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.restaurant>div:nth-of-type(2) {
    font-size: .8rem;
    text-align: left;
    font-weight: 800;
    padding: 3px 0;
    padding-left: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    font-size: 1.1rem;
}

.restaurant>div:nth-of-type(3) {
    flex-grow: 1;
    box-sizing: border-box;
    padding: 0 1rem;
    text-align: right;
    font-size: .8rem;
}

.restaurant>div:nth-of-type(3) p {
    margin-top: 0;
}

.restaurant img {
    max-height: 80px;
    max-width: 100%;
}

#change-restaurant {
    position: fixed;
    left: 0;
    top: 0;
    transform: translate(25px, 25px);
}

#change-restaurant a {}

#change-restaurant a i {
    margin-right: .5rem;
}

#change-restaurant a:hover {
    border-color: var(--theme-primary-color, #189EDA);
    color: var(--theme-primary-color, #189EDA);
}

.search-input {
    width: 75%;
    max-width: 400px;
    margin: 20px;
    box-sizing: border-box;
    border: 2px solid #F3F3F3;
    transition: .2s all;
    padding: 10px;
    margin-top: 10px;

    border-radius: 4px;
    height: 40px;
}

.back:hover {
    border: 2px solid var(--theme-primary-color, #189EDA);
    cursor: pointer;
}

.restaurant.disabled {
    transition: .2s filter ease;
    filter: brightness(.65);
    pointer-events: none;
}

.restaurant.selected {
    border: 2px solid var(--theme-primary-color, #189EDA);
}

#background-image {
    position: fixed;
    z-index: -1;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    transform: scale(1.1);
    filter: blur(var(--theme-blur-radius)) brightness(.8);
    width: 100%;
    height: 100%;

    object-fit: cover;
}

h1 {
    color: white;
    text-shadow:
        3px 0 4px #00000030,
        -3px 0 4px #00000030,
        0 3px 4px #00000030,
        0 -3px 4px #00000030;
    margin-top: 0;
}

span.reset {
    text-shadow: none;
}

div.header {
    background: var(--theme-primary-color, #189EDA);
    text-align: center;
    color: white;
    width: 100%;
    padding-bottom: 1rem;
}

.invisible {
    opacity: 0;
    pointer-events: none;
}

div.row {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: flex-end;
    box-sizing: border-box;
    padding-right: 2rem;
    padding-top: calc(1.4rem - 1px);
}

a.contact {
    color: white;
    text-decoration: none;
    padding: .375rem 1rem;
    border: 1px solid white;
    border-radius: 8px;
    font-weight: 700;

    transition: .2s all ease;
    font-size: 12px;
}

a.contact:hover {
    background: white;
    color: black;
}

div.tip {
    background: white;
    padding: .5rem 1rem;
    position: relative;
    margin-top: 8rem;
    text-align: center;
    border-radius: 4px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    max-width: 900px;
    width: 79%;
}

div.tip::before {
    content: "Le Saviez-Vous ?";
    position: absolute;
    top: 0;
    transform: translate(-50%, -100%);

    width: 100%;
    text-align: center;

    color: black;
    font-weight: 900;
    margin: 0;

    padding: 1rem 0;

    background: whitesmoke;
    border-radius: 4px;

    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.search-wrapper {
    display: flex;
    width: 60%;
    margin: auto;
    justify-content: center;
    align-items: center;
    height: 50px;

    margin-top: 1rem;
}

.search-input {
    margin: 0;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-left: none;
    height: 100%;
}

.search-wrapper:focus-within .icon,
#search-input:focus,
#search-input:focus::placeholder
{
    border-color: var(--theme-secondary-color);
    color: var(--theme-secondary-color);
}
.search-wrapper .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    color: black;
    height: 0;
    padding: 0 1rem;
    border: 2px solid #eee;
    border-right: none;
    border-radius: 4px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;

    height: 100%;
    box-sizing: border-box;
    transition: .2s all ease;

}

#popup-contact {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: #000000A0;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: .2s all ease;
}

#popup-contact .wrapper {
    width: 90%;
    max-width: 500px;
    background: white;
    color: black;
    box-sizing: border-box;
    padding: 1rem;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;

    position: relative;
    border-radius: 4px;
}

#popup-contact .wrapper p:first-of-type {
    margin-top: 0;
}

#popup-contact .close {
    position: absolute;
    right: 0;
    top: 0;
    color: black;
    margin: .5rem;
    padding: .5rem;
    width: 1.2rem;
    height: 1.2rem;
    font-size: 1.5rem;

    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;

    transition: .2s all ease;
}

#popup-contact .close:hover {
    background: var(--theme-primary-color);
    color: white;
}

.invisible {
    opacity: 0;
    pointer-events: none;
}

a.form-link {
    color: var(--theme-primary-color);
    font-weight: 800;
    text-decoration: none;
}

a.form-link:hover i::before,
a.form-link:hover{
    text-decoration: underline;
}

a.form-link:hover i::before {
    text-underline-offset: -0.05rem;
}