* {
  box-sizing: border-box;
}
body {
  padding: 0;
  margin: 0;
  overflow: hidden;
}
label {
  font-size: 0.8em;
  line-height: 100%;
}
#container {
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: row;
  display: flex;
}
#box-left {
  width: 300px;
  height: 100%;
  background-color: #68818b;
  color: white;
  font-family: "Gowun Batang", serif;
  font-size: 2em;
  line-height: 200%;
  text-align: right;
  padding: 0;
  margin: 0;
  position: absolute;
  top: 0;
  left: 0;
  transition: all 1s 
}
#box-right {
  width: calc(100% - 300px);
  height: 100%;
  float: right;
  flex: 1;
  padding: 0;
  margin: 0;
  position: absolute;
  top: 0;
  right: 0;
  transition: all 1s;
}
#box-left > h1 {
  width: calc(100% - 40px);
  padding: 30px 0 0;
  padding-right: 20px;
  float: right;
}
#options {
  width: calc(100% - 40px);
  padding: 0;
  padding-right: 20px;
  float: right;
}
#options > div {
  height: 40px;
  display: inline-block;
}
#sourceText {
  width: calc(100% - 5px);
  height: calc(100% - 5px);
  border: none;
  overflow: auto;
  font-family: "Gowun Batang", serif;
  font-size: 2em;
  resize: none;
}
/* #options > div:not(:last-child) {
  padding: 0;
  background-color: red;
}
#description > div:last-child {
  padding: 0;
} */


/******************* Switches *******************/
.checkbox-wrapper .switch {
  /* Variables */
  --switch_width: 2em;
  --switch_height: 1em;
  --thumb_color: #e8e8e8;
  --track_color: #68818b;
  --track_active_color: #009A00;
  --outline_color: #422800;
  font-size: 17px;
  position: relative;
  display: inline-block;
  width: var(--switch_width);
  height: var(--switch_height);
}

/* The slider */
.checkbox-wrapper .slider {
  box-sizing: border-box;
  border: 2px solid var(--outline_color);
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--track_color);
  transition: 0.15s;
  border-radius: var(--switch_height);
}

.checkbox-wrapper .slider:before {
  box-sizing: border-box;
  position: absolute;
  content: "";
  height: var(--switch_height);
  width: var(--switch_height);
  border: 2px solid var(--outline_color);
  border-radius: 100%;
  left: -2px;
  bottom: -2px;
  background-color: var(--thumb_color);
  transform: translateY(-0.2em);
  box-shadow: 0 0.2em 0 var(--outline_color);
  transition: 0.15s;
}

.checkbox-wrapper input:checked + .slider {
  background-color: var(--track_active_color);
}

.checkbox-wrapper input:focus-visible + .slider {
  box-shadow: 0 0 0 2px var(--track_active_color);
}

/* Raise thumb when hovered */
.checkbox-wrapper input:hover + .slider:before {
  transform: translateY(-0.3em);
  box-shadow: 0 0.3em 0 var(--outline_color);
}

.checkbox-wrapper input:checked + .slider:before {
  transform: translateX(calc(var(--switch_width) - var(--switch_height)))
    translateY(-0.2em);
}

/* Raise thumb when hovered & checked */
.checkbox-wrapper input:hover:checked + .slider:before {
  transform: translateX(calc(var(--switch_width) - var(--switch_height)))
    translateY(-0.3em);
  box-shadow: 0 0.3em 0 var(--outline_color);
}

/******************* Buttons *******************/
.button-74 {
  font-family: "Gowun Batang", serif;
  background-color: #68818b;
  border: 2px solid #422800;
  border-radius: 30px;
  box-shadow: #422800 4px 4px 0 0;
  color: #fff;
  cursor: pointer;
  display: inline-block;
  font-weight: 700;
  font-size: 18px;
  padding: 0 18px;
  line-height: 50px;
  text-align: center;
  text-decoration: none;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}
.button-74:hover {
  background-color: #68818b;
}
.button-74:active {
  box-shadow: #422800 2px 2px 0 0;
  transform: translate(2px, 2px);
}
@media (min-width: 768px) {
  .button-74 {
    min-width: 120px;
    padding: 0 25px;
  }
}
.checkbox-wrapper input[type="checkbox"] {
  visibility: hidden;
  display: none;
}

.checkbox-wrapper *,
.checkbox-wrapper ::after,
.checkbox-wrapper ::before {
  box-sizing: border-box;
}

/* Foldded display*/
.hidden #options,
.hidden h1 {
  display: none;
}

#box-left.hidden {
  width: 50px;
  transition: all 1s 
}

.hidden #copyButton {
  display: inline-block;
}

#control {
  position: absolute;
  top: 0;
  left: 260px;
  /* background-color: red; */
  /* border: 1px white solid; */
  transition: all 1s;
}
#control.collapsed {
  left: 18px;
  transition: all 1s;
}

#control button {
  font-family: "Gowun Batang", serif;
  background-color: #68818b;
  border: none;
  box-shadow: none;
  /* border-top: 2px solid #422800;
  border-left: 0;
  border-right: 2px solid #422800;
  border-bottom: 2px solid #422800; */
  /* box-shadow: #422800 4px 4px 0 0; */
  color: #fff;
  cursor: pointer;
  display: inline-block;
  font-weight: 700;
  font-size: 25px;
  min-width: 30px;
  padding: 0;
  line-height: 50px;
  text-align: center;
  text-decoration: none;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

#box-right.expanded {
  width: calc(100% - 50px);
  transition: all 1s;
}

#version {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.4em;
  color: #ddd;
  width: 100%;
  line-height: 100%;
  position: absolute;
  top: calc(100% - 1.5em);
  right: 15px;
}