:root {
  --dot-size: 16px;
}

* {
  box-sizing: border-box;
}


body {

  margin: 0;
  font-size: 20px;
  font-family: Monaco serif;
  background-color: #dfdfdf;
}

div {
  margin-bottom: 30px;
}

a,
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  padding: 0px 0px 20px 0px;

}

p {

  padding-left: 40px;
  padding-right: 40px;
  padding: 20px;
  margin-bottom: 20px;

}

ul,
li,
ol,
a {
  padding: 5px;
  list-style: none;
  text-decoration: none;
  margin-bottom: 20px;
}

.container {
  display: flex;
  flex-direction: column;
  width: 1600px;
  margin-left: auto;
  margin-right: auto;

  padding: 0 170px 170px 170px;
  background-color: #f9f9fd;
  text-align: left;

  border-radius: 8px;
}

.title {
  padding: 30px;
  text-align: center;
  margin-bottom: 20px;
}

.warning {
  color: #fff;
  border-radius: 8px;
  background-color: tomato;
  padding-left: 40px;

  box-shadow: 2px 5px 4px 1px rgba(0, 0, 0, 0.3);
  padding-right: 40px;

}

.information {
  padding-left: 40px;
  padding-right: 40px;
  width: 1260px;
  display: inline-block;

  margin-left: auto;
  margin-right: auto;

  border-radius: 8px;
  color: white;
  box-shadow: 2px 5px 4px 1px rgba(0, 0, 0, 0.3);


  background-color: rgb(66, 66, 66);
}

.img {
  display: block;
  width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 20px;

}

.bg {
  padding: 20px;
  width: 1260px;
  display: block;
  background-color: #dfdfdf;
  border-radius: 8px;
  margin: 0px 0px 20px 0px;
  box-shadow: 2px 5px 4px 1px rgba(0, 0, 0, 0.3);
}



/* ======================================== */
.box {


  width: 200px;
  height: 200px;
  border-radius: 10px;
  background-color: tomato;
  box-shadow: 0px 2px 1px -1px rgba(0, 0, 0, 0.2),
    0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12);

  /*  Set transition values  */
  transition-property: background-color, transform;
  transition-duration: 500ms;
  transition-timing-function: linear;
  transition-delay: 0;

  animation-name: changeColor;
}

.box:hover {
  background-color: teal;
  transform: rotate(90deg);
}

/* ======================================== */

/* .flex-container {
  border: 1px solid grey;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 4px;

  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 300px;
}

.circle {
  display: flex;
  justify-content: center;
  align-items: center;

  width: 100px;
  height: 100px;
  flex-shrink: 0;
  margin-left: 30px;
  margin-right: 30px;
  border-radius: 50%;

  transition-property: transform;
}

.flex-container:hover {
  transform: scale(1.5);
}

.circle:nth-child(1) {
  background-color: yellow;
  transition-duration: 500ms;
}

.circle:nth-child(2) {
  background-color: blue;
  transition-duration: 1500ms;
}

.circle:nth-child(3) {
  background-color: red;
  transition-duration: 3000ms;
} */
.flex-container {
  border: 1px dashed rgba(0, 0, 0, 0.12);
  background-color: rgba(0, 0, 0, 0.10);
  border-radius: 4px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 300px;
}

.circle {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100px;
  height: 100px;
  flex-shrink: 0;
  margin-left: 30px;
  margin-right: 30px;
  border-radius: 50%;
  box-shadow: 0px 2px 1px -1px rgba(0, 0, 0, 0.2),
    0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12);

  transition-property: transform;
}

.flex-container:hover .circle {
  transform: scale(1.5);
}

.circle:nth-child(1) {
  background-color: orange;

  transition-duration: 500ms;
}

.circle:nth-child(2) {
  background-color: #03a9f4;

  transition-duration: 1500ms;
}

