@font-face {
    font-family: 'Varela Round';
    src: url('./fonts/VarelaRound-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    background-image: url('img/book_cover_beaver.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
}

html,
body,
.main {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    font-family: 'Varela Round', sans-serif;
    font-weight: 400;
    font-style: normal;
}

h1 {
    font-size: 30px;
}

.main {
    display: flex;
    align-items: center;
    justify-content: center;
}

.content {
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    max-height: 80vh;
    width: 600px;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
    padding: 2em;
    background-color: #fffad3e6;
    border-radius: 20px;
}
.content .logo {
    width: 256px;
}

nav {
    margin-top: 2em;
}
nav.links li {
    text-align: center;
}

.bt-link {
    display: block;
    margin: 10px auto;
    padding: 10px;
    text-decoration: none;
    background-color: #fff;
    width: 200px;
    max-width: 100%;
    color: #FF914D;
}

a.bt-link:hover {
    color: #000;
}

.bt-link.bt-reverse {
    background-color: #FF914D;
    color: #fff;
}

audio {
    height: 0;
    width: 0;
}

ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.sounds {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: flex-start;
}

.sounds img {
    display: block;
    margin: 2px;
    width: 40px;
}

.sounds img.play {
    cursor: pointer;
}

.sounds img.video {
    width: 28px;
    margin: 8px;
}

.sounds a {
    text-decoration: none;
    color: inherit;
}

.sounds>div {
    display: flex;
    align-items: center;
    border-radius: 34px;
    background-color: #fff;
    padding: 0 1em 0 0;
    margin: 0 5px 10px 0;
}

/* .sounds>div:last-child {
    margin-left: auto;
} */

footer {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    font-size: 0.8rem;
    text-align: center;
    padding-top: 5px;
    padding-bottom: 5px;
    background-color: #649e7f;
}
footer a {
    text-decoration: none;
    color: #000;
}
footer a:visited {
    color: #000;
}

@media screen and (max-width: 700px) {
    .hide-xs {
        display: none;
    }

    .content {
        padding: 1em 10px;
        max-width: calc(100% - 30px);
        background-color: #ffffffe6;
    }
    .content .logo {
        width: 64px;
    }

    /* .sounds>div:last-child {
        padding-right: 0;
    } */

    .sounds>div:first-of-type {
        width: 100%;
    }

    .sounds {
        margin: 10px 0;
        padding: 10px;
        background-color: #ffe3b7;
    }

    #animals>li:nth-child(odd) .sounds {
        background-color: #e0f9e0;
    }
}