:root {
  --main-background: #212121;
  --main-text: #f3f3f3;
  --secondary: #bb9af7;
  --secondary-text: #888;
  --accent: #2a2a2a;
  --small-radius: 4px;
  --big-radius: 12px;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  font-family: 'Noto Sans JP Variable', sans-serif;
}

body {
  background-color: var(--main-background);
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE 10 and IE 11 */
  user-select: none; /* Standard syntax */
  cursor: default;
}

img {
  -webkit-user-drag: none;
}

button {
  font-family: inherit;
}

.container {
  color: var(--main-text);
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.titlebar {
  height: 30px;
  background: var(--main-background);
  user-select: none;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
}

.titlebar-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 20px;
  user-select: none;
  -webkit-user-select: none;
  padding: 16px;
  & img {
    width: 14px;
    height: 14px;
    filter: invert(100%) sepia(7%) saturate(3%) hue-rotate(348deg)
      brightness(112%) contrast(99%);
  }
}

.titlebar-button:hover {
  background: var(--secondary);
  cursor: pointer;
}

#titlebar-close:hover {
  background: #e72525;
}

html {
  visibility: visible;
  opacity: 1;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

/* Track */
::-webkit-scrollbar-track {
  background: var(--main-background);
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 4px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: var(--secondary);
}
