body {
    background-image: url(/images/backgroundimage.jpg);
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

#nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    background-color: rgb(97, 96, 96);
    height: 75px;
}

#nav a:hover {
    color: blue;
    text-decoration: underline;
}

h1 {
    color: white;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    font-size: xxx-large;
    margin-left: 2%;
    margin-top: auto;
    justify-content: left;
}

.title {
    margin: 0;
    margin-left: 2rem;
    justify-self: start;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.menu {
    display: flex;
    gap: 1rem;
    margin: 0;
    padding: 0 2rem 0 0;
    list-style: none;
}

.menu ul {
    margin-top: auto;
    padding: 0 2rem 0 0;

}

.menu a {
    color: white;
    text-decoration: none;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    font-size: xx-large;
    white-space: nowrap;
}

h2 {
    text-align: center;
    font-size: xx-large;
    margin-top: 1%;
}

#author {
    width: 200px;
    height: 300px;
    border-radius: 10%;
    margin-left: 2rem;
}

.author {
    grid-column: 1;
    justify-self: center;
    align-self: center;
}

#introduction {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.authorText {
    grid-column: 2 / 3;
}

.authorText p {
    font-size: 22px;
}

#computerPicture {
    width: 200px;
    height: 300px;
    border-radius: 10%;
    margin-right: 2rem;
}

.computers {
    grid-column: 3;
    justify-self: center;
    align-self: center;
}

.section1To2 {
    height: 3px;
    background-color: #000;
    border: none;
}

.myProjectsLinks {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.project {
    text-align: center;
}

.project img {
    width: 400px;
    height: 300px;
    border-radius: 5%;
}

h3 {
    text-align: center;
}

#myProjects h4 {
    text-align: center;
    font-size: large;
    margin-top: -2%;
}

footer {
    text-align: center;
    bottom: 0;
    left: 0;
    right: 0;
}

.footer1 {
    background-color: rgb(97, 96, 96);
    color: white;
}

.footer1 h3 {
    padding-top: 2px;
    font-family: sans-serif;
    padding-bottom: 0px;
    font-weight: lighter;
}

.footertext p {
    padding-bottom: 5px;
    color: white;
    font-family: Arial, Helvetica, sans-serif;
    margin-bottom: -20px;
}

#contactInfo {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(4, 1fr);
    width: 100%;
    max-width: 600px;
    background-color: rgb(65, 63, 63);
    margin: auto;
}

#contactInfo p {
    font-size: 20px;
    font-family: Georgia, 'Times New Roman', Times, serif;
    overflow-wrap: anywhere;
}

#contactIDName,
#contactIDMail,
#contactIDPhone,
#contactIDLocation p {
    text-decoration: underline;
}

.rowLine {
    grid-column: 1 / -1;
    border-bottom: 1px solid rgb(2, 2, 2);
}

#contactIDName {
    color: white;
    grid-column: 1;
    grid-row: 1;
    margin-left: 1rem;
    text-align: center;
    align-content: center;
}

#contactIDMail {
    color: white;
    grid-column: 1;
    grid-row: 2;
    margin-left: 1rem;
    text-align: center;
    align-content: center;
}

#contactIDPhone {
    color: white;
    grid-column: 1;
    grid-row: 3;
    margin-left: 1rem;
    text-align: center;
    align-content: center;
}

#contactIDLocation {
    color: white;
    grid-column: 1;
    grid-row: 4;
    margin-left: 1rem;
    text-align: center;
    align-content: center;
}

#contactIDNameAnswer {
    color: white;
    grid-column: 2 / 4;
    grid-row: 1;
    margin-left: 1rem;
    text-align: center;
    align-content: center;
}

#contactIDMailAnswer {
    color: white;
    grid-column: 2 / 4;
    grid-row: 2;
    margin-left: 1rem;
    text-align: center;
    align-content: center;
}

#contactIDPhoneAnswer {
    color: white;
    grid-column: 2 / 4;
    grid-row: 3;
    margin-left: 1rem;
    text-align: center;
    align-content: center;
}

#contactIDLocationAnswer {
    color: white;
    grid-column: 2 / 4;
    grid-row: 4;
    margin-left: 1rem;
    text-align: center;
    align-content: center;
}

@media (max-width: 1000px) {

    .menu ul {
        gap: 0.5rem 1rem;
        flex-wrap: wrap
    }

    .menu a {
        font-size: x-large;
        flex-wrap: wrap;
        margin-right: 1rem;
    }

    h1 {
        font-size: xx-large;
        align-content: center;
    }

    #author {
        width: 200px;
        height: 300px;
        border-radius: 10%;
        margin-left: 1%;
    }

    #nav {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .title {
        justify-self: start;
    }

}


@media (max-width: 700px) {

    #introduction {
        grid-template-columns: 1fr;
    }

    .author,
    .authorText,
    .computers {
        grid-column: 1;
    }

    .authorText {
        padding: 0 1rem;
        order: -1;
    }

    #computerPicture {
        margin-right: 0;
    }

    .menu a {
        font-size: x-large;
        flex-wrap: wrap;
        margin-right: 0rem;
    }
}


@media (max-width: 550px) {

    .menu a {
        font-size: large;
        flex-wrap: wrap;
        margin-right: 0rem;
    }

    h1 {
        font-size: large;
        align-content: center;
    }
}

@media (max-width: 410px) {

    .menu a {
        font-size: small;
        flex-wrap: wrap;
        margin-right: 0rem;
    }

    h1 {
        font-size: small;
        align-content: center;
    }
}