/* Milligram overrides */
:root {
  /* The following are official CakePHP colors */
  --color-cakephp-red: #d33c43;
  --color-cakephp-gray: #404041;
  --color-cakephp-blue: #2f85ae;
  --color-cakephp-lightblue: #34bdd7;

  /* websplash colors */
  --color-websplash-blue: #1f509c;
  --color-websplash-lightblue: #080808;
  --color-websplash-gray: #404041;
  --color-websplash-lightgray: #b3b3b3;
  --color-websplash-lightergray: #f9fafb;

  /* These are additional colors */
  --color-lightgray: #606c76;
  --color-white: #fff;

  --color-main-bg: #fff;
  --color-links: var(--color-websplash-blue);
  --color-links-active: #2a6496;
  --color-headings: #363637;

  --color-message-success-bg: #e3fcec;
  --color-message-success-text: #1f9d55;
  --color-message-success-border: #51d88a;

  --color-message-warning-bg: #fffabc;
  --color-message-warning-text: #8d7b00;
  --color-message-warning-border: #d3b800;

  --color-message-error-bg: #fcebea;
  --color-message-error-text: #cc1f1a;
  --color-message-error-border: #ef5753;

  --color-message-info-bg: #eff8ff;
  --color-message-info-text: #2779bd;
  --color-message-info-border: #6cb2eb;
}

/* Home page styles */
img {
  margin-bottom: 30px;
}
h1 {
  font-weight: bold;
}
ul {
  list-style-type: none;
  margin: 0 0 30px 0;
  padding-left: 25px;
}
a {
  color: #0071bc;
  text-decoration: underline;
}
hr {
  border-bottom: 1px solid #e7e7e7;
  border-top: 0;
  margin-bottom: 35px;
}

.text-center {
  text-align: center;
}
.links a {
  margin-right: 10px;
}
.release-name {
  color: #d33c43;
  font-weight: 400;
  font-style: italic;
}
.bullet:before {
  font-family: "cakefont", sans-serif;
  font-size: 18px;
  display: inline-block;
  margin-left: -1.3em;
  width: 1.2em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  vertical-align: -1px;
}
.cake-error {
  padding: 10px;
  margin: 10px 0;
}
#url-rewriting-warning {
  display: none;
}

.button,
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
  background-color: var(--color-websplash-blue);
  border-color: var(--color-websplash-blue);
}
.button > i.bx {
  font-size: 2rem;
  padding-right: 10px;
}
.button {
  display: flex;
  align-items: center;
  flex-direction: row;
  max-width: fit-content;
}
body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 400;
  background: var(--color-main-bg);
}

.top-nav-links,
.side-nav,
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Raleway", sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 400;
  color: var(--color-headings);
}

a {
  color: var(--color-links);
  transition: color 0.2s linear;
}

a:hover,
a:focus,
a:active {
  color: var(--color-links-active);
  transition: color 0.2s ease-out;
}

.side-nav a,
.top-nav-links a,
th a {
  color: var(--color-lightgray);
}

.side-nav a:hover,
.side-nav a:focus {
  color: var(--color-links-active);
}

/* Actions */
.actions {
  display: flex;
  flex-direction: row;
  row-gap: 10px;
  column-gap: 10px;
}
.actions a {
  color: var(--color-white);
  font-weight: bold;
  padding: 0 20px;
}
.actions a:hover,
.actions a:focus {
  color: var(--color-white);
}

/* Utility */
.table-responsive {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Main */
.content {
  padding: 2rem;
  background: var(--color-white);
  border-radius: 0.4rem;
  box-shadow: 0 7px 14px 0 rgba(60, 66, 87, 0.1), 0 3px 6px 0 rgba(0, 0, 0, 0.07);
}
.content form {
  margin: 0;
}
th {
  white-space: nowrap;
}

/* Nav bar */
.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 112rem;
  padding: 2rem;
  margin: 0 auto;
}
.top-nav-title a {
  font-size: 2.4rem;
  color: var(--color-websplash-blue);
  text-decoration: none;
}
.top-nav-title span {
  color: var(--color-websplash-gray);
}
.top-nav-links a {
  margin: 0 0.5rem;
}
.top-nav-title a,
.top-nav-links a {
  font-weight: bold;
}
.side-nav-item {
  display: block;
  padding: 0.5rem 0;
}

/* View action */
.view.content .text {
  margin-top: 1.2rem;
}
.related {
  margin-top: 2rem;
}

