/**** Reset ****/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
    border: none;
}

/**** Style général de la page ****/

body {
    width: 100%;
    min-height: 100vh;
    font-family: sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 5%;
    position: relative;
}

/**** Mode sombre ****/

body.dark {
    color: #eeeeee;
    background-color: #222222;
}

/**** Fin du mode sombre ****/

/**** Suite du  style général ****/

h1 {
    font-size: 28px;
    text-transform: uppercase;
    font-weight: bold;
    text-align: center;
    margin-bottom: 100px;
}

main {
    max-width: 850px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.theme-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: #eeeeee;
    color: #222222;
    cursor: pointer;
    position: absolute;
    top: 0;
    right: 0;
}

.theme-btn>ion-icon {
    height: 25px;
    width: 25px;
}

.search__bar {
    max-width: 650px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 12px;
    border: 1px solid #dfe1e5;
    transition: box-shadow 0.3s ease-out;
}

.search__bar:hover {
    box-shadow: 0 1px 6px rgba(32, 33, 36, .28);
}

.search {
    background-color: transparent;
    flex: 1;
    padding: 15px;
    font-size: 20px;
    color: #202124;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/**** Suite du mode sombre ****/

body.dark .search {
    color: #eeeeee;
}

body.dark .search__bar:hover {
    box-shadow: 0 1px 6px rgba(247, 247, 250, 0.712);
}

.search::placeholder {
    color: #57585a;
}

body.dark .search::placeholder {
    color: #aaa4a4;
}

/**** Fin du mode sombre ****/

/**** Suite du style général ****/
.submit {
    cursor: pointer;
    background-color: rgba(209, 205, 205, 0.2);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    margin-right: 15px;
}

.submit img {
    width: 25px;
}

.invisible {
    visibility: hidden;
}

.dnone {
    display: none;
}

/**** Responsive design ****/

@media screen and (max-width: 572px) {
    .submit {
        width: 20px;
        height: 20px;
        background-color: transparent;
    }

    .submit img {
        width: 20px;
    }
}