@import url('https://fonts.googleapis.com/css2?family=Figtree&display=swap');

/*
MEDIA RES
*/

@media screen and (max-width: 1700px){
    .player-title{ top: -2% !important; }
    .mid-text{ top: 8rem !important; }
}

@media screen and (max-width: 1500px){
    .player-title{ top: -3% !important; }
    .mid-text{ top: 8rem !important; }
}

@media screen and (max-width: 1400px){
    .player-title{ top: -4% !important; }
    .mid-text{ top: 8rem !important; }
}

@media screen and (max-width: 1100px){
    .player-title{ top: -5% !important; }
    .mid-text{ top: 4rem !important; }
}

/*
KEYFRAMES
*/

@keyframes appear {
    from {
      opacity: 0;
      transform: translateY(-20px);
    }
    to {
      opacity: 1;
      transform: translateY(0px);
    }
  }

:root {
    --world-bg-pos: center center;
    --moon-rot: 0deg;
    --ctransition: cubic-bezier(0.68, -0.55, 0.27, 1.55);

    --primary-color: #0f0f0f;
    --secondary-color: #e8e8e8;
    --green: #66ff69;
}

.dark-theme{
    --primary-color: #e8e8e8;
    --secondary-color: #0f0f0f;
}

body {
    margin: 0; padding: 0; overflow: hidden;
    background: var(--primary-color);
}

p1{
    cursor: default;
    user-select: none;
}

.world {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    background-color: var(--primary-color);
    background-image: url("../world.png");
    background-size: 20%;
    background-repeat: repeat-x;
    background-position: var(--world-bg-pos);

    clip-path: circle(5% at 50% 50%);
}

.world-border {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    background-color: var(--primary-color);

    clip-path: circle(5.5% at 50% 50%);
}

.moon-border {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    cursor: pointer;
    
    scale: 1;
    background-color: #0f0f0f;

    clip-path: circle(1.4% at 60% 50%);
    
    /* animation: rota 10s linear;
    animation-iteration-count: infinite;
    transition: 0.3s; */

    transform: rotate(var(--moon-rot));
    transition: scale 1000ms ease-in-out;
}

.moon {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    
    background-color: #e8e8e8;

    clip-path: circle(1% at 60% 50%);
    transition: background-color 200ms ease-in-out;
}

.moon.sun {
    background-color: #eacb18;
}

.moon-border.sun {
    scale: 2.5;
}


@keyframes rota {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes -rota {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(-360deg); }
}

@keyframes anim {
    0% { background-position-x: 100%; }
    100% { background-position-x: 0%; }
}
.player-controls{
    font-size: 40px;
    cursor: pointer;
}

.fa-play{
    position: fixed;
    top: 2.5%;
    right: 103px;
    color: var(--secondary-color);
}

.fa-pause{
    position: fixed;
    top: 2.5%;
    right: 107px;
    color: var(--secondary-color);
}

.backward{
    position: fixed;
    top: 2.5%;
    right: 150px;
    color: var(--secondary-color);
}

.forward{
    position: fixed;
    top: 2.5%;
    right: 50px;
    color: var(--secondary-color);
}

.player-title{
    position: fixed;
    top: -1.5%;
    right: 220px;
    font-size: 40px;
    color: var(--secondary-color);
    transition: all 222ms ease-in-out;
}

.player-title:hover{
    color: #0d8c95;
}

.upper-text{
    background-color: var(--primary-color);
    display: flex;
    justify-content: center;
    height: 100px;
    margin: 0px;
    font-size: 5rem;
    font-weight: bold;
    z-index: 1;
    font-family: 'Figtree', sans-serif;
    color: var(--secondary-color);
    box-shadow: 0px 10px 10px 10px var(--primary-color);
    animation: appear 0.5s forwards ease var(--i);
    transition: text-shadow 200ms ease-in-out;
}

.upper-text:hover{
    text-shadow: 3px 3px 10px var(--green);
}

canvas{
    z-index: -21;
}

.mid-text{
    display: flex;
    justify-content: center;
    position: relative;
    top: 15rem;
    height: 0px;
    margin: 0px;
    font-size: 2rem;
    font-weight: 300;
    font-family: 'Source Code Pro', sans-serif;
    color: var(--secondary-color);
    transition: all 200ms ease-in-out;
}

.mid-text:hover{
    text-shadow: 3px 3px 10px var(--green);
}

p{
    user-select: none;
}

a{
    color: var(--secondary-color);
    text-decoration: none;
}