/* general */
body {
  background-color: #8ecae6;
  font-size: 2rem;
  font-family: "Lato", sans-serif;
  line-height: 1.5;
}

.container {
  width: 80%;
  max-width: 800px;
  margin: 1em auto;
}

.flex {
  display: flex;
  justify-content: space-between;
}

h2 {
  text-align: center;
}

h3 {
  text-align: center;
}

/* header */

header {
  border-bottom: 1px solid black;
  font-size: 3rem;
  padding-bottom: 0.5em;
}

header img {
  margin: auto;
  width: 50px;
  display: inline;
  margin-right: 1em;
}

header a {
  margin: 0 auto;
  display: block;
}

header .links a {
  color: #0e4764;
  margin-right: 1em;
}

header .links a:first-child {
  line-height: 1.6;
}

/* hero section */

.hero {
  gap: 1em;
}

.hero .flex > * {
  width: 100%;
}

/* activity */

.activity {
  margin-top: 3em;
  gap: 2em;
}

.activity.flex > * {
  width: 100%;
}

.card {
  border-radius: 15px;
  padding: 1em;
  color: #ffffff;
}

.card h2 {
  margin-bottom: 1em;
}

.work {
  background-color: #219ebc;
}

.work .openForWork {
  padding-bottom: 1rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid #0e4764;
  color: #032231;
  cursor: pointer;
}

.work .openForWork a {
  font-size: 1.7rem;
}

.work .openForWork a:hover {
  color: #ffcc00;
}

.studies {
  background-color: #0e4764;
}

.certifications {
	margin: 3em auto;
}

.certifications img {
  width: 50%;
  border-radius: 5px;
}

/* projects */

.projects {
  margin-top: 2em;
}

.project {
  background-color: #fff;
  color: #000;
}

.project:hover {
  box-shadow: 10px 10px #0e4764;
}

.project.card {
  margin-top: 1em;
  align-items: center;
  gap: 1em;
}

.project.card h3 {
  margin-bottom: 1em;
  text-align: left;
}

.project:hover a {
  color: #219ebc;
}

.project.card.flex > * {
  width: 100%;
}

figure.grayBorder {
  border: 1px solid gray;
}

/* footer */

footer {
  margin-top: 2em;
  margin-bottom: 1em;
  text-align: center;
}

/* Links */

a,
a:visited {
  color: #219ebc;
}

a:hover,
a:focus {
  color: #219ebc;
  text-decoration: underline;
}

a:active {
  color: #219ebc;
}

.work a,
.work a:visited {
  color: #0e4764;
  font-size: 2rem;
  font-weight: 600;
  text-decoration: none;
}

.project h3 a,
.project h3 a:visited,
.project h3 a:hover,
.project h3 a:focus {
  font-size: 2.5rem;
}

.project a,
.project a:visited {
  color: #219ebc;
  font-weight: 600;
  text-decoration: none;
}

.project a:hover,
.project a:focus {
  color: #219ebc;
  font-weight: 600;
  text-decoration: underline;
}

a.cooperationLink,
a.cooperationLink:visited,
a.cooperationLink:hover,
a.cooperationLink:focus {
  color: #311fb8;
  font-size: 1.8rem;
  font-weight: 600;
  text-decoration: none;
}

/* Media Queries */

@media (max-width: 880px) {
  .flex {
    flex-direction: column;
  }
  
  
  .certifications img {
    width: 95%;
  }

  .nav.flex {
    flex-direction: row;
  }
}

.nav .links {
  flex-direction: row;
}
