.coral-pixels-regular {
  font-family: "Coral Pixels", serif;
  font-weight: 400;
  font-style: normal;
}
.rubik-pixels-regular {
  font-family: "Rubik Pixels", system-ui;
  font-weight: 400;
  font-style: normal;
}
*{
    box-sizing: border-box;
    font-family: "Coral Pixels", cursive;
    color: #fff8e7;
}
body{
    margin: 0;
    font-family: "Rubik Pixels", system-ui;
    color: #e65335;
    background-color:#fff8e7 ;
}
header{
    margin: 0;
    color: #fff8e7;
    text-align: center;
    font-family: "Coral Pixels", serif;
}
header h1{
    
    font-size: clamp(2.2rem,6vw,4rem);
}
header p{
    margin-top: 1px;
    margin-bottom: 0;
    font-weight: 400;
    transform: translateY(-40px);
    font-size: large;
}
main{
    width: min(1000px,94%);
    margin: 0px auto 50px;
}
#user{
    padding: 10px 20px 30px;
    background: transparent;
}
/*i can comment , why is this such complex notation for commenting like dont get me wrong but this doesnt eat*/
#stat{
    position: absolute;
    inset: 0;
    display: grid;
    place-items: cnetre;
    margin: 0;
    text-align: center;
    pointer-events: none;
    padding-top: 25%;
}
/*need sce bc other wise it goes off page and not off the cassette*/
#sce{
    width: 100%;
    height: min(55vw,500px);
    min-height: 320px;
    position: relative;
    background: #f49c43a8 ;
    border-radius: 20px;
    z-index: 2;
}
#song{
    text-align: center;
    margin: 10px auto 25px;
    overflow-wrap: anywhere;
}
#songt {
    margin-bottom: 8px;
    font-size: 1.3rem;
    font-family: "Coral Pixels", serif;
    color: #e65335;
}
songn{
    margin: 0;
    font-size: 1.2rem;
}
.prog{
    display: flex;
    align-items: center;
    gap: 12px;
    width: min(650px,100%);
    margin: 20px auto;
    font-size: 0.8rem;
}
#seek{
    flex: 1;
    min-width: 0;
    accent-color: #e65335;
}
.cont{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}
button,.up{
    padding: 10px 20px;
    border: 2px solid#e65335;
    border-radius: 5px;
    background-color: #ffcf70;
    color: #a92e32;
    font-family: inherit;
    font-size: 1rem;
    transition: move 0.2s , bgcol 0.2s;
}
button:hover{
    background-color: #ffe7a6;
    transform: translateY(-2px);
    box-shadow: 0 0 5px #a92e32;
}
button:disabled{
    opacity: 0.5;
    transform: none;
}
.up input{
    display: none;
}
.vol{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: min(300px,100%);
    margin:  25px auto 0;
    font-size: 0.85rem;
}
#vol{
    flex: 1;
    min-width: 0;
    accent-color: #e65335;
}
#message{
    margin-top: 25px;
    text-align: center;
    font-size: 0.8rem;
}
/*ihave timeee to adapt to the screens that are smaller */
@media(max-width:600px){
    header h1{
        font-size: 2.2rem;
    }
    header p{
        font-size: 0.85rem;
    }
    #user{
        padding: 10px 5px 25px;
    }
    #sce{
        height: 75vw;
        min-height: 260px;
        max-height: 400px;
    }
    .cont{
        flex-direction: column;
    }
    .prog{
        gap:8px;
    }
    #stat{
        padding-top: 40%;
    }
}
#sce canvas{
    touch-action: none;
    cursor: grab;
}
#sce canvas:active{
    cursor: grabbing;
}
#playlist{
    text-align: left;
    max-height: 180px;
    overflow-y: auto;
    padding: 8px 12px;
}
.track{
    margin: 0;
    padding: 8px;
    cursor: pointer;
    border-bottom: 1px solid #e65335;
    color: #a92e32;
}
.track:hover{
    text-shadow: 0 0 3px #a92e32;
    background: #ffcf70;
}
.track:active{
    color:#0b1838;
}
.note{
    position: absolute;
    bottom: -40px;
    width: 35px;
    height: auto;
    animation: floatu 4s linear forwards;
}
#notes{
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}
@keyframes floatu{
    from{
        transform: translate(0);
        opacity: 1;
    }to{
        transform: translateY(-200vh);
        opacity: 0;
    }
}
#roomcode{
    background: #e76f5156;
    color: #29251f;
    border: 2px solid #29251f;
    border-radius: 8px;
    padding: 12px 14px;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    width: 200px;
    transition: border-color 0.2s ,box-shadow 0.2s;

}
#roomcode::placeholder{
    color: #8b8275;
}
#roomcode::focus{
    border-color: #e76f51;
    box-shadow: 0 0 0 3px #e76f51cf;
}
#rooms{
    text-align: center;
}
#roomcode{
    display: block;
    margin: 12px auto;
}