html{
    scroll-behavior: smooth;
}

:target {
    scroll-margin-top: 130px;
}

.header{
    background-image: url("../assets/genericmotorbackground.png");
    position: relative;
}
.header h1{
    font-size:32px;
    margin:0;
    padding:65px 55px;
    color:white;
    font-weight:500;
}
.header img{
    position: absolute;
    top:20px;
    right:20px;
    width: 120px;
    border:1px solid white;
    border-radius:8px;
}


.tableofcontents {
    display:flex;
    flex-direction:column;
    background-color:#F1F1F1;
    padding:20px 40px;
    border:1px solid #BBBBBB;
    gap:10px;
    margin:30px;
    border-radius:8px;
}

.tableofcontents div{
    display:flex;
    justify-content:start;
    gap:10px;
}
.tableofcontents div a{
    color:#0045CB;
}

.tableofcontents h2{
    font-size: 18px;
    margin:0;
}

.tableofcontents a{ 
    text-decoration: none;
    font-size:16px;
}

.informationcontent{
    display:flex;
    padding:50px 210px;
    gap:50px;
    align-items: center;
    justify-content: space-between;
}

.informationcontent h1, .informationcontent h3, .informationcontent h2, .informationcontent p, .informationcontent a{
    margin:0;
}

.informationcontent:nth-child(even){
    background-color:#F4F4F4;
    border-top:1px solid #C5C5C5;
    border-bottom:1px solid #C5C5C5;
}

.informationcontent h2 i{
    color:rgb(0, 0, 0);
    padding:10px;
}

.informationcontent img{
    width: 280px;
}

.informationcontent__width{
    width:60%;
    display:flex;
    flex-direction:column;
    gap:15px;
}

.informationcontent__image{
    display: flex;
    align-items: center;
    padding:30px 90px;
    background-color: white;
    gap:100px;
    border-radius:8px;
}
.informationcontent__image i{
    color:#A8A8A8;
    font-size:31px;
}
.informationcontent__image img{
    width:215px;
}
.informationcontent__video{
    display:flex;
    flex-direction: column;
    gap:40px;
}

/* buttons */
.primarybutton, .secondarybutton{
    text-decoration: none;
    width:fit-content;
    padding:10px 16px;
    border-radius:8px;
    text-align: center;
}

.secondarybutton{
    background-color: white;
    color:#0045CB;
    border:1px solid #0045CB;
    display:inline-flex;
}

.secondarybutton:hover{
    background-color: #F1F1F1;
}

.primarybutton{
    background-color:#0045CB;
    color:white;
}

.primarybutton:hover{
    background-color:#0c3a96;
}

/* misc */
.width__batteriesexplained{
    display:flex;
    flex-direction: column;
    gap: 8px;
}
.width__batteriesexplained p{
    font-size:14px;
}
.width__buttons{
    display:flex;
    gap:15px;
}
.width__dcvsactable{
    display:flex;
    flex-direction: row;
    border:1px solid black;
    width:fit-content;

}
.width__dcvsactable div  h3{
    background-color:#D9D9D9;
}
.width__dcvsactable div{
    display:flex;
    flex-direction: column;
}
.width__dcvsactable div p:nth-child(even){
    background-color: #F4F4F4;
}
.width__dcvsactable div p:nth-child(odd){
    background-color: white;
}
.width__dcvsactable div p, .width__dcvsactable div h3{
    padding:10px 15px;
    border-bottom:1px solid black;
    display:flex;
    align-items: center;
}
.width__dcvsactable div p:last-child{
    border-bottom:none;
}

.informationcontent__video iframe{
    width:533px;
    height:300px;
}
.informationcontent__images{
    display:flex;
    flex-direction: column;
    gap:10px;
    background-color: white;
    padding:20px 50px;
    box-sizing: border-box;
    position: relative;
    border-radius:8px;
}
.informationcontent__images img{
    width:150px;
    padding:20px;
    background-color:white;
    border:1px solid rgb(95, 95, 95);
    border-radius:8px;
}
.width__paragraphtext{
    display:flex;
    flex-direction: column;
    gap:15px;
}

.informationcontent p a{
    color:black;
}
@media screen and (max-width: 1600px) {
    .tableofcontents div{
        flex-wrap: wrap;
    }
}
@media screen and (max-width: 1550px) {
    .informationcontent__width{
        width:70%;
    }
}
@media screen and (max-width: 1300px) {
    .informationcontent__width{
        width:90%;
        text-align: center;
        align-items: center;
    }
    .informationcontent:nth-child(odd){
        flex-direction: column-reverse;
    }
    .informationcontent:nth-child(even){
        flex-direction: column;
    }
}
@media screen and (max-width: 1300px) {
    .informationcontent{
        padding:50px 180px;
    }
    .informationcontent__width{
        width:100%;
    }
}
@media screen and (max-width: 900px) {
    .informationcontent{
        padding:50px 100px;
    }
    .informationcontent__width{
        width:100%;
    }
}
@media screen and (max-width: 750px) {
    .informationcontent{
        padding:50px 60px;
    }
    .informationcontent__width{
        width:100%;
    }
}
@media screen and (max-width:450px) {
    body{
        width:100%;
        margin:0;
        box-sizing: border-box;
    }
    .header{
        background-size: cover;
    }
    .header h1{
        font-size:24px;
        padding:70px 30px;
    }
    .header img{
        width:24%;
    }
    .tableofcontents{
        margin:20px;
    }
    .informationcontent{
        padding:20px 30px;
        gap:20px;
    }
    .informationcontent img{
        width:210px;
    }
    .informationcontent__width h2{
        font-size:20.8px;
    }
    .informationcontent__width{
        text-align: left;
        align-items: start;
    }
    .width__dcvsactable div p, .width__dcvsactable div h3{
        font-size:12px;
        height:60px;
    }     
    .informationcontent__video iframe{
        width:350px;
        height:150px;
    }
    .informationcontent__image{
        padding:30px 70px;
    }
}
