
#toolbar, #toolbar * {
    box-sizing: border-box;
   
}

#toolbar {
    position: fixed;
    z-index: 999;
    bottom: 0%;
    left:50%;
    transform: translateX(-49%);
    width:12vw;  /* zapasowe, width automatycznie sie ustawia w toolbar.js*/
    transition: width 2s;
    display: flex;
    
    justify-content: center;
}


#toolbar > div {
    margin:1vw;
    padding: 0.5vw;
    height: 4vw;
    background-color: rgba(0, 0, 0, 0.5);
    border: 0.2vw inset black;
    outline: 0.1vw solid black;
    flex: 0 0 4vw;
}



#toolbar > div  img {
  opacity: 0.5;
}


#toolbar > div  img:hover {
    opacity: 1;
    cursor: var(--kursorEvent), auto;
    transform: translateY(-5%);
}

#toolbar #gramofon #gramofSprite:hover {
    opacity: 1;
    cursor: var(--kursorEvent), auto;
    transform: translateX(10%) translateY(-5%);
}

#toolbar > div img:first-child {
    object-fit: contain;
    width:100%;
    height: 100%;
    
}

#toolbar #gramofon {
    position: relative;
    flex-grow: 2;
    overflow: hidden;
    padding:0;
    width: max-content;
    display: flex;
    justify-content: flex-start;
    gap: 1vw;
}

#toolbar #gramofon #gramofSprite {
    
    
     width: calc(3.1vw * 64 / 69);
    height: 3.1vw;
    transform: translateX(10%);
    object-fit: cover;
    object-position: 0% 0%;
    animation: gramof 2s steps(4, jump-end) infinite;
}



    
    



#toolbar #gramofon p:hover {
text-decoration: underline;
color:#b86f50;
cursor:var(--kursorEvent), auto;
}





#toolbar #gramofon #gramofControlsCont {
    height: 100%;
    flex: 0 0  20vw;
    display: flex;
    justify-content: flex-start;
    padding: 0.5vw;
    gap: 0.5vw;
    min-width: 0;
    
   
    
}



#toolbar #gramofon #playedTrackCont {
    flex: 0 0 82%;
    height: 100%;
    width: 82%;
    
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    
}

#toolbar #gramofon #marqueeCont {
    flex: 0 0 75%;
    padding-bottom: 0.5vw;
    overflow: hidden;
    


}

#toolbar #gramofon  p {
    color: white;
    
 
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    font-size: 0.8vw;
    height: 100%;
    min-width: 100%;
    image-rendering: pixelated;
    text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
    line-height: 100%;
    
    animation: marquee 10s linear infinite;
}

#toolbar #gramofon #progressBar {
    flex: 0 0 25%;
    height: 25%;
    position: relative;
    
    
    background-color: #3f2832;
    
    
}

#toolbar #progressBar img {
    position: absolute;
   display: inline-block;
   top: 0;
   left:0;
    height: 150%;
    width: fit-content;
    transform: translate(-25%, -25%);
   aspect-ratio: 1 / 1;
   
}


#toolbar #volumeBar {
   flex: 0 0 15%;
   width: 25%;
   display: flex;
   justify-content: flex-start;
   flex-direction: column;
   gap: 0.25vw;
  
}

#toolbar #volumeBar input {
    width: 100%;
    height: 50%;
    font-size: 0.8vw;
    background-color: #3f2832;
    color:#c28569;
    font-family: var(--defaultFont);
    text-align: center;
    border: none;
    cursor: var(--kursorEvent), auto;
   
}

#toolbar #volumeBar input:focus {
    outline: none;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
}




#toolbar #volumeBar img {
   height: 50%;
   
   align-self: center;
   object-fit: contain;

}
#toolbar #volumeBar img:hover {
    transform: none;
   
    
}



#ksiegaDuza {
    
    position: fixed;
    
    top:100vh;
    left:50%;
    transform: translateX(-50%);
    z-index: 10;
    width: 70vw;
    filter: drop-shadow(0px 0px 10px black);
    transition: top 1s;
    

}
#ksiegaDuza img {
    image-rendering: pixelated;
    
    width: 100%;

}

#ksiegaDuza #searchbar {
    position: absolute;
    z-index: 11;
    top:35%;
    left:17.5%;
    width: 26%;
    height: 6%;
    font-family: 'Geist Pixel', sans-serif;
    background-color: #c28569;
    display: flex;
}
#ksiegaDuza #searchbar input {
    
    width: 100%;
    font-size:1.6vw;
    
    border:none;
    background-color: #e4a672;
    color: #c28569;
    cursor: var(--kursorWrite),auto;
    flex:0 0 4fr;
}
#ksiegaDuza #searchbar input:focus {
   
    outline: 2px solid #3f2832;
    
    
}

#ksiegaDuza #searchbar input::placeholder {
    color:#c28569;
    opacity: 1;
    
}
#ksiegaDuza #searchbar img {
   flex: 0 0 10%;
   padding:1%;
   min-width: 0;
   height: 100%;
   object-fit: contain;
}


#ksiegaDuza #tabelka {
    position: absolute;
    width:35%;
    top:15.5%;
    right: 12.3%;
    z-index: 11;
    overflow-y:auto;
    height: 50%;
    scrollbar-width: none;
}

#ksiegaDuza table {
    
    width:100%;
    
    border-collapse: collapse;
    font-size:0.8vw;
    
    color:#c28569;
}

#ksiegaDuza  tr:first-child {
    background-color: #c28569;
    color:#e4a672;
    position: sticky;
    top:0;
}


#ksiegaDuza td {
    padding:0.5vw;
    border-bottom: 0.1vw solid #e4a672;
    
    
}


#ksiegaDuza td:first-child, #ksiegaDuza tr:first-child {
   
    width: 55%;
}

#ksiegaDuza td:nth-child(2), #ksiegaDuza tr:nth-child(2)  {
    width: 30%;
}

#ksiegaDuza td:nth-child(3), #ksiegaDuza tr:nth-child(3) {
width: 15%;
}


#ksiegaDuza tr:not(:first-child):hover {
background-color: #e4a672;
cursor:var(--kursorEvent), auto;
}


@keyframes gramof {
    from {object-position: 0% 0%;}
    to {object-position: 100% 0%;}
}

@keyframes marquee {
    from {transform: translateX(-100%)}
    to {transform: translateX(100%)}
}