/* -------------------------------------------------------------------------- *\
 * Necessary styling for the dialog to work
 * -------------------------------------------------------------------------- */

/**
 * When `<dialog>` is properly supported, the overlay is implied and can be
 * styled with `::backdrop`, which means the DOM one should be removed.
 */
[data-a11y-dialog-native] .dialog-overlay {display: none;}

/**
 * When `<dialog>` is not supported, its default display is `inline` which can
 * cause layout issues.
 */
dialog[open] {display:block;}

.dialog[aria-hidden='true'] {display: none;}

/* -------------------------------------------------------------------------- *\
 * Styling to make the dialog look like a dialog
 * -------------------------------------------------------------------------- */

.dialog:not([data-a11y-dialog-native]) {position:absolute;}
.dialog:not([data-a11y-dialog-native]),
.dialog-overlay {top: 0;left: 0;bottom: 0;right: 0;}
.dialog-overlay {position: fixed;}

.dialog {display:flex;z-index:990;}
.dialog-overlay {background-color: rgba(43, 46, 56, 0.9);}
dialog::backdrop {background-color: rgba(43, 46, 56, 0.9);}
.dialog-content {background-color: rgb(255, 255, 255);margin: auto;z-index: 2;position: relative;}

dialog.dialog-content {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
}

/* -------------------------------------------------------------------------- *\
 * Extra dialog styling to make it shiny
 * -------------------------------------------------------------------------- */

@keyframes fade-in {
  from {
    opacity: 0;
  }
}

@keyframes slide-up {
  from {
    transform: translateY(10%);
  }
}

.dialog-overlay {
  animation: fade-in 200ms both;
}

.dialog-content {
  animation: fade-in 400ms 200ms both, slide-up 400ms 200ms both;
}

dialog.dialog-content {
  animation: fade-in 400ms 200ms both;
}

.dialog-content {
  padding: 1em;
  max-width: 90%;
  width: 600px;
  border-radius: 2px;
}

@media screen and (min-width: 700px) {
  .dialog-content {
    padding: 2em;
  }
}

.dialog h1 {
  margin: 0;
  font-size: 1.25em;
}

.dialog-close {
  position: absolute;
  top: 0.5em;
  right: 0.5em;
  border: 0;
  padding: 0;
  background-color: transparent;
  font-weight: bold;
  font-size: 1.25em;
  width: 1.2em;
  height: 1.2em;
  text-align: center;
  cursor: pointer;
  transition: 0.15s;
  z-index:999;
}

@media screen and (min-width: 700px) {
  .dialog-close {
    top: .5em;
    right: .5em;
  }
}


/* -------------------------------------------------------------------------- *\
 * Base stuff
 * -------------------------------------------------------------------------- */
.link-like,
a {color: #2984c2;}

.link-like:hover,.link-like:active,a:hover,a:active {color: #e50050;}
/* -------------------------------------------------------------------------- *\
 * Helpers
 * -------------------------------------------------------------------------- */

.link-like {
  background-color: transparent;
  text-decoration: underline;
  border: 0;
  margin: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

/* -------------------------------------------------------------------------- *\
 * Layout
 * -------------------------------------------------------------------------- */

/*
main {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 1em;
}

footer {
  border-top: 1px solid silver;
  padding: 20px 0;
}
*/
/* -------------------------------------------------------------------------- *\
 * Form styling
 * -------------------------------------------------------------------------- */

/*
form {
  margin-top: 2em;
}

@media screen and (min-width: 700px) {
  form {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
  }
}

form label {
  font-weight: bold;
  margin: 5px 10px 5px 0;
  vertical-align: middle;
}

form input {
  font: inherit;
  padding: 0.25em;
  border: 1px solid silver;
  width: 100%;
  margin: 0.25em 0 1em;
}

@media screen and (min-width: 700px) {
  form input {
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    -ms-flex: 1;
    flex: 1;
    border-right: 0;
    width: auto;
    margin: 0;
  }
}

form button {
  background-color: #81c784;
  color: white;
  border: 0;
  font-family: inherit;
  font-size: inherit;
  padding: 8px 15px;
  cursor: pointer;
  transition: 0.15s;
  display: inline-block;
}

form button:hover,
form button:active {
  background-color: #66bb6a;
}
*/