@font-face {
    font-family: 'Rubik Vinyl'; 
    src: url("../font/Rubik_Vinyl/RubikVinyl-Regular.ttf");
}
body {
    font-family: sans-serif;
    margin: 0;
    box-sizing: border-box;
    background-color: rgb(37, 37, 60);
    overflow: auto;
}
h2, h1 {
    font-size: 16px;
    color: rgb(45, 45, 45);
    padding: 20px;
    margin: 0;
}
h1 {
    font-size: 56px;
    font-family: 'Rubik Vinyl', cursive;
    padding-left: 80px;
    color: white;
}
h3 {
    font-size: 16px;
    margin: 10px 0;
}
p {
    padding: 5px;
    margin: 0;
}
header {
    border-bottom: 20px solid rgb(200, 200, 200);
    padding-top: 10px;
}
main {
    background-color: rgb(255, 255, 255);
    display: flex;
    border-bottom: 2px solid rgb(200, 200, 200); 
}
.col70, .col30 {
    min-height: 400px;
    height: 75vh;
}
.col70 {
    width: 70%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.col30 {
    width: 30%;
    min-height: 440px;
    padding: 5px 20px;
    background-color: white;
    z-index: 60;
    border-left: 2px solid rgb(200, 200, 200);
    overflow: hidden;
}
.hgb {
    width: 800px;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: 100%;
    background-position: bottom;
    background-repeat: no-repeat;
}

/* The animation code */
@keyframes fahrrad2 {
    0% {left: -1000px;}
    100% {left: 0px}
  }
  /* The element to apply the animation to */
.ani2 {
    animation-name: fahrrad2;
    animation-duration: 2.1s;
    position: relative;
  }

  /* The animation code */
@keyframes fahrrad {
    0% {left: -1000px;}
    100% {left: 0px}
  }
  /* The element to apply the animation to */
.ani {
    animation-name: fahrrad;
    animation-duration: 2.1s;
    position: relative;
  }

.bezugsrahmen {
    width: 514px;
    height: 278px;
    position: relative;
    margin-top: 50px;
}
.flex {
    display: flex;
}
.farbbox {
    background-color: black;
    height: 26px;
    width: 26px;
    margin-right: 8px;
}
.farbbox:hover {
    cursor: pointer;
}
.tomato {
    background-color: tomato;
}
.indigo {
    background-color: indigo;
}
.green {
    background-color: #3cb371;
}
.silver {
    background-color: silver;
}
.gold {
    background-color: gold;
}
.pink {
    background-color: #f738c4;
}
.grey {
    background-color: grey;
}
.turkis {
    background-color: #7fffc6;
}
.goldstruktur {
    background-image: url("../bilder/gold-box.png");
    background-size: cover;
    background-color: rgb(255, 186, 24);
}
.tiger {
    background-image: url("../bilder/tiger-box.png");
    background-size: cover;
    background-color: rgb(255, 117, 24);
}
.hgButton {
    width: 60px;
    height: 40px;
    padding: 2px;
    background-color: rgb(200, 200, 200);
}
.hgButton:hover {
    cursor: pointer;
    background-color: rgb(100, 100, 100);
}
.abstand {
    padding-top: 16px;
}

/* Fahrradteile schwarz */
.gabel {
    position: absolute;
    top: 22px;
    left: 361px;
    z-index: 1;
}
.lenker {
    position: absolute;
    top: 18px;
    left: 330px;
    z-index:50;
}
.rad {
    position: absolute;
    bottom: 0;
}
.rad2 {
    position: absolute;
    bottom: 0;
    right: 0;
}
.rahmen {
    position: absolute;
    top: 45px;
    left: 100px;
    z-index: 2;
}
.sattel {
    position: absolute;
    top: 2px;
    left: 120px;
}
.sattelstange {
    position: absolute;
    top: 8px;
    left: 145px;
}
.kette {
    position: absolute;
    top: 160px;
    left: 85px;
    z-index: 50;
}
footer {
    display: flex;
    justify-content: flex-end;
}
footer p {
    font-family: 'Rubik Vinyl', cursive;
    font-size: 22px;
    padding: 15px 20px;
    margin: 13px;
    color: white;
}

@media (max-width: 750px){
    h1{
        font-size: 30px;
        padding-left: 1rem;
    }
    main {
        flex-direction: column;
    }
    .col70 {
        width: 100%;
        min-height: 200px;
        height: 35vh;
    }
    .col30 {
        width: 100%;
        height: 60vh;
        min-height: 350px;
        display: flex;
        flex-direction: column;
        border-top: 2px solid rgb(200, 200, 200);
        border-left: none;
        margin: 0;
        padding: 0;
    }
    .col30 h3 {
        margin: 3px;
    }
    .col30 img {
        margin: 5px;
        margin-bottom: 20px;
    }
    .flex {
        flex-direction: row;
    }
    .farbbox {
        margin: 5px;
    }
    .abstand {
        padding: 0;
    }
    .rad, .rad2 {
        width: 101px;
    }
    .rahmen {
        width:135px;
        top: 22.5px;
        left: 50px;
    }
    .kette {
        width: 84.5px;
        top: 80px;
        left: 42.5px;
    }
    .sattel {
        width: 26.5px;
        top: 1px;
        left: 60px;
    }
    .sattelstange {
        width: 13px;
        top: 4px;
        left: 72.5px;
    }
    .gabel {
        width: 27.5px;
        top: 11px;
        left: 180.5px;
    }
    .lenker {
        width: 25px;
        top: 9px;
        left: 165px;
    }
    .bezugsrahmen {
        width: 257px;
        height: 139px;
    }
    .hgb {
        width: 400px;
        height: 225px;
    }
    .padding {
        padding: 1rem;
    }
    footer {
        margin-top: 10px;
    }
}
@media (max-width: 418px){
    h1 {
        padding: 0.4rem;
        font-size: 1.5rem;
    }
    .hgb {
        width: 300px;
    }
}
    
