html, body {
    margin: 0;
    padding: 0;
    overflow:hidden;
}

#center {
    max-width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.box-icons1 {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    margin-left: 2vw;
    margin-top: 9vh;
    width: 20vw;
    gap: 2vw 2vh;
    position: absolute;
}

.box-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0px;
    user-select: none;
}

.box-icon img {
    object-fit:scale-down;
    height: 7vh;
}

.pclogo-pc {
    padding-top: 4vh;
}

#shadow {
    background: linear-gradient(180deg, rgba(2,0,36,0.1) 70%, rgba(0,0,0,0.6) 100%);
    height: 100vh;
    width: 100%;
    position: absolute;
    z-index: -2;
}

#wallpaper {
    height: 100vh;
    width: 100vw;
    object-fit: cover;
    z-index: -3;
    position: absolute;
}

.app-shadow {
    box-shadow: rgba(0,0,0,0.4) 0 4px 14px;
}

.app {
    resize:both;
    overflow:hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #ffffff;
    position: absolute;    
    border-radius: 4px;
}

.appname {
    font-size: 1.4vh;
}

#music {
  min-width: 70vw;
  min-height: 60vh;
  width: 12vw;
  height: 8vh;
  top: 12vh;
  left: 12vw;
}

#photos {
  min-width: 57vw;
  min-height: 68vh;
  width: 12vw;
  height: 14vh;
  top: 17vh;
  left: 14vw;
}

#musicheader, #photosheader, #articlesheader, #pagesheader, #videosheader, #photoviewerheader {
    position: relative;
    top: 0;
    height: 3%;
    width: 100%;
    background-image: linear-gradient(180deg, #ffffff 0%,#e4e4e4 100%);
    border-bottom: 1px solid rgb(199, 199, 199);
    display: flex;
    justify-content: space-between;
    padding: 2px;
}

#musicheader, #photosheader, #articlesheader, #pagesheader, #videosheader a, #musicheader, #photosheader, #articlesheader, #pagesheader, #videosheader {
    display: flex;
    align-items: center;
}

#box-appactions {
    display: flex;
    flex-direction: row;
    padding-left: 0.4vw;
    align-items: center;
}

#box-appactions a {
  display: flex;
  align-items: center;
}

#box-appactions a img {
    margin-right: 4px;
    height: 1.4vh;
}

#musictopbar {
    background-image: linear-gradient(180deg, #E5E5E5 0%, #D0D0D0 100%);
    max-height: 8%;
    width: 100%;
    border-bottom: 1px solid #AEAEAE;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

#nowplayingbar {
    background-color: #E8E8E8;
    width: 38%;
    height: 100%;
    border-right: 1px solid #d1d1d1;
    border-left: 1px solid #d1d1d1;
}

#notplayingbar {
  background-color: #f8f8f8;
  width: 38%;
  height: 100%;
  border-right: 1px solid #d1d1d1;
  border-left: 1px solid #d1d1d1;
  -webkit-user-drag: none;
  user-select: none;
}

.volumeslider {
    -webkit-appearance: none;
    appearance: none;
    max-width: 30%;
    height: 0.4vh;
    background: #707070;
    outline: none;
    border-radius: 10px;
  }

