html {
    scroll-behavior: smooth;
    font-family: "Kosugi Maru", sans-serif;
    font-weight: 400;
    font-style: normal;
}

header {
    display: flex;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: white;
    color: black;
    z-index: 1;
}

header h1 { 
    color: black;
    font-size: 24px;
    padding: 32px 60px;
}

header ul {
    display: flex;
    flex-direction: row;
    gap: 30px;
    font-size: 24px;
    padding: 32px 60px;
}

header a:hover {
    cursor: pointer;
    background-color: #8b8b8b;
}

#container {
    display: flex;
    flex-direction: row;
    gap: 100px;
    margin: 0 auto;
    margin-top: 150px;
    margin-bottom: 90px;
    max-width: 1000px;
}

main {
    flex: 3;
}

aside {
    flex: 1;
}

section p {
    max-width: 560px;
    margin: 0 auto;
    margin-bottom: 85px;
}

section h2 {
    color: black;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    margin-top: 130px;
}

#container section {
    border: solid black 1px;
    margin-top: 60px;
    padding: 32px;
}

#container h1 {
    color: black;
    font-size: 20px;
    text-align: center;
    font-weight: 700;
}

#container section h2, h3 {
    color: black;
    font-size: 20px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 16px;
    text-align: left;
}

#container section p {
    width: 100%;
    margin: 0;
    margin-bottom: 24px;
}

#big-image {
    background-image: url("../img/flower.jpg");
    text-align: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    padding: 300px 0;
}

.img-frame {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    margin-top: 90px;
}

.img-frame h2 {
    position: absolute;
    color: white;
    top: 25%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 32px;
    font-weight: 700;
}

.main-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    background-color: #ccc;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    animation-duration: 12s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

.img-01 {
    background-image: url(../img/code.JPG);
    animation-name: slide1;
}

.img-02 {
    background-image: url(../img/code2.JPG);
    animation-name: slide2;
}

.img-03 {
    background-image: url(../img/pc.JPG);
    animation-name: slide3;
}

@keyframes slide1 {
    0% {opacity: 1;}
    30% {opacity: 1;}
    40% {opacity: 0;}
    100% {opacity: 0;}
}

@keyframes slide2 {
    0% {opacity: 0;}
    30% {opacity: 0;}
    40% {opacity: 1;}
    60% {opacity: 1;}
    70% {opacity: 0;}
    100% {opacity: 0;}
}

@keyframes slide3 {
    0% {opacity: 0;}
    30% {opacity: 0;}
    40% {opacity: 0;}
    60% {opacity: 0;}
    70% {opacity: 1;}
    100% {opacity: 0;}
}

.box {
    display: flex;
    gap: 50px;
    width: fit-content;
    margin: 0 auto;
    padding-top: 55px;
    padding-bottom: 85px;
}

.box p {
    display: block;
    margin: auto 0;
}

.small-image {
    padding: 100px 100px;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

#profilephoto {
    background-image: url(../img/lukas.png);
}

#recphoto {
    display: block;
    width: 300px;
    height: 200px;
    margin: 85px auto;
    margin-bottom: 40px;
}

.parallax {
    height: 350px;
    background-image: url(../img/flower.jpg);
    background-color: #ccc;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

.parallax h1 {
    font-size: 64px;
    text-align: center;
    color: white;
    padding: 150px 0;
}

.main-image h1 {
    text-align: center;
    font-size: 32px;
    color: white;
}

section a {
    display: block;
    color: white;
    background-color: purple;
    border: solid black 5px;
    font-size: 16px;
    width: fit-content;
    margin: 0 auto;
    margin-bottom: 35px;
    padding: 22px 20px;
}

section iframe { 
    height: 400px;
    width: 100%;
    margin-bottom: 40px;
}

.spacer {
    padding: 43px 0;
}

aside {
    background-color: #ccc;
    text-align: center;
    height: fit-content;
    padding: 40px 60px;
    max-width: 250px;
}

aside h4 {
    color: black;
    font-weight: 700;
    font-size: 20px;
}

aside ul {
    margin-top: 22px;
}

aside li {
    padding: 3px 0;
}

aside li:hover {
    cursor: pointer;
    text-decoration: underline;
}

form {
    width: 525px;
    border: solid black 1px;
    padding: 40px 25px;
    color: black;
    margin: 0 auto;
    margin-top: 60px;
    margin-bottom: 80px;
}

form h2 {
    font-size: 24px;
    font-weight: 500;
}

form p {
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 45px;
}

form label {
    font-size: 16px;
}

form span {
    font-size: 16px;
    color: red;
}

form input {
    border: solid #ccc 1px;
    border-radius: 10px;
    width: 490px;
    margin-bottom: 35px;
    margin-top: 16px;
    font-size: 16px;
    padding: 10px;
}

#submit {
    display: block;
    width: fit-content;
    height: fit-content;
    padding: 13px 16px;
    margin-left: calc(50% - 46px);
    background-color: #1a96c6;
    color: white;
    border: solid #b3b3b3 1px;
}

footer {
    background-color: black;
    text-align: center;
    color: white;
    font-size: 16px;
    padding: 14px;
}

@media (max-width: 1000px) {
    header h1 {
        font-size: 16px;
    }
    
    header ul {
        font-size: 16px;
    }
}

@media (max-width: 800px), (orientation: portait){
    header {
        flex-direction: column;
        text-align: center;
    }

    header h1 {
        font-size: 24px;
    }

    header ul {
        flex-direction: column;
        gap: 16px;
        font-size: 24px;
    }

    #container {
        flex-direction: column-reverse;
        margin-top: 240px;
    }

    .img-frame {
        margin-top: 260px;
    }

    .box {
        flex-direction: column;
    }
    
    section p {
        width: 300px;
    }

    aside {
        margin: 35px auto;
    }
}