/*! normalize.scss v0.1.0 | MIT License | based on git.io/normalize */
/**
 * 1. Set default font family to sans-serif.
 * 2. Prevent iOS text size adjust after orientation change, without disabling
 *    user zoom.
 */
html {
  font-family: sans-serif;
  /* 1 */
  -webkit-text-size-adjust: 100%;
  /* 2 */
  -ms-text-size-adjust: 100%;
  /* 2 */ }

/**
   * Remove default margin.
   */
body {
  margin: 0;
  background-color: rgba(0, 0, 0, 0.7); }

/* HTML5 display definitions
     ========================================================================== */
/**
   * Correct `block` display not defined for any HTML5 element in IE 8/9.
   * Correct `block` display not defined for `details` or `summary` in IE 10/11
   * and Firefox.
   * Correct `block` display not defined for `main` in IE 11.
   */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
menu,
nav,
section,
summary {
  display: block; }

/**
   * 1. Correct `inline-block` display not defined in IE 8/9.
   * 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera.
   */
audio,
canvas,
progress,
video {
  display: inline-block;
  /* 1 */
  vertical-align: baseline;
  /* 2 */ }

/**
   * Prevent modern browsers from displaying `audio` without controls.
   * Remove excess height in iOS 5 devices.
   */
audio:not([controls]) {
  display: none;
  height: 0; }

/**
   * Address `[hidden]` styling not present in IE 8/9/10.
   * Hide the `template` element in IE 8/9/11, Safari, and Firefox < 22.
   */
[hidden],
template {
  display: none; }

/* Links
     ========================================================================== */
/**
   * Remove the gray background color from active links in IE 10.
   */
a {
  background-color: transparent; }

/**
   * Improve readability when focused and also mouse hovered in all browsers.
   */
a:active,
a:hover {
  outline: 0; }

/* Text-level semantics
     ========================================================================== */
/**
   * Address styling not present in IE 8/9/10/11, Safari, and Chrome.
   */
abbr[title] {
  border-bottom: 1px dotted; }

/**
   * Address style set to `bolder` in Firefox 4+, Safari, and Chrome.
   */
b,
strong {
  font-weight: bold; }

/**
   * Address styling not present in Safari and Chrome.
   */
dfn {
  font-style: italic; }

/**
   * Address variable `h1` font-size and margin within `section` and `article`
   * contexts in Firefox 4+, Safari, and Chrome.
   */
h1 {
  margin: 0.67em 0;
  font-size: 2em; }

/**
   * Address styling not present in IE 8/9.
   */
mark {
  color: #000000;
  background: #ffff00; }

/**
   * Address inconsistent and variable font size in all browsers.
   */
small {
  font-size: 80%; }

/**
   * Prevent `sub` and `sup` affecting `line-height` in all browsers.
   */
sub,
sup {
  position: relative;
  font-size: 75%;
  line-height: 0;
  vertical-align: baseline; }

sup {
  top: -0.5em; }

sub {
  bottom: -0.25em; }

/* Embedded content
     ========================================================================== */
/**
   * Remove border when inside `a` element in IE 8/9/10.
   */
img {
  border: 0; }

/**
   * Correct overflow not hidden in IE 9/10/11.
   */
svg:not(:root) {
  overflow: hidden; }

/* Grouping content
     ========================================================================== */
/**
   * Address margin not present in IE 8/9 and Safari.
   */
figure {
  margin: 1em 40px; }

/**
   * Address differences between Firefox and other browsers.
   */
hr {
  -moz-box-sizing: content-box;
  box-sizing: content-box;
  height: 0; }

/**
   * Contain overflow in all browsers.
   */
pre {
  overflow: auto; }

/**
   * Address odd `em`-unit font size rendering in all browsers.
   */
code,
kbd,
pre,
samp {
  font-size: 1em;
  font-family: monospace, monospace; }

/* Forms
     ========================================================================== */
/**
   * Known limitation: by default, Chrome and Safari on OS X allow very limited
   * styling of `select`, unless a `border` property is set.
   */
/**
   * 1. Correct color not being inherited.
   *    Known issue: affects color of disabled elements.
   * 2. Correct font properties not being inherited.
   * 3. Address margins set differently in Firefox 4+, Safari, and Chrome.
   */
button,
input,
optgroup,
select,
textarea {
  margin: 0;
  /* 3 */
  font: inherit;
  /* 2 */
  color: inherit;
  /* 1 */ }

/**
   * Address `overflow` set to `hidden` in IE 8/9/10/11.
   */
button {
  overflow: visible; }

/**
   * Address inconsistent `text-transform` inheritance for `button` and `select`.
   * All other form control elements do not inherit `text-transform` values.
   * Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera.
   * Correct `select` style inheritance in Firefox.
   */
button,
select {
  text-transform: none; }

/**
   * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
   *    and `video` controls.
   * 2. Correct inability to style clickable `input` types in iOS.
   * 3. Improve usability and consistency of cursor style between image-type
   *    `input` and others.
   */
button,
html input[type="button"],
input[type="reset"],
input[type="submit"] {
  cursor: pointer;
  /* 3 */
  -webkit-appearance: button;
  /* 2 */ }

/**
   * Re-set default cursor for disabled elements.
   */
button[disabled],
html input[disabled] {
  cursor: default; }

/**
   * Remove inner padding and border in Firefox 4+.
   */
button::-moz-focus-inner,
input::-moz-focus-inner {
  padding: 0;
  border: 0; }

/**
   * Address Firefox 4+ setting `line-height` on `input` using `!important` in
   * the UA stylesheet.
   */
input {
  line-height: normal; }

/**
   * It's recommended that you don't attempt to style these elements.
   * Firefox's implementation doesn't respect box-sizing, padding, or width.
   *
   * 1. Address box sizing set to `content-box` in IE 8/9/10.
   * 2. Remove excess padding in IE 8/9/10.
   */
input[type="checkbox"],
input[type="radio"] {
  box-sizing: border-box;
  /* 1 */
  padding: 0;
  /* 2 */ }

/**
   * Fix the cursor style for Chrome's increment/decrement buttons. For certain
   * `font-size` values of the `input`, it causes the cursor style of the
   * decrement button to change from `default` to `text`.
   */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  height: auto; }