/* Flash messages */
.message-container {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translate(-50%, 10px);
}
.message {
  display: flex;
  align-items: center;
  opacity: 1;
  max-width: 112rem;
  width: fit-content;
  top: 75px;
  left: 100px;
  z-index: 20;
  padding: 0.5rem 1rem;
  background: var(--color-message-info-bg);
  color: var(--color-message-info-text);
  border-color: var(--color-message-info-border);
  border-width: 1px;
  border-style: solid;
  border-radius: 4px;
  margin-bottom: 1rem;
  cursor: pointer;
  transition: opacity 500ms ease;
}
.message.hidden {
  opacity: 0;
  transition: opacity 500ms ease;
}
.message.success {
  background: var(--color-message-success-bg);
  color: var(--color-message-success-text);
  border-color: var(--color-message-success-border);
}
.message.success_before,
.success:before {
  font-family: "boxicons";
  color: #88c671;
  content: "\f4f7";
  font-size: 20px;
  padding: 4px 10px;
}
.message.warning {
  background: var(--color-message-warning-bg);
  color: var(--color-message-warning-text);
  border-color: var(--color-message-warning-border);
}
.message.warning:before,
.problem:before {
  font-family: "boxicons";
  color: #d33d44;
  content: "\f4fd";
  font-size: 20px;
  padding: 4px 10px;
}
.message.error {
  background: var(--color-message-error-bg);
  color: var(--color-message-error-text);
  border-color: var(--color-message-error-border);
}
.message.error,
.error:before {
  font-family: "boxicons";
  color: #d33d44;
  content: "\f4fd";
  font-size: 20px;
  padding: 4px 10px;
}
/* Forms */
.input.radio,
.input.checkbox,
.input.multicheckbox {
  margin-bottom: 2rem;
}
.input.radio input,
.input.checkbox input,
.input.multicheckbox input {
  margin: 0;
}
.input.radio label,
.input.checkbox label,
.input.multicheckbox label {
  margin: 0;
  display: flex;
  align-items: center;
}
.input.radio label > input,
.input.checkbox label > input,
.input.multicheckbox label > input {
  margin-right: 1rem;
}
input[type="color"] {
  max-width: 4rem;
  padding: 0.3rem 0.5rem 0.3rem;
}

/* Paginator */
.paginator {
  text-align: right;
}
.paginator p {
  margin-bottom: 0;
}
.pagination {
  display: flex;
  justify-content: center;
  list-style: none;
  margin: 0 0 1rem 0;
  padding: 0;
}
.pagination li {
  display: inline-block;
  margin: 0.25em;
  text-align: center;
}
.pagination a {
  color: var(--color-websplash-blue);
  display: inline-block;
  font-size: 1.25rem;
  line-height: 3rem;
  min-width: 3rem;
  padding: 0;
  position: relative;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
}
.pagination li.active a,
.pagination a:hover {
  text-decoration: underline;
}
.pagination .disabled a {
  cursor: not-allowed;
  color: var(--color-lightgray);
  text-decoration: none;
}
.first a,
.prev a,
.next a,
.last a {
  padding: 0 0.75rem;
}
.disabled a:hover {
  background: initial;
  color: initial;
}
.asc:after {
  content: " \2193";
}
.desc:after {
  content: " \2191";
}

/* Error in non debug mode */
.error-container {
  align-items: center;
  display: flex;
  flex-direction: column;
  height: 100vh;
  justify-content: center;
}

@media screen and (max-width: 640px) {
  /* Fix milligram not having a responsive column system */
  .row .column[class*="column-"] {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .top-nav {
    margin: 0 auto;
  }
  .side-nav {
    margin-bottom: 1rem;
  }
  .heading {
    margin-bottom: 1rem;
  }
  .side-nav-item {
    display: inline;
    margin: 0 1.5rem 0 0;
  }
  .asc:after {
    content: " \2192";
  }
  .desc:after {
    content: " \2190";
  }
}

/* Plugin Changelog */
.plugins .changelog {
  background: #f8f8f8;
  border: 1px solid #ccc;
  padding: 1em;
  margin-bottom: 2em;
  max-width: 700px;
  overflow: auto;
}

/* Drag & Drop Upload */
.dropzone {
  border: 2px dashed var(--color-websplash-blue);
  border-radius: 8px;
  padding: 40px 20px;
  text-align: center;
  color: #555;
  background: #f9f9f9;
  margin-bottom: 20px;
  transition: border-color 0.2s;
  cursor: pointer;
}
.dropzone.dragover {
  border-color: #00a0d2;
  background: #e6f7ff;
}
.dropzone input[type="file"] {
  display: none;
}

iframe {
    width: 100vw;
    height: 100%;
}
/* Forms */
form {
    display:flex;
    flex-direction: column;
    gap: 15px;
}

form > div.buttons {
    display:flex;
    flex-direction: row;
    gap: 15px;
}
