@charset "UTF-8";

html {
  --accent-hue: 210;
}

.result_url {
  font-size: 2rem;
  width: 100%;
}

table {
  width: 100%;
}

.code_row {
  display: flex;
}

.code {
  vertical-align: middle;
  margin: 0;
  border-radius: 4px 0 0 4px !important; 
  flex: 1;
}

.copy {
  height: 38px;
  width: 38px;
  padding: 0;
  margin: 0;
  vertical-align: middle;
  border-radius: 0 4px 4px 0 !important; 
}

.copy:before {
  background: url("../images/copy.svg") no-repeat scroll center center / 100% auto rgba(0, 0, 0, 0);
  content: "";
  display: inline-block;
  color: #fff;
  height: 24px;
  position: relative;
  top: -2px;
  vertical-align: middle;
  width: 24px;
}

header {
  padding: 1em 0;
  margin-bottom: 30px;
}

header h1 {
  color: var(--accent-color);
  margin: 0;
}

footer {
  background: var(--accent-color);
  color: white;
  padding: 2em 2em 2em;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

footer p {
  margin: auto;
}

.container {
  max-width: 800px;
  margin: 0 auto;
}


#interactive.viewport {
  width: 640px;
  height: 480px;
}


#interactive.viewport canvas, video {
  float: left;
  width: 640px;
  height: 480px;
}

#interactive.viewport canvas.drawingBuffer, video.drawingBuffer {
  margin-left: -640px;
}


#snackbar {
  visibility: hidden; /* Hidden by default. Visible on click */
  min-width: 250px; /* Set a default minimum width */
  margin-left: -125px; /* Divide value of min-width by 2 */
  background-color: #333; /* Black background color */
  color: #fff; /* White text color */
  text-align: center; /* Centered text */
  border-radius: 100px; /* Rounded borders */
  padding: 16px; /* Padding */
  position: fixed; /* Sit on top of the screen */
  z-index: 1; /* Add a z-index if needed */
  left: 50%; /* Center the snackbar */
  bottom: 30px; /* 30px from the bottom */
}

/* Show the snackbar when clicking on a button (class added with JavaScript) */
#snackbar.show {
  visibility: visible; /* Show the snackbar */
  /* Add animation: Take 0.5 seconds to fade in and out the snackbar.
  However, delay the fade out process for 2.5 seconds */
  -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
  animation: fadein 0.5s, fadeout 0.5s 2.5s;
}


/* Animations to fade the snackbar in and out */
@-webkit-keyframes fadein {
  from {bottom: 0; opacity: 0;}
  to {bottom: 30px; opacity: 1;}
}

@keyframes fadein {
  from {bottom: 0; opacity: 0;}
  to {bottom: 30px; opacity: 1;}
}

@-webkit-keyframes fadeout {
  from {bottom: 30px; opacity: 1;}
  to {bottom: 0; opacity: 0;}
}

@keyframes fadeout {
  from {bottom: 30px; opacity: 1;}
  to {bottom: 0; opacity: 0;}
} 



@media (max-width: 800px) {
  .container {
    width: auto;
    margin: 0 2em;
  }
}
@media (max-width: 603px) {

  #interactive.viewport {
    width: 300px;
    height: 300px;
    overflow: hidden;
  }


  #interactive.viewport canvas, video {
    margin-top: -50px;
    width: 300px;
    height: 400px;
  }

  #interactive.viewport canvas.drawingBuffer, video.drawingBuffer {
    margin-left: -300px;
  }
}