/**
   * 1. Address `appearance` set to `searchfield` in Safari and Chrome.
   * 2. Address `box-sizing` set to `border-box` in Safari and Chrome
   *    (include `-moz` to future-proof).
   */
input[type="search"] {
  -webkit-box-sizing: content-box;
  /* 2 */
  -moz-box-sizing: content-box;
  box-sizing: content-box;
  -webkit-appearance: textfield;
  /* 1 */ }

/**
   * Remove inner padding and search cancel button in Safari and Chrome on OS X.
   * Safari (but not Chrome) clips the cancel button when the search input has
   * padding (and `textfield` appearance).
   */
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none; }

/**
   * Define consistent border, margin, and padding.
   */
fieldset {
  margin: 0 2px;
  padding: 0.35em 0.625em 0.75em;
  border: 1px solid #c0c0c0; }

/**
   * 1. Correct `color` not being inherited in IE 8/9/10/11.
   * 2. Remove padding so people aren't caught out if they zero out fieldsets.
   */
legend {
  padding: 0;
  /* 2 */
  border: 0;
  /* 1 */ }

/**
   * Remove default vertical scrollbar in IE 8/9/10/11.
   */
textarea {
  overflow: auto; }

/**
   * Don't inherit the `font-weight` (applied by a rule above).
   * NOTE: the default cannot safely be changed in Chrome and Safari on OS X.
   */
optgroup {
  font-weight: bold; }

/* Tables
     ========================================================================== */
/**
   * Remove most spacing between table cells.
   */
table {
  border-collapse: collapse;
  border-spacing: 0; }

td,
th {
  padding: 0; }

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0; }

a {
  color: inherit;
  text-decoration: none; }

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  padding: 0; }

/* roboto-regular - latin */
@font-face {
  font-style: normal;
  font-weight: 400;
  font-family: "Roboto";
  src: local("Roboto"), local("Roboto-Regular"), url(fonts/479970ffb74f2117317f9d24d9e317fe.woff2) format("woff2"); }

/* roboto-500 - latin */
@font-face {
  font-style: normal;
  font-weight: 500;
  font-family: "Roboto";
  src: local("Roboto Medium"), local("Roboto-Medium"), url(fonts/020c97dc8e0463259c2f9df929bb0c69.woff2) format("woff2"); }

.bucketCursor {
  cursor: url(images/bucket.png), auto; }

.pippeteCursor {
  cursor: url(images/pipette.png), auto; }

.pencilCursor {
  cursor: url(images/pencil.png), auto; }

.eraserCursor {
  cursor: url(images/eraser.png), auto; }

.strokeCursor {
  cursor: url(images/stroke.png), auto; }

.rectangleCursor {
  cursor: url(images/rectangle.png), auto; }

