/*Daniel Gajdosz Porsche Projekt -----------------------------------------------*/ @import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Nova+Slim&family=Raleway:ital,wght@0,100..900;1,100..900&display=swap'); *{ margin: 0; padding: 0; box-sizing: border-box; font-family: "Chakra Petch", sans-serif; } /*----------------------------------------------------*/ :root{ --height: 120vh; --height-topbar: 90vh; --menu: -200vh; --menu-active: 0vh; } /*----------------------------------------------------*/ html{ height: auto; } body{ width: 100%; display: flex; flex-direction: column; } /*MENU -------------------------------------------------------------------------*/ #menu{ background-color: rgba(0, 0, 0, 0.2); backdrop-filter: blur(5px); position: fixed; left: -200vh; top: 0; width: 200vh; height: 100%; z-index: 20; display: flex; transition: left 0.5s ease-in-out; } /*----------------------------------------------------*/ .menuButtons{ width: 350px; display: flex; flex-direction: column; padding: 20px; background-color: white; backdrop-filter: blur(5px); box-shadow: 0 3px 5px black; z-index: 7; } .menuButtons button{ display: flex; justify-content: space-between; padding: 10px; background-color: rgba(255, 255, 255, 0.6); backdrop-filter: blur(5px); font-size: 24px; color: rgba(47, 47, 47, 0.5); text-shadow: 0 0 2px rgba(47, 47, 47, 0.5); border: none; margin: 10px; border-radius: 10px; cursor: pointer; } .menuButtons button i{ margin-top: 3px; } .menuBoxBtn.active{ color: rgb(0, 0, 0) !important; text-shadow: 0 0 5px rgb(0, 0, 0) !important; background: rgb(163, 163, 163) !important; } /*----------------------------------------------------*/ .menuDisplay{ width: fit-content; max-width: 400px; height: 100%; background-color: #EEEFF2; backdrop-filter: blur(5px); box-shadow: 0 3px 5px black; overflow: scroll; padding: 20px; } .menuDisplay::-webkit-scrollbar{ background-color: #EEEFF2; width: 0px; } /*----------------------------------------------------*/ .menuBox{ padding: 10px 25px; background-color: #EEEFF2; } .menuBox.active{ animation: activeBox 0.5s linear; } @keyframes activeBox { 0%{transform: translateX(-100%); opacity: 0;} 100%{transform: translateX(0%); opacity: 1;} } /*----------------------------------------------------*/ .menuBox .menuBoxBtn{ background: none; color: black; cursor: pointer; border-radius: 3px; border: none; transition-duration: 0.5; font-size: 18px; padding: 10px; margin: 10px; text-align: left; } .menuBox .menuBoxBtn:hover{ transition-duration: 0.5; background: rgb(211, 211, 211); } /*----------------------------------------------------*/ .basicDisplayBtn{ background: none; padding: 10px; border-radius: 10px; width: 100%; text-align: left; color: black; font-size: 18px; transition: all 0.3s linear; border: none; margin-bottom: 10px; cursor: pointer; } .basicDisplayBtn:hover{ background: rgb(184, 182, 182); transition: all 0.3s linear; } /*----------------------------------------------------*/ div .firstBtnDisplay{ display: none; } div .firstBtnDisplay.active{ display: flex; flex-direction: column; animation: btnDisplay 1s ease; } div .secondBtnDisplay{ display: none; } div .secondBtnDisplay.active{ display: flex; flex-direction: column; animation: btnDisplay 1s ease; } @keyframes btnDisplay { 0%{transform: translateX(-150%); opacity: 0;} 100%{transform: translateX(0%); opacity: 1;} } .secondBoxBtn{ display: flex; justify-content: space-between; align-items: center; padding: 10px; text-align: left; } .secondBoxBtn.active{ color: rgb(0, 0, 0) !important; text-shadow: 0 0 5px rgb(0, 0, 0) !important; background: rgb(163, 163, 163) !important; } /*----------------------------------------------------*/ .carBoxContainer{ width: 100%; display: none; } .carBoxContainer.active{ display: flex; flex-direction: column; justify-content: center; } .carBox{ text-align: center; width: fit-content; height: fit-content; margin: 10px; border-radius: 10px; cursor: pointer; display: none; padding: 20px; } .carBox.active{ display: flex; flex-direction: column; justify-content: center; animation: carBox 1s ease; } @keyframes carBox { 0%{transform: translateX(150%); opacity: 0;} 100%{transform: translateX(0%); opacity: 1;} } .carBox img{ width: 100%; } .carBox div{ margin: 20px; width: 250px; border-radius: 10px; } .carBox h1{ font-size: 35px; text-shadow: 0 0 3px black; font-style: italic; margin-bottom: 10px; } .carBoxBtn{ display: flex; justify-content: center; font-size: 18px; background: none; border: 2px solid black; border-radius: 5px; padding: 10px; margin-bottom: 5px; transition: all 0.2s linear; cursor: pointer; margin-top: 10px; } .carBoxBtn i{ margin-right: 10px; margin-top: 4px; } .carBoxBtn:hover{ transition: all 0.2s linear; background: black; color: white; } /*----------------------------------------------------*/ #display1{ display: flex; flex-direction: column; } #display1 div{ width: 250px; height: fit-content; margin: 10px; border-radius: 10px; cursor: pointer; } #display1 div img{ width: 100%; } /*----------------------------------------------------*/ #display2{ display: flex; flex-direction: column; } /*----------------------------------------------------*/ #display3{ display: flex; flex-direction: column; } /*----------------------------------------------------*/ #display4{ display: flex; flex-direction: column; } /*----------------------------------------------------*/ #display5{ display: flex; flex-direction: column; } #display5 div{ display: flex; flex-direction: column; border-bottom: 2px solid gray; margin-bottom: 30px; } #display5 div button{ text-align: center; background: none; margin-bottom: 15px; padding: 10px; width: 100%; height: 50px; font-size: 15px; border: 2px solid black; border-radius: 5px; } #display5 div button:first-child{ background: black; color: white; } #display5 div button:hover{opacity: 0.7;} #display5 a{color: black;} /*----------------------------------------------------*/ .menuGap{ width: max-content; } .menuGap button{ margin: 20px; height: 50px; width: 50px; background: none; border: 2px solid white; border-radius: 10px; color: white; font-size: 30px; padding-bottom: 4px; cursor: pointer; transition-duration: 0.3s; } .menuGap button:hover{ transition-duration: 0.3s; box-shadow: 0 0 10px white; text-shadow: 0 0 5px white; } .menuBox{ display: none; } .menuBox.active{ display: block; } /*SECTIONS -------------------------------------------------------------------------*/ section{ height: var(--height); } #myVideo{ position: fixed; top: 0; z-index: -1; height: var(--height); width: auto; } #section1 header{ position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center; height: 60px; z-index: 10; padding: 5px; font-size: 25px; font-style: italic; text-shadow: 2px 2px 3px black; color: white; background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0)); backdrop-filter: blur(3px); box-shadow: 0 5px 10px black; } #section1 header i{ font-size: 35px; margin: 5px; } #section1 main{ height: var(--height-topbar); color: white; padding-left: 50px; font-size: 50px; text-shadow: 0px 0px 5px white; } #section1 main div{ position: relative; top: 70%; } #section1 main div button{ margin-top: 20px; background: rgba(255, 255, 255, 0.2); backdrop-filter: blur(3px); border: 2px solid white; padding: 10px 20px; color: white; font-size: 30px; text-shadow: 0 0 3px black; } /*------------------------------------------------------------*/ #section2 { padding: 20px 5px; z-index: 1; background-color: rgba(255, 255, 255, 1); backdrop-filter: blur(3px); text-align: center; height: max-content; } #section2 .window{ position: relative; overflow: hidden; border-radius: 10px; display: inline-block; height: 300px; width: 400px; margin: 20px; box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.3), -5px 5px 20px rgba(0, 0, 0, 0.3), 5px -5px 20px rgba(0, 0, 0, 0.3), -5px -5px 20px rgba(0, 0, 0, 0.3); cursor: pointer; } #section2 .window img{ overflow: hidden; max-width: 100%; max-height: 100%; z-index: 1; transform: scale(1.2); } #section2 .window .bottom{ margin-top: -50px; position: relative; top: 0; z-index: 5; display: flex; justify-content: space-between; padding: 5px 25px; color: white; text-shadow: 0 0 5px whitesmoke; } #section2 .window .bottom i{ font-size: 30px; /*animation: sipka 1s linear infinite;*/ } @keyframes sipka { 0%{transform: translateX(0)}; 25%{transform: translateX(-10px)}; 50%{transform: translateX(0)} 75%{transform: translateX(10px)}; 100%{transform: translateX(0)}; } @keyframes slide { from{ opacity: 0; transform: translateX(-50px); } to{ opacity: 1; transform: translateX(0); } } /*------------------------------------------------------------*/ #section3{ background: white; height: fit-content; } #section3 main{ text-align: center; font-style: italic; padding-top: 10px; padding-bottom: 50px; } #section3 main h1{ margin-top: 30px; font-size: 50px; text-shadow: 0 0 5px black; } #section3 main #bottomParagraf{ margin-top: 20px; font-size: 12px; text-shadow: 0 0 2px gray; color: gray; } .models{ margin-top: 40px; } .model{ margin: 15px; display: inline-block; width: 600px; height: 800px; border: none; border-radius: 10px; overflow: hidden; text-align: left; box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.3), -5px 5px 20px rgba(0, 0, 0, 0.3), 5px -5px 20px rgba(0, 0, 0, 0.3), -5px -5px 20px rgba(0, 0, 0, 0.3); } .model img{ z-index: 1; max-width: 100%; transform: scale(1); transition-duration: 0.5s; } .model .top{ position: relative; margin-top: -800px; margin-left: 20px; color: white; font-size: 50px; text-shadow: 0 0 5px white, 0 0 10px black; font-style: italic; } .model .bottom{ padding: 20px; position: relative; margin-top: 400px; color: white; text-shadow: 0 0 3px white; font-size: 18px; } .model .bottom .buttons{ display: flex; flex-direction: column; } .model .bottom .buttons button{ font-size: 25px; background: white; border: none; border-radius: 10px; padding: 15px; margin-top: 15px; font-weight: none; transition-duration: 0.5s; font-style: italic; text-shadow: 0 0 3px black; cursor: pointer; } .model .bottom .buttons button:hover{ background: black; backdrop-filter: blur(2px); color: white; text-shadow: 0 0 3px white; transition-duration: 0.5s; transform: translateY(-3px); } /*------------------------------------------------------------*/ #section4{ background: white; height: fit-content; display: flex; justify-content: center; align-items: center; padding: 30px; } .porscheCenter{ display: flex; flex-direction: row-reverse; border-radius: 20px; overflow: hidden; background-color: rgb(38, 38, 44); box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.3), -5px 5px 20px rgba(0, 0, 0, 0.3), 5px -5px 20px rgba(0, 0, 0, 0.3), -5px -5px 20px rgba(0, 0, 0, 0.3); } .porscheCenter img{ width: auto; } .porscheCenter .content{ margin: 60px; width: 500px; color: white; text-shadow: 0 0 2px white; padding: 20px; font-style: italic; } .porscheCenter .content h1{ font-size: 40px; } .porscheCenter .content p{ font-size: 20px; margin-top: 10px; margin-bottom: 30px; } .porscheCenter .content button{ transition-duration: 0.5s; background: white; padding: 15px; color: black; text-shadow: 0 0 2 black; font-size: 25px; font-style: italic; font-weight: bold; border: none; border-radius: 10px; box-shadow: 0 0 5px white; } .porscheCenter .content button:hover{ transition-duration: 0.5s; background: rgb(0, 0, 0); color: rgb(255, 255, 255); text-shadow: 0 0 2 rgb(255, 255, 255); box-shadow: 0 0 5px rgb(0, 0, 0); } /*------------------------------------------------------------*/ #section5{ padding-top: 50px; background: white; height: fit-content; display: flex; justify-content: space-between; width: 100%; overflow: hidden; } #section5 main{ display: flex; justify-content: space-between; display: flex; width: 100%; overflow: hidden; } #section5 img{ width: 900px; } #section5 main .txt{ padding: 100px; font-size: 30px; } #section5 main .txt #input{ border: 2px solid black; border-radius: 10px; width: fit-content; padding: 5px; display: flex; align-items: center; } #section5 main .txt input{ margin-left: 10px; width: 400px; border: none; height: 100%; font-size: 18px; padding: 5px; } /*------------------------------------------------------------*/ #section6{ background: white; height: fit-content; } #section6 main{ text-align: center; font-style: italic; margin: 50px 0px; display: flex; flex-direction: column; justify-content: center; align-items: center; } #section6 main h1:first-child{ margin-top: 30px; font-size: 50px; text-shadow: 0 0 5px black; } #section6 main .content{ margin-top: 70px; position: relative; width: 100%; display: flex; flex-direction: row; justify-content: left; overflow: scroll; padding: 40px; } .product{ background: whitesmoke; margin-left: 30px; border: 1px solid gray; min-width: 400px; max-width: 400px; border-radius: 10px; overflow: hidden; padding: 0; text-align: left; transition: all 0.5s; box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.3), -5px 5px 20px rgba(0, 0, 0, 0.3), 5px -5px 20px rgba(0, 0, 0, 0.3), -5px -5px 20px rgba(0, 0, 0, 0.3); } .product:nth-child(2){margin-left: 70px;} .product:nth-child(3){margin-left: 70px;} .product:nth-child(4){margin-left: 70px;} .product:nth-child(5){margin-left: 70px;} .product:nth-child(6){margin-left: 70px;} .product:nth-child(7){margin-left: 70px;} .product img{ transform: scale(1.1); z-index: 4; transition: all 0.5s; position: relative; top: -5; width: 100%; height: 300; overflow: hidden; } .product .txt{ background-color: whitesmoke; padding: 15px; position: relative; z-index: 5; transition: all 0.5s; font-size: 20px; color: black; text-shadow: 0 0 3px black; } .product .txt button{ margin: 10px; transition: all 0.5s; display: flex; flex-direction: row-reverse; justify-content: space-between; padding: 5px 10px; font-size: 20px; width: 160px; background: whitesmoke; box-shadow: 0 0 3px whitesmoke; border: none; border-radius: 10px; cursor: pointer; } .product .txt button i{ margin-top: 4px; } .product.productHover { transform: translateY(-10px); background: black; } .product.productHover img{ transform: scale(1.2); } .product.productHover .txt{ background: black; color: white; text-shadow: 0 0 3px rgb(255, 255, 255); } .product.productHover .txt button{ animation: sipka 1s linear infinite; } /*------------------------------------------------------------*/ #section7{ background: white; height: fit-content;; } #section7 main{ text-align: center; font-style: italic; padding-top: 10px; padding-bottom: 50px; width: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; } #section7 main h1{ margin-top: 30px; margin-bottom: 30px; font-size: 50px; text-shadow: 0 0 5px black; } #section7 main .container{ margin-left: auto; margin-right: auto; display: grid; grid-template-columns: 230px 230px 230px 230px 230px 230px; grid-template-rows: 230px 230px 230px; width: fit-content; height: fit-content; box-shadow: 0 0 10px black; background: rgb(40, 39, 39); } .item{ display: flex; justify-content: right; align-items: end; border: 2px solid rgb(40, 39, 39); } .item-1{ background-image: url("images/gallery/car1.jpg"); background-size: cover; background-position: center; grid-row-start: 1; grid-row-end: 3; grid-column-start: 1; grid-column-end: 3; border: 2px solid rgb(40, 39, 39); } .item-2{ background-image: url("images/gallery/car2.jpg"); background-size: cover; background-position: center; grid-row-start: 1; grid-row-end: 1; grid-column-start: 3; grid-column-end: 4; } .item-3{ background-image: url("images/gallery/car9.jpg"); background-size: cover; background-position: center; grid-row-start: 3; grid-row-end: 4; grid-column-start: 6; grid-column-end: 7; } .item-4{ background-image: url("images/gallery/car3.jpg"); background-size: cover; background-position: center; grid-row-start: 1; grid-row-end: 3; grid-column-start: 5; grid-column-end: 7; } .item-5{ background-image: url("images/gallery/car4.jpg"); background-size: cover; background-position: center; grid-row-start: 3; grid-row-end: 4; grid-column-start: 1; grid-column-end: 2; } .item-6{ background-image: url("images/gallery/car5.jpg"); background-size: cover; background-position: center; grid-row-start: 2; grid-row-end: 4; grid-column-start: 3; grid-column-end: 5; } .item-7{ background-image: url("images/gallery/car6.jpg"); background-size: cover; background-position: center; grid-row-start: 3; grid-row-end: 4; grid-column-start: 2; grid-column-end: 3; } .item-8{ background-image: url("images/gallery/car7.jpg"); background-size: cover; background-position: center; grid-row-start: 1; grid-row-end: 2; grid-column-start: 4; grid-column-end: 5; } .item-9{ background-image: url("images/gallery/car8.webp"); background-size: cover; background-position: center; grid-row-start: 3; grid-row-end: 4; grid-column-start: 5; grid-column-end: 6; } .galery.hover{ background-color: rgba(40, 39, 39, 0.5); } .item .iconIg{ background-color: rgba(40, 39, 39, 0.4) !important; color: white; width: 25px; height: 25px; font-size: 19px; border-top-left-radius: 10px; } .item .iconIg i{ margin-top: 5px; margin-left: 2px; } /*------------------------------------------------------------*/ #section8{ background: white; height: fit-content; } #section8 main{ text-align: center; font-style: italic; padding-top: 10px; padding-bottom: 50px; } #section8 main h1{ margin-top: 30px; font-size: 50px; text-shadow: 0 0 5px black; } #section8 main .content{ padding: 20px 5px; z-index: 1; background-color: rgba(255, 255, 255, 1); backdrop-filter: blur(3px); text-align: center; height: max-content; } #section8 main .content .discover{ position: relative; overflow: hidden; border-radius: 10px; display: inline-block; height: 500px; width: 500px; margin: 20px; box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.3), -5px 5px 20px rgba(0, 0, 0, 0.3), 5px -5px 20px rgba(0, 0, 0, 0.3), -5px -5px 20px rgba(0, 0, 0, 0.3); cursor: pointer; transition: all 0.5s linear; } #section8 main .content .discover img{ overflow: hidden; width: 100%; height: 100%; z-index: 1; transform: scale(1); transition: all 0.5s linear; } #section8 main .content .discover .bottom{ margin-top: -120px; position: relative; top: 0; z-index: 5; display: flex; justify-content: space-between; padding: 5px 25px; color: white; text-shadow: 0 0 5px whitesmoke; } #section8 main .content .discover .bottom h1{ font-size: 30px; } #section8 main .content .discover .bottom i{ margin-top: 37px; font-size: 30px; /*animation: sipka 1s linear infinite;*/ } #section8 main .content .discover.discoverHover{ transition: all 0.5s linear; transform: translateY(-10px); } #section8 main .content .discover.discoverHover img{ transition: all 0.5s linear; transform: scale(1.2); } #section8 main .content .discover.discoverHover i{ animation: sipka 1s linear infinite; } /*------------------------------------------------------------*/ #section9{ height: 800px; background-color: rgb(23, 25, 29); color: white; display: flex; flex-direction: column; padding: 20px; } #section9 header{ padding: 10px 10px; font-size: 22px; text-shadow: 0 0 2px white; border-bottom: 1px solid white; } #section9 header div{ display: flex; } #section9 header a{ color: white; text-decoration: none; margin-top: 7px; margin-left: 20px; font-size: 30px; } #section9 main{ padding: 10px 20px; display: flex; justify-content: left; border-bottom: 1px solid white; text-shadow: 0 0 2px white; } #section9 main div{ font-size: 20px; margin: 20px 30px; } #section9 main div button{ padding: 10px 20px; color: rgb(0, 0, 0); font-size: 25px; background: rgb(255, 255, 255); border: 1px solid rgb(0, 0, 0); transition: all 0.5s linear; border-radius: 10px; text-shadow: 0 0 3px black; } #section9 main .socialMedia{ display: flex; flex-direction: column; font-size: 20px; } #section9 main .socialMedia .iconsDiv{ display: flex; justify-content: left; max-width: fit-content; } #section9 main .socialMedia .iconsDiv div{ margin: 10px; padding: 10px; border: 1px solid white; font-size: 40px; display: flex; justify-content: center; align-items: center; border-radius: 10px; width: 70px; height: 70px; } /*------------------------------------------------------------*/