.volumeslider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    height: 15px;
    width: 15px;
    background: #ffffff;
    cursor: url(../ui/grab.svg), pointer;
    border-radius: 100%;
    box-shadow: rgba(0, 0, 0, 0.39) 0 2px 5px;
  }

  #nowplaying-song {
    font-family: Helvetica, sans-serif;
    font-size: 1.5vh;
    text-overflow: ellipsis;
    text-align: center;
    overflow: hidden;
    position: relative;
    display: inline-block;
    text-decoration: none;
    text-overflow: ellipsis;
    color: #000;
    flex-wrap: wrap;
    white-space: nowrap;
    width: 95%;
  }

  #nowplaying-info {
    font-family: Helvetica, sans-serif;
    font-size: 1.2vh;
    opacity: 0.6;
    cursor: url(../ui/point.svg), pointer;
  }

  #nowplaying-artist {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  #nowplaying-album {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  #searchbarbox {
    appearance: none;
    border: 1px solid gray;
    border-radius: 4px;
    background-image: url('https://www.w3schools.com/css/searchicon.png');
    object-fit: contain;
    background-size: 1.5vh;
    background-position: 4px 3px;
    background-repeat: no-repeat;
    padding-left: 23px;
    font-size: 1.4vh;
    box-shadow: rgba(0, 0, 0, 0.3) inset 0 0 4px;
    font-family: Helvetica, sans-serif;
    height: 2vh;
  }

  #musiccontrol a img {
    object-fit: contain;
    height: 1.5vh;
  }

  #musiccontrol a {
    display: flex;
  }

  .sortbybutton {
    display:flex;
    align-items: center;
    padding-left: 7%;
    padding-top: 2%;
    padding-bottom: 2%;
    user-select: none;
  }

  .sortbybutton:hover {
    background-color: rgba(0, 0, 0, 0.1);
  }

  .sortbybutton img {
    object-fit: cover;
    height: 1.7vh;
    margin-right: 3%;
  }

  .sortbybutton span {
    font-family: Helvetica, sans-serif;
    font-size: 1.5vh;
    letter-spacing: 0.4px;
  }

  .sortedmusicbutton, .sortedphotosbutton {
    padding-left: 0.7vw;
    padding-top: 0.8vh;
    padding-bottom: 0.8vh;
    display: flex;
    align-items: center;
  }

  .sortedmusicbutton:hover, .sortedphotosbutton:hover {
    background-color: rgba(0, 0, 0, 0.1);
  }

  .sortedmusicbutton:active, .sortedphotosbutton:active {
    background-color: rgba(0, 0, 0, 0.3);
  }

  .sortedmusicbutton img {
    object-fit: cover;
    height: 5vh;
    width: 5vh;
    border-radius: 5vh;
    box-shadow: rgba(0, 0, 0) inset 2px 2px 2px;
    user-select: none;
    -webkit-user-drag: none;
  }

  .sortedmusicbutton span, .sortedphotosbutton span {
    font-family: helvetica, sans-serif;
    margin-left: 4%;
    font-size: 1.5vh;
    user-select: none;
    -webkit-user-drag: none;
  }

  #sortedalbumlist {
    background-color: white; 
    width: 80%; 
    height: 100%; 
    overflow-y: scroll; 
    overflow-x:hidden; 
    padding: 0;
  }

  .sortedalbum {
    padding-bottom: 3%;
    border-bottom: 1px solid #cacaca;
    padding-top: 2%;
  }

  .album-namedate {
    font-family: Helvetica, sans-serif;
    display: flex;
    justify-content: space-between;
  }

  #selectedartistname, .sort-year {
    font-family: Helvetica, sans-serif; 
    font-size: 2.4vh; 
    font-weight: bold;
  }

  .album-name {
    font-size: 1.7vh;
    font-weight: bold;
    font-family: Arial, Helvetica, sans-serif;
  }

  .album-date {
    font-size: 1.4vh;
    font-weight: light;
    opacity: 0.6;
    font-family: Arial, Helvetica, sans-serif;
  }

  .album-cover {
    object-fit: cover;
    height: 100%;
    width: 100%;
    max-height: 150px;
    max-width: 150px;
    border-radius: 2px;
    margin-top: 2%;
    -webkit-user-drag: none;
  }

  .trackmargin {
    margin-top: 3%;
  }

  .album-tracklength {
    opacity: 0.6;
  }

  .album-track {
    border: 0;
    border-bottom: 1px solid #cacaca;
    width: 100%;
    height: fit-content;
    display: flex;
    justify-content: space-between;
    font-family: Helvetica, sans-serif;
    font-size: 1.4vh;
    padding: 4px;
    background-color: rgba(0, 0, 0, 0);
  }

  .album-trackname {
    flex-wrap: wrap;
    text-align: left;
  }

  
  .album-track:active {
    background-color: rgba(0, 0, 0, 0.1);
  }

  .hidden {
    display: none;
  }

  #albumstack {
    height: 1px; 
    width: 100%; 
    background-color: rgb(202, 202, 202); 
    margin-top: 0.5vh; 
    margin-bottom: 1vh;
  }

  .sortbycolor {
    height: min-content;
    width: auto;
    padding: 3%;
    display: flex; 
    flex-direction: row;
    row-gap: 3px;
    column-gap: 3px;
    flex-wrap: wrap;
    justify-content: stretch;
  }

  .colorbox {
    height: 15px;
    width: 15px;
  }

  .colorbox:active {
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.5);
  }

  .colorbox.selected {
  border: 1px solid black;
  }

  #photolist-box {
    width: 60%;
    padding: 1.5%;
  }

  #sort-year {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    font-size: 2.5vh;
  }

  #photolist {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: stretch;
    row-gap: 1.5vh;
    column-gap: 1vh;
  }

  .photopreview {
    height: 14vh;
    width: 12vh;
  }

  .photopreview-text span {
    font-size: 1.6vh;
    color: rgb(0, 0, 0);
    opacity: 0.95;
    font-family: Arial, Helvetica, sans-serif;
  }

  .photopreview img {
    width: 14vh;
    height: 14vh;
    object-fit: cover;
    box-shadow: #70707091 0px 2px 5px;
    margin-bottom: 0.3vh;
  }

  .photopreview-img {
    user-select: none;
  }

  #songprogress {
    position: absolute;
  }