.button,
label {
  display: flex;
  margin: 0.5rem;
  margin-bottom: 10px;
  padding: 0.5rem;
  font-family: "Roboto", sans-serif;
  border: 2px solid gold;
  cursor: pointer; }
  .button:active,
  label:active {
    background-color: rgba(0, 0, 0, 0.7);
    border-color: black; }

.work-place__tool-bar {
  position: relative;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding-top: 0; }

.work-place__color-bar {
  position: relative; }

.button:hover::after {
  content: attr(data-title);
  z-index: 1;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-family: Arial, sans-serif;
  color: gold;
  background: #333333;
  border: 1px solid #333333; }

.pencil.button:hover::after {
  position: absolute;
  top: -15px;
  left: 0; }

.chooseColor.button:hover::after {
  position: absolute;
  top: -15px;
  left: 60px; }

.paintBucket.button:hover::after {
  position: absolute;
  top: -15px;
  right: 0; }

.eraser.button:hover::after {
  position: absolute;
  bottom: -10px;
  left: 0; }

.line.button:hover::after {
  position: absolute;
  bottom: -10px;
  left: 60px; }

.rectangle.button:hover::after {
  position: absolute;
  right: 0;
  bottom: -10px; }

.input-color.button:hover::after {
  position: absolute;
  top: -15px;
  left: 25px; }

.previous.button:hover::after {
  position: absolute;
  top: 83px;
  left: 160px; }

.red.button:hover::after {
  position: absolute;
  top: 137px;
  left: 160px; }

.blue.button:hover::after {
  position: absolute;
  top: 190px;
  left: 160px; }

.bw.button:hover::after {
  position: absolute;
  bottom: -15px;
  left: 25px; }

.button--XL.button:hover::after {
  position: absolute;
  bottom: -15px;
  left: 25px; }

.sizeL.button:hover::after {
  position: absolute;
  top: 27px;
  left: -55px; }

.sizeM.button:hover::after {
  position: absolute;
  top: 84px;
  left: -55px; }

.sizeS.button:hover::after {
  position: absolute;
  top: 144px;
  left: -55px; }

.getGif.button:hover::after {
  position: absolute;
  bottom: -15px;
  left: 0; }

.getApng.button:hover::after {
  position: absolute;
  right: 18px;
  bottom: -15px; }

ul {
  padding: 1rem;
  list-style: none; }

.header {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  background-color: gold; }

.header__nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 2rem; }

.header #userInfo {
  display: none;
  flex-direction: row;
  align-items: center;
  height: 30px;
  margin-right: 1rem;
  padding: 1.1rem 1rem;
  font-size: 1rem;
  font-family: "Roboto", sans-serif;
  color: black;
  background-color: gold;
  border: 3px solid black;
  cursor: pointer; }

.header #userInfo #userImg {
  align-items: center;
  width: 30px;
  height: 30px;
  margin-right: 0.5rem;
  border-radius: 50%; }

.header #logIn,
.header #logOut {
  padding: 0.5rem 1rem;
  font-size: 1.2rem;
  line-height: 1.2rem;
  font-family: "Roboto", sans-serif;
  color: black;
  background-color: gold;
  border: 3px solid black;
  cursor: pointer;
  transition: background-color 0.5s linear;
  transition: color 0.5s linear;
  transition: border 0.5s linear; }
  .header #logIn:hover,
  .header #logOut:hover {
    color: gold;
    background-color: black;
    border: 3px solid gold;
    outline: 3px solid black; }

.header #logOut {
  display: none; }

.login-google-wrapper {
  display: flex; }

.main {
  display: grid;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 2rem 0;
  background-color: #ffffff;
  grid-template: "work-place frames canvas animation-preview";
  grid-template-columns: 1fr 1fr 2fr 1fr;
  grid-template-rows: 1fr; }

.work-place {
  grid-area: work-place; }

.frames {
  grid-area: frames; }

.canvas__wraper {
  grid-area: canvas; }

.canvas {
  position: relative;
  width: 512px;
  height: 512px;
  overflow: hidden;
  box-shadow: 0 0 7px rgba(0, 0, 0, 0.25); }

.animation-preview {
  grid-area: animation-preview; }

.canvas-field {
  position: absolute;
  top: 0;
  left: 0;
  width: 512px;
  height: 512px; }

.canvas-field-temp {
  position: absolute;
  top: 0;
  left: 0;
  width: 512px;
  height: 512px; }

.tool-bar__text {
  padding-left: 1rem; }

