html {
    scroll-behavior: smooth;
}

html, body {
    background-color:#426386;
    margin: 0;
    padding: 0;
    height: 100%;
}

div {
    background-color:#94b7ddc3;
    padding: 20px;
    border-radius: 10px;
    margin: 20px;
}

h1 {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-style: italic;
    text-align: center;
    font-size: 80px;
    position: relative;
    width: fit-content;
    justify-self: center;
    padding: 0px;
    z-index: 3;
    transition: opacity 0.25s ease;
}

h2 {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 48px;
    text-align: center;
    font-weight: bold;
}

p {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 24px;
    text-align: left;
}

p#miniTitle {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 36px;
    text-align: center;
    font-style: italic;
    font-weight: bold;
    padding: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 200%;
    cursor:pointer;
    transition: opacity 0.25s ease, width 0.25s ease, color 0.25s ease;
}

ul {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 24px;
    text-align: left;
    margin-left: 40px;
}

img {
    width:100%;
    max-width: 360px;
    height:auto;
    outline: #6d82a9 solid 4px;
    border-radius: 10px;
    margin: 10px;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#shuffleDisplay {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

#shuffleThumb {
    display: flex;
    justify-content: center;
    width: 360px;
    height: 360px;
    transition: opacity 0.25s ease, transform 0.3s ease;
    background-color : transparent;
    z-index: 3;
}

#shuffleThumb:hover {
    transform: translateY(-5px);
}

.fade-out {
    opacity: 0;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    justify-items: center;
}

.jukebox {
    display: flex;
    justify-content: center;
    background-color: transparent;
    gap: 5px;
    padding-top: 0px;
    padding-bottom: 0px;
}

.jukebox button, #playbar button {
    width: 25%;
    padding: 10px;
    margin: 0 5px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #6d82a9;
    transition: transform 0.3s ease, background-color 0.3s ease;
    border-radius: 20px;
    border: none;
    z-index: 3;
}

.jukebox button:hover, #playbar button:hover {
    background-color: #5a6b8c;
    cursor: pointer;
    transform: scale(1.05);
}

.jukebox button:focus, #playbar button:focus {
    outline: #294a6d solid 2px;
}

.jukebox button:active [data-lucide], #playbar button:active [data-lucide] {
    stroke: #FFFFFF;
}

.jukebox button:active [data-lucide]#off, #playbar button:active [data-lucide]#off {
    stroke: #FFFFFF;
}

#shuffleButton:active i {
    stroke: #FFFFFF;
}

#playbar {
    position:fixed;
    bottom: 0;
    background-color: #6894c4;
    border: 2px solid #212933;
    width: 20%;
    height: 6%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 5px;
    z-index: 3;
    margin-left: 5%;
    padding: 20px;
    transition: transform 0.3s ease;
}

#playbar.hidden {
    transform: translateY(200%);
    transition: transform 0.3s ease;
}

#playbar.show {
    transform: translateY(0);
    transition: transform 0.3s ease;
}

#miniProgress {
    position:fixed;
    bottom: 0;
    background-color: #6894c4;
    border: 2px solid #212933;
    width: 65%;
    height: 6%;
    display: flex;
    padding: 0px;
    flex-direction: row;
    justify-content: center;
    justify-self: right;
    align-items: center;
    gap: 5px;
    z-index: 3;
    margin-right: 5%;
    padding: 20px;
    transition: transform 0.3s ease;
}

#miniProgress.hidden {
    transform: translateY(200%);
    transition: transform 0.3s ease;
}

#miniProgress.show {
    transform: translateY(0);
    transition: transform 0.3s ease;
}


.box {
    width: 100%;
    display: flex;
    justify-content: center;
    background-color: transparent;
    transition: transform 0.3s ease;
}

.box:hover {
    transform: scale(1.05);
    cursor: pointer;
    opacity: 0.95;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#shuffleDisplay {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

#shuffleDisplay button {
    width: fit-content;
    height:fit-content;
    padding: 15px;
    justify-content: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 18px;
    font-style:italic;
    font-weight: bold;
    background-color: #6d82a9;
    transition: transform 0.3s ease, background-color 0.3s ease;
    border-radius: 15px;
    border: none;
    z-index: 3;
}

