.macbook {
    padding: 4% 6%;
    margin: 0 auto;
    max-width: 800px;
    -webkit-animation: float 6s ease-in-out infinite;
    animation: float 6s ease-in-out infinite;
}

.screen {
    background: #000;
    border-radius: 3% 3% 0.5% 0.5% / 5%;
    margin: 0 auto;
    /* for aspect ratio */
    position: relative;
    width: 80%;
}

.screen:before {
    border: 2px solid #cacacc;
    border-radius: 3% 3% 0.5% 0.5% / 5%;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.8) inset, 0 0 1px 2px rgba(255, 255, 255, 0.3) inset;
    content: "";
    display: block;
    /* for aspect ratio ~67:100 */
    padding-top: 67%;
}

.screen:after {
    content: "";
    border-top: 2px solid rgba(255, 255, 255, 0.15);
    position: absolute;
    bottom: 0.75%;
    left: 0.5%;
    padding-top: 1%;
    width: 99%;
}

.viewport {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    margin: 4.3% 3.2%;
    background: #333;
}

.base {
    /* for aspect ratio */
    position: relative;
    width: 100%;
}

.base:before {
    content: "";
    display: block;
    /* for aspect ratio ~33:1000*/
    padding-top: 3.3%;
    /* stylin */
    background: linear-gradient(#eaeced, #edeef0 55%, #fff 55%, #8a8b8f 56%, #999ba0 61%, #4B4B4F 84%, #262627 89%, rgba(0, 0, 0, .01) 98%);
    border-radius: 0 0 10% 10%/ 0 0 50% 50%;
}

.base::after {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.5), rgba(255, 255, 255, 0.8) 0.5%, rgba(0, 0, 0, 0.4) 3.3%, transparent 15%, rgba(255, 255, 255, 0.8) 50%, transparent 85%, rgba(0, 0, 0, 0.4) 96.7%, rgba(255, 255, 255, 0.8) 99.5%, rgba(0, 0, 0, 0.5) 100%);
    content: "";
    height: 53%;
    position: absolute;
    top: 0;
    width: 100%;
}

.notch {
    background: #ddd;
    border-radius: 0 0 7% 7% / 0 0 95% 95%;
    box-shadow: -5px -1px 3px rgba(0, 0, 0, 0.2) inset, 5px -1px 3px rgba(0, 0, 0, 0.2) inset;
    margin-left: auto;
    margin-right: auto;
    margin-top: -3.5%;
    z-index: 2;
    /* for aspect ratio */
    position: relative;
    width: 14%;
}

.notch:before {
    content: "";
    display: block;
    /* for aspect ratio ~1:10 */
    padding-top: 10%;
}


/* Screenshot Hover Scroll Additions
  -------------------------------------------------------------- */

.macbook .viewport {
    transition: background-position 10s ease;
    background-position: 0 0;
    background-size: 100% auto;
    overflow: hidden;
    cursor: pointer;
}

.macbook:hover .viewport {
    background-position: 0 100%;
}

.macbook:hover {
    animation-play-state: paused;
}

.macbook .viewport:after {
    background: radial-gradient(circle at right bottom, transparent 75%, rgba(255, 255, 255, 0.05) 75%, transparent);
    bottom: 0;
    content: "";
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}


/* IPHONE */
.iphone {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row-reverse;
    width: 16em;
    height: 30em;
}

.iphonex {
    width: 16em;
    height: 30em;
    display: flex;
    position: absolute;
    transform: rotate(0deg);
    transition: all cubic-bezier(0.36, 0.41, 0.38, 1) 0.4s;
    z-index: 10;
}

.iphonex:hover {
    transform: rotate(0deg) scale(0.95);
    margin-right: 0%;
}

.iphonex:hover~.title {
    opacity: 0;
}

.iphonex .back {
    display: flex;
    flex: 1;
    margin: 0.2em;
    border-radius: 3em;
    position: absolute;
    z-index: 1;
    width: calc(100% - 0.6em);
    height: calc(100% - 0.6em);
    top: 0;
    right: 0;
    box-shadow: 0 0 10em rgba(70, 70, 70, 0.1);
    transition: all 0.4s;
}

.iphonex:hover .back {
    box-shadow: 0 0 15em rgba(70, 70, 70, 0.4);
}

.iphonex .front {
    display: flex;
    flex: 1;
    background-color: #292c2d;
    border-radius: 3em;
    margin: 0.2em;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0.1em 0.4em rgba(255, 255, 255, 0.1) inset;
    z-index: 10;
}

.iphonex .screen-iphone {
    display: flex;
    flex: 1;
    background-color: #191b1c;
    margin: 0.4em;
    border-radius: 2.6em;
    border: solid 0.2em #121415;
    position: relative;
    z-index: 10;
}

