body, html {
    margin: 0px;
}

/* mobile-friendly topnav */
.topnav {
  overflow: hidden;
  position: fixed;
  width: 100%;
  background-color: #5C668A;
  box-shadow: 3px 3px 3px #999;
  z-index: 2;
}

.topnav a {
  float: left;
  display: block;
  color: #E3DCCE;
  text-align: center;
  font-family: 'Raleway', sans-serif;
  padding: 15px 20px;
  text-decoration: none;
  font-size: 120%;
  transition-duration: 0.2s;
  cursor: pointer;
}

.dropdown {
    float: left;
    overflow: hidden;
}

.dropdown .dropbtn {
    border-left: none;
    border-right: none;
    border-top: #E3DCCE;
    outline: none;
    background-color: #5C668A;
    color: #E3DCCE;
    font-family: 'Raleway', sans-serif;
    padding: 15px 20px;
    text-decoration: none;
    font-size: 120%;
    transition-duration: 0.2s;
    cursor: pointer;
    margin: 0;
}

.dropdown-content {
    display: none;
    position: absolute;
    min-width: 150px;
    background-color: #5C668A;
    z-index: 1;
}

.dropdown-content a {
    float: none;
    display: block;
    color: #E3DCCE;
    text-align: center;
    font-family: 'Raleway', sans-serif;
    padding: 15px 20px;
    text-decoration: none;
    font-size: 120%;
    transition-duration: 0.2s;
    cursor: pointer;
}

.topnav a:hover, .dropdown:hover .dropbtn {
  color: white;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.topnav a:not(:first-child), .dropdown .dropbtn {
    display: none;
}

.topnav a.icon {
    float: right;
    display: block;
}

.topnav.responsive {
    position: fixed;
}

.topnav.responsive .icon {
    position: absolute;
    right: 0;
    top: 0;
}

.topnav.responsive a {
    float: none;
    display: block;
    text-align: center;
}

.topnav.responsive .dropdown {
    float: none;
}

.topnav.responsive .dropdown-content {
    position: relative;
}

.topnav.responsive .dropdown .dropbtn {
    display: block;
    width: 100%;
    text-align: center;
  }

h1, h3 {
    text-align: center;
    font-family: 'Raleway', sans-serif;
}

p, li {
    text-align: center;
    font-size: 18px;
    font-family: 'Raleway', sans-serif;
    line-height: 25px;
}

li {
    list-style-type: none;
}

/* intro div */
#landing {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    color: white;
    height: 100vh;
    font-family: 'Raleway', sans-serif;
    background-image: url("background.png");
    background-attachment: fixed ;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    padding: 15px;
}

.landing-name {
    position: absolute;
    width: 60%;
}

/* make the typed text on a row different than the name image */
.line-break {
  width: 100%;
  height: 200px;
}

.landing-name::after {
  content: '';
  flex-basis: 100%;
}

.typing-animation {
    position: relative;
}

/* the cursor */
.typing-animation::after {
    content: "";
    position: absolute;
    right: -5px;
    width: 1px;
    height: 100%;
    border-right: 2px solid white;
    animation: cursorBlink 0.5s infinite ease;
}

@keyframes cursorBlink {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* projects div */
#projects {
    background-color: #E3DCCE;
    padding: 25px;
}

.projects-parent {
    display: flex;
    justify-content: space-around;
}

.projects-child {
    margin: 20px;
    width: 40%;
    background-color: white;
    box-shadow: 3px 3px 3px grey;
}

#projects img {
    width: 100%;
}

#projects img:hover {
    opacity: 0.7;
    transition-duration: 0.4s;
}

/* contact div */
#contact {
    background-color: white;
    padding: 25px;
}

.contact-parent {
    display: flex;
    justify-content: center;
}

.contact-child {
    margin: 20px 10px 10px 10px;
}

.contact-child img {
    width: 50px;
    height: 50px;
}

.contact-child:hover {
    opacity: 0.7;
    transition-duration: 0.4s;
}

/* footer div */
#footer {
    background-color: #E3DCCE;
    margin-bottom: -20px;
}


/* large screen */
@media screen and (min-width: 900px) {
    #projects > .projects-parent {
        flex-wrap: wrap;
    }

    #projects img {
        height: 300px;
    }
}

/* small screen */
@media screen and (max-width: 899px) {
    #projects > .projects-parent {
        flex-wrap: wrap;
    }

    #projects .projects-child {
        width: 100%;
    }
}
