/*
Local overrides so Google's original stylesheet (main.css) can remain unedited.
*/

:root {
  --white: #ffffff;
  --hot-pink: #c6006e;
  --gray-50: #fafafa;
  --gray-100: #f0f0f0;
  --gray-200: #ececec;
  --gray-300: #c6c6c6;
  --gray-400: #424242;
  --gray-500: #212121;
}

@keyframes octocat-wave {

  0%,
  100% {
    transform: rotate(0);
  }

  20%,
  60% {
    transform: rotate(-25deg);
  }

  40%,
  80% {
    transform: rotate(10deg);
  }
}

@keyframes rotate {
  100% {
    transform: rotate(360deg);
  }
}

body {
	font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--gray-400);
}

img {
  max-width: 100%;
  border-radius: 4px;
}

.color-tool {
  max-width: none;
  padding: 140px 40px 60px;
}

.tool-title {
  display: none;
}

.page-content {
  position: relative;
  top: 100px;
  padding: 0 40px;
}

.page-title {
  font-size: 36px;
  height: 0;
  margin: 0;
  line-height: 1.2;
}

.page-title a {
  color: var(--gray-400);
  font-weight: 500;
  text-decoration: none;
  letter-spacing: -0.5px;
}

.page-title a:active,
.page-title a:focus,
.page-title a:hover {
  text-decoration: underline;
}

.page-messaging {
  margin-top: 60px;
  font-weight: 400;
  padding-bottom: 40px;
  max-width: 680px;
  line-height: 1.4;
}

.page-messaging h2 {
  font-weight: 500;
  margin: 15px 0;
  font-size: 24px;
  padding-top: 20px;
}

.page-messaging-title {
  font-size: 120px;
  font-weight: 700;
  animation: rotate 120s linear infinite;
  display: inline-block;
  margin: 25px 0;
}

.page-messaging-subtitle {
  font-size: 20px;
}

.screenshot {
  margin-top: 20px;
  border: 1px solid rgba(0, 0, 0, 0.2);
}

.standard-link,
.page-messaging a {
  color: var(--hot-pink);
  font-weight: 500;
}

.standard-link:active,
.standard-link:focus,
.standard-link:hover,
.page-messaging a:active,
.page-messaging a:focus,
.page-messaging a:hover {
  text-decoration: none;
}

.color-palette__color-weight-label {
  max-width: 64px;
}

.utility-panel {
  right: 20px;
  top: 20px;
  height: 120px;
  position: absolute;
  width: 240px;
}

.utility-panel .content__info {
  display: none;
}

.utility-panel__label {
  cursor: default;
}

.utility-panel__label i {
  display: none;
}

.color-palette__color-weight-label {
  font-family: "Roboto Mono", ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;
}

.color-palette__cell-hex-value {
  text-transform: lowercase;
  left: auto;
}

.clipboard-confirmation {
  transform: translateY(200px);
  animation: none;
  height: auto;
  padding: 5px 25px;
  text-align: center;
  width: 220px;
}

.clipboard-confirmation--visible {
  animation: fadein 250ms linear;
  transform: translateY(-20px);
}

.github-corner:hover .octo-arm {
  animation: octocat-wave 560ms ease-in-out;
}

.page-footer {
  padding: 0 40px 80px;
}

.page-footer.footer-alt {
  padding-left: 0;
}

.page-footer ul {
  margin: 0;
  padding: 0;
  list-style-type: none;
  display: flex;
  gap: 28px;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.80);
  border: none;
  padding: 15px;
}

.modal-content {
  background-color: var(--gray-200);
  margin: 50px auto 0;
  padding: 20px;
  max-width: 600px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  height: 40px;
}

.modal-control {
  padding-block: 5px;
}

.modal-header h2 {
  margin: 0;
  font-weight: 500;
  color: var(--gray-500);
}

.modal-content .close {
  color: var(--gray-400);
  border: none;
  padding: 0;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  position: relative;
  right: -4px;
}

.modal-content .close i {
  font-size: 36px;
}

.modal-content textarea {
  font-family: "Roboto Mono", ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;
  resize: none;
  width: 100%;
  height: 60vh;
  font-size: 16px;
  line-height: 1.4;
  border: 1px solid var(--gray-300);
  border-radius: 4px;
  color: var(--gray-500);
  padding: 10px;
}

.buttonContainer {
  margin-top: 50px;
}

.exportButton {
  padding: 18px 24px;
  cursor: pointer;
  text-transform: uppercase;
  background-color: var(--white);
  color: var(--gray-500);
  border: 3px solid var(--gray-400);
  border-radius: 4px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  transition: background-color .15s ease-in-out;
}

.exportButton:active,
.exportButton:focus,
.exportButton:hover {
  background-color: var(--gray-200);
}

@media screen and (max-width: 1000px) {
  body {
    background-color: var(--white);
  }

  .color-tool {
    display: block;
    padding: 165px 20px 60px;
  }

  .page-content {
    padding: 0 20px;
    top: 165px;
  }

  .page-content.sub-page {
    top: 80px;
  }

  .page-title {
    font-size: 32px;
    height: auto;
  }

  .page-messaging {
    margin-top: 20px;
  }

  .mobile-message {
    display: none;
  }

  .utility-panel {
    left: 20px;
    position: absolute;
  }

  .color-picker-panel {
    left: 40px;
    top: 40px;
    position: absolute;
  }

  .github-corner svg {
    transform: scale(1, 1) !important;
    right: 0 !important;
    left: auto !important;
  }

  .page-footer {
    padding-left: 20px;
  }
}

@media screen and (max-width: 500px) {
  .color-tool {
    padding-left: 10px;
    padding-right: 10px;
  }

  .utility-panel {
    left: 10px;
    width: 220px;
  }

  .color-picker-panel {
    left: 30px;
    top: 30px;
  }

  .page-content {
    padding: 0 10px;
  }

  .page-footer {
    padding-left: 10px;
  }

  .github-corner:hover .octo-arm {
    animation: none;
  }

  .github-corner .octo-arm {
    animation: octocat-wave 560ms ease-in-out;
  }

  .color-palette__color-weight-label {
    font-size: 13px;
  }

  .modal-content {
    margin-top: 0;
    height: 100%;
  }

  .modal-content textarea {
    height: 100%;
    font-size: 14px;
  }

  .modal-text {
    height: calc(100% - 60px);
  }
}