.iphonex .front__line {
    background: linear-gradient(to right, #515455, #454748, #515455);
    position: absolute;
    z-index: 8;
    width: 100%;
    height: 0.5em;
    top: 10%
}

.iphonex .front__line-second {
    top: 90%
}

.iphonex .screen-iphone .screen__view {
    display: flex;
    flex: 1;
    margin: 0.6em;
    border-radius: 2em;
    overflow: hidden;
    position: relative;
    width: 100%;
    position: relative;
    align-items: center;
    justify-content: center;
}

.iphonex .screen-iphone .screen__view:after,
.iphonex .screen-iphone .screen__view:before {
    content: "";
    position: absolute;
    z-index: 1;
    width: 50em;
    height: 50em;
    border-radius: 50%;
    background: linear-gradient(110deg, #61ce70, #15780a, #209403);
    bottom: 0;
}

.iphonex .screen-iphone .screen__view:after {
    transform: translateY(100%) scaleX(1.4);
    opacity: 0.3;
    transition: all ease 0.5s 0.1s;
}

.content-info:hover .screen__view:after {
    transform: translateY(10%) scaleX(1.4);
    transition: all ease 0.9s;
}

.iphonex .screen-iphone:hover .screen__view:after {
    transform: translateY(10%) scaleX(1.4);
    transition: all ease 0.9s;
}

.iphonex .screen-iphone .screen__view:before {
    transform: translateY(100%) scaleX(1.4);
    opacity: 1;
    z-index: 40;
    transition: all ease 0.6s;
}

.content-info:hover .screen__view:before {
    transform: translateY(10%) scaleX(1.4);
    transition: all ease 0.9s 0.2s;
}

.iphonex .screen-iphone:hover .screen__view:before {
    transform: translateY(10%) scaleX(1.4);
    transition: all ease 0.9s 0.2s;
}

.iphonex .screen-iphone .screen__view .lotopixLogo {
    transition: all ease 0.7s;
}

.content-info:hover .screen__view .lotopixLogo:not(.white) {
    transform: translateY(100%) translateZ(1px);
    transition: all ease 1s 0.1s
}

.iphonex .screen-iphone:hover .screen__view .lotopixLogo:not(.white) {
    transform: translateY(100%) translateZ(1px);
    transition: all ease 1s 0.1s
}

.iphonex .screen-iphone .screen__view .lotopixLogo:after {
    bottom: 0;
    transform: translateY(63%) scaleY(1.65) scaleX(1.5) rotate(-30deg);
    transform-origin: top center;
}

.iphonex .screen-iphone .screen__view .lotopixLogo:before {
    top: 0;
    transform: translateY(-62%) scaleY(1.65) scaleX(1.5) rotate(-30deg);
    transform-origin: bottom center;
}

.iphonex .screen-iphone .screen__view .lotopixLogo span {
    top: 0;
    transform: translateY(-50%) scaleY(1.85) scaleX(1.5) rotate(-63deg);
    transform-origin: bottom right;
}

.iphonex .screen-iphone .screen__view .hello {
    font-size: 2.5em;
    color: #fff;
    position: absolute;
    z-index: 60;
    opacity: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all ease 0.3s;
    transform: translateY(40%);
    font-weight: 600;
}

.content-info:hover .screen__view .hello {
    opacity: 1;
    transform: translateY(0%);
    transition: all ease 0.6s 0.7s;
}

.iphonex .screen-iphone:hover .screen__view .hello {
    opacity: 1;
    transform: translateY(0%);
    transition: all ease 0.6s 0.7s;
}

.iphonex .screen-iphone .screen__front {
    position: absolute;
    width: 50%;
    background-color: #191b1c;
    height: 1.8em;
    border-radius: 0 0 0.9em 0.9em;
    right: 25%;
    top: 0px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 0.3em;
    box-sizing: border-box;
    margin-top: 0.5em;
    z-index: 999;
}

.iphonex .screen-iphone .screen__front::after,
.iphonex .screen-iphone .screen__front::before {
    content: "";
    width: 10%;
    height: 50%;
    position: absolute;
    background: transparent;
    top: -0.3em;
    border: solid 0.4em #191b1c;
    border-bottom: 0;
}

.iphonex .screen-iphone .screen__front::after {
    left: 0.4em;
    transform: translateX(-100%);
    border-left: 0;
    border-radius: 0 0.7em 0 0;
}

.iphonex .screen-iphone .screen__front::before {
    right: 0.4em;
    transform: translateX(100%);
    border-right: 0;
    border-radius: 0.7em 0 0 0;
}

.iphonex .screen-iphone .screen__front-speaker {
    background: #070808;
    border-radius: 0.2em;
    height: 0.35em;
    width: 28%;
}

.iphonex .screen-iphone .screen__front-camera {
    height: 0.35em;
    width: 0.35em;
    background: #272727;
    margin-left: .5em;
    border-radius: 50%;
    margin-right: -0.8em;
}

.iphonex .phoneButtons {
    width: 1em;
    height: 6em;
    position: absolute;
    z-index: 2;
    background: linear-gradient(to bottom, #212324, #2b2e31, #212324);
    box-shadow: 0 0 0.4em rgba(255, 255, 255, 0.1) inset;
    border-radius: 2px;
}

.iphonex .phoneButtons-right {
    right: 0;
    top: 30%;
}

.iphonex .phoneButtons-left {
    left: 0;
    top: 15%;
    height: 3em;
}

.iphonex .phoneButtons-left2 {
    left: 0;
    top: 25%;
    height: 5em;
}

.iphonex .phoneButtons-left3 {
    left: 0;
    top: calc(25% + 6em);
    height: 5em;
}

@media (max-height: 40em) {
    body {
        font-size: 70%;
    }

    .iphonex {
        width: 48vh;
        height: 94vh;
    }

    .title .title__svg svg text {
        font-size: 4em;
    }
}

@keyframes float {
    0% {
        filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.6));
        transform: translatey(0px);
    }

    50% {
        filter: drop-shadow(0 25px 15px rgba(0, 0, 0, 0.6));
        transform: translatey(-20px);
    }

    100% {
        filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.6));
        transform: translatey(0px);
    }
}