@font-face { font-family: 'Gloss And Bloom'; src: url('./font/GlossAndBloom.woff2') format('woff2'), url('./font/GlossAndBloom.woff') format('woff'); font-weight: normal; font-style: normal; } body { font-family: 'Montserrat'; background-color: #e5f9bd; color: #525050; margin: 0; overflow-x: hidden; } mark { background-color: #a0e418; } .section { padding: 2em 0; } h1 { font-size: 3em; padding-top: 1em; font-weight: lighter; text-transform: uppercase; letter-spacing: .3em; text-align: center; animation: letterSpacing 2.5s 1 ease; } .introduce { background-image: url('img/noisetexture.png'), linear-gradient(180deg, #e5f9bd, #e5f9bd); position: relative; padding-bottom: 8em; } .introduce p { text-align: center; margin: 4em 0; font-weight: 600; animation: down 1.5s 1 ease; } .introduce a { display: block; position: relative; color: #525050; text-decoration: none; text-transform: uppercase; text-align: center; margin-top: 4em; font-weight: 600; font-size: 1.1em; transition: letter-spacing .3s ease; } .introduce a:hover { letter-spacing: .4em; transition: letter-spacing .5s ease; } #pommeImg { width: 10em; margin: auto; display: block; transform: rotate(10deg); transition: transform 1s ease; animation: rotate 2s ease 1; } .pommeBox { width: 100%; margin-top: 6em; } #pommeImg:hover { transform: rotate(20deg); transition: transform 1s ease; } #one { background-image: url(img/nature.jpg); background-attachment: fixed; background-size: cover; position: relative; } #one .box { background-color: #ebebeb; margin: 2em auto; height: 90%; width: 90%; } #one h3 { font-family: 'Gloss And Bloom'; font-weight: normal; font-style: normal; font-size: 6em; margin-left: .5em; margin-top: 0; transform: rotate(-10deg); opacity: 0; transition: opacity 2s ease; } #one p { width: 40%; font-weight: 600; text-align: justify; margin: 10em 0 0 9em; line-height: 1.5em; opacity: 0; transform: translateY(-10px); transition: all 3s ease; } #two { position: relative; } #two h3 { position: relative; text-align: center; font-size: 5em; font-family: "Permanent Marker"; opacity: 0; transition: opacity .4s ease; } #two p { text-align: center; font-family: 'Times New Roman', Times, serif; width: 50%; margin: auto; font-size: 1.3em; line-height: 1.9em; opacity: 0; transition: opacity .8s ease; margin-bottom: 4em; } #iphone { width: 10%; transform: translateY(-800px) rotate(20deg); position: absolute; left: 100px!important; z-index: -4; opacity: 0; transition: opacity 1s ease; } #spotify { width: 8%; transform: translateY(-600px) rotate(-30deg); position: absolute; right: 100px!important; z-index: -4; opacity: 0; transition: opacity 1s ease; } #shampoing { width: 20%; position: absolute; transform: translateY(0px) rotate(50deg); left: 400px!important; z-index: -4; opacity: 0; transition: opacity 1s ease; } #gum { width: 30%; transform: translateY(-100px) rotate(-70deg); position: absolute; right: 300px!important; z-index: -4; opacity: 0; transition: opacity 1s ease; } #three { background-image: url('img/noisetexture.png'), linear-gradient(180deg, #e5f9bd, #e5f9bd); padding-bottom: 5em; } #three h3 { font-family: 'Poiret One'; font-weight: lighter; font-size: 5em; text-align: center; animation: breath 3s infinite; opacity: 0; transition: opacity 1s ease; } #three .flex { display: flex; } #three .flexbox { width: calc(100%/2); } #three .text p { display: block; margin: auto; width: 70%; font-size: 1.5em; line-height: 2em; text-align: justify; opacity: 0; transition: opacity 3s ease; } #three .img { position: relative; opacity: 0; transition: opacity 2s ease; height: 743px; } #three .tab { background-image: url("img/magrittTab.png"); position: absolute; left: 0px; top: 0px; width: 580px; height: 743px; z-index: 1; } #three .apple { position: absolute; left: 245px; top: 131px; width: 91px; height: 99px; z-index: 2; transition: transform 1s ease-in-out; } .tab:hover + .apple, .apple:hover { transform: translateY(200px) rotate(40deg); transition: transform 1.5s ease-in-out; } .img .text { font-size: .5em; position: absolute; left: 270px; top: 170px; text-align: center; font-weight: 600; z-index: 0; } #leave1 { width: 35%; position: absolute; left: -300px; top: -890px; animation: enterLeave 2s ease 1; z-index: 4; } #liane { position: absolute; width: 40%; right: -200px; top: -300px; animation: enterLiane 2s ease 1; } #leave2 { width: 40%; position: absolute; right: -600px; top: -200px; transform: rotate(90deg); transition: all 1.4s ease; } #leave3 { width: 50%; position: absolute; left: -400px; top: 500px; transition: left 2s ease; z-index: 10; } #leave4 { width: 70%; position: absolute; right: -400px; top: 300px; transition: right 2s ease; z-index: 10; } #hand { width: 45%; position: absolute; top: -400px; right: 0; transform: translateX(650px) rotate(-20deg); transition: transform 2s ease; } #liane2 { position: absolute; width: 40%; left: -700px; top: -300px; transition: left 2s ease; } #mint { position: absolute; width: 45%; right: -800px; top: 800px; transition: right 3s ease; } @media screen and (max-width: 768px) { #leave1, #leave2, #leave3, #leave4, #liane, #liane2, #hand, #mint { display: none; } #one h3 { opacity: 1; } #one p { opacity: 1; width: 70%; font-size: 1.5em; margin: auto; transform: translateY(0px); } #one .box { height: auto; } #two h3, #iphone, #shampoing, #spotify, #gum { opacity: 1; } #two p { opacity: 1; } #three h3 { opacity: 1; } #three .text p { opacity: 1!important; } .text { margin-bottom: 5em; } #three .img { opacity: 1; } #three .flex { display: block; } #three .flexbox { width: 100%; } }