/* Про приоритет и специфичность */

body {
  color: white;
}

body div {
  background-color: green;
  color: yellowgreen;
}

body div {
  background-color: blue;
  color: initial;
}

body div {
  color: inherit;
}

div {
  background-color: red;
}

div {
  background-color: orange;
}

/* Про плакаты из нескольких экранов */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: rgb(227, 253, 254);
}

div {
  padding: 20px;
}

body > div:first-child {
  width: 30vw;
  height: 80vh;
}

.second {
  width: 60vw;
  height: 50vh;
  margin-left: 20vw;
  background-color: orange;
}

body > div:nth-child(3) {
  width: 100vw;
  height: 140vh;
  padding: 0;
  background-color: rgb(0, 12, 33);
}

body > div:nth-child(3) div {
  width: 5vw;
  height: 100%;
  margin-left: 85vw;
  background-color: greenyellow;
}

body > div:nth-child(4) {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  width: 10vw;
  height: 80vh;
  margin-left: 30vw;
  background-color: rgb(255, 205, 238);
}

body > div:nth-child(4) div {
  width: 8vh;
  height: 8vh;
  border-radius: 4vh;
  background-color: rgb(255, 0, 111);
}

.linesInside {
  position: relative;
  width: 100vw;
  height: 140vh;
  padding: 0;
  background-color: rgb(0, 12, 33);
}

.linesInside > div:first-child {
  width: 5vw;
  height: 100%;
  margin-left: 85vw;
  background-color: greenyellow;
}

/* .linesInside > div:last-child */
.linesInside > div:not(:first-child) {
  position: absolute;
  top: 10vh;
  left: 20vw;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 40vw;
  height: 120vh;
  background-color: initial;
}

.linesInside > div:last-child div {
  width: 100%;
  height: 1vh;
  padding: 0;
  background-color: rgb(108, 255, 201);
}

.perspective {
  position: relative;
  width: 100vw;
  height: 100vh;
  background-color: initial;
  perspective: 1500px;
  transition: all 4s ease-in-out;
}

.perspective div {
  position: absolute;
  /* top: 35vh; */
  /* left: 35vh; */
  /* width: 30vh; */
  /* height: 30vh; */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: all 3s ease-in-out;
  background-color: blue;
}

.perspective:hover {
  perspective: 200px;
}

.perspective:hover div {
  transform: rotate3d(0.1, 0.4, 0.2, 170deg);
}
