*{ margin: 0; padding: 0; box-sizing: border-box; } html{ background-image: url(pattern1.jpg); background-repeat: repeat; } body{ background-color: rgba(0, 0, 0, 0.9); display: flex; justify-content: center; flex-direction: column; } main{ width: 100%; } .gap{ height: 40px; } /*-------------------------------------------*/ /*-------------------------------------------*/ .content_1{ position: relative; top: -110; width: 100%; height: 1010px; background-image: url(koenigsegg-gemera-galerie.webp); background-size: cover; background-position: center; } .topbar{ position: sticky; top: 0; z-index: 11; display: flex; justify-content: space-between; width: 100%; background-color: rgba(0, 0, 0, 0.2); padding: 10px; backdrop-filter: blur(5px); box-shadow: 0px 0px 10px black; } .topbar .left{ display: flex; justify-content: space-evenly; color: white; } .logo{ width: 100px; height: 50px; } #txt{ font-size: 40px; text-shadow: 2px 2px 3px black; font-family: Verdana, Geneva, Tahoma, sans-serif; } .topbar .right{ display: flex; width: 700px; justify-content: space-evenly; } .right button{ background: none; border: 1px solid rgba(0, 0, 0, 0); padding: 10px; color: white; border-radius: 15px; font-size: 25px; text-shadow: 2px 2px 3px black; } .right button:hover{ border: 1px solid yellow; transition: all 0.5s ease; } /*-------------------------------------------*/ #menu{ width: 100%; height: 100%; background-color: rgba(55, 161, 161, 0.5); backdrop-filter: blur(2px); z-index: 10; transition: top 1s ease-in-out; } .menubtn{ position: relative; top: 9px; display: flex; justify-content: center; align-items: center; width: 40px; height: 30px; cursor: pointer; transition: all 0.5s ease-in-out; z-index: 10; } .menubtn_x{ width: 50px; height: 3px; background-color: white; border-radius: 5px; transition: all 0.5s ease-in-out; } .menubtn_x::before, .menubtn_x::after{ content: ""; position: absolute; width: 40px; height: 3px; background-color: white; border-radius: 5px; transition: all 0.5s ease-in-out; } .menubtn_x::before{ transform: translateY(-16px); } .menubtn_x::after{ transform: translateY(16px); } .menubtn.open .menubtn_x{ transform: translate(-50px); background: transparent; box-shadow: none; } .menubtn.open .menubtn_x::before{ transform: rotate(45deg) translate(35px, -35px); background-color: yellow; } .menubtn.open .menubtn_x::after{ transform: rotate(-45deg) translate(35px, 35px); background-color: yellow; } /*-------------------------------------------*/ .gap2{ height: 70px; width: 100%; background-color: rgba(0, 0, 0, 0.95); } .content_2{ background-color: rgba(0, 0, 0, 0.95); box-shadow: 0px 20px 0px 0px rgba(0, 0, 0, 0.5), 0px -20px 0px 0px rgba(0, 0, 0, 0.5); height: 800px; width: 100%; z-index: 3; } .content_box{ width: 100%; display: flex; flex-direction: column; } .buttons{ width: 100%; display: flex; justify-content: space-evenly; } .buttons .btnback{ position: relative; width: 300px; height: 70px; display: flex; justify-content: center; align-items: center; background: rgba(0, 0, 0, 0.5); overflow: hidden; box-shadow: 2px 2px 5px black; } .buttons .btnback::before{ content: ""; position: absolute; width: 20px; height: 1000%; background-color: yellow; z-index: 2; animation: rotate 4s linear infinite; } .buttons button{ color: yellow; width: 350px; height: 64px; z-index: 3; border: 1px solid white; background: rgba(0, 0, 0, 0.9); backdrop-filter: blur(10px); padding: 10px; color: rgb(255, 255, 255); font-family: Verdana, Geneva, Tahoma, sans-serif; text-shadow: 2px 2px 3px black; font-size: 30px; font-weight: bold; padding: 1px; } .buttons button:hover{ font-size: 33px; transition-duration: 0.5s; } @keyframes rotate{ from{transform: rotate(0deg);} to{transform: rotate(360deg);} } .box{ display: none; position: relative; top: -100px; color: white; width: 100%; height: 1000px; z-index: 1; } .box.active{ display: block; } .boxtxt{ width: 1000px; box-shadow: 0px 3px white; margin-top: 150px; margin-left: 50px; font-size: 60px; font-family: Verdana, Geneva, Tahoma, sans-serif; text-shadow: 5px 5px 10px black; } #box1{ background-image: url(94c29aca8e7e6b5d_org\ \(1\).jpeg); background-position: center; background-size: cover; } #box2{ background-image: url(12HK-7334-Oskar\ Bakke.jpeg); background-position: center; background-size: cover; } #box3{ background-image: url(Koenigsegg\ Jesko\ Absolut\ -\ Side\ 2\ 2\ 2.jpeg); background-position: center; background-size: cover; }