* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Roboto', 'Arial', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', 'Montserrat', sans-serif;
}


body {
    background-color: #f2f2f2;
}

nav {
    box-shadow: rgba(17, 17, 26, 0.05) 0px 1px 0px, rgba(17, 17, 26, 0.1) 0px 0px 8px;
    width: 85%;
    margin: auto;
    background-color: #fff;
}

nav>div:nth-child(1) {
    padding: 0px 20px;
}

nav>div:nth-child(1)>div {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav>div:nth-child(1)>div>div {
    display: flex;
    justify-content: space-around;
    align-items: center;
    color: goldenrod;
    text-shadow: 1px 1px black;
}

nav>div:nth-child(2) {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

nav>div:nth-child(2)>input {
    width: 80%;
    padding: 25px;
    margin: auto;
    border: 2px solid silver;
    outline: none;
    border-radius: 50px;
    font-size: 20px;
}

nav>div:nth-child(2)>input::placeholder {
    font-size: 20px;
}

.logo {
    font-family: 'Roboto', 'Arial', sans-serif;
    font-weight: 800;
    font-size: 50px;
    color: red;
    text-decoration: underline;
    text-shadow: 2px 2px black;
    width: 18%;
    cursor: pointer;
}

.slogan {
    color: orange;
    text-shadow: 1px 1px black;
}

nav>div:nth-child(3) {
    display: flex;
    background-color: bisque;
    align-items: center;
    justify-content: space-between;
}

nav>div:nth-child(3)>div:first-child {
    padding: 10px;
}

nav>div:nth-child(3)>div:first-child>p {
    color: goldenrod;
    font-size: 20px;
    text-shadow: 1px 1px black;
}

nav>div:nth-child(3)>div:first-child:hover {
    background-color: #fff;
    cursor: pointer;
}

nav>div:nth-child(3)>div:last-child {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    width: 400px;
}

nav>div:nth-child(3)>div:last-child>div {
    padding: 10px;
}

nav>div:nth-child(3)>div:last-child>div:hover {
    background-color: #fff;
    cursor: pointer;
}

nav>div:nth-child(3)>div:last-child>div>p {
    color: goldenrod;
    font-size: 20px;
    text-shadow: 1px 1px black;
}

nav>div:nth-child(4) {
    padding: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

nav>div:nth-child(4)>div {
    background-color: crimson;
    padding: 8px;
    color: white;
    border-radius: 10px;
    font-size: small;
    box-shadow: 2px 2px black;
    cursor: pointer;
}

#container {
    width: 85%;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: auto;
    gap: 15px;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 2px 0px;
    background-color: #fff;
    padding: 20px;
}

#container>div>div:nth-child(1) {
    border: 5px solid rgb(255, 145, 0);
    width: 100%;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

#container>div>div:nth-child(1)>img {
    width: 100%;
}

#container>div>div:nth-child(2) {
    display: grid;
    padding: 15px;
    grid-template-columns: repeat(1, 1fr);
    grid-template-rows: auto;
    justify-content: center;
    align-items: center;
    text-align: center;
}

#container>div>div:nth-child(2)>p {
    cursor: pointer;
}

.loading {
    justify-content: center;
    align-items: center;
    background-color: #fff;
    width: 85%;
    margin: auto;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 2px 0px;
    text-align: center;
}

.loading>p {
    width: 60%;
    margin: auto;
    display: flex;
    text-align: center;
    background-color: #fff;
}

.pagination {
    width: 85%;
    margin: auto;
    background-color: #fff;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 2px 0px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    padding: 30px;
}

.pagination>button {
    padding: 2px 5px;
    border-radius: 3px;
    background-color: burlywood;
    color: chocolate;
    text-shadow: 1px 1px black;
    cursor: pointer;
}

.pagination>button:hover {
    color: white;
    background-color: goldenrod;
}

.pagination>div {
    box-shadow: rgba(50, 50, 93, 0.25) 0px 30px 60px -12px inset, rgba(0, 0, 0, 0.3) 0px 18px 36px -18px inset;
    padding: 3px 15px;
    color: white;
    text-shadow: 1px 1px black;
    font-weight: 500;
    background-color: goldenrod;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    margin-left: 10px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked+.slider {
    background-color: #2196F3;
}

input:focus+.slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked+.slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}


.dark-mode {
    background-color: #000000;
    color: #ffffff;
}

.dark-mode>nav {
    background-color: #272727;
}

.dark-mode>#container {
    background-color: #272727;
}

.dark-mode>.pagination {
    background-color: #272727;
    color: #fff;
}

.dark-mode>nav>div:nth-child(4)>div {
    box-shadow: 2px 2px silver;
}

.dark-mode>nav>#section-2 {
    background-color: gray;
    color: #fff;
}

.dark-mode>nav>#section-2>div>p {
    color: turquoise;
    text-shadow: 1px 1px black;
}

.dark-mode>nav>#section-2>div>div>p {
    color: turquoise;
    text-shadow: 1px 1px black;
}

.dark-mode>nav>div>#searchInput {
    background-color: black;
    color: white;
}

.dark-mode>.pagination>button {
    background-color: black;
    color: #fff;
    box-shadow: 1px 1px silver;
}

.dark-mode>.pagination>div {
    background-color: #000000;
    color: white;
    text-shadow: 1px 1px silver;
}

.dark-mode>nav>div>div>.logo {
    text-shadow: 2px 2px silver;
}

.dark-mode>.loading>p {
    color: #fff;
    background-color: gray;
}

.dark-mode>.loading {
    background-color: gray;
}

.dark-mode>.loading>img {
    border-radius: 50%;
}

#noresult {
    text-align: center;
    background-color: #fff;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 2px 0px;
    width: 85%;
    margin: auto;
}
.dark-mode>#noresult{
    background-color: #272727;
}
#footer {
    width: 85%;
    margin: auto;
    padding: 30px;
    background-color: #fff;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}
.dark-mode>#footer{
    background-color: #272727;
}
a{
    color: tomato;
}
#footer>div:nth-child(1) {
    width: 200px;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

#footer>div>a>img:nth-child(1) {
    width: 30px;
    cursor: pointer;
}

#footer>div:nth-child(2) {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 25px;
}

#footer>div:last-child {
    display: flex;
    margin: auto;
    margin-top: 25px;
    width: 50%;
    justify-content: center;
    align-items: center;
}

#footer>div:last-child>div {
    display: flex;
    width: 100%;
    justify-content: space-evenly;
    align-items: center;
}

#footer>div:last-child>div>a {
    text-decoration: none;
    font-size: 15px;
}

#footer>div:nth-child(2)>div {
    width: 300px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
}

#footer>div:nth-child(2)>div>a {
    text-decoration: none;
}

#footer>div>a>img:nth-child(2) {
    cursor: pointer;
}
.ftr{
    color: tomato;
}
@media only screen and (max-width: 768px){
    #container{
        grid-template-columns: repeat(1,1fr);
    }
    .switch-text{
        opacity: 0;
    }
    #footer>div:last-child>div{
        opacity: 0;
        display: none;
    }
}
