@font-face {
	font-family: 'Minecraft';
	src: url('minecraft.woff2') format('woff2');
}

html, body {
  min-width: 100%;
  min-height: 100%;
  margin: 0;
  font-family: Arial;
}

body {
  background: #842a96;
  background: -webkit-linear-gradient(160deg, rgba(132, 42, 150, 1) 0%, rgba(67, 24, 168, 1) 25%, rgba(30, 30, 31, 1) 100%);
  background: -moz-linear-gradient(160deg, rgba(132, 42, 150, 1) 0%, rgba(67, 24, 168, 1) 25%, rgba(30, 30, 31, 1) 100%);
  background: linear-gradient(160deg, rgba(132, 42, 150, 1) 0%, rgba(67, 24, 168, 1) 25%, rgba(30, 30, 31, 1) 100%);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#842A96", endColorstr="#1E1E1F", GradientType=0);
  background-repeat: no-repeat;
  background-size: cover;
}

.container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.module {
  width: 128px;
  height: 128px;
  border: 3px solid #777777;
  color: white;
  cursor: pointer;
  transition: background .2s ease-in-out;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 4px;
  position: relative;
}

.module:hover {
  background: #777777;
}

.module i {
  font-size: 40px;
  transition: transform .2s ease-in-out;
  position: absolute;
  top: 20px;
}

.module:hover i {
  transform: scale(1.2);
}

.module p {
  font-size: 17px;
  position: absolute;
  top: 57px;
}

#back {
  position: fixed;
  top: 25px;
  left: 25px;
  cursor: pointer;
}

select, input[type=text], textarea, button {
  padding: 8px;
  font-size: 15px;
  border-radius: 6px;
  border: 2px solid black;
}

button {
  cursor: pointer;
}

.blockselect {
  padding: 8px;
  background-color: #777777;
  color: white;
  display: inline-block;
  border-radius: 6px;
  cursor: pointer;
}

.blockselect.selected {
  background-color: #434343;
}

.console {
  background-color: #000000;
  color: #ffffff;
  border-radius: 4px;
  display: block;
  padding: 10px;
  text-align: left;
  width: 300px;
  font-size: 16px;
}

.cursor {
  background-color: transparent;
  border: 1px solid #00ff00;
  width: 7px;
  height: 16px;
  display: inline-block;
  position: relative;
  top: 5px;
}

.cursor.active {
  background-color: #00ff00;
}

.upload {
  border: 2px dashed red;
  color: red;
  padding: 93px;
  max-width: 200px;
  word-wrap: break-word;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

html { min-height: 100%; }
body { min-height: 100vh; background-attachment: scroll; }
*, *::before, *::after { box-sizing: border-box; }
.page { max-width: 1120px; margin: 0 auto; padding: 0 20px 60px; text-align: center; }
.page-header { padding: 36px 80px 24px; text-align: center; color: white; }
.brand { color: white; font-size: 30px; font-weight: 700; text-decoration: none; }
.tagline { color: #e0d8f4; font-size: 16px; }
.breadcrumbs { margin-top: 16px; font-size: 14px; line-height: 1.8; color: #e0d8f4; }
.breadcrumbs a { color: white; }
.page-header h1 { font-size: 24px; margin: 16px 0 0; }
.catalog { display: grid; gap: 20px; padding-top: 16px; }
.module { box-sizing: content-box; text-decoration: none; }
.module p { width: 100%; padding: 0 6px; box-sizing: border-box; }
.back-link { position: fixed; top: 24px; left: 24px; z-index: 2; border-radius: 8px; }
.back-link img { display: block; }
.tool-content { padding-top: 16px; }
.tool-content textarea { width: 280px; max-width: 100%; min-height: 90px; vertical-align: middle; }
.tool-content input[type=text], .tool-content select { max-width: 100%; }
.tool-content img { max-width: 100%; }
.notice { max-width: 720px; margin: 12px auto 20px; padding: 12px 16px; border: 1px solid #c6b5e6; border-radius: 6px; background: #322044; color: white; line-height: 1.5; overflow-wrap: anywhere; }
.notice[hidden] { display: none; }
.empty-state { color: #f3eaff; }
.home-link { display: inline-block; color: white; margin-top: 20px; }
button:disabled { cursor: default; opacity: .55; }
a:focus-visible, button:focus-visible, [data-call]:focus-visible { outline: 3px solid #eec5ff; outline-offset: 4px; }
@media (max-width: 640px) {
  .page-header { padding: 30px 60px 20px; }
  .page { padding-right: 16px; padding-left: 16px; }
  .back-link { top: 20px; left: 10px; }
  .back-link img { width: 36px; height: 36px; }
  .container { gap: 14px; }
  .catalog { gap: 14px; }
  .module { width: 128px; }
  .tool-content textarea { display: inline-block; width: min(100%, 340px); margin-bottom: 8px; }
  .upload { width: 200px; max-width: 100%; padding: 72px; margin: auto; }
  .console { max-width: 100%; overflow-wrap: anywhere; }
}
