body {
    background-color: #FDFFE2;
    font-family: Arial, Helvetica, sans-serif;
    color: black
}

header {
    text-align: center;
    background-color: #85C9B1;
    box-shadow: 10px 10px 14px rgb(0, 42, 26);
}

.buttons {
    display: grid;
    justify-content: center;

}

.navigationbuttons {
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin-bottom: 8px;

}

.firstpage {
    visibility: visible;
}

.secondpage {
    visibility: hidden;
}

.thirdpage {
    visibility: hidden;
}

.projects {
    display: flex;
    flex-direction: row;
}

.projectphoto {
    width: 200px;
    height: 200px;
    margin-left: 100px;
    margin-right: 100px;
    margin-top: 30px;
    border-style: solid;
    border-width: 1px;
    border-color: black;
    box-shadow: 10px 10px 14px rgb(0, 42, 26);

}

.button2 {
    grid-column-start: 1;
}

.button3 {
    grid-column-start: 2;
}

.mapbutton {
    display: flex;
    flex-direction: column;

}


.button1:hover,
.button2:hover,
.button3:hover,
.button4:hover,
.button5:hover,
.button6:hover {
    background-color: rgb(6, 91, 81);
    color: white;
    box-shadow: 10px 10px 14px rgb(0, 42, 26);
}

footer {
    display: flex;
    flex-flow: row;
    text-align: center;
    background-color: #85C9B1;
    box-shadow: 10px 10px 14px rgb(0, 42, 26);
    justify-content: space-evenly;
    margin-top: 20px;
}

a:link {
    font-size: 18px;
    color: black;
}

a:visited {
    color: rgb(49, 49, 49);
}

a:hover {
    color: rgb(253, 253, 253);
}

h1,
h3 {
    text-align: center;
}

.indexphoto {
    height: 200px;
    width: 200px;
    border-style: solid;
    border-width: 1px;
    border-color: black;
    margin-right: 40px;
    margin-left: 20px;
    box-shadow: 10px 10px 14px rgb(0, 42, 26);
}

.map {
    visibility: hidden;
    height: 200px;
    width: 200px;
    border-style: solid;
    border-width: 2px;
    border-color: black;
    box-shadow: 10px 10px 14px rgb(0, 42, 26);
}

.contact {
    visibility: hidden;
}


.introductionphoto {
    height: 100px;
    width: 100%;
    margin-top: 20px;
    box-shadow: 10px 10px 14px rgb(0, 42, 26);
}


section {
    display: flex;
}

article {
    flex: 1;
}

.introduction {
    display: flex;
    flex-direction: row;
}

table {
    margin-left: auto;
    margin-right: auto;
    /*/vaihda värit kaikkiin kohtiin väripaletin mukaisiksi/*/
    background-color: white;
    border-collapse: collapse;
    box-shadow: 10px 10px 14px rgb(0, 42, 26);

}

.informationtext {
    text-align: justify;
}

.contact,
.button4,
h4 {
    margin-left: 20px;
}

.index {
    display: flex;
    flex-direction: row;
}

td,
th {
    text-align: center;
    border-style: solid;
    border-width: 2px;
    border-color: #000000;
    padding: 6px;
}



.educationmap {
    display: flex;
    flex-flow: row;
}

@media only screen and (max-width: 1024px) {

    .index,
    .introduction,
    .projects {
        flex-direction: column;
    }

    .indexphoto,
    .projectphoto {
        align-self: center;
        margin-right: 0px;
        margin-left: 0px;
    }

    .projectphoto {
        margin-bottom: 20px;
        margin-top: 10px;
    }

}