/* @import url("https://fonts.googleapis.com/css2?family=Roboto+Mono&display=swap"); */

body {
  background-color: #821AFE;
  font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(2, calc(50% - 11px));
  gap: 15px;
  grid-auto-rows: 500px;
}

.grid-item {
  display: inline-grid;
  position: relative;
}

.editing, .highlighting {
  /* Both elements need the same text and space styling so they are directly on top of each other */
  font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
  padding: 55px 10px 10px 10px;
  border: 0;
  width: calc(100% - 16px);
  height: calc(100% - 60px);
  position: absolute;
  word-wrap: break-word;
  overflow: auto;
  white-space: nowrap; /* Allows textarea to scroll horizontally */
  background-color: #111;
  border: white 2px solid;
}

.editing, .highlighting, .highlighting-content {
  /* Also add text styles to highlighting tokens */
  font-size: 15pt;
  line-height: 1.5;
  tab-size: 1;
  hyphens: none;
}

.editing {
  z-index: 1;
  color: transparent;
  background: transparent;
  caret-color: white; /* Or choose your favorite color */
  resize: none;
}

.editing:focus {
  outline: none;
}

.highlighting {
  z-index: 0;
  color: white;
}

.label {
  color: white;
  background-color: black;
  width: fit-content;
  height: fit-content;
  z-index: 2;
  border: white 2px solid;
  margin-right: auto; 
  margin-left: 5px;
  margin-top: 5px;
  padding: 5px;
}

.title {
  color: white;
  text-decoration: underline;
}

#footer {
  color: white;
  padding: 10px;
  margin-top: 20px;
  background-color: #333;
  width: fit-content;
  height: fit-content;
}

.uploadInput {
	width: 0.1px;
	height: 0.1px;
	opacity: 0;
	overflow: hidden;
	position: absolute;
	z-index: -1;
}

.uploadButton, .downloadButton {
  font-size: 15pt;
  min-width: 300px;
  font-weight: 700;
  color: black;
  background-color: white;
  display: inline-block;
  padding: 5px;
  text-align: center;
  cursor: pointer; /* "hand" cursor */
}

.clear-button:hover,
.clear-button:focus,
.downloadButton:focus,
.downloadButton:hover,
.uploadButton:focus,
.uploadButton:hover {
  background-color: #ccc;
  color: #222;
  cursor: pointer;
}

.link:link,
.link:visited,
.link:active{
  color: aqua;
  background-color: transparent;
}

.clear-button {
  height: 100%;
  color: black;
  background-color: white;
  padding-left: 5px;
  padding-right: 5px;
}