/* Global settings */

body {
  display: flex;
  flex-direction: column;
  background-color: #fff;
  line-height: 1.3;
}

/* nav and header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0%;
  background-color: rgb(124, 119, 119);
  color: rgb(183, 228, 243);
  border-bottom-width: 4px;
}

h1 {
  font-size: 200%;
  color: rgb(124, 119, 119);
  background-color: rgb(183, 228, 243);
  text-align: center;
  padding: 2%;
}

nav ul {
  display: flex;
  justify-content: space-between;
  min-width: 350px;
  list-style-type: none;
  padding-right: 20px;
}

nav a {
  background-color: unset;
  color: rgb(183, 228, 243);
  font-weight: bold;
  text-decoration: underline;
}

nav a:hover {
  background-color: #ddd;
  color: black;
}

/* about me */
.aboutme {
  display: flex;
  flex-wrap: wrap;
  background-color: #fff;
  justify-content: center;
  border: solid;
  border-color: white;
  border-width: 15px;
}

.heading {
  display: inline-flex;
  justify-content: right;
  border-right: solid;
  border-right-color: rgb(89, 88, 88);
  border-width: 3px;
  padding-right: 1%;
  padding-top: 5%;
  margin-right: 2px;
  width: 20%;
  font-size: 40px;
}

.bio {
  display: flex;
  justify-content: right;
  padding-top: 40px;
  padding-right: 25px;
  padding-left: 25px;
  width: 75%;
}

/* main content */

.project {
  display: flex;
  flex-wrap: wrap;
  background-color: #fff;
  justify-content: center;
  border: solid;
  border-color: white;
  border-width: 15px;
}

.work {
  display: inline-flex;
  justify-content: right;
  border-right: solid;
  border-right-color: rgb(89, 88, 88);
  border-width: 3px;
  padding-right: 1%;
  padding-top: 5%;
  margin-right: 2px;
  width: 20%;
  font-size: 40px;
}

/* projects */

.main-project {
  display: flex;
  flex-wrap: wrap;
  padding-right: 25px;
  padding-left: 25px;
  width: 75%;
  justify-content: center;
}

/* project 1 */
.images {
  padding: 10px;
  width: 80%;
  border: solid;
  border-width: 2px;
  border-color: rgb(183, 228, 243);
  margin: 10px;
  min-width: 500px;
}

h3 {
  color: black;
  font-size: 200%;
  color: rgb(124, 119, 119);
  background-color: rgb(183, 228, 243);
  text-align: left;
  padding: 2%;
  float: left;
  position: relative;
  top: -65px;
}

a:hover {
  text-decoration: none;
  background-color: yellow;
  cursor: pointer;
  opacity: 0.5;
}

.other-project {
  padding: 10px;
  width: 700px;
  flex: 1 0 500px;
  border: solid;
  border-width: 2px;
  border-color: rgb(183, 228, 243);
  margin: 10px;
}

/* contact info */
.contacts {
  display: flex;
  flex-wrap: wrap;
  background-color: #fff;
  justify-content: center;
  border: solid;
  border-color: white;
  border-width: 15px;
}

.info {
  display: inline-flex;
  margin-right: 2px;
  border-right: solid;
  border-right-color: rgb(89, 88, 88);
  border-width: 3px;
  padding-right: 1%;
  width: 20%;
  justify-content: right;
  padding-top: 5%;
  font-size: 40px;
}

.info-list {
  display: inline-flex;
  flex-wrap: nowrap;
  padding-top: 40px;
  padding-right: 25px;
  padding-left: 25px;
  width: 75%;
  justify-content: center;
  list-style-type: none;
  text-decoration: underline;
  text-decoration-color: rgb(31, 31, 159);
  text-decoration-thickness: 3px;
}

.info-list li {
  padding: 5%;
  font-weight: 600;
}

img {
  width: 100%;
}

/* add media */

@media screen and (max-width: 768px) {
  header,
  nav,
  .bio,
  .info-list {
    flex-direction: column;
  }
}

@media screen and (max-width: 768px) {
  .heading,
  .work,
  .info {
    border: none;
    padding: none;
    justify-content: center;
  }
}

@media screen and (max-width: 768px) {
  h2 {
    float: none;
    text-align: center;
    padding: 0%;
  }
}

@media screen and (max-width: 768px) {
  h3 {
    text-align: center;
  }
}

@media screen and (max-width: 768px) {
  li {
    justify-items: center;
    text-align: center;
  }
}

@media screen and (max-width: 768px) {
  .contacts {
    background-color: rgba(143, 73, 69, 0.912);
    color: white;
  }
}
