@import url(https://fonts.googleapis.com/css?family=Lato:400, 700&display=swap);
* {
box-sizing: border-box;
font-family: "Lato", Arial;
}
body {
background-color: #1b1b32;
background-position: 50%;
background-size: cover;
color: #fff;
font-family: "Open Sans", sans-serif;
margin: 0;
overflow: hidden;
padding: 0;
}
#root,
body,
html,
main {
height: 100%;
}
a {
text-decoration: none;
}
h1,
h2,
p {
margin: 0;
}
.App {
height: 100%;
}
.animation {
display: none;
}
@media only screen and (min-width: 768px) {
.animation {
background-image: url("/projects/chill-radio/img/vapor.gif");
background-position: left bottom;
background-repeat: no-repeat;
display: block;
height: 100%;
margin-top: 88px;
position: relative;
width: 100%;
}
}
.site-title {
font-size: 30px;
}
@media only screen and (min-width: 768px) {
.site-title {
font-size: 18px;
}
}
.site-description {
font-size: 18px;
margin-top: 18px;
}
@media only screen and (min-width: 768px) {
.site-description {
margin-left: 10px;
margin-top: 0;
}
}
.under-header-content {
background-color: #0a0a23;
display: -webkit-flex;
display: flex;
-webkit-flex-direction: column;
flex-direction: column;
height: 200px;
-webkit-justify-content: center;
justify-content: center;
padding: 0 20px;
position: absolute;
text-align: center;
top: 38px;
width: 100%;
}
@media only screen and (min-width: 768px) {
.under-header-content {
-webkit-align-items: center;
align-items: center;
-webkit-flex-direction: row;
flex-direction: row;
height: 50px;
z-index: 1;
}
}
.slider-container {
height: 100%;
padding: 22px 20px 22px 15px;
width: 140px;
}
.slider {
-webkit-appearance: none;
background: #dfdfe2;
height: 6px;
width: 100%;
}
.slider::-webkit-slider-thumb {
-webkit-appearance: none;
appearance: none;
background: #fff;
cursor: pointer;
height: 15px;
width: 15px;
}
.slider::-moz-range-thumb {
background: #fff;
cursor: pointer;
height: 15px;
width: 15px;
}
[data-meta="title"] {
font-size: 18px;
}
[data-meta="artist"] {
font-size: 14px;
}
[data-meta="album"] {
font-size: 12px;
}
[data-meta="listeners"] {
bottom: 20px;
font-size: 20px;
font-weight: 900;
left: 10px;
position: absolute;
}
@media only screen and (min-width: 768px) {
[data-meta="listeners"] {
bottom: auto;
left: auto;
top: 2px;
right: 10px;
}
}
[data-meta="picture"] {
bottom: 212px;
height: 200px;
left: 50%;
margin-left: -100px;
position: absolute;
width: 200px;
}
@media only screen and (min-width: 768px) {
[data-meta="picture"] {
bottom: auto;
height: 70px;
left: auto;
margin-left: 0;
width: 70px;
}
}
@media (max-height: 600px) {
[data-meta="picture"] {
display: none;
}
}
.now-playing {
-webkit-align-content: center;
align-content: center;
background-color: #1b1b32;
bottom: 70px;
display: -webkit-flex;
display: flex;
-webkit-flex-direction: column;
flex-direction: column;
height: 120px;
left: 0;
padding: 10px;
position: absolute;
width: 100vw;
}
@media only screen and (min-width: 768px) {
.now-playing {
background-color: #0a0a23;
bottom: auto;
height: 100%;
left: 70px;
padding-bottom: 2px;
padding-top: 2px;
position: relative;
width: calc(100% - 70px);
}
}
.progress-container {
border-radius: 4px;
bottom: 10px;
height: 4px;
left: 10px;
overflow: hidden;
position: absolute;
right: 10px;
}
@media only screen and (min-width: 768px) {
.progress-container {
bottom: 5px;
}
}
.now-playing progress {
-webkit-appearance: none;
appearance: none;
background-color: #3b3b4f;
height: 4px;
left: 0;
position: absolute;
top: 0;
width: 100%;
border: none;
}
.now-playing progress::-webkit-progress-bar {
background-color: #3b3b4f;
}
.now-playing progress::-webkit-progress-value {
background-color: #fff;
}
.meta-display {
opacity: 0;
transition: opacity 0.5s ease-out;
width: calc(100% - 210px);
}
.meta-display-visible {
opacity: 1;
}
.visualizer {
background-color: #002ead;
height: 100%;
pointer-events: none;
position: absolute;
top: 238px;
width: 100%;
z-index: 5;
}
@media only screen and (min-width: 768px) {
.visualizer {
background-color: transparent;
top: 88px;
}
}
.visualizer canvas {
height: 100%;
width: 100%;
}
.recent-song-history {
background-color: transparent;
border: 0;
cursor: pointer;
height: 100%;
padding: 0;
text-align: center;
width: 70px;
z-index: 10;
}
.recent-song-history:active,
.recent-song-history:hover {
background-color: #1b1b32;
}
.recent-song-history .recently-played-icon {
color: #fff;
height: 60%;
width: 60%;
}
.recent-song-list {
background-color: #1b1b32;
bottom: 70px;
color: #fff;
cursor: default;
left: 0;
position: absolute;
width: 100%;
}
@media only screen and (min-width: 768px) {
.recent-song-list {
bottom: 73px;
width: 350px;
}
}
.recently-played-icon {
font-weight: 700;
-webkit-justify-content: center;
justify-content: center;
}
.recent-song-info {
border-bottom: 1px solid #3b3b4f;
display: -webkit-flex;
display: flex;
-webkit-justify-content: flex-start;
justify-content: flex-start;
padding: 10px;
}
.recent-song-meta {
font-size: 16px;
margin-left: 10px;
overflow: hidden;
text-align: left;
}
.recent-song-meta p {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.recent-song-meta p:first-child {
font-weight: 700;
}
.recent-song-info:nth-child(5) {
border-bottom: none;
}
.recent-song-info img {
float: left;
height: 50px;
width: 50px;
}
details {
display: none;
}
@media only screen and (min-width: 768px) {
details {
background-color: rgba(10, 10, 35, 0.6);
bottom: 100px;
color: #fff;
display: block;
opacity: 0.1;
padding: 15px;
position: absolute;
right: 50px;
transition: opacity 0.25s ease-out;
}
}
details:hover,
details[open] {
opacity: 1;
}
dl {
margin-bottom: 0;
}
dt {
margin-top: 10px;
}
dd {
font-style: italic;
margin-left: 10px;
}
[data-meta="stream-select"] {
-webkit-appearance: none;
appearance: none;
background-color: #fff;
background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23007CB2%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
background-position: right 0.7em top 50%, 0 0;
background-repeat: no-repeat;
background-size: 0.65em auto, 100%;
border-radius: 0;
border: none;
bottom: 25px;
font-size: 12px;
padding: 2px 20px 2px 2px;
position: absolute;
right: 10px;
}
@media only screen and (min-width: 768px) {
[data-meta="stream-select"] {
bottom: 16px;
}
}
footer {
background-color: #0a0a23;
bottom: 0;
display: -webkit-flex;
display: flex;
height: 70px;
position: absolute;
width: 100%;
z-index: 10;
}
@media only screen and (min-width: 768px) {
footer {
border-top: 3px solid #fff;
box-sizing: content-box;
}
}
.play-container {
background-color: transparent;
border: 0;
color: #fff;
cursor: pointer;
height: 100%;
left: 50%;
margin-left: -35px;
padding: 15px;
position: absolute;
width: 70px;
}
.play-container:active,
.play-container:hover {
background-color: #1b1b32;
}
@media only screen and (min-width: 768px) {
.play-container {
left: auto;
margin-left: 0;
position: relative;
}
}
.play-container:before {
background-color: #1b1b32;
background-image: url(https://cdn-media-1.freecodecamp.org/code-radio/cta.png);
background-position: 150px;
background-repeat: no-repeat;
border-radius: 5px;
box-sizing: border-box;
content: "Push Play or Space Bar to Start Music!";
display: none;
font-size: 21px;
font-weight: 700;
height: 100px;
left: -170px;
opacity: 0;
padding: 10px 100px 10px 20px;
pointer-events: none;
position: absolute;
top: -110px;
transition: opacity 0.5s ease-out;
width: 250px;
}
@media only screen and (min-width: 768px) {
.play-container:before {
display: block;
}
}
.play-container-cta:before {
opacity: 1;
}
.play-container-cta:hover {
background: #2a2a40;
}
.site-nav {
-webkit-align-items: flex-start;
align-items: flex-start;
background: #0a0a23;
font-family: "Lato", sans-serif;
font-size: 18px;
height: 38px;
-webkit-justify-content: space-between;
justify-content: space-between;
padding: 0 15px;
position: fixed;
top: 0;
width: 100%;
z-index: 1000;
}
.site-nav,
.site-nav-middle {
display: -webkit-flex;
display: flex;
overflow-y: hidden;
}
.site-nav-middle {
-ms-overflow-scrolling: touch;
-webkit-overflow-scrolling: touch;
-webkit-align-items: center;
align-items: center;
letter-spacing: 0.4px;
margin-right: 0;
overflow-x: auto;
white-space: nowrap;
}
@media only screen and (min-width: 768px) {
.site-nav-middle {
-webkit-flex: 1 0 30%;
flex: 1 0 30%;
margin-right: 0;
}
}
.site-nav-left {
display: none;
}
@media only screen and (min-width: 768px) {
.site-nav-left {
display: -webkit-flex;
display: flex;
-webkit-flex: 1 0 30%;
flex: 1 0 30%;
margin-left: 0;
}
}
.site-nav-logo {
color: #fff;
display: block;
-webkit-flex-shrink: 0;
flex-shrink: 0;
font-size: 1.7rem;
font-weight: 700;
letter-spacing: -0.5px;
line-height: 1em;
margin: 0 5px;
}
@media only screen and (min-width: 768px) {
.site-nav-logo {
margin-left: auto;
margin-right: auto;
}
}
.site-nav-logo:hover {
text-decoration: none;
}
.site-nav-logo img {
display: block;
height: 25px;
margin-top: 7px;
width: auto;
}
.site-nav-right {
-webkit-align-items: center;
align-items: center;
display: -webkit-flex;
display: flex;
-webkit-flex-shrink: 0;
flex-shrink: 0;
height: 38px;
}
@media only screen and (min-width: 768px) {
.site-nav-right {
-webkit-flex: 1 0 30%;
flex: 1 0 30%;
}
}
@media only screen and (min-width: 768px) {
.main-nav-group,
.site-nav-right {
margin-left: auto;
}
}
.nav {
background-color: #0a0a23;
display: none;
left: 15px;
list-style: none;
margin: 0 0 0 -12px;
padding: 0;
position: absolute;
top: 38px;
}
@media only screen and (min-width: 768px) {
.nav {
display: -webkit-flex;
display: flex;
left: auto;
position: relative;
top: 0;
}
}
.nav {
height: 38px;
}
.nav li {
padding: 0;
}
.nav li,
.nav li a {
display: block;
margin: 0;
}
.nav li a {
color: #fff;
opacity: 1;
padding: 8px 15px;
white-space: nowrap;
}
.nav li:hover {
background: #fff;
}
.nav li a:hover {
color: #0a0a23;
text-decoration: none;
}
.toggle-button-nav {
background-color: #0a0a23;
border: 1px solid #fff;
color: #fff;
cursor: pointer;
display: -webkit-flex;
display: flex;
font-family: "lato", sans-serif;
font-size: 18px;
height: auto;
margin-right: 5px;
margin-top: 4px;
outline: 0;
padding: 2px 14px 3px;
}
@media only screen and (min-width: 768px) {
.toggle-button-nav {
display: none;
}
}
.show-main-nav-items {
display: -webkit-flex;
display: flex;
}
@media only screen and (min-width: 768px) {
.show-main-nav-items {
display: none;
}
}
.expand-nav {
min-height: 78px;
}
.reverse-toggle-color {
background-color: #fff;
color: #0a0a23;
}