/* body */
body {
    font-weight: 300;
}

h1, h2, h3, h4 {
    font-weight: 200;
    margin: 10px 0px 15px 0px;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

a {
    color: #333333;
    text-decoration: none;
    cursor: pointer;
}

a:hover, 
a:active,
a:focus {
    color: #aaaaaa;
    text-decoration: none;
}

a .glyphicon,
a .fab {
    color: #14538a;
}

a:hover .glyphicon, 
a:focus .glyphicon,
a:active .glyphicon,
a:hover .fab, 
a:focus .fab,
a:active .fab {
    color: #aaaaaa;
}

.clicked {
    color: #14538a;
    font-weight: 600;
}

.break {
    margin: 0px 5px;
}

#wrapper {
    box-sizing: border-box;
    min-height: 100%;
    padding: 0 0 40px;
    position: relative;
    display: flex;
    justify-content: center;
}

@media (max-width: 480px) {
    #wrapper {
        padding: 0 0 60px;
    }
}

/* header */
.header-wrapper {
    background-color: #ffffff;
    position: fixed;
    width: 100%;
    border-bottom: 1px solid #dddddd;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    height: 40px;
    z-index: 10;
}

.no-shadow {
    box-shadow: none;
}

header {
    height: 40px;
}

.content-wrapper {
    padding-top: 40px;
}

@media (max-width: 550px) {
    .header-wrapper {
        height: 32px;
    }

    header {
        height: 32px;
    }

    .content-wrapper {
        padding-top: 32px;
    }
}

.float-left {
    float: left;
}

.float-right {
    float: right;
}

#header-logo {
    height: 40px;
    padding-top: 4px;
    padding-bottom: 6px;
}

@media (max-width: 550px) {
    #header-logo {
        height: 32px;
        padding-top: 2px;
        padding-bottom: 4px;
    }
}

a.svg {
    position: relative;
    display: inline-block; 
    width: 185px;
}

a.svg:after {
    content: ""; 
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.btn-header {
    color: #fafafa;
    background-color: #14538a;
    border: 1px solid #14538a;
    height: 28px;
    padding-top: 2px;
    margin-top: 6px;
    margin-bottom: 6px;
    font-size: 14px;
}

@media (max-width: 550px) {
    .btn-header {
        height: 26px;
        padding-top: 3px;
        margin-top: 3px;
        margin-bottom: 3px;
        font-size: 12px;
    }
}

.btn-header:hover {
    color: #14538a;
    background-color: #ffffff;
    border: 1px solid #14538a;
}

header .input-form {
    width: 500px;
    font-size: 14px;
    margin: 5px auto;
    margin-left: 30px;
    display: inline-block;
}

@media (max-width: 1200px) {
    header .input-form {
        width: 400px;
    }
}

@media (max-width: 992px) {
    header .input-form {
        width: 300px;
    }
}

@media (max-width: 700px) {
    header .input-form {
        display: none;
    }
}

header .input-form > span {
    display: block;
    overflow: hidden;
}

header .input-form input[type=text] {
    width: 100%;
    padding: 4px 10px;
    background: #ffffff;
    border: 1px solid #dbdbdb;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

::-webkit-input-placeholder {
    color: #999999;
    font-weight: 100;
    letter-spacing: 0.2px;
}

header .input-form button {
    float: right;
    padding: 4px 15px;
    border: 1px solid #14538a;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    background-color: #14538a;
    color: #fafafa;
}

header #search-btn:hover {
    background-color: #ffffff;
    color: #14538a;
}

/* main page */
#main-logo {
    width: auto;
    height: 75px;
    position: relative;
    top: 10px;
}

@media (max-width: 550px) {
    #main-logo {
        height: 60px;
    }
}

.main-search {
    padding-top: 10%;
}

@media (max-width: 550px) {
    .main-search h1 {
        font-size: 24px;
    }
}

.input-form {
    width: 500px;
    margin: 30px auto;
    font-size: 18px;
}

.input-form > span {
    display: block;
    overflow: hidden;
}

.input-form input,
.input-form button {
    outline: none;
    -webkit-box-shadow: none;
    box-shadow: none;
}

.input-form input[type=text] {
    width: 100%;
    padding: 8px 15px;
    background: #ffffff;
    border: 1px solid #dbdbdb;
    border-right: 0px;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.input-form input[type=text]:focus,
.input-form input[type=text]:active {
    border: 1px solid #14538a;
    border-right: 0px;
}

.input-form button {
    float: right;
    padding: 8px 20px;
    border: 1px solid #14538a;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    background-color: #14538a;
    color: #fafafa;
}

#search-btn:hover,
#submit-btn:hover {
    background-color: #ffffff;
    color: #14538a;
}

.ui-widget {
    font-family: inherit;
    font-size: 14px;
    border-top: 0px;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    box-shadow: 1px 1px 8px rgba(0, 0, 0, 0.1);
}

