
/* 

Sixty Seconds of Python
Under MIT Licence

 */

body {
  margin: 0; padding: 0;
  display: flex; align-items: center; justify-content: center;
  position: relative;

  flex-flow: row wrap;

  min-height: 100vh;

  font-family: 'Inter', system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans","Liberation Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";

}

.credits {
  position: absolute;
  bottom: 15px;
  width: 100%;

  display: flex;
  align-items: center;
  justify-content: center;

  margin: 15px;
  opacity: 0.5;
  font-size: 0.8;
}

.credits p {
  margin: 0 15px;
  text-align: center;
  display: block;
}

a {
  text-decoration: none;
}

a, button { cursor: pointer; }

a:hover {
  text-decoration: underline;
}

div#error {
  display: block;
  margin-bottom: 18px;
  background: red;
  padding: 20px;
  color: white;
}

div.container {
  padding: 20px;
  margin: 20px;

  max-width: 500px;
}

div#editor-container {
  max-width: 600px;
  display: none;
}

#editor {
  height: 300px;
  width: 100%;

  border-radius: 3px;
  border: 2px solid #EEE;

  margin-bottom: 20px;
}

#editor.editor-locked {
  pointer-events: none;
  cursor: not-allowed;
  user-select: none;

  opacity: 0.8;
}

div.timer {
  width: 100%;
  padding: 0; margin: 0;
  height: 20px;

  border-radius: 2px;
  background-color: #E0CA3C;

  margin-bottom: 20px;
  transition: width 0.25s, height 2s, background-color 0.25s;
}

div.timer.flashing {
  animation: blinker 0.5s infinite;
}

@keyframes blinker {
  50% { opacity: 0; }
}

div.language {
  padding: 10px;
  margin: 15px;
  display: flex;
  flex-flow: column wrap;
  justify-content: center;
  align-items: center;
  width: 10ch;
}

div.language img {
  display: block;
  height: 50px;

  margin-bottom: 1.2rem;
}

div.language a {

  text-align: center;

}

div#languages {

  display: flex;
  flex-flow: row wrap;
  align-items: center;
  justify-content: space-between;

}

.cta.btn {
  background-color: #414073;
  color: white;
  font-family: 'Inter';
  border: none;
  padding: 7px 10px;
  border-radius: 3px;
  cursor: pointer;
}

a.language-link {

  margin: 0 3px;
  
}

div#terminal {
  padding: 20px;
  background: black;
  border-radius: 5px;
  box-shadow: 0 0 50px -10px;
}

.inactive {
  display: none !important;
}

:disabled {

  opacity: 0.7;
  pointer-events: none;

}

.terminal-container {
  display: flex;
  align-items: center;

  flex-direction: column;
}

.package-manager {
  padding: 20px;
  margin: 15px;
  margin-top: 40px;
  border: 3px solid #EEE;
  border-radius: 3px;

  max-width: 40vw;

  display: none;
}

.inputs {
  display: flex;
}

.inputs button, .inputs input {
  padding: 10px;
  font-size: 1em;
  border-radius: 3px;

  border: none;
  outline: none;

  background-color: transparent;
}

.inputs input {
  flex-grow: 2;
  margin-right: 5px;
  border: 2px solid #EEE;

  font-family: monospace;
}

.inputs input:focus {
  border: 2px solid lightgray;
}

.inputs button {
  margin: 0 5px;
  border: 2px solid #EEE;

  transition: 0.25s;
}

.btn:hover {
  border-color: transparent;
}

.btn.red:hover {
  color: white;
  background-color: #E71D36;
}

.btn.green:hover {
  color: white;
  background-color: #2ECC40;
}

.btn.blue:hover {
  color: white;
  background-color: #3498DB;
}

.language-link.has-packages::after {

  content: "PKG";
  display: inline-block;

  padding: 3px;
  margin-left: 5px;
  vertical-align: middle;

  border-radius: 2px;
  background-color: #2ECC40;
  
  color: white;
  font-size: 0.7em;

}

.new::after {
  content: "new";
  display: inline-block;

  padding: 0.3em;
  margin-left: 1ch;
  vertical-align: middle;

  border-radius: 2px;
  background-color: #2ECC40;
  
  color: white;
  font-size: 0.7em;
}

.update-banner {
  padding: 15px;
  background-color: #2ECC40;
  
  position: relative;

  border-radius: 3px;
  font-size: 0.9rem;
}

.update-banner p {
  margin-bottom: 12px;
}

.update-banner .close {
  position: absolute;
  top: 10px;
  right: 10px;

  cursor: pointer;
  font-size: 0.9rem;
}

.update-banner .date {
  position: absolute;
  bottom: 10px;
  right: 10px;

  font-size: 0.8rem;
}