@import url('https://fonts.googleapis.com/css?family=Gochi+Hand&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto+Condensed:300,400,700&display=swap');

*, *::before, *::after {
    box-sizing: border-box;
}

body{
    padding: 0;
    margin: 0;
    font: 400 16px/1.35 'Gochi Hand', cursive;
    background: linear-gradient(to left, rgb(40, 40, 40), rgb(40, 40, 40))
}
header{
    padding: 30px 0;
}

.container{
    max-width: 1140px;
    padding: 0 40px;
    margin: 0 auto;
    color: white;
    font-size: 20px;
    line-height: 1.5;
}
.container h1{
    margin-top: 0;
    margin-bottom: 50px;
    font-size: 2em;
    letter-spacing: 2px;
    text-align: center;
}
#searchForm{
    position: relative;
    display: flex;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}
#query{
    width: 100%;
    max-width: 100%;
    height: 45px;
    padding: 15px 120px 15px 30px;
    border-radius: 50px;
    border: none;
    outline: none;
}
#search{
    width: 100px;
    max-width: 100%;
    background: #9E2092;
    color: white;
    border-radius: 50px;
    border: none;
    position: absolute;
    right: 2px;
    bottom: 2px;
    top: 2px;
    font-weight: 600;
    outline: none;
    transition: opacity 0.3s ease-in-out;
    cursor: pointer;
}
#search:hover{
    opacity: 0.9;
}
li{
    list-style: none;
}

.result{
    position: relative;
    display: block;
    width: 100%;
    max-width: 800px;
    padding-bottom: 50px;
    margin: 20px auto 0 auto;
    color: white;
    text-align: center;
    font-family: 'Roboto Condensed', sans-serif;
}
.video-box-outer {
    max-width: 560px;
    margin: 30px auto 40px auto;
}
.video-box {
    position: relative;
    width: 100%;
    height: 0;
    padding-top: 56.25%;
}
.video-box iframe {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;;
}

.song-list{
    margin: -15px 0 0 0;
    padding: 0;
    list-style: none;
    background: linear-gradient(to left, rgb(40, 40, 40), rgb(40, 40, 40))
}
.song-list li{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: solid 3px rgb(12, 147, 100);
    letter-spacing: 1px;
    font-weight: 500;
    font-size: 18px;
    line-height: 1.5;
}
.song-list li div{
    width: calc(100% - 140px);
    text-align: left;
}
.song-list li span{
    background-color: #9E2092;
    border: 0;
    font-size: 12px;
    border-radius: 10px;
    color: #fff;
    font-weight: 400;
    padding: 4px 10px;
    text-transform: uppercase;
    transition: opacity 0.3s ease-in-out;
    cursor: pointer;
}
.song-list li span:hover{
    opacity: 0.85;
}
p {
    margin: 0;
}
p+p {
    margin-top: 0.75em;
}
.fail {
    color: #ee4030 !important;
}
#result > p {
    text-align: center;
}

.gap {
    position: relative;
    display: inline-block;
    padding: 0.05em 0.2em 0 0.2em;
    vertical-align: bottom;
    color: rgb(12, 147, 100);
}
.gap::before {
    position: absolute;
    left: 0.15em;
    right: 0.15em;
    bottom: 0.15em;
    height: 2px;
    content: '';
    background-color: rgb(12, 147, 100);
}
.gap.solved {
    display: inline;
    padding: 0;
}
.gap.solved::before {
    display: none;
}
.gap input {
    position: relative;
    display: inline-block;
    padding: 0;
    background: none;
    border: none;
    color: #bbb;
    font: 300 1em/1 'Roboto Condensed', sans-serif;
    text-align: center;
    outline: none;
    z-index: 1;
}
.gap .line-through {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 300;
    text-decoration: line-through;
}

.buttons {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: space-between;
    margin-top: 50px;
}
.buttons button {
    display: block;
    width: 12em;
    padding: 1em;
    color: white;
    border-radius: 50px;
    border: none;
    font-size: 0.85em;
    font-weight: 600;
    outline: none;
    transition: opacity 0.3s ease-in-out;
    cursor: pointer;
}
#showSolution {
    background: #888888;
}
#check {
    background: #9E2092;
}
.buttons button:hover {
    opacity: 0.85;
}
.lyrics {
    margin-top: -30px;
    padding-top: 30px;
}
.congratulations {
    margin: 50px 0 0 0;
    color: rgb(12, 147, 100);
    font-weight: 700;
}


@media only screen and (max-width: 800px) {
    .container{
        padding: 0 30px;
        font-size: 18px;
    }
    #search{
        width: 80px;
        max-width: 100%;
    }
    #query {
        padding: 15px 95px 15px 25px;
    }
    .song-list li{
        letter-spacing: 0.5px;
        font-size: 17px;
    }
}


@media only screen and (max-width: 575px) {
    .song-list {
        margin: -18px 0 0 0;
    }
    .song-list li {
        flex-direction: column;
        padding: 18px 12px;
        font-size: 16px;
    }
    .song-list li div {
        width: 100%;
        margin-bottom: 12px;
        text-align: center;
    }

    .buttons {
        flex-direction: column;
        justify-content: center;
    }
    .buttons button + button {
        margin-top: 25px;
    }
}


@media only screen and (max-width: 420px) {
    .container{
        padding: 0 20px;
        font-size: 16px;
    }
    #query {
        padding: 15px 90px 15px 22px;
    }
}