body,
html {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.618;
  background-color: #2d2d2d;
  color: #333;
  height: 100%;
  width: 100dvw;
  margin: 0;
  padding: 0;
}
.button-1 {
  margin: 5px;
  background-color: #235191;
  border-radius: 7px;
  border-style: none;
  box-sizing: border-box;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  height: 30px;
  list-style: none;
  outline: none;
  padding: 7px 10px;
  position: relative;
  text-align: center;
  text-decoration: none;
  transition: color 100ms;
  vertical-align: baseline;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}
.button-example,
#finish-tutorial {
  background-color: #007d8a;
}
.button-reset {
  background-color: #087da1;
}
.button-run {
  background-color: #4679b0;
}

.button-1:hover,
.button-1:focus {
  background-color: #004e6f;
}
.button-container {
  margin-right: 20px;
  display: flex;
  align-items: center;
  justify-content: space-around;
}
.title-container {
  display: flex;
  align-items: center;
}
.runButton {
  margin: 5px;
}
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #032240;
  color: #c9c9c9;
  height: 70px;
}

.header h2 {
  margin-left: 20px;
  margin-right: 10px;
}

.container {
  display: flex;
  height: calc(100dvh - 71px);
  flex-direction: row;
  border-top: 1px solid #a4abbd;
}

#editor {
  height: 100%;
  min-width: 50%;
  right: 0;
  bottom: 0;
  left: 0;
}
.right-side {
  border-left: 1px solid #a4abbd;
  width: 50%;
  height: 100%;
  min-width: 50%;
}
#output {
  box-sizing: border-box;
  padding: 8px 12px;
  overflow: scroll;
  white-space: pre-wrap;
  background-color: #032240;
  color: #c9c9c9;
}
div#output::before {
  content: "";
  position: absolute;
  bottom: 8px;
  right: 12px;
  width: 10vh;
  height: 10vh;
  background: url("/static/gophers/gopherBuilding.svg") no-repeat center center;
  background-size: contain;
  opacity: 0.2;
  pointer-events: none;
}
div#output.error::before {
  background: url("/static/gophers/gopherError.svg") no-repeat center center;
  background-size: contain;
  opacity: 0.2;
}
div#output.success::before {
  background: url("/static/gophers/gopherSuccess.svg") no-repeat center center;
  background-size: contain;
  opacity: 0.2;
}
div#output.invalid::before {
  background: url("/static/gophers/gopherInvalidCode.svg") no-repeat center
    center;
  background-size: contain;
  opacity: 0.2;
}
div#output.building::before {
  background: url("/static/gophers/gopherBuilding.svg") no-repeat center center;
  background-size: contain;
  opacity: 0.2;
}
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  border-radius: 7px;
  padding: 5px 10px;
  display: none;
  position: absolute;
  background-color: #007d8a;
  color: #c9c9c9;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.5);
  z-index: 1;
}
.dropdown-content div {
  margin: 3px;
  cursor: pointer;
}
.dropdown-content div:hover {
  color: white;
}
.dropdown:hover .dropdown-content {
  display: block;
}

.output-line {
  white-space: pre-wrap;
}

.error {
  color: #cc0000;
  font-family: monospace;
}

#input-section {
  box-sizing: border-box;
  overflow: scroll;
}

textarea {
  box-sizing: border-box;

  border-style: none;
  background-color: transparent;
  overflow: auto;
  outline: none;
  height: 100%;
  border: none;
  overflow: auto;
  outline: none;
  color: #f5f5f5;
  -webkit-box-shadow: none;
  -moz-box-shadow: none;
  box-shadow: none;

  resize: none;
}
.texarea-wrapper {
  padding: 4px 8px;
}

.display-none {
  display: nones;
}
.display {
  display: block;
}
.finished-program {
  margin-top: 20px;
}

.full-height {
  height: 100%;
}
.semi-height {
  height: 50%;
}
.no-height {
  display: none;
}

@media (max-width: 767px) {
  .container {
    flex-direction: column;
  }
  .header h2,
  .button-container {
    margin-right: 4px;
  }

  #editor,
  #output {
    width: 100%;
  }
  #output {
    min-height: 45%;
  }
  #editor {
    height: 50%;
  }

  #output {
    border-left: none;
    border-top: 1px solid #c9c9c9;
  }
  .right-side {
    border: none;
    width: 100%;
    height: 50%;
  }
  .semi-height {
    height: auto;
  }
  #button-reset {
    display: none;
  }
  #button-format {
    display: none;
  }
}

.shortcuts {
  font-size: 9px;
  vertical-align: middle;
}
.tutorial-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  z-index: 1000;
}

.tutorial-modal {
  position: absolute;
  background: #032240;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  max-width: 300px;
  width: 100%;
  z-index: 2;
}

.tutorial-modal.centered {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.tutorial-content {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.tutorial-title {
  margin: 0;
  color: white;
  font-size: 1.2em;
}

.tutorial-description {
  margin: 0;
  font-size: 0.9em;
  color: white;
  line-height: 1.4;
}

.tutorial-buttons {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.tutorial-button {
  padding: 8px 16px;
  border-radius: 4px;
  background: white;
  cursor: pointer;
  font-size: 0.9em;
  transition: background 0.2s;
  background: #007d8a;
  color: white;
  border: none;
}

.tutorial-button:hover {
  background: #087da1;
}

.tutorial-highlight {
  position: relative;
  z-index: 1002;
}
