@import 'slick-carousel/slick/slick.css';
@import 'slick-carousel/slick/slick-theme.css';
@import 'rc-dialog/assets/index.css';
@import 'rc-tooltip/assets/bootstrap.css';
@import 'rc-notification/assets/index.css';
@import './minecraft.css';
@import './custom.css';
@import './assets/iconfont.css';

* {
  -webkit-user-drag: none;
  user-select: none;
}

html, .vh100 { height: 100% }

body {
  position: relative;
  overflow: hidden;
  top: 80px;
  height: calc(100% - 70px);
  color: var(--text-color-0);
  filter: drop-shadow(1px 4px 6px #00000077);
  -webkit-app-region: drag;
}

a { color: var(--text-color-0) }
a.link, a[role='link'] {
  transition: color .3s;
  color: var(--link-color);
  cursor: pointer;
  text-decoration: underline;
}
a.link:hover, a[role='link']:hover { color: var(--link-hover-color); }

.top {
  transition: 3s;
  margin-top: 5px;
  height: 30px;
  will-change: width;
  width: 800px;
  transform: translateZ(0);
  background-size: 100% 100%;
  background: var(--top-color);
  box-shadow: inset 0 0 20px -2px var(--top-shadow);
  filter: var(--top-filter);
  clip-path: polygon(10% 0, 0 100%, 100% 100%, calc(100% - 10%) 0);
}
.top::after {
  content: '';
  width: 100%;
  height: 100%;
}

#top-buttons { transition: opacity 1s }

.blocks {
  z-index: 1060;
  transition: width 3s;
  height: 20px;
  overflow: hidden;
  position: absolute;
  transform: translateZ(0);
  filter: var(--top-filter);
}

#blocks0 {
  width: 100%;
  margin-top: -1.5px;
  border-top: var(--top-border) solid 1.5px;
}

#blocks1 {
  opacity: 0.85;
  margin-top: 20px;
  width: calc(100% - 40px);
  margin-left: 20px;
}

#blocks2 {
  transition: opacity 1s;
  opacity: 0.75;
  margin-top: 40px;
  width: calc(100% - 320px);
  margin-left: 160px;
}

.blocks>div {
  transition: background-color 1s;
  width: 20px;
  height: 20px;
  display: inline-block;
  will-change: background-color;
  box-shadow: 0 1px 10px 2px rgba(0, 0, 0, 0.24);
}

main {
  border-radius: 4px;
  transition: 3s;
  overflow: hidden;
  display: flex;
  width: calc(100% - 40px);
  position: relative;
  top: 20px;
  left: 20px;
  overflow: hidden;
  height: calc(100% - 88px);
  background-color: #ae7a47;
  background: var(--background);
  background-repeat: no-repeat;
  background-size: cover;
}

button, a, input, select, textarea {
  outline: none !important;
  -webkit-app-region: no-drag;
}

img {
  pointer-events: none;
}

input::-webkit-outer-spin-button, input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

#main-content {
  width: 100%;
  padding: 20px;
  transition: .7s;
  -webkit-app-region: no-drag;
  overflow-x: hidden !important;
}

#top-buttons button {
  z-index: 2050;
  background-color: unset;
  border: none;
  position: fixed;
  top: 33px;
  cursor: pointer;
  transition: .3s;
}
#top-buttons button:hover { transform: scale(1.1) }
#hide {
  right: 54px;
  margin-top: -2px;
}
#close { right: 22px }
#go-left { left: 24px }
#go-right { left: 72px }
#shrink { right: 92px }
#spread {
  left: 32px;
  display: none;
}

.rc-dialog-mask, #pl-drag {
  left: 20px;
  right: 20px;
  top: 52px;
  bottom: 38px;
  left: 20px;
  height: auto;
  border-radius: 4px;
  backdrop-filter: brightness(0.7) blur(2px);
  background-color: #37373780;
}
.rc-dialog-wrap {
  top: 52px;
  z-index: 1100;
  height: calc(100% - 90px);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}
.rc-dialog-content {
  border-radius: 3px;
  background-image: url(./assets/images/bg-wool-white.png);
}
.rc-dialog-close {
  transition: .4s;
}
.rc-dialog {
  color: #000000e0;
  width: auto;
  max-width: 650px;
  box-shadow: 0 8px 11px -5px rgba(0, 0, 0, 0.2),
    0 17px 26px 2px rgba(0, 0, 0, 0.14),
    0 6px 32px 5px rgba(0, 0, 0, 0.12);
}
.rc-dialog-footer {
  padding: 20px;
  text-align: center;
}

#top-logo {
  cursor: pointer;
  -webkit-app-region: no-drag;
  filter: drop-shadow(2px 4px 6px #0000004e);
  top: 40px;
  left: calc(50% - 150px);
  z-index: 1061;
  position: fixed;
  width: 300px;
  transition: .8s;
}
#top-logo img {
  max-width: 100%;
  max-height: 100%;
  image-rendering: pixelated;
}
#top-logo:hover {
  filter: drop-shadow(0 4px 14px #000000ae);
}

.rc-tooltip-inner {
  min-height: unset;
}

.rc-notification {
  left: unset !important;
  right: 40px;
  top: 100px !important;
  z-index: 5000;
  display: flex;
}
.rc-notification-notice {
  padding-left: 20px;
  width: fit-content;
  margin-left: auto;
  color: #000000d6;
}

.route {
  animation: fade-in 1s ease-in;
  transition: opacity ease-in-out 1s;
}
.route.route-hide {
  opacity: 0;
  display: none;
}
@keyframes fade-in {
  from { opacity: 0 }
  to { opacity: 1 }
}

.pl-form {
  display: flex;
  flex-wrap: wrap;
}
.pl-form .group {
  margin: auto;
  padding-top: 6px;
  flex-wrap: wrap;
  align-items: center;
  width: 45%;
  display: flex;
}
.pl-form .group.switch {
  justify-content: center;
}
.pl-form label {
  font-size: 12px;
}
.pl-form input, .pl-form select {
  width: 100%;
}

#pl-drag {
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  position: absolute;
  z-index: 500;
  text-align: center;
  padding: 140px 0 0;
  pointer-events: none;
  transition: opacity 1.4s;
}
#pl-drag i {
  font-size: 70px;
}
