@font-face {
  src: url(./assets/fonts/normal.woff2);
  font-family: minecraftFont;
  font-weight: 400;
}

@font-face {
  src: url(./assets/fonts/italic.woff2);
  font-family: minecraftFont;
  font-style: italic;
  font-weight: 400;
}

@font-face {
  src: url(./assets/fonts/bold.woff2);
  font-family: minecraftFont;
  font-weight: 800;
}

@font-face {
  src: url(./assets/fonts/bolditalic.woff2);
  font-family: minecraftFont;
  font-style: italic;
  font-weight: 800;
}

body {
  background-color: #5a5a5a;
  display: flex;
  justify-content: center;
  align-items: center;
}

.motd_editor_container {
  width: 70%;
  @media only screen and (max-width: 600px) {
    width: 100%;
  }
}


.motd_cont {
  height: 100%;
  background-color: #2e2e2e;
  padding: 10px;
  text-align: center;
}

div span {
  -moz-user-select: text;
  -khtml-user-select: text;
  -webkit-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

.input {
  background-color: #494949;
  color: #fff;
  border-radius: 5px;
  outline: none;
  text-align: left;
  padding: 10px;
  padding-top: 5px;
  padding-bottom: 5px;
  width: 100%;
  resize: none;
  overflow-x: auto;
  overflow-y: auto;
  font-weight: lighter;
  
  font-family: "minecraftFont", sans-serif;
    
  font-size: 1.7vw;
  /* letter-spacing: 0.1vw; */
  @media only screen and (max-width: 600px) {
    font-size: 2.5vw;
    letter-spacing: 0.5px;
  }
}

.input > span {
  pointer-events: none;
}

.utils {
  margin-bottom: 10px;
  margin-top: 10px;
  display: flex;
  flex-direction: row;
  
  font-family: "minecraftFont", sans-serif;
    

  @media only screen and (max-width: 600px) {
    flex-direction: column;
  }
}

.colors {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(2, 1fr);
  grid-column-gap: 10px;
  grid-row-gap: 10px;
  width: 50%;
  max-width: 50%;
  @media only screen and (max-width: 600px) {
    min-width: 100%;
    margin-bottom: 10px;
  }
}

.others {
  width: 35%;
  display: flex;
  margin-left: 10px;
  flex-direction: column;
  @media only screen and (max-width: 600px) {
    width: 100%;
    flex-direction: row;
    margin-left: 0px;
  }
}

.styling_letters {
  user-select: none;
  display: flex;
  flex-direction: row;
  margin-bottom: 5px;
  height: calc(50% - 5px);
  gap: 5px;
  justify-content: space-between;
  width: 100%;
  @media only screen and (max-width: 600px) {
    margin-bottom: 0px;
    margin-right: 5px;
    width: 50%;
  }
}

.alignment_btns {
  user-select: none;
  margin-top: 5px;
  display: flex;
  min-height: calc(50% - 5px);
  flex-direction: row;
  justify-content: space-between;
  width: 100%;
  @media only screen and (max-width: 600px) {
    margin-left: 5px;
    margin-top: 0px;
    width: 50%;
  }
}

.align_btn {
  user-select: none;
  background-color: #d6d6d6;
  min-width: calc(100% / 3 - 5px);
  border-radius: 5px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.3vw;
  @media only screen and (max-width: 600px) {
    font-size: 2.5vw;
    padding-top: 5px;
    padding-bottom: 5px;
  }
}

.styling_cell {
  user-select: none;
  background-color: #d6d6d6;
  border-radius: 5px;
  aspect-ratio: 1 / 1;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.3vw;
  @media only screen and (max-width: 600px) {
    font-size: 2.5vw;
  }
}

.style_letter {
  vertical-align: middle;
  width: calc(100% / 5);
  min-height: calc(100%);
  aspect-ratio: unset;
  display: flex;
  justify-content: center;
  @media only screen and (max-width: 600px) {
    max-height: unset;
    padding-top: 5px;
    padding-bottom: 5px;
  }
}

.style_bold {
  font-weight: bold;
}

.style_italic {
  
  font-family: "minecraftFont", sans-serif;
    

  font-style: italic;
}

.style_underline {
  text-decoration: underline;
}

.style_strike {
  text-decoration: line-through;
}

.c1 {
  color: #000000;
}
.c2 {
  color: #0000aa;
}
.c3 {
  color: #00aa00;
}
.c4 {
  color: #00aaaa;
}
.c5 {
  color: #aa0000;
}
.c6 {
  color: #aa00aa;
}
.c7 {
  color: #ffaa00;
}
.c8 {
  color: #aaaaaa;
}
.c9 {
  color: #555555;
}
.c10 {
  color: #5555ff;
}
.c11 {
  color: #55ff55;
}
.c12 {
  color: #55ffff;
}
.c13 {
  color: #ff5555;
}
.c14 {
  color: #ff55ff;
}
.c15 {
  color: #ffff55;
}
.c16 {
  color: #ffffff;
}
.sbold {
  font-weight: 800;
}
.sitalic {
  font-style: italic;
}
.sunderline {
  text-decoration: underline;
}
.sstrike {
  text-decoration: line-through;
}
.sunderline.sstrike {
  text-decoration: underline line-through;
}
.serverbg {
  margin-top: 20px;
  width: 100%;
}

.servericon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  aspect-ratio: 1/1;
  width: 10%;
  left: 0.8vw;
}