.circle:nth-child(3) {
  background-color: palevioletred;

  transition-duration: 3000ms;
}

/* ========================= */
.circle-container {
  /* width: 1260px; */
  border: 2px dashed rgba(0, 0, 200, 0.5);
  border-radius: 4px;
  padding: 10px;
}

.circle-in {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  box-shadow: 0px 2px 1px -1px rgba(0, 0, 0, 0.2),
    0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12);

  transform: translatex(0);
  transition-property: transform;
  transition-duration: 2000ms;

  color: #fff;
}

.circle-in:not(:last-child) {
  margin-bottom: 5px;
}

.circle-container:hover .circle-in {
  transform: translatex(calc(100vw - 86px));
}

.circle-in:nth-child(1) {
  background-color: #f44336;
  transition-timing-function: linear;
}

.circle-in:nth-child(2) {
  background-color: #3f51b5;
  transition-timing-function: ease;
}

.circle-in:nth-child(3) {
  background-color: #00bcd4;
  transition-timing-function: ease-in;
}

.circle-in:nth-child(4) {
  background-color: #4caf50;
  transition-timing-function: ease-out;
}

.circle-in:nth-child(5) {
  background-color: #ffeb3b;
  transition-timing-function: ease-in-out;
}

.circle-in:nth-child(6) {
  background-color: #e91e63;
  transition-timing-function: cubic-bezier(0.39, 1.03, 0.82, 0.08);
}

/* ================= */

.box-delay {
  width: 200px;
  height: 200px;
  border-radius: 10px;
  background-color: tomato;
  box-shadow: 0px 2px 1px -1px rgba(0, 0, 0, 0.2),
    0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12);

  transition-property: background-color, transform;
  transition-duration: 500ms;
  transition-timing-function: ease-in-out;

  transition-delay: 500ms;
}

.box-delay:hover {
  background-color: teal;
  transform: rotate(180deg);
}

/* ================================== */
.box-tdelay {
  width: 200px;
  height: 200px;
  border-radius: 10px;
  background-color: tomato;
  box-shadow: 0px 2px 1px -1px rgba(0, 0, 0, 0.2),
    0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12);

  transition: background-color 500ms linear, transform 500ms ease-in-out 500ms;
}

.box-tdelay:hover {
  background-color: teal;
  transform: rotate(180deg);
}

/* ================================== */
@keyframes changeColor {
  0% {
    background-color: red;
  }

  50% {
    background-color: teal;
  }

  100% {
    background-color: green;
  }
}

.frametest {
  height: 100px;
  width: 100px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 8px;
  background-color: rgba(0, 0, 0, 0.2);
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
}

.frametest:hover {
  animation-name: changeColor;
  animation-duration: 3s;
}

/* ================================== */

