html,
body {
    margin: 0;
    padding: 0;
    background-color: black;
}

.wrapper {
    display: grid;
    grid-template-columns: minmax(0px, 1fr) repeat(6, minmax(0, 175px)) minmax(0px, 1fr);
    grid-template-rows: repeat(12, 150px) auto;
    background-image: url('images/CroppedBlueTopographic.jpg');
    background-size: cover;
    background-position: center -300px;
    background-repeat: no-repeat;
    border: none;
}

header {
    grid-column: 1 / -1;
    grid-row: 1 / 2;
}

header a {
    text-decoration: none;
    color: #FFFFFF;
}

header .topnav {
    display: flex;
    color: white;
    float: right;
    text-align: center;
    padding: 55px 25px;
    font-size: 17px;
    font-family: Verdana;
    font-weight: bold;
    align-items: center;
    gap: 20px;
}

.top {
    padding-top: 150px;
    grid-column: 1 / -1;
    grid-row: 2 / 7;
    text-align: left;
    width: 50%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.top h1 {
    margin: 0;
    float: left;
    color: white;
    font-size: 50px;
    font-family: Verdana;
    font-weight: bold;
    line-height: 1.6;
}

.top h6 {
    margin: 0;
    float: left;
    color: white;
    font-family: Verdana;
    font-weight: bold;
    line-height: 1.6;
}

.content {
    grid-column: 2 / -2;
    grid-row: 8 / 11;
    color: white;
    display: flex;
    gap: 20px;
}

.content .contentleft {
    flex: 1;
    font-family: Verdana;
    font-weight: bold;
    padding-left: 25px;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 10px 30px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    margin-bottom: 30px;
}

.content .contentright {
    flex: 1;
    font-family: Verdana;
    font-weight: bold;
    background-image: url('images/Iceland.png');
    background-size: contain;
    background-repeat: no-repeat;
    justify-content: center;
}

h2 {
    font-size: 30px;
    color: white;
}

.title {
    grid-column: 3 / -3;
    grid-row: 11 / 12;
    text-align: center;
    font-family: Verdana;
    font-weight: bold;
}

.skills {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    text-align: center;
}

footer {
    grid-column: 1 / -1;
    grid-row: 13 / 14;
    font-family: Verdana;
    font-size: .70rem;
    font-style: italic;
    text-align: center;
    color: white;
    padding: 30px
}

.project-text {
    color: white;
}

.projects-list {
    grid-column: 2 / -2;
    grid-row: 5 / 12;
    display: flex;
    flex-direction: column;
    gap: 60px;
    color: white;
    font-family: Verdana;
    font-weight: bold;
    padding: 20px 0;
}

.project-item {
    display: flex;
    align-items: center;
    gap: 30px;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 10px 10px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
}

.project-item.project-reverse {
    flex-direction: row-reverse;
}

.project-image {
    flex: 1;
}

.project-text {
    flex: 1;
    padding: 0 20px;
}

.project-text a {
    display: flex;
    justify-content: center;
    margin-top: 15px;
    color: #4a90e2;
    text-decoration: none;
    font-weight: bold;
    border: 1px solid #4a90e2;
    padding: 8px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.project-text a:hover {
    background-color: #4a90e2;
    color: white;
    text-decoration: none;
}

.project-image img {
    width: 100%;
    max-height: 300px;
    border-radius: 8px;
    border: 2px solid white;
}

.project-text h3 {
    font-size: 24px;
    color: white;
}

.resume-content {
    grid-column: 2 / -2;
    grid-row: 4 / 14;
    color: white;
    font-family: Verdana;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 30px;
    border-radius: 8px;
    overflow-y: auto;
}

.resume-header {
    text-align: center;
    border-bottom: 2px solid white;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.resume-contact-info {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    color: white;
}

.resume-download-btn {
    display: inline-block;
    background-color: #4a90e2;
    color: white;
    padding: 12px 20px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    margin-bottom: 30px;
    transition: background-color 0.3s;
}

.resume-download-btn:hover {
    background-color: #357ABD;
}

.resume-section {
    margin-bottom: 30px;
}

.resume-section h2 {
    font-size: 28px;
    color: white;
    border-bottom: 1px solid white;
    padding-bottom: 5px;
    margin-bottom: 15px;
}

.job,
.education {
    margin-bottom: 20px;
}

.job h3,
.education h3 {
    font-size: 22px;
    margin: 0;
    color: white;
}

.job h4,
.education h4 {
    font-size: 16px;
    font-style: italic;
    font-weight: normal;
    margin: 5px 0;
    color: white;
}

.resume-content ul {
    list-style-type: disc;
    padding-left: 20px;
}

.resume-content li {
    margin-bottom: 10px;
    line-height: 1.5;
    color: white;
}

.about-content {
    grid-column: 2 / -2;
    grid-row: 5 / 10;
    color: white;
    font-family: Verdana;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
}

.about-row {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.about-text {
    flex: 1;
    font-weight: bold;
    line-height: 1.6;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 10px 30px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    margin-bottom: 30px;
}

.about-image {
    flex: 1;
    height: 400px;
    background-image: url('images/About-Me-Image.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 8px;
    border: 2px solid white;
}

.map-container {
    width: 100%;
}

.map-container h3 {
    margin-bottom: 15px;
    color: white;
}

.contact-container {
    grid-column: 2 / -2;
    grid-row: 5 / 10;
    color: white;
    font-family: Verdana;
    display: flex;
    gap: 40px;
    padding: 20px;
}

.contact-form {
    flex: 2;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: none;
    font-family: Verdana, sans-serif;
    font-size: 14px;
    box-sizing: border-box;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form button {
    background-color: #4a90e2;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.contact-form button:hover {
    background-color: #357ABD;
}

@media only screen and (max-width: 992px) {
    .wrapper {
        grid-template-columns: minmax(0px, 1fr) 768px minmax(0px, 1fr);
    }

    .top {
        width: 80%;
        margin: 0 auto;
        text-align: center;
    }

    .project-item {
        margin: 15px;
    }
}

@media only screen and (max-width: 768px) {
    .wrapper {
        grid-template-columns: minmax(0px, 1fr) 100% minmax(0px, 1fr);
    }

    header .topnav {
        display: flex;
        justify-content: center;
        gap: 20px;
        padding: 20px;
        float: none;
    }

    header .topnav a:nth-child(-n+3) {
        display: none;
    }

    .top {
        width: 70%;
        margin: 0 auto;
        text-align: center;
    }

    .top h1 {
        font-size: 30px;
    }

    .content {
        flex-direction: column;
        padding: 0 20px;
        gap: 30px;
    }

    .content .contentright {
        background-position: center;
        background-size: contain;
        width: 100%;
        height: 200px;
    }

    .skills {
        gap: 20px;
    }

    .skills a img {
        height: 50px;
        width: 50px;
    }

    .resume-contact-info {
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }

    .resume-content {
        padding: 20px;
    }

    .about-content {
        flex-direction: column;
        grid-row: 4 / 9;
    }

    .about-row {
        display: flex;
        flex-direction: column;
    }

    .about-image {
        width: 100%;
        height: 300px;
        flex: none;
    }

    .resume-content {
        font-size: 12px;
    }

    .project-item {
        gap: 0px;
        padding: 0px 15px 0px 15px;
    }

    .projects-list {
        grid-row: 4 / 11;
    }
}