body {
    font-family: sans-serif;
    text-align: center;
    transition: background-color 0.5s ease, color 0.5s ease;
}
h1 {
    font-size: 2em;
}
input[type="text"] {
    font-size: 1.5em;
    padding: 0.5em;
}
input[type="submit"] {
    font-size: 1.5em;
    padding: 0.5em 1em;
}

a {
    color: #26acfa;
}

.listing {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.bookContainer {
    text-decoration: none;
    width: 350px;
    height: 400px;
    overflow: hidden;
    font-size: 15px;
    display: inline-block;
}

.bookImg {
    height: 200px;
    width: fit-content;
    object-fit: contain;
}

#loading {
    height: 150px;
    color: #26acfa;
}

.toggleContainer {
    font-size: 15px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    width: 180px;
    position: absolute;
    right: 0;
    top: 0;
    margin: 15px;
    text-transform: uppercase;
    color: black;
}

.toggleContainer .switch {
    border: 0px solid black;
    border-right: none;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
    background-color: #eee;
}

.toggleContainer span {
    padding: 9px;
    padding-left: 10px;
    padding-right: 15px;
    border: 0px solid black;
    border-left: none;
    background-color: #eee;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
}

/* https://codepen.io/AllThingsSmitty/pen/MmxxOz/ */
/* styling for check toggle */
.switch {
    display: inline-block;
    height: 34px;
    position: relative;
    width: 60px;
}

.switch input {
    display:none;
}

.slider {
    background-color: #ccc;
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: .4s;
}

.slider:before {
    background-color: #fff;
    bottom: 4px;
    content: "";
    height: 26px;
    left: 4px;
    position: absolute;
    transition: .4s;
    width: 26px;
}

input:checked + .slider {
    background-color: #8277ea;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}
