/**
 * Created by Jacob Strieb
 * May 2020
 */


/*******************************************************************************
 * Element styles
 ******************************************************************************/

html {
  font-family: sans-serif;
  padding: 10px;
}

body {
  padding: 15px;
  display: block;
  margin: auto;
  max-width: 66ch;
}

p {
  text-align: justify;
}

ul, ol {
  padding-left: 1em;
}

ol li {
  margin-bottom: 1em;
}

button {
  padding: 11px;
  background: #FE1B3F;
  color: white;
  border: 0.5px solid white;
  border-radius: 5px;
  margin-top: 5px;
  margin-right: 5px;
  cursor: pointer;
  font-weight: bold;
  white-space: nowrap;
}

label {
  display: block;
  font-variant: small-caps;
  margin-bottom: 5px;
}

summary {
  font-variant: small-caps;
  margin-bottom: 5px;
  user-select: none;
}

input, textarea {
  padding: 10px;
  border: 0.5px solid black;
  border-radius: 3px;
  margin-bottom: 15px;
  box-sizing: border-box;
  width: 100%;
  resize: none;
  font-family: sans-serif;
}

input[type="checkbox"] {
  cursor: pointer;
  margin-right: 0;
}

hr {
  margin-top: 3em;
  margin-bottom: 3em;
  border: 0;
  border-top: 0.5px solid rgba(200, 200, 200, 1);
}

footer hr {
  margin-bottom: 1em;
  border-top: 0.5px solid black;
}

footer p {
  text-align: center;
}

*[aria-disabled="true"] {
  pointer-events: none;
  cursor: not-allowed;
  user-select: none;
}

code {
  font-family: monospace, monospace;
  padding: 0 3px;
}


/*******************************************************************************
 * Classes
 ******************************************************************************/

/* View on GitHub SVG ribbon */
@media (max-width: 100ch) {
  .ribbon {
    width: 100px;
    height: 100px;
  }
}

.ribbon {
  position: absolute;
  top: 0;
  right: 0;
}


/* Error area */
.red-border {
  border: 3px solid red;
  padding: 2em;
}

.error, .error p {
  text-align: center;
}

/* Link Lock modal styles */
.ll-overlay {
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ll-modal {
  width: 92%;
  max-width: 460px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
  overflow: hidden;
}

.ll-header {
  padding: 18px 22px 8px;
}

.ll-title {
  margin: 0;
  font-weight: 600;
  font-size: 20px;
}

.ll-body {
  padding: 0 22px 12px;
}

.ll-label {
  display: block;
  font-size: 13px;
  color: #555;
  margin-bottom: 6px;
}

.ll-input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #dcdcdc;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 15px;
}

.ll-hint {
  margin: 0 0 10px;
  font-size: 14px;
  color: #666;
}

.ll-error {
  margin: 8px 0 0;
  color: #d93025;
  font-size: 13px;
}

.ll-help {
  margin: 14px 0 0;
  font-size: 13px;
  color: #6b7280;
}

/* Ensure nested paragraphs inside the help element keep the same small size */
.ll-help p { margin: 0; font-size: inherit; }


.ll-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 22px 18px;
}

.ll-btn {
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 14px;
  cursor: pointer;
}

.ll-btn-primary {
  background: #2563eb;
  color: #fff;
}

.ll-btn-secondary {
  background: #f3f4f6;
  color: #111827;
}


/* Password & Confirm Password inputs */
.split-row {
  display: flex;
  flex-flow: row wrap;
  justify-content: space-between;
  align-items: center;
}

.password {
  flex: 1;
}

.confirm-password {
  flex: 1;
  margin-left: 20px;
}



/* Advanced settings */
#advanced-label {
  cursor: pointer;
  margin-bottom: 10px;
}

.advanced {
  display: flex;
  flex-flow: row wrap;
}

.advanced .labeled-input {
  display: flex;
  flex-flow: row-reverse nowrap;
  justify-content: flex-end;
}

.advanced .labeled-input label {
  width: auto;
  margin-right: 20px;
  white-space: nowrap;
  cursor: pointer;
}

.advanced .labeled-input input {
  width: auto;
  margin-right: 5px;
}


/* Output area */
.output input {
  background: rgba(235, 235, 235, 1);
}

.alert {
  opacity: 0;
  transition: opacity 0.25s;
}


/* Bookmarks that look like buttons, but different */
.bookmark {
  padding: 11px;
  background: none;
  color: #FE1B3F;
  border: 3px solid;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
  margin-top: 5px;
  margin-right: 5px;
  cursor: pointer;
  display: inline-block;
  margin: auto;
  text-align: center;
}

.bookmark:hover {
  background: #FE1B3F;
  color: white;
  border: 3px solid #FE1B3F;
}

.bookmark[aria-disabled="true"] {
  background: rgba(235, 235, 235, 1);
  color: gray;
}

/* Buttons on the same line as inputs */
.inline-button-container {
  display: flex;
  width: 100%;
}

.inline-button-container * {
  margin: 5px;
}

.inline-button-container input {
  margin-left: 0;
}

