:root {
  --bg-image: url("/Files/Images/background.png");
  --nightmode-button-image: url("/Files/Images/bg-light.png");
}

body {
  font-family:verdana;
  background-image: var(--bg-image);
  background-repeat: repeat;
  background-attachment: fixed;
  background-position: center;
}

body.dark-mode {
  --bg-image: url("/Files/Images/background-dark.png");
  --nightmode-button-image: url("/Files/Images/bg-night.png");
}

.characterlist {
  padding: 0;
  margin: 0;
  height: 100%;
  display:block;
  overflow-y:hidden;
}

.box {
  width: 110px;
  height: 110px;
  display: inline-block;
}

.box:hover .zoom {
  transform: scale(1.15,1.15);
}

.box:hover .cname{
  opacity: 1;
  visibility: visible;
  transform: skew(0deg, -5deg) scale(1,1);
}

.box:hover .icon{
  opacity: 1;
  animation-name: iconflip;
  animation-duration: 0.25s;
  transform: scale(1,1);
}

.zoom {
  transition: all .2s;
  margin: 5px 5px;
  box-sizing: border-box;
  text-align: center;
  display: flex;
  vertical-align: middle;
  position: absolute;
  filter: drop-shadow(7px 7px 3px #bebed4);
}

.cname {
  opacity: 0;
  transition: all .2s;
  color: white;
  background-color: dimgray;
  position: relative;
  width:100%;
  margin: 55% 0;
  text-align:center;
  transform: skew(0deg, 0deg) scale(1,0);
  visibility: hidden;
  pointer-events: none;
  white-space: nowrap;
}

.cname-container {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
}

.cname-test-nowrap {
  opacity: 0;
  transition: all .2s;
  color: white;
  background-color: dimgray;
  position: relative;
  margin: 55% 0;
  text-align: center;
  transform: skew(0deg, 0deg) scale(1, 0);
  visibility: hidden;
  pointer-events: none;
  white-space: normal;
}

.icon {
  transition: all .2s;
  transform: scale(0,1);
  display: block;
  margin-left: auto;
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-user-select: none;
  user-select: none;
}

a, a:link, a:visited, a:hover, a:focus, a:active{
  color: inherit;
}

ul {
    text-align: center;
    list-style-position: inside;
}

html {
  margin-left: 50px;
  margin-right: 50px;
}

.navcontainer {
  position: absolute;
  top: 5px;
  left: 5px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 99;
}

.navcontainer img
{
  width: 32px;
  height: 32px;
}

.navbar {
  list-style: none;
  margin: 0;
  width: 32px;
  background-color: mediumaquamarine;
  border-radius: 8px;
  position: relative;
  padding: 5px;

}

.navbar li:last-child .navlink {
  padding-bottom: 0;
}

.navbar:nth-of-type(2) {
  background-color: #edac4a;
}

.navbar:nth-of-type(2) .navdesc {
  background-color: #edac4a;
}

.navbar:nth-of-type(3) {
  background-color: #964aed;
}

.navbar:nth-of-type(3) .navdesc {
  background-color: #964aed;
}

.navlink {
  display: flex;
  align-items: center;
  padding-top: 2px;
  padding-bottom: 2px;
}

.naviconholder {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  margin:0;
}

.naviconholder:hover .navdesc {
  opacity: 1;
  transform: skew(0deg, -5deg) scale(1,1);
}

.navicon {
  display: inline-block;
  margin: 0;
  pointer-events:none;
}

.navdesc {
  transition: all .2s;
  opacity: 1;
  width: fit-content;
  transform: skew(0deg, 0deg) scale(0,1);
  transform-origin: left;
  pointer-events: none;
  display: flex;
  color: white;
  align-items: center;
  background-color: mediumaquamarine;
  padding: 5px;
  border-radius: 0 10px 10px 0;
  margin-left: 5px;
  white-space: nowrap;
}

@keyframes iconflip {
  0% {transform: scale(0,0.25);}
  33% {transform: scale(-1,0.5);}
  66% {transform: scale(0,0.75);}
  100% {transform: scale(1,1);}
}

.settingscontainer {
  position: absolute;
  top: 5px;
  right: 5px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 99;
}

.settingsbar {
  list-style: none;
  margin: 0;
  width: 32px;
  background-color: transparent;
  border-radius: 8px;
  position: relative;
  padding: 5px;

}

.nightmode-button {
  background-image: var(--nightmode-button-image);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  
  background-color: transparent;
  border: none;
  outline: none;
  box-shadow: none;

  padding: 0;
  cursor: pointer;
  
  width: 32px;
  height:32px;
}