
body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    padding-bottom: 3rem; /* spacing for bottom controls in mobile view */
}

#content {
    width: 100%;
}

h1 a {
    text-decoration: none;
}

#header {
    margin-bottom: 1rem;
}

.logo-text, .logo-text:visited {
    font-family: "Playpen Sans", cursive;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    color: black;
}

.notification {
    padding: 1rem;
    background-color: #c3e2e8;
}

.pick-species .disabled {
    text-decoration: line-through;
    color: grey;
}

.card audio {
    display: block;
    width: 100%;
}

.card .icon-bird {
    font-size: 8rem;
    margin: 0 auto;
    text-align: center;
    width: 100%;
}

.background-species {
    text-decoration-style: dotted;
    text-decoration-line: underline;
}

.card-scene {
    height: 20rem;
    width: 80%;
    margin-left: 10%;
    margin-right: 10%;
    margin-bottom: 2rem;
    position: sticky;
    position: -webkit-sticky;
    top: -16rem;
    transition: all 0.5s;
}
.card-scene .background-card {
    display: none;
}

.card-scene .card {
    width: 100%;
    height: 100%;
    border-radius: 15px;
    border: 1px solid grey;
    position: relative;
    transition: transform 0.5s;
    transform-style: preserve-3d;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.3);
    transform: rotateZ(-2deg);
}

.besides .controls, .select-birds .controls {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: .3rem;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

@media screen and (max-width: 50em) {
    .card-scene.focused {
        position: sticky;
        top: 1rem;
    }
}

@media screen and (min-width: 50em) {
    #content {
        width: 1000px;
        margin: 0 auto;
    }

    .besides {
        width: 400px;
        min-height: 400px;
        float: left;
    }

    .besides .controls {
        position: relative;
        padding: 0;
    }

    .select-birds .controls {
        left: initial;
        right: initial;
        width: 100%;
    }

    .card-scene {
        width: 300px;
        height: 400px;
        perspective: 600px;
        float: left;
        margin-right: 2rem;
    }

    .card-scene .background-card {
        display: block;
        width: 100%;
        height: 100%;
        border-radius: 15px;
        border: 1px solid grey;
        position: absolute;
        top: 0;
        transform: rotateZ(2deg);
    }

    .card-scene .background-card + .background-card {
        top: 3px;
        transform: rotateZ(6deg);
        background-color: white;
    }

    .guessing_buttons {
        width: 400px;

    }
}

.card-scene .card.flipped {
    transform: rotateY(-180deg) rotateZ(2deg);
}

.card-scene .card .face {
    position: absolute;
    height: 100%;
    width: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
}

.card-scene .card .face .info {
    position: absolute;
    width: 10%;
    top: 4%;
    right: 4%;
}

.card-scene .card .face.front {
    background-color: cadetblue;
    border-radius: 15px;
}

.card-scene .card .face.front .controls {
    font-size: 7rem;
}
.card-scene .card .face.front .pause {
    display: none;
}
.card-scene .card .face.front .play {
    display: block;
}
.card-scene .card .face.front.playing .pause {
    display: block;
}
.card-scene .card .face.front.playing .play {
    display: none;
}

.card-scene .card .face.back {
    transform: rotateY(180deg);
    border-radius: 15px;
    overflow: hidden;
}

.card-scene .card .face.back .result {
    width: 100%;
    height: 100%;
    position: relative;
    display: none;
}

.card-scene .card .face.back .result .img-gradient {
    position: relative;
}

.card-scene .card .face.back .result .img-gradient:after {
    display: inline-block;
    background: linear-gradient(rgba(0,0,0,0), rgba(0, 0, 0, 0) 80%, rgb(54, 72, 3));
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
}

.card-scene .card .face.back .result img {
    width: 100%;
}

.card-scene .card .face .centered-content{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
    width: 100%;
}

.card-scene .card .face.back .result.wrong {
    background-color:saddlebrown;
    color: white;
    font-size: 3rem;
    border-radius: 15px;
}

.card-scene .card .face.back .result.solution {
    background-color:rgb(54, 72, 3);
    color: white;
    border-radius: 15px;
}
.card-scene .card .face.back .result.solution .answer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: 65%;
    background-color: black;
    border-radius: 10px;
    color: #c3c2c2;
    text-align: center;
    font-size: 2rem;
    padding: 2rem;
}
.card-scene .card .face.back .result.solution .sep {
    position: absolute;
    top: 35%;
    left: 0;
    right: 0;
}

.card-scene .card .face.back .result.solution .answer {
    display: none;
}
.card-scene .card.correct .face.back .result.solution {
    display: block;
}
.card-scene .card.correct .face.back .result.solution .answer.correct {
    display: block;
}
.card-scene .card.wrong .face.back .result.wrong {
    display: block;
}
.card-scene .card.dontknow .face.back .result.solution {
    display: block;
}
.card-scene .card.dontknow .face.back .result.solution .answer.dontknow {
    display: block;
}


.guessing_buttons {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    margin-bottom: 1rem;
    gap: .3rem;
}
.guessing_buttons button {
    flex-grow: 1;
    padding: .7rem;
    background-color:darkolivegreen;
    font-size: 15px;
    color: white;
    border: none;
    cursor: pointer;
}

.guessing_buttons button:disabled {
    background-color: #BBB;
    color: black;
}

.controls button {
    padding: .7rem;
    background-color:saddlebrown;
    font-size: 15px;
    color: white;
    border: none;
    cursor: pointer;
}

.controls .dontknow {
    float: left;
}
.controls .next {
    float: right;
}

.debug {
    clear: both;
}