span.sobf {
  display: inline-block;
  overflow: hidden;
  vertical-align: top
}

.input > span.sobf {
  max-width: unset;
  min-width: unset;
  display: inline-block;
  background-color: white;
  border-radius: 1px;
  margin-right: 0px;
  width: unset;
}

.motd_preview {
  width: 100%;
  height: 20%;
  text-align: left;
  position: relative;
}

.motd_text {
  width: calc(100% - 12.7%);
  height: calc(100% - 35%);
  text-align: left;
  left: 12.7%;
  padding-right: 0px;
  position: absolute;
  top: 32%;
  font-family: "minecraftFont", sans-serif;
  font-size: 1.7vw;
  -webkit-font-smoothing: antialiased;
  image-rendering: pixelated;
  letter-spacing: 0px;
  line-height: 2.5vw;
  @media only screen and (max-width: 600px) {
    top: 37%;
    left: 12.7%;
    font-size: 2.4vw;
    line-height: 3vw;
  }
}


.center {
  text-align: center;
}

.right {
  text-align: right;
}

.left {
  text-align: left;
}

.others > * .selected {
  filter: brightness(75%);
}

.colors > .selected {
  -webkit-box-shadow: inset 2px 1px 176px -87px rgba(0, 0, 0, 1);
  -moz-box-shadow: inset 2px 1px 176px -87px rgba(0, 0, 0, 1);
  box-shadow: inset 0px 0px 12px 0px rgba(0, 0, 0, 1);
}

.export_import {
  width: 15%;
  margin-left: 10px;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;

  @media only screen and (max-width: 600px) {
    width: 100%;
    margin-left: 0px;
    margin-top: 10px;
    flex-direction: row;
  }
}

.copy {
  background-color: #06b300;
  border-radius: 10px;
  color: white;
  height: 50%;
  font-size: 2vw;
  width: 100%;
  @media only screen and (max-width: 600px) {
    width: 50%;
    padding-top: 5px;
    padding-bottom: 5px;
  }
}

.copy:hover {
  background-color: #00a300;
}

.import {
  background-color: #06b300;
  border-radius: 10px;
  color: white;
  height: 50%;
  font-size: 2vw;
  width: 100%;
  @media only screen and (max-width: 600px) {
    width: 50%;
    padding-top: 5px;
    padding-bottom: 5px;
  }
}

.import:hover {
  background-color: #00a300;
}

.style_letter:hover {
  background-color: #b8b8b8;
}

.align_btn:hover {
  background-color: #b8b8b8;
}

.colors *:hover {
  transform: scale(1.1);
}


.hidden {
  display: none;
}

.modal_wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 999;
}

.modal {
  position: absolute;
  top: 50%;
  left: 50%;
  background-color: #2e2e2e;
  
  z-index: 1000;
  transform: translate(-50%, -50%);
  padding: 20px;
  border-radius: 10px;
  width: 50%;
  @media only screen and (max-width: 600px) {
    width: 90%;
  }
}

.modal_content {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
}

.modal_title {
  font-size: 2vw;
  font-weight: bold;
  margin-bottom: 10px;
  letter-spacing: 0.4vw;
  color: white;
  font-family: "minecraftFont", sans-serif;
    
  @media only screen and (max-width: 600px) {
    font-size: 4vw;
  }
}

.modal_close {
  margin-bottom: 20px;
  font-size: 20px;
  align-self: flex-end;
  color: white;
  cursor: pointer;
}

.import_text {
  width: 100%;
  height: 100%;
  background-color: #494949;
  color: #fff;
  border-radius: 5px;
  outline: none;
  text-align: start;
  padding: 10px;
  padding-top: 5px;
  padding-bottom: 2px;
  resize: none;
  overflow-x: auto;
  overflow-y: auto;
  font-weight: lighter;
  font-family: monospace, sans-serif;
  letter-spacing: 0.08vw;
  @media only screen and (max-width: 600px) {
    font-size: 2.5vw;
    letter-spacing: 0.5px;
  }
}

.import_btn {
  background-color: #06b300;
  margin-top: 20px;
  border-radius: 10px;
  color: white;
  letter-spacing: 0.4vw;
  font-family: "minecraftFont", sans-serif;
    
  font-size: 1.5vw;
  width: 100%;
  padding-top: 5px;
  padding-bottom: 5px;
  @media only screen and (max-width: 600px) {
    font-size: 3vw;
  }
}

.import_modes {
  display: flex;
  flex-direction: row;
  gap: 2px;
  margin-top: 20px;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
}

.import_mode {
  color: white;
  background-color: #0e0e0e;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 10px;
  aspect-ratio: 8/1;
}

.import_mode > i {
  margin: 0px;
  margin-right: 5px;
}

.import_server {
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
  cursor: pointer;
}

.import_manual {
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
  cursor: pointer;
}

.import_mode.selected {
  background-color: #1a1a1a;
}