h1 {
    font-size: 200px;
}
body {
    text-align: center;
}
h2 {
    font-size: 30px;
    text-align: center;
}
#thebeginning {
    background-color: black;
    width: 500px;
    height: 200px;
    color: aliceblue;
    margin: auto;
    transition: 1s;
    transform-origin: top;

}

#thebeginning:hover {
    transform: rotate(90deg);
    margin: auto;
    width: 100vw;
    height: 100vh;
    background-color: aqua;
    padding: 50vw;
    justify-self: flex-end;
}

section:hover #h2 {
    color: aqua;
    transition: 1s;
}
section:hover #dif {
    display: block;
    color: black;
}
#dif{
    rotate: -90deg;
    display: none;
}

#thebeginning:hover + #thenext {
    display: flex;
    position: fixed;

    top: 0px;
    left: 0px;
    width: 100px;
    height: 100px;
    background-color: green;
    transition: 2s;
}
#thenext {
    transition: 2s;
    display: flex;
    flex-direction: column;
    align-items: center;
}
#thenext:hover {
    display: block;
    position: fixed;
    top: 0px;
    left: 0px;
    margin: auto; 
    width: 100vw;
    transition: 2s;
    height: 100vh;
    background-color: orange;
}

body {
    overflow: hidden;
}
.next * {
    display: none;
    opacity: 0;
    transition: 2s;
}
.next:hover * {
    display: flex;
    opacity: 100;
}
#thenext:hover #vid1 {
    position: fixed;
    top: 2px;
    display: flex;
    justify-self: center;
    text-align: center;
    color: aliceblue;
    opacity: 100;
    transform-origin: top left;
}

#thenext:hover iframe {
    display: flex;
    opacity: 100;
    height: 500px;
    width: 800px;
    margin: auto;
    padding: 100px;
    object-fit: contain;
}

#thenext:hover + #thenexter {
    display: flex;
    position: fixed;
    bottom: 0px;
    justify-self: center;
    width: 100vw;
    height: 50px;
    background-color: yellow;
    transition: 2s;
}
#thenexter {
    transition: 2s;
    display: flex;
    flex-direction: column;
    align-items: center;
}
#thenexter:hover {
    display: flex;
    position: fixed;
    bottom: 0px;
    justify-self: center;
    width: 100vw;
    transition: 2s;
    height: 100vh;
    background-color: red;
}

#thenexter:hover audio {
    display: flex;
    justify-self: center;
    align-self: center;
    opacity: 100;
    margin-top: 200px;
}
#thenexter:hover audio:hover {
    transform: translate(200px);
}
#thenexter:hover h2 {
    opacity: 100;
    display: block;
}

#thenexter:hover + #thenextest {
    display: flex;
    position: fixed;
    top: 0;
    right: 200px;
    justify-self: center;
    height: 100vh;
    width: 50px;
    background-color: purple;
    transition: 2s;
}
#thenextest {
    transition: 2s;
    display: flex;
    flex-direction: column;
    align-items: center;
}
#thenextest:hover {
    display: flex;
    position: fixed;
    top: 0;
    right: 0px;
    justify-self: center;
    width: 100vw;
    transition: 2s;
    height: 100vh;
    background-color: blue;
}

#thenextest:hover div {
    margin: auto;
    text-align: center;
    display: grid;
    opacity: 100;
    grid-template-columns: 50% 50%;
    grid-template-rows: 50% 50%;
}

#thenextest:hover div h2 {
    grid-row: 0 1;
    grid-column: 1 2;
    display: grid;
    opacity: 100;
}
div iframe {
    height: 200px;
    width: 350px;
}

#thenextest:hover + #thefinal {
    display: flex;
    position: fixed;
    margin: auto;
    left: 200px;
    top: 40%;
    justify-self: center;
    align-self: center;
    height: 200px;
    width: 50px;
    background-color: rgb(255, 255, 255);
    transition: 2s;
    border-style: solid;
    border-width: 2px;
    color: black;
}
#thefinal {
    transition: 5s;
    display: flex;
    transform: skew(20deg, 10deg);
}
#thefinal:hover {
    transform: skew(0);
    display: flex;
    position: fixed;
    margin: auto;
    top: 0;
    left: 0px;
    justify-self: center;
    align-self: center;
    width: 100vw;
    transition: 2s;
    height: 100vh;
    background-color: rgb(0, 0, 0);
    border-style: solid;
    border-width: 2px;
    color: black;
    animation-name: aanimation;
    animation-delay: 2s;
    animation-duration: 5s;
}
@keyframes animation1 {
  0%   {background-color:rgb(255, 255, 255);}
  33%  {background-color: rgb(248, 145, 0);}
  66%  {background-color:rgb(34, 34, 203);}
  100% {background-color:rgb(0, 0, 0);}
}

@keyframes aanimation {
  0%   {justify-content: flex-start;}
  33%  {justify-content: center;}
  66%  {justify-content: flex-end;}
  100% {justify-content: center;}
}
#thefinal:hover h1 {
    animation-delay: 2s;
    display: flex;
    animation-name: animation1;
    animation-duration: 5s;
}

.lavishly-yours-regular {
  font-family: "Lavishly Yours", cursive;
  font-weight: 400;
  font-style: normal;
}