* {
    outline: none;
}

html,
body {
    margin: 0;
    padding: 0;
    background: whitesmoke;
    background-size: cover;
    color: #383737;
    font-family: "Open Sans";
}

h1 {
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 0;
}

p.counter {
    text-align: center;
    font-weight: 600;
}

.search-wrapper {
    height: 60%;
    width: 90%;
    max-width: 600px;
    margin: auto;
    position: absolute;
    left: 50%;
    transform: translate(-50%);

    z-index: 999;
}

.search {
    display: flex;
    gap: 0;
    background: white;
    font-size: 15px;
    padding: .4rem;
    align-items: center;
    box-sizing: border-box;
    padding-left: 1rem;
    border-radius: 4px;
    border: 2px solid transparent;

    transition: .7s border ease;
}

.search-box {
    flex: 1;
}

input {
    border: 2px solid transparent;
    background: transparent;

    box-sizing: border-box;
    padding-left: 1rem;
    height: 25px;

    transition: .2s color ease;
}

.content {
    overflow-y: auto;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    padding: 1rem;
    gap: .5rem;
    background: white;
    color: black;
    border: 2px solid transparent;
    transition: .2s opacity ease;
    position: absolute;
    z-index: 100;
    transform: translateY(-3px);
    width: 100%;
    max-width: 800px;
    border-top: none;

    height: 100%;
    overflow-y: auto;
}

.invisible {
    opacity: 0;
    pointer-events: none;
}

.visible {
    opacity: 1;
    pointer-events: all;
}

.restaurant {
    display: flex;
    min-height: 70px;
    max-height: 70px;
    overflow: hidden;
    gap: 1rem;
    padding: .3rem;
    cursor: pointer;
}

.restaurant .image {
    height: 100%;
}

.restaurant img {
    height: 100%;
    width: 70px;
    object-fit: contain;
}

.restaurant .name {
    font-weight: 600;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.restaurant:hover {
    background: whitesmoke;
}

header {
    box-sizing: border-box;
    background: #383737;
    color: white;
}

header a {
    float: right;
    font-size: .95rem;

    color: white;
    text-decoration: none;
    padding: .5rem 1rem;
    border-radius: 4px;

    transition: .2s background ease, .2s color ease;
    border: 1px solid #494949;
}

header a:hover {
    background: white;
    color: #494949;
}

.row {
    width: 100%;
    margin: auto;

    display: flex;

    box-sizing: border-box;
    padding: 1rem 2rem;
}

.row>div {
    flex: 0.5;

    display: flex;
    align-items: center;
}

header img {
    border-radius: 100%;
    width: 4rem;
}

header .left {
    gap: 1rem;
}

header .right {
    justify-content: flex-end;
}

header .left p.name {
    font-weight: 800;
}

div.test {
    text-align: center;
    position: relative;
    border: 1px solid white;
    padding: 0 1.5rem;
    background: whitesmoke;
    color: black;
    width: 80%;
    max-width: 500px;
    z-index: 0;
    border-radius: 4px;
    margin: auto;
    margin-top: 10rem;
}

div.test::before {
    content: "Le Saviez-Vous ?";
    position: absolute;
    transform: translate(-50%, -100%);
    color: white;
    font-weight: 800;
    z-index: 0;
    font-size: 1.5rem;

    color: white;
    text-shadow:
        3px 0 4px #00000030,
        -3px 0 4px #00000030,
        0 3px 4px #00000030,
        0 -3px 4px #00000030;

    letter-spacing: .2em;
    text-transform: uppercase;
    text-wrap: nowrap;
    padding: .7rem;
    box-sizing: border-box;
    width: 100%;
}

div.test p {
    z-index: 0;
    position: relative;
}

span.reset {
    text-shadow: none;
}

.search:focus-within i,
#search-input:focus,
#search-input:focus::placeholder {
    color: #8ABD27;
}


.search:focus-within,
.search:focus-within +.content {
    border-color: #8ABD27;
}