#shuffleDisplay button:hover {
    background-color: #5a6b8c;
    cursor: pointer;
    opacity: 0.95;
    transform: scale(1.05);
}

#shuffleDisplay button:hover [data-lucide] {
    stroke: #90c2ff;
    width: 32px;
    height: 32px;
    cursor: pointer;
    
}

#shuffleDisplay button:focus {
    outline: #294a6d solid 2px;
}

#mainmiddle {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0px;
}

.audioProgress {
    width: 100%;
    height: 20px;
    border-radius: 10px;
    background-color: #526280;
    overflow: hidden;
}

.audioProgress::-webkit-progress-bar {
    background-color: #b2c6f4;
}

.audioProgress::-webkit-progress-value {
    background-color: #0d3a6d;
    transition: width 0.25s ease;
}

#volumeLevel {
    writing-mode: vertical-rl;
    direction: rtl;
    width: 20px;
    height: 360px;
    border-radius: 10px;
    background-color: #526280;
    overflow: hidden;
    z-index: 3;
}

#volumeLevel::-webkit-progress-bar {
    background-color: #b2c6f4;
}

#volumeLevel::-webkit-progress-value {
    background-color: #0d3a6d;
    transition: width 0.25s ease, height 0.25s ease;

}

#volumeLevel::-moz-progress-bar {
    background-color: #0d3a6d;
    transition: height 0.25s ease, width 0.25s ease;
}

#helpButton {
    width: 40px;
    height:40px;
    position: fixed;
    top: 0.5%;
    left: 0.5%;
    justify-content: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 18px;
    font-weight: bold;
    background-color: #6d82a9;
    transition: background-color 0.3s ease;
    border-radius: 15px;
    border: none;
    z-index: 3;
}

#helpButton:hover {
    background-color: #5a6b8c;
    cursor: pointer;
}

#help {
    position: fixed;
    top: 5%;
    left: 5%;
    transform: translate(-12%, -10%);
    background-color: #94b7ddc3;
    padding: 0px;
    border-radius: 15px;
    z-index: 1000;
    width: 30%;
    transition: opacity 0.3s ease;
}

#help.hidden {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s 0.3s;

}

[data-lucide] {
  width: 32px;
  height: 32px;
  stroke: #90c2ff;
  cursor: pointer;
}


[data-lucide]#off {
  stroke: #FFFFFF;
  width: 32px;
  height: 32px;
  cursor: pointer;

}

.switch {
  position: fixed;
  top: 2.5%;
  right: 1.5%;
  display: inline-block;
  width: 60px;
  height: 34px;
  z-index: 3;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #526280;
  transition: .4s;
  border-radius: 34px;
}

.knob {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 26px;
  height: 26px;
  transition: transform 0.4s ease;
  justify-content: center;
  align-items: center;
  display: flex;
  background-color: #94b7ddc3;
  border-radius: 50%;
}

span.knob [data-lucide] {
  width: 24px;
  height: 24px;
  stroke: #ffffff;
  transition: stroke 0.3s ease;
}

span.knob [data-lucide='moon'] {
    stroke: #061a29;
}

input:checked + .slider{
    background-color: #061a29;
}

input:checked + .slider .knob {
  transform: translateX(26px);
}

div.light {
    position: fixed;
    inset: -20px;
    opacity: 0;
    z-index: 2;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: 0px;
}

div.dark {
    position: fixed;
    inset: -20px;
    opacity: 0.8;
    background-color: #000000;
    z-index: 2;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: 0px;
}

@media (max-width: 768px) {

    h1 {
        font-size: 36px;
    }

    div {
        margin: 10px;
        padding: 15px;
    }

    .box {
        width: 100%;
    }

    img {
        max-width: 360px;
        margin: 10px;
    }

    .jukebox {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 10px;
    }

    .jukebox button {
        width: 95%;
        font-size: 20px;
        margin: 5px 0;
    }

    #shuffleDisplay {
        flex-direction: column;
        gap: 10px;
    }

}