* {
  transition: all 500ms ease;
}

html,
body {
  box-sizing: border-box;
  height: 100%;
  width: 100%;
  font-family: "Courier", "Verdana";
  height: 100%;
  width: 100%;
  margin: 0;
}

body {
  padding: 15px;
}

header {
  display: flex;
}

main {
  margin: 0 auto;
  padding: 120px 0 20px 0;
  max-width: 70%;
}

h1 {
  font-size: 40px;
  white-space: nowrap;
  overflow: hidden;
  width: 100%;
  animation: type 4s steps(60, end);
}

h1 span {
  animation: blink 1s infinite;
}

.editor-item {
  margin-right: 10px;
}

input,
select,
.select-button {
  background: linear-gradient(#fff, #eee);
  border: 1px solid #ccc;
  border-radius: 3px;
  display: block;
  padding: 3px;
}

input:hover,
select:hover,
.select-button:hover {
  border-color: #999;
}

input:focus,
select:focus,
.select-button:focus {
  outline: none;
}

.link, a {
  color: #0000ff;
  text-decoration: underline;
}

.link:hover {
  cursor: pointer;
}

.title {
  font-size: 30px;
}

.subtitle {

}

.smaller,
.external {
  font-size: 14px;
}

.examples {
  display: none;
}

.examples.display {
  display: block;
  -webkit-animation: slide-down .3s ease-out;
  -moz-animation: slide-down .3s ease-out;
}

@keyframes slide-down {
  0% {
    opacity: 0;
    -webkit-transform: translateY(-100%);
  }

  100% {
    opacity: 1;
    -webkit-transform: translateY(0);
  }
}

@-webkit-keyframes slide-down {
  0% {
    opacity: 0;
    -webkit-transform: translateY(-100%);
  }

  100% {
    opacity: 1;
    -webkit-transform: translateY(0);
  }
}

@-moz-keyframes slide-down {
  0% {
    opacity: 0;
    -moz-transform: translateY(-100%);
  }

  100% {
    opacity: 1;
    -moz-transform: translateY(0);
  }
}

@keyframes blink {
  to {
    opacity: .0;
  }
}

@keyframes type {
  from {
    width: 0;
  }
}

.examples li a img {
  transition: all 0.5s ease;
  width: 100%;
}

/* .examples li a:hover img {
  -webkit-transform: scale(1.05);
  -moz-transform: scale(1.05);
  -ms-transform: scale(1.05);
  -o-transform: scale(1.05);
  transform: scale(1.05);
} */


.modal-window {
  position: fixed;
  background-color: rgba(255, 255, 255, 0.75);
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 999;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s;
  overflow: hidden;
}
.modal-window img {
  width: 100%;
}
.modal-window.visible {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}
.modal-window > div {
  width: 75vw;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 2em;
  background: white;
  max-height: 75vh;
  overflow-y: scroll;
  overflow-x: hidden;
  border-radius: 25px;
  border: 1px solid;
}
.modal-window header {
  font-weight: bold;
}
.modal-window h1 {
  font-size: 150%;
  margin: 0 0 15px;
}

.modal-content {
  overflow-y: scroll;
}

.modal-close {
  color: #666;
  line-height: 50px;
  font-size: 80%;
  position: sticky;
  width: 100%;
  left: 100%;
  top: 0;
  text-align: center;
  text-decoration: none;
  padding: 5px;
  background-color: rgba(255, 255, 255, 0.50);
  cursor: pointer;
}
.modal-close:hover {
  color: black;
}

@media (max-width: 768px) {
  main {
    padding-top: 25px;
    max-width: unset;
  }
  h1 {
    font-size: 35px;
  }
  .title {
    font-size: 25px;
  }
  /* .modal-window > div > .modal-close {
    display: none;
  } */
  .modal-window span.modal-close.external {
    padding: 20px;
  }
}
/* 
@media (min-width: 768px) {
  .modal-window span.modal-close.external {
    display: none;
  }
} */