.ui-menu-item {
    /* truncate game titles */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shadow {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background-color: #000000;
    opacity: 0.5;
    display: none;
    z-index: 5;
}

@media (max-width: 550px) {
    .input-form {
        width: 100%;
        margin: 20px auto;
        font-size: 16px;
        z-index: 10;
    }

    .ui-widget {
        width: 100%;
    }

    .ui-menu-item {
        height: 40px;
    }

    .input-form-top {
        position: absolute;
        top: 0px;
        left: 0px;
        margin: 0px;
    }
    
    .input-form-top button {
        border-radius: 0px;
    }
    
    .input-form-top input[type=text] {
        border-radius: 0px;
        padding: 8px 7px;
    }

    .input-form-top {
        font-size: 16px;
    }

    .input-form-top .ui-menu-item {
        font-size: 16px;
        padding-top: 8px;
    }

    .input-form-top .ui-menu-item:nth-last-child(-n+5) {
        display: none;
    }
    
    .input-form-top ~ .shadow {
        display: block;
    }
}


/* playlist */
.playlist-wrapper {
    padding-top: 30px;
    background-color: #fafafa;
    height: 100%;
    width: 100vw;
}

@media (max-width: 768px) {
    .playlist-wrapper {
        padding-top: 15px;
    }
}

.embed {
    padding: 0px;
    margin: 0px;
    margin-bottom: -40px;
    background-color: #ffffff;
    border-bottom: 1px solid #dddddd;
}

@media (max-width: 480px) {
    .embed {
        margin-bottom: -60px;
    }
}

.embed p {
    margin-bottom: 5px;
}

.embed .svg {
    width: 174px;
}

#embed-logo {
    height: 36px;
    margin-top: 9px;
    margin-right: 8px;
}

@media (max-width: 768px) {
    .embed .svg {
        width: 132px;
    }

    #embed-logo {
        height: 28px;
        margin-top: 8px;
        margin-right: 8px;
    }
}



#cta-empty {
    padding-top: 18%;
    color: #eeeeee;
}

#cta-empty #submit-btn {
    float: none;
}

@media (max-width: 550px) {
    #cta-empty {
        padding-top: 15%;
        color: #eeeeee;
    }
    
    #cta-empty h2 {
        font-size: 24px;
    }

    #cta-empty h4 {
        font-size: 14px;
    }
}

@media (max-width: 380px) {
    #cta-empty {
        padding-top: 10%;
        color: #eeeeee;
    }
}

.col-player {
    position: sticky;
    top: 70px;
}

@media (max-width: 992px) {
    .col-player {
        position: relative;
        top: 0px;
    }
}

.auto-resizable-iframe {
    max-width: 100%;
    margin: 0px auto;
}

.auto-resizable-iframe > .player-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* ratio of yt player? */
  height: 0px;
  background-color: #000000;
}

.auto-resizable-iframe > .cta-border {
  overflow: hidden;
  border-radius: 4px;
}

.auto-resizable-iframe > .player-border {
  overflow: hidden;
  border-top-right-radius: 4px;
  border-top-left-radius: 4px;
}

.auto-resizable-iframe iframe {
  position: absolute;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
}

.btn-nav {
    border-radius: 0px;
    height: 60px;
    width: 60px;
    font-size: 24px;
    color: #333;
    border: 1px solid #dddddd;
    border-left: none;
}

@media (max-width: 768px) {
    .btn-nav {
        height: 50px;
        width: 50px;
        font-size: 20px;
    }
}

.btn-nav:hover,
.btn-nav:active,
.btn-nav:focus {
    background-color: #f5f5f5;
    border: 1px solid #dddddd;
    border-left: none;
}

.container-nav {
    background-color: #ffffff;
    width: 100%;
    height: 60px;
    border-bottom: 1px solid #dddddd;
    margin-bottom: 5px;
}

@media (max-width: 768px) {
    .container-nav {
        height: 50px;
    }
}

.song {
    height: 100%;
    margin-left: 120px;
    border-top: 1px solid #dddddd;
}

@media (max-width: 768px) {
    .song {
        margin-left: 100px;
    }
}

.song-title {
    /* truncate game titles */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0px;
    padding: 18px;
    font-size: 18px;
    height: 100%;
}

@media (max-width: 768px) {
    .song-title {
        padding: 14px;
        font-size: 16px;
    }
}

@media (max-width: 420px) {
    .embed .song-title {
        display: none;
    }
}


.box {
    box-shadow: 1px 1px 8px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    margin-bottom: 30px;
    border: 1px solid #dddddd;
    background-color: #ffffff;
}

@media (max-width: 768px) {
    .box {
        margin-bottom: 15px;
    }
}

.box p {
    margin: 0 0 5px;
}

.box hr {
    margin: 10px -15px;
}

.box-padding {
    padding: 0px 15px;
}

.tag {
    border-radius: 4px;
    border: 1px solid #dddddd;
    padding: 3px 8px;
    display: inline-block;
    margin-bottom: 5px;
}

.box-playlist {
    padding: 0px;
}

.box-playlist table {
    margin-bottom: 0px;
}

.box-playlist tbody tr {
    cursor: pointer;
}

.box-playlist tbody tr.active > td {
    background-color: #14538a;
    color: #fafafa;
}

.box-playlist tbody tr.active:hover > td {
    background-color: inherit;
    color: #333;
}

.show-active {
    display: none;
    padding-top: 2px;
}

.box-playlist tbody tr.active td .show-active {
    display: inherit;
}

.box-playlist tbody tr.active td .hide-active {
    display: none;
}

/* footer*/
footer {
    padding: 8px 0;
    height: 40px;
    width: 100%;
    background-color: #eeeeee;
    position: absolute;
    bottom: 0;
    left: 0;
    border-top: 1px solid #dddddd;
}

@media (max-width: 480px) {
    footer {
        height: 60px;
    }
}
