@charset "UTF-8";
/*-----------------------------------------CORE.CSS-----------------------------------------*/
/*CORE.css v1.0*/
/*Vytvořil Petr Hank*/
/**/
/**/
/*Nastavení box-sizing: border-box, takže šířka elementu, = content + padding + border a nastavení 
základní výšky řádku pro všechny prohlížeče*/
html {
  box-sizing: border-box;
  line-height: 1.5;
}

/*Nastaví všem elementům dědičnost vlastnosti box-sizing z elementu html*/
*,
*:before,
*:after {
  box-sizing: inherit;
}

/*Odstranění marginu elementu body*/
body {
  margin: 0;
}

/*Starší prohlížeče špatně zobrazují HTML5 dokumenty, proto resetujeme vlastnost display*/
article, aside, footer, header, nav, section, main {
  display: block;
}

/*Odstranění odrážek u seznamů v elementech nav*/
nav ol,
nav ul {
  list-style: none;
  padding: 0;
}

/*Sloučení ohraničení buňek v tabulkách*/
table {
  border-collapse: collapse;
}

/*Sjednocení vzhledu ohraničení fieldset pro všechny prohlížeče*/
fieldset {
  border: 1px solid #a0a0a0;
  padding: 0.35em 0.75em 0.625em;
}

/*Oprava velikosti h1 uvnitř elementů, jako article a section*/
h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

/*Oprava dekorace textu zkratky u některých prohlížečů*/
abbr[title] {
  text-decoration: underline;
  -webkit-text-decoration: underline dotted;
          text-decoration: underline dotted;
}

/*------------------KONEC------------------CORE.CSS------------------KONEC------------------*/
body {
  background-color: #232323;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

h1 {
  color: white;
  text-align: center;
  background-color: steelblue;
  font-weight: normal;
  margin: 0;
  text-transform: uppercase;
  line-height: 1.2;
  padding: 20px 0;
  transition: background 600ms;
}

#colorDisplay {
  font-size: 2em;
}

.stripe {
  background-color: white;
  height: 2em;
  text-align: center;
  color: black;
}

.stripe .selected {
  background: steelblue;
  color: white;
}

.stripe button {
  border: none;
  background: none;
  height: 100%;
  color: steelblue;
  outline: none;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
  font-size: inherit;
  border-radius: 0;
  transition: background 250ms;
}

.stripe button:hover {
  background: steelblue;
  color: white;
}

#message {
  display: inline-block;
  width: 20%;
}

.container {
  position: absolute;
  width: 100%;
  display: flex;
  overflow: hidden;
  height: 440px;
  max-height: 440px;
  align-items: center;
}

.gameArea {
  display: flex;
  flex-wrap: wrap;
  width: 600px;
  margin: 20px auto;
  align-items: center;
}

.gameArea .square {
  width: 30%;
  background: purple;
  padding-bottom: 30%;
  margin: 1.66%;
  border-radius: 15%;
  transition: background 600ms, opacity 300ms;
}

.hidden {
  visibility: hidden;
}

aside {
  transition: 2s cubic-bezier(0.23, 1, 0.32, 1);
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  position: absolute;
  right: 50px;
  background-color: #232323;
  width: 100%;
  height: 100%;
  transform: translateX(100%);
}

aside button {
  border: none;
  background: none;
  height: 100%;
  color: steelblue;
  outline: none;
  font-size: 2em;
  width: 50px;
  flex-shrink: 0;
}

aside button:hover {
  color: white;
  transition: 250ms;
}

aside .hintText {
  color: white;
  width: 550px;
  min-width: 550px;
  text-align: center;
}

aside .hintText ul {
  list-style-type: none;
  padding: 0;
}

aside .hintText ul .dot {
  font-size: 2em;
}

aside img {
  height: 50%;
}

aside .space {
  width: 50px;
}

.resize-animation-stopper * {
  transition: none;
}

.hintToggle {
  transform: translateX(50px);
}

@media screen and (max-width: 630px) {
  h1 {
    font-size: 1.3em;
  }
  h1 #colorDisplay {
    font-size: 1.4em;
  }
  .stripe {
    font-size: .8em;
  }
  .gameArea {
    width: 95%;
  }
  aside {
    flex-direction: column;
    transform: translateX(0) translateY(100vh);
    right: auto;
    bottom: 50px;
    width: 100%;
    position: fixed;
  }
  aside button {
    height: 50px;
  }
  aside .hintText {
    width: 95%;
    min-width: auto;
  }
  aside img {
    height: auto;
    width: 30%;
  }
  .hintToggle {
    transform: translateY(50px);
  }
}