body {
    scroll-behavior: smooth;
    background-color: rgb(56, 56, 56);
    margin: 0;
    padding: 0;
}

header {
    background-color: white;
    border-bottom: #acacac solid 1px;
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    margin: auto;
    font-size: 20px;
    font-family: 'Porsche Next', sans-serif;
}

main {
    display: flex;
    flex-wrap: wrap;
}

footer {
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    margin: auto;
    font-size: 20px;
}

figure {
    background-color: rgb(56, 56, 56);
    color: white;
    display: flex;
    flex-wrap: wrap;
    height: auto;
    margin: auto;
    text-align: center;
    opacity: 0.9;
}

figure p {
    display: block;
}

h1 {
    text-align: center;
    font-size: 60px;
    margin-right: 25%;
    padding: 14px 16px;
    font-family: 'Porsche-font', sans-serif;
}

h3 {
    color: rgb(255, 255, 255);
    font-size: 40px;
    padding: 14px 16px;
    font-family: 'Porsche Next', sans-serif;
    text-align: center;
    margin-top: 2%;
}

p {
    text-align: left;
    font-size: 20px;
    padding-top: 10px;
    padding-bottom: 10px;
    font-family: 'porsche next', sans-serif;
    line-height: 1.3;
}

img {
    width: 75%;
    max-width: 100%;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
    object-fit: contain;
}
    
li a {
    color: rgb(0, 0, 0);
    display: block;
    padding: 14px 16px;
    text-align: left;
    margin-right: 40px;
    font-size: 23px;
    text-decoration: none;
}

li a:hover:not(.active) {
    background-color: #acacac;
    border-radius: 10px;
}


    .linear-gradient {
        background: linear-gradient(rgb(255, 255, 255) 0%, rgb(99, 99, 99) 100%);
        color: white;
    }
    
    .centered {
        text-align: center;
        display: block;
        margin-left: auto;
        margin-right: auto;
    }

    .dropdown {
        position: relative;
        padding: 14px 16px;
        text-decoration: none;
    }
  
    .dropdown-button {
        background-color: white;
        color: black;
        border: none;
        cursor: pointer;
        width: 100%;
    }
  
    .dropdown-button:hover {
        background-color: #e9e7e7;
    }
  
    .dropdown-content {
        background-color: white;
        box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
        text-align: center;
        display: none;
        position: fixed;
        width: fit-content;
        z-index: 1;
    }
  
    .dropdown-content a {
        color: black;
        text-align: center;
        text-decoration: none;
        display: block;
    }
  
    .dropdown-content a:hover {
        background-color: #f1f1f1
    }
  
    .dropdown:hover .dropdown-content {
        display: block;
    }
  
    .dropdown:hover .dropdown-button {
        background-color: white;
    }

    .dropdown-button img {
        width: 50px;
        height: 63px;
        object-fit: cover;
        margin-right: auto;
        margin-left: auto;
        margin-top: 65%;
    }

    .clean {
        color: black;
        text-decoration: none;
    }

    .overskrift {
        text-align: center;
        font-size: 30px;
    }

    .porsche-font {
        font-family: 'Porsche-font', sans-serif;
    }

    .porsche-font-italic {
        font-family: 'Porsche-font', sans-serif;
        font-style: italic;
    }

    .white-text {
        color: white;
    }

    .fig-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: stretch;
    }
      
    .fig1, .fig2, .fig3 {
        display: flex;
        flex-direction: column;
        flex-basis: 45%;
        margin: 0.2%;
        background-color: #555555;
        border-radius: 10px;
        padding: 0.5%;
    }

    .fig1, .fig2 {
        max-width: 45%;
    }

    .fig1 p, .fig2 p {
        padding: 1% 10% 1% 10%;
        flex-grow: 1;
    }

    .fig3 {
        flex-basis: 60%; 
    }

    .img-small {
        width: 25%;
        height: auto;
        margin-left: -10px;
        margin-right: -10px;
    }

    .zoom {
        transition: transform 0.3s ease-in-out;
    }
    
    .zoom:hover {
        transform: scale(1.1);
    }

        #slagord {
            width: 100%;
            height: 1100px;
            background-image: url('IMG/Porsche_911_GT3RS_\(4849069477\)\(bakgrunn\).jpg');
            background-size: cover;
            background-position: center;
            position: relative;
            display: flex;
            justify-content: center;
            align-items: center;
            color: white;
            text-align: center;
        }

            @font-face {
                font-family: 'Porsche-font';
                src: url('FONT/911porschav3.ttf') format('truetype');
            }

            @media (max-width: 768px) {
                .fig1, .fig2, .fig3 {
                    flex-basis: 100%; 
                }
            
                h1 {
                    font-size: 40px; 
                }

                h3 {
                    font-size: 30px;
                }
            
                .fig-container {
                    flex-direction: column;
                }
            }