.spin {
  animation-name: spin;
  animation-duration: 10s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

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

/* ================================== */

.box__direction {
  position: relative;
}

.box__normal,
.box__reverse,
.box__alternate,
.box__alternate-reverse {
  width: 150px;
  padding: 4px 8px;
  border: 1px solid black;
  border-radius: 4px;
  text-align: center;
  color: #fff;

  animation-name: move;
  animation-duration: 10s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.box__normal {
  animation-direction: normal;
  background-color: teal;
}

.box__reverse {
  animation-direction: reverse;
  background-color: tomato;
}

.box__alternate {
  animation-direction: alternate;
  background-color: green;
}

.box__alternate-reverse {
  animation-direction: alternate-reverse;
  background-color: blue;
}

@keyframes move {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(1200px);
  }
}

/* ================================== */

.container__fill {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.box__none,
.box__forwards,
.box__backwards,
.box__both {
  color: black;
  display: flex;
  justify-content: center;
  align-items: center;

  width: 100px;
  height: 100px;
  border: 1px solid black;
  background-color: #fff;
  text-align: center;
}

.box__none:hover,
.box__forwards:hover,
.box__backwards:hover,
.box__both:hover {
  animation-name: changeBgColor;
  animation-duration: 3s;
  animation-timing-function: linear;
  animation-delay: 1s;
}

.box__none {
  animation-fill-mode: none;
}

.box__forwards {
  animation-fill-mode: forwards;
}

.box__backwards {
  animation-fill-mode: backwards;
}

.box__both {
  animation-fill-mode: both;
}

@keyframes changeBgColor {
  0% {
    background-color: tomato;
  }

  50% {
    background-color: green;
  }

  100% {
    background-color: teal;
  }
}

/* ================================== */

.box__play {
  width: 300px;
  height: 300px;
  margin: 0 auto;
  border-radius: 8px;

  animation-name: changeBgColor;
  animation-duration: 3000ms;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}

.box__play:hover {
  animation-play-state: paused;
}

/* ================================== */

.deg {
  display: flex;
}

.scene {
  width: 200px;
  height: 200px;
  border: 1px solid black;
  border-radius: 8px;
  background-color: #fff;
}

.box__deg {
  display: flex;
  align-items: center;
  justify-content: center;

  height: 100%;
}

.box__deg.rotate-x {
  animation: rotateX 1.5s infinite alternate ease-in-out 1s;
}

.box__deg.rotate-y {
  animation: rotateY 1.5s infinite alternate ease-in-out 1s;
}

.box__deg.rotate-x {
  background-color: red;
}

.box__deg.rotate-y {
  background-color: blue;
}

@keyframes rotateX {
  0% {
    transform: rotateX(0deg);
  }

  100% {
    transform: rotateX(60deg);
  }
}

@keyframes rotateY {
  0% {
    transform: rotateY(0deg);
  }

  100% {
    transform: rotateY(60deg);
  }
}

/* ====================================== */
.box__deg.rotate__x {
  animation: rotate-X 1500ms infinite alternate ease-in-out 1000ms;
}

.box__deg.rotate__y {
  animation: rotate-Y 1500ms infinite alternate ease-in-out 1000ms;
}

.box__deg.rotate__x {
  background-color: tomato;
}

.box__deg.rotate__y {
  background-color: blue;
}

@keyframes rotate-X {
  0% {
    transform: perspective(200px) rotateX(0deg);
  }

  100% {
    transform: perspective(200px) rotateX(60deg);
  }
}

@keyframes rotate-Y {
  0% {
    transform: perspective(200px) rotateY(0deg);
  }

  100% {
    transform: perspective(200px) rotateY(60deg);
  }
}

/* ====================================== */

.scene__p {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  width: 390px;
  outline: 1px solid black;
  border-radius: 4px;
  background-color: #fff;
  gap: 25px;
  padding: 10px;
}

.box__deg-p {
  flex-basis: 100px;
  width: 100px;
  height: 100px;
  border-radius: 4px;

  animation: rotate--Y 3000ms alternate infinite backwards ease-in-out 1000ms;
}

.box__deg-p:nth-child(1) {
  background-color: gray;
}

.box__deg-p:nth-child(2) {
  background-color: black;
}

.box__deg-p:nth-child(3) {
  background-color: red;
}

.box__deg-p:nth-child(4) {
  background-color: yellow;
}

.box__deg-p:nth-child(5) {
  background-color: green;
}

.box__deg-p:nth-child(6) {
  background-color: blue;
}

.box__deg-p:nth-child(7) {
  background-color: teal;
}

.box__deg-p:nth-child(8) {
  background-color: orange;
}

.box__deg-p:nth-child(9) {
  background-color: tomato;
}

@keyframes rotate--Y {
  0% {
    transform: perspective(400px) rotateY(60deg);
  }

  100% {
    transform: perspective(400px) rotateY(-60deg);

  }
}

/* =============================== */

.scale__items {
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scale__item {
  width: 150px;
  height: 150px;

  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  margin: 0 15px;
}

.scale__item::before {
  display: inline-block;
  font-size: 20px;
}

.scale__item:nth-child(1) {
  background-color: orange;
  animation: animate125 3000ms infinite 1000ms;
}

.scale__item:nth-child(1)::before {
  content: "1.25";
}

.scale__item:nth-child(2) {
  background-color: gray;
}

.scale__item:nth-child(2)::before {
  content: "1";
}

.scale__item:nth-child(3) {
  background-color: teal;
  animation: animate75 3000ms infinite 1000ms;
}

.scale__item:nth-child(3)::before {
  content: "0.75";
}

@keyframes animate125 {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.25);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes animate75 {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(0.75);
  }

  100% {
    transform: scale(1);
  }
}

/* =========================== */

.rotate__items {
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rotate__item {
  width: 150px;
  height: 150px;

  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  margin: 0 15px;
}

.rotate__item::before {
  display: inline-block;
  font-size: 20px;
}

.rotate__item:nth-child(1) {
  background-color: orange;
  animation: animate30 3000ms infinite 1000ms;
}

.rotate__item:nth-child(1)::before {
  content: "30deg";
}

.rotate__item:nth-child(2) {
  background-color: gray;
  animation: animate115 3000ms infinite 1000ms;
}

.rotate__item:nth-child(2)::before {
  content: "115deg";

}

.rotate__item:nth-child(3) {
  background-color: teal;
  animation: animate45 3000ms infinite 1000ms;
}

.rotate__item:nth-child(3)::before {
  content: "-45";
}

@keyframes animate30 {
  0% {
    transform: rotate(0deg);
  }

  50% {
    transform: rotate(30deg);
  }

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

@keyframes animate115 {
  0% {
    transform: rotate(0deg);
  }

  50% {
    transform: rotate(115deg);
  }

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

@keyframes animate45 {
  0% {
    transform: rotate(0deg);
  }

  50% {
    transform: rotate(-45deg);
  }

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

/* ================================== */
.offset__items {
  color: #fff;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.offset__item {
  width: 200px;
  height: 125px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  margin-left: 5px;
  margin-right: 5px;
}

.offset__item::before {
  font-size: 16px;
}

.offset__item:nth-child(1) {

  animation: animateX50 3000ms infinite 1000ms;
  background-color: orange;
}

.offset__item:nth-child(1)::before {
  content: "translateX(50px)";
}

.offset__item:nth-child(2) {

  animation: animateY110 3000ms infinite 1000ms;
  background-color: #03a9f4;
}

.offset__item:nth-child(2)::before {
  content: "translateY(110px)";
}

.offset__item:nth-child(3) {

  animation: animateX50Y100 3000ms infinite 1000ms;
  background-color: palevioletred;
}

.offset__item:nth-child(3)::before {
  content: "translate(-50px, -100px)";
}

@keyframes animateX50 {
  0% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(50px);
  }

  100% {
    transform: translateX(0);
  }
}

@keyframes animateY110 {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(110px);
  }

  100% {
    transform: translateY(0);
  }
}

@keyframes animateX50Y100 {
  0% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(-50px, -100px);
  }

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

/* ======================================= */
.parent {
  position: relative;
  max-width: 500px;
  height: 300px;
  border: 10px solid #303f9f;
  border-radius: 10px;
  background-color: #3f51b5;
}

.child {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  width: 100px;
  height: 100px;
  border: 10px solid #ffa000;
  border-radius: 10px;
  background-color: #ffc107;
}

/* ======================================= */
.skew__items {
  color: #fff;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.skew__item {
  width: 180px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  margin-left: 5px;
  margin-right: 5px;

}

.skew__item::before {
  display: inline-block;
  font-size: 16px;
}

.skew__item:nth-child(1) {

  animation: animateX30 3000ms infinite 1000ms;
  background-color: orange;
}

.skew__item:nth-child(1)::before {
  content: "skewX(30deg)";
}

.skew__item:nth-child(2) {

  animation: animateY30 3000ms infinite 1000ms;
  background-color: #03a9f4;
}

.skew__item:nth-child(2)::before {
  content: "skewY(30deg)";
}

.skew__item:nth-child(3) {

  animation: animateX30Y30 3000ms infinite 1000ms;
  background-color: palevioletred;
}

.skew__item:nth-child(3)::before {
  content: "skew(30deg, 30deg)";
}

@keyframes animateX30 {
  0% {
    transform: skewX(0deg);
  }

  50% {
    transform: skewX(30deg);
  }

  100% {
    transform: skewX(0deg);
  }
}

@keyframes animateY30 {
  0% {
    transform: skewX(0deg);
  }

  50% {
    transform: skewY(30deg);
  }

  100% {
    transform: skewX(0deg);
  }
}

@keyframes animateX30Y30 {
  0% {
    transform: skew(0deg);
  }

  50% {
    transform: skew(30deg, 30deg);
  }

  100% {
    transform: skew(0deg);
  }
}

/* ======================================== */
.origin__items {
  color: red;
  min-height: 300px;
  width: 420px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-content: center;
  margin-left: auto;
  margin-right: auto;
}

.origin__item {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed black;
  border-radius: 4px;
  font-size: 17px;
}

.origin__item::before {
  position: absolute;
  display: inline-block;
  content: "";
  width: 100%;
  height: 100%;
  border-radius: 4px;
  background-color: rgba(0, 0, 0, 0.3);

  /*  Анимация  */
  animation: rotateWithOrigin 3000ms linear 1000ms infinite;
}

.origin__item:nth-child(1)::before {
  transform-origin: top left;
}

.origin__item:nth-child(2)::before {
  transform-origin: top center;
}

.origin__item:nth-child(3)::before {
  transform-origin: top right;
}

.origin__item:nth-child(4)::before {
  transform-origin: center left;
}

.origin__item:nth-child(5)::before {
  transform-origin: center center;
}

.origin__item:nth-child(6)::before {
  transform-origin: center right;
}

.origin__item:nth-child(7)::before {
  transform-origin: bottom left;
}

.origin__item:nth-child(8)::before {
  transform-origin: bottom center;
}

.origin__item:nth-child(9)::before {
  transform-origin: bottom right;
}

.origin__item::after {
  position: absolute;
  display: inline-block;
  content: "";
  width: var(--dot-size);
  height: var(--dot-size);
  background-color: blue;
  border-radius: 50%;
}

.origin__item:nth-child(1)::after {
  top: calc(var(--dot-size) / -2);
  left: calc(var(--dot-size) / -2);
}

.origin__item:nth-child(2)::after {
  top: calc(var(--dot-size) / -2);
  left: center;
}

.origin__item:nth-child(3)::after {
  top: calc(var(--dot-size) / -2);
  right: calc(var(--dot-size) / -2);
}

.origin__item:nth-child(4)::after {
  top: center;
  left: calc(var(--dot-size) / -2);
}

.origin__item:nth-child(5)::after {
  top: center;
  left: center;
}

.origin__item:nth-child(6)::after {
  top: center;
  right: calc(var(--dot-size) / -2);
}

.origin__item:nth-child(7)::after {
  bottom: calc(var(--dot-size) / -2);
  left: calc(var(--dot-size) / -2);
}

.origin__item:nth-child(8)::after {
  bottom: calc(var(--dot-size) / -2);
  left: center;
}

.origin__item:nth-child(9)::after {
  bottom: calc(var(--dot-size) / -2);
  right: calc(var(--dot-size) / -2);
}

@keyframes rotateWithOrigin {
  0% {
    transform: rotate3d(0, 0, 1, 0deg);
  }

  100% {
    transform: rotate3d(0, 0, 1, 360deg);
  }
}

/* ======================================== */