body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
}

/* Media Query */

@media only screen and (max-width: 600px) {
    /* For phones */

body > nav {
    flex-direction: column;
}

body > nav > .nav-items > a {
    font-size:  12px;
    margin: 5px;
    /* Why is it impossible to center the text? */
}

#services > .cards {
    flex-direction: column;
}
header > .image {
    display: none;
}

main > #stats {
    flex-direction: column;
    font-size: 12px;
    padding: 0px;
}

main > #stats > div {
    text-align: center;
}

#contact {
    display: none;

}

main > #contact > .contact-image > img {
    width: 100px;
}

#contact > .contact-form {
    padding: 0rem 3rem 0rem 3rem;
    width: 80%;
}

footer{ 
    background: navy;
    display: flex;
    flex-direction: column;
}

footer > .copyright > p {
    font-size: 10px;
    margin-right: 0px;
    margin-left: 0px;
    text-align: center;
}
}

/* END OF MEDIA QUERY */


/* NAVIGATION */

nav {
    background: navy;
    display: flex;
    align-items: center;
    padding: 5px 40px 0px 15px;
    position: fixed;
    width: 100%;
    top: 0;
}

nav > .logo > img {
    width: 100px;

}

nav > .nav-items {
    width: 90%;
    text-align: right;
}

nav > .nav-items > a {
    color: white;
    font-size: 20px;
    text-decoration: none;
    margin-right: 10px;
    margin-left: 10px;
    transition: 0.5s;
}

nav > .nav-items > a:hover {
    color: #BB86FC;
}



/* BUTTONS */

.button {
    color: black;
    text-decoration: none;
    padding: 10px;
    transition: 0.5s;
}

.button-primary {
    background: skyblue;
}

.button-secondary {
    background: lightgreen;

}

.button:hover {
    background: blue;
    color: whitesmoke;
    border-left: 3px solid white;
}




/* HEADER */

header {
    display: flex;
    height: 32rem;
    align-items: center;
    background-color: #AAAAAA;
}

header > .info {
    padding: 5rem;
}

header > .info > h1 {
    font-size: 60px;
    margin-bottom: 10px;
}


header > .info > .buttons > a:first-child {
    margin-right: 10px;
}


header > .image > img {
    width: 400px;
    height: 22rem;
    object-fit: cover;
}



/* MAIN */

#stats {
    display: flex;
    background: lightskyblue;

    padding: 10px;
    justify-content: center;
    color: white; 
    font-size: 20px;
}

#stats > div {
    margin: 0px 30px 0px 30px;
}

#services {
    margin: 4rem;
}

#services > .cards {
    display: flex;
}   

.card {
    background: yellow;
    flex: 0 0 30%;
    margin: 1.5%;
}

.card-content {
    padding: 15px;
}

.card-image {
    width: 100%; 
    height: 200px;
    object-fit: cover;
}

.card-text {
    flex: 0 0 33.3333%;
}

#services > .cards > .card > .card-content > .card-title {
font-size: 25px;
margin: 0;
}



/* DIVIDING Call to Action */

#cta {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    background-color: lightskyblue;
    color: white;
}

#cta . .cta-button {
    margin: 20px;
}

#cta > .cta-button > a {
    background: white;
    padding: 10px 20px 10px 20px;
    color: blue;
    text-decoration: none;
    font-size: 20px;
} 

#cta > .cta-button > a:hover {
    background: lightgray;
}

/* KONTAKT */

#contact {
    display: flex;
    padding: 4rem;

}

#contact > .contact-image > img {
    width: 450px;
}

#contact > .contact-form {
    padding: 0rem 3rem 0rem 3rem;
    width: 50%;
    /* flex: 0 0 50%; */

}

#contact > .contact-form > form > p > input {
    width: 100%;
    border: none;
    background-color: lightskyblue;
    color: blue;
    padding: 7.5px 2.5px 7.5px 2.5px;
    font-size: 18px;
    margin-top:  6px;
}

#contact > .contact-form > form > p > button {
    width: 100%;
    border: none;
    background-color: blue;
    color: white;
    padding: 7.5px 2.5px 7.5px 2.5px;
    font-size: 20px;
    margin-top:  6px;
}


/* FOOTER */

footer{ 
    background: navy;
    display: flex;
    align-items: center;
    padding: 5px 40px 0px 15px;
    width: 100%;
    top: 0;
}

footer > .logo > img {
    width: 100px;
}

footer > .copyright {
    width: 85%;
    text-align: right;
    color: white;
    font-size: 15px;
    text-decoration: none;
    margin-right: 10px;
    margin-left: 10px;
}