#songprogress {
  -webkit-appearance: none;
  appearance: none;
  width: 38%;
  height: 3px;
  background: #afafaf;
  background-image: linear-gradient(#6d6d6d, #6d6d6d);
  background-repeat: no-repeat;
  background-size: 0% 100%;
  margin: 0;
  align-self: flex-end;
  cursor: url(../ui/cursor.svg), pointer;
}

/* Thumb */
#songprogress::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  height: 3px;
  width: 3px;
  background: #383838;
  cursor: url(../ui/grab.svg), pointer;
  margin-top: -2px;
  border: none;
}

#songprogress::-moz-range-thumb {
  height: 3px;
  width: 3px;
  background: #6d6d6d;
  cursor: url(../ui/cursor.svg), pointer;
  border: none;
}

#songprogress::-moz-range-track {
  background: #afafaf;
  height: 3px;
}

.found-album {
  width: 120px;
  font-family: sans-serif;
  user-select: none;
}

.found-artist {
  width: 120px;
  font-family: sans-serif;
  user-select: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.found-album img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 5px;
}

.found-artist img {
  width: 100%;
  border-radius: 100%;
  display: block;
  margin-bottom: 15px;
}

.found-album-info {
  display: flex;
  flex-direction: column;
}

.found-album-name {
  font-size: 15px;
  color: #222;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.found-album-artist {
  font-size: 12px;
  color: #858585;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

#searchresults-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

#searchresults {
  overflow-y: scroll;
}

#repeat-button, #play-button, #musicvolume, #song-next, #song-previous, #nowplaying-info, .app-close, .close, .photo-grid img, .zoom-out, .zoom-in, .download {
  cursor: url(../ui/point.svg), pointer;
}

.modal {
  position: fixed;
  z-index: 1000;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.705);
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80vh;
  box-shadow: 0 0 20px white;
  border-radius: 8px;
}

.close {
  position: absolute;
  top: 30px;
  right: 45px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  user-select: none;
}

.album-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  column-gap: 3vh;
  row-gap: 4vh;
  padding-top: 1vh;
}

.photo-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  column-gap: 0.5vh;
  padding-top: 1vh;
}

.photo-grid img {
  height: 15vh;
  width: 15vh;
  object-fit: cover;
}

.fade-out {
  opacity: 0;
  transition: opacity 0.1s ease;
}

.fade-in {
  opacity: 1;
  transition: opacity 0.1s ease;
}

.photoviewer-controlbar button {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  user-select: none;
  padding: 4px 8px;
  transition: background-color 0.2s ease;
}

.photoviewer-controlbar button:hover {
  background-color: #ddd;
}

.photoviewer-controlbar {
  user-select: none;
}

/* Cursor styles for pan */
.photoviewer-window div[style*="cursor: grab"] {
  cursor: grab;
}

.photoviewer-window div[style*="cursor: grabbing"] {
  cursor: grabbing;
}

#imgContainer {
  transform-origin: center center;
  /* or */
  transform-origin: 50% 50%;
}

.zoom-in {
  margin-right: 1vw;
}

.zoom-out {
  margin-left: 1vw;
}

.photoviewer-controlbar {
  display: flex;
  width: 100%;
  padding: 2px;
  align-items: center;
  background: #c2c2c2 !important;
  background: linear-gradient(180deg,rgba(222, 222, 222, 1) 0%, rgba(227, 227, 227, 1) 50%, rgba(222, 222, 222, 1) 100%) !important;
}

.photoviewer-controlbar button {
  background-color: rgb(255, 255, 255) !important;
  border: none;
  padding: 6px;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 20px;
  border-radius: 4px;
  padding: 0;
  margin-right: 0.3vw;
  margin-top: 0.2vh;
  margin-bottom: 0.2vh;
}

.zoom-in {
  margin-right: 2vw !important;
}

.photoviewer-controlbar svg,
.photoviewer-controlbar img {
  width: 20px;
  height: 20px;
  pointer-events: none;
}