.tool-bar__color {
  width: 1.5rem;
  height: 1.5rem;
  margin-right: 1rem;
  border: 2px solid black;
  border-radius: 50%; }
  .tool-bar__color--red {
    background: #f74141; }
  .tool-bar__color--blue {
    background: #00bcd4; }
  .tool-bar__color--previous {
    background: #ffeb3b; }
  .tool-bar__color--current {
    background: #000000; }

.input-current-color {
  display: none; }

.active {
  border-color: black; }

.frames,
.animation-preview {
  display: flex;
  flex-direction: column;
  align-items: center; }

.frames__item {
  position: relative; }

.frame {
  min-width: 150px;
  min-height: 150px;
  margin-bottom: 1rem;
  border: 1px solid black; }

.animation-preview__preview-frame {
  width: 150px;
  height: 150px;
  margin-bottom: 1rem;
  border: 2px solid black; }

.scroll-container {
  width: 210px;
  height: 700px;
  overflow: hidden;
  outline: none; }
  .scroll-container h1:after {
    content: " hidden"; }
  .scroll-container p {
    line-height: 1.5; }
  .scroll-container:hover, .scroll-container:focus {
    overflow-y: auto; }
    .scroll-container:hover h1:after, .scroll-container:focus h1:after {
      content: " shown"; }

.add-frame {
  padding-top: 0; }

.deleteIcon {
  position: absolute;
  top: 0;
  right: 0;
  width: 20px;
  height: 20px;
  text-align: center;
  background-color: red;
  cursor: pointer; }

.frame {
  position: relative; }

.cloneFrameIcon {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 20px;
  height: 20px;
  text-align: center;
  background-color: red;
  cursor: pointer; }

.canvas-size__tool-bar {
  display: flex;
  flex-direction: column; }

.item__text {
  font-size: 1rem;
  font-family: "Roboto", sans-serif;
  text-align: center; }

.sizeS,
.sizeM,
.sizeL,
.getGif,
.getApng {
  justify-content: center; }

.save-as {
  position: relative; }

.canvas-size__tool-bar {
  position: relative; }

.save-as__title {
  font-size: 1rem;
  font-family: "Roboto", sans-serif;
  text-align: center; }

.save-as__item {
  display: flex;
  padding-top: 0.2rem; }

.modal {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  display: none;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  opacity: 0;
  animation: modal-show 0.5s 1 forwards; }

.modal-content {
  position: relative;
  top: 10%;
  left: calc(50% - 240px);
  width: 480px;
  height: 480px;
  overflow: auto;
  background: #444444;
  background-color: white;
  border: 3px solid gold;
  border-radius: 3px; }

.modal:target {
  display: flex; }

.modal-header {
  box-sizing: border-box;
  width: 100%;
  height: 45px;
  margin: 0;
  padding: 10px;
  font-size: 1.2rem;
  color: black;
  background: gold; }

.modal-body {
  display: block;
  box-sizing: border-box;
  padding: 20px 5% 0;
  overflow: auto;
  background-color: #ffffff;
  border-radius: 3px; }

.modal-body__item {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem; }

.item__hot-key {
  display: inline-block;
  box-sizing: border-box;
  height: 30px;
  margin-left: 10px;
  padding: 0 10px;
  font-weight: bold;
  font-size: 18px;
  line-height: 26px;
  font-family: monospace;
  text-align: center;
  border: 2px solid gold;
  border-radius: 2px;
  cursor: default; }

.item__hot-key--color {
  margin-left: 0; }

.item__label {
  padding-left: 1rem;
  font-size: 1rem;
  cursor: default; }

.modal-show {
  position: relative;
  display: inline-block;
  margin-left: 11px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: white;
  text-decoration: none;
  cursor: pointer; }

.modal-show:hover::after {
  content: attr(data-title);
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  font-family: Arial, sans-serif;
  color: gold;
  background: #333333;
  border: 1px solid #333333; }

.modal-hide {
  position: absolute;
  top: 0;
  right: 0.1em;
  width: 60px;
  height: 60px;
  padding: 0;
  font-size: 2rem;
  text-align: center;
  color: black;
  text-decoration: none;
  background-color: transparent;
  border: none;
  cursor: pointer;
  -webkit-appearance: none; }

@keyframes modal-show {
  0% {
    opacity: 0; }
  100% {
    opacity: 1; } }

.footer {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto; }

.footer,
.footer__social {
  display: flex;
  justify-content: start;
  align-items: center;
  padding: 0.5rem 1rem;
  font-family: "Roboto", sans-serif;
  background-color: gold; }

.footer__label {
  font-weight: 600;
  font-size: 1rem;
  color: black; }

.footer__social {
  list-style: none; }

.social__item {
  padding-right: 0.5rem; }

