@import url('https://fonts.googleapi.com/css?family=Lato&display=swap');

* {
    box-sizing: border-box;

}

body {
    height: 100vh;
    margin: 0;
    font-family: 'Lato', sans-serif;
    background-image: linear-gradient(0deg,
    rgb(247, 247, 247) 23.8%,     
    rgb(41, 141, 187) 92%     
    );
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.2s linear;
}

body.dark{
    background-image: linear-gradient(
        0deg,
     rgb(247, 247, 247) 23.8%,
     rgb(33, 33, 33) 92%
     );
}

h1 {
    color: aqua;
    animation: fadecolor 1s infinite;
  }
  @keyframes fadecolor {
    from {color: aqua;}
    to {color: pink;}
  }


  /* a {
    font-size: 20px;
    text-decoration: none;
    color:#fff;
    background-color: #055C9D;
    border-radius: 10px;
    padding: .3em;
    margin-bottom: 1.5em;
    margin-top: 1em;
    box-shadow: 0 20px 20px 0 rgba(2, 78, 40, 0.6);
} */

.btn {
    background: #3498db;
    background-image: -webkit-linear-gradient(top, #3498db, #2980b9);
    background-image: -moz-linear-gradient(top, #3498db, #2980b9);
    background-image: -ms-linear-gradient(top, #3498db, #2980b9);
    background-image: -o-linear-gradient(top, #3498db, #2980b9);
    background-image: linear-gradient(to bottom, #3498db, #2980b9);
    -webkit-border-radius: 28;
    -moz-border-radius: 28;
    border-radius: 28px;
    text-shadow: 1px 1px 3px #c94ec9;
    font-family: Arial;
    color: #ffffff;
    font-size: 20px;
    padding: 5px 8px 5px 8px;
    text-decoration: none;
    position: relative;
    bottom: 10px;
}
  
  .btn:hover {
    background: #3cb0fd;
    background-image: -webkit-linear-gradient(top, #3cb0fd, #3498db);
    background-image: -moz-linear-gradient(top, #3cb0fd, #3498db);
    background-image: -ms-linear-gradient(top, #3cb0fd, #3498db);
    background-image: -o-linear-gradient(top, #3cb0fd, #3498db);
    background-image: linear-gradient(to bottom, #3cb0fd, #3498db);
    text-decoration: none;
  }


.music-container {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 20px 20px 0 rgba(71, 189, 224, 0.6);
    display: flex;
    padding: 20px, 30px;
    position: relative;
    margin: 100px 0;
    z-index: 10;
}

.play-img {
    margin-bottom: 15px;
    border-radius: 50%;
}

.img-container {
    position: relative;
    width: 110px;
}

.img-container::after {
    content: '';
    background-color: #fff;
    height: 20px;
    width: 20px;
    position: absolute;
    left:50%;
    bottom:50%;
    border-radius: 50%;
    transform: translate(-50%, -50%)
}

.img-container img {
    width: inherit;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    position: absolute;
    bottom: 0;
    left: 0;

    animation: rotate 3s linear infinite; /* now lets create the rotate keyframe below */
    animation-play-state: paused;
}

.music-container.play .img-container img {
    animation-play-state: running;
}

@keyframes rotate {
    from {
        transform: rotate(0deg)
    }
    to {
        transform: rotate(360deg);
    }
}

.navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.action-btn {
    background-color: #fff;
    border: 0;
    color: #dfdbdf;
    font-size: 20px;
    cursor: pointer;
    padding: 10px;
    margin: 0 20px;
}


.action-btn-big {
    color: #cdc2d0;
    font-size: 30px;
}

.action-btn:focus {
    outline: 0;
}

.music-info {
    margin-top: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 15px 15px 0 0;
    position: absolute;
    top: 0;
    left: 20px;
    width: calc(100% - 40px);
    padding: 10px 10px 10px 150px;
    opacity: 0;
    transform: translateY(0%);
    transition: transform 0.3s ease-in, opacity 0.3s ease-in;
}

.music-info h4 {
    margin: 0;
}

.music-container.play .music-info {
    opacity: 1;
    transform: translateY(-100%); /*to bring it up when playing*/
}

.progress-container {
    background: #fff;
    border-radius: 5px;
    cursor: pointer;
    margin: 10px 0;
    height: 4px;
    width: 100%;

}

.progress {
    background-color: #fe8daa;
    border-radius: 5px;
    height: 4px;
    width: 50%;
    transition: width 0.1s linear;
}

.bubbles img{
    width: 50px;
    animation: bubble 7s linear infinite;
}
.bubbles{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-around;
    position: absolute;
    bottom: -70px;
}

@keyframes bubble {
    0%{
        transform: translateY(0);
        opacity: 0;
        }
    50%{
    opacity: 1;
        }
    70%{
    opacity: 1;
        }
    100%{
    transform: translateY(-80vh);
    opacity: 0;
}
}

.bubbles img:nth-child(1){
    animation-delay: 2s;
    width: 30px;
}
.bubbles img:nth-child(2){
    animation-delay: 1s;
}
.bubbles img:nth-child(3){
    animation-delay: 3s;
    width: 30px;
}
.bubbles img:nth-child(4){
    animation-delay: 4.5s;
}
.bubbles img:nth-child(5){
    animation-delay: 3s;
}
.bubbles img:nth-child(6){
    animation-delay: 6s;
    width: 25px;
}
.bubbles img:nth-child(7){
    animation-delay: 7s;
}
.bubbles img:nth-child(8){
    animation-delay: 8s;
    width: 40px;
}

.theme{
    margin-bottom: 30px;
}

.label{
    background-color: #111;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 20px;
    width: 50px;
    border-radius: 50px;
    padding: 5px;
    position: relative;
    transform: scale(1.2);
    -webkit-transform: scale(1.2);
    -moz-transform: scale(1.2);
    -ms-transform: scale(1.2);
    -o-transform: scale(1.2);
}

.fa-moon {
    color: #f1c40f;
}

.fa-sun {
    color: #f39c12;
}

.checkbox{
    opacity: 0;
    position: absolute;
}

.ball {
    background-color: #fff;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    width: 15px;
    height: 15px;
    transition: all 0.2s linear;
}
.checkbox:checked + .label .ball{
    transform: translateX(28px);
}


































