:root {
  --primary-color: midnightblue;
  --secondary-color: mediumblue;
  --text-color: #F0F0F0;
  --background-color: #252525;
  --highlight-color: lightskyblue;
}

* {
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
  transition: border-color 0.3s linear, background-color 0.3s linear, color 0.3s linear;
}


body {
  height: 100vh;
  margin: 0;
  background-color: var(--background-color);
  color: var(--text-color);
  font-size: 16px;
}

header {
  background-color: var(--primary-color);
  width: 100%;
  padding: 20px 0;
  margin: 0 auto;
}

nav {
  width: 1080px;
  margin: 20px auto;
  display: flex;
  justify-content: space-between;
  line-height: 2.5em;
}

main {
  width: 1080px;
  margin: auto;
  text-align: center;
}

.container {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 20px;
  height: auto;
  margin-top: 20px;
}

.project-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-width: 19em;
  min-height: 350px;
  gap: 20px;
  height: fit-content;
  padding: 20px;
  background-color: var(--primary-color);
  border: 3px solid var(--secondary-color);
  border-radius: 35px;
  cursor: pointer;
}


.project-card p {
  font-size: 1.1em;
}

.image-area {
  position: relative;
  width: 300px;
  height: 300px;
  margin-right: 45px;
}



/* IMAGES */
#main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  /* make circular */
  border: 3px solid var(--secondary-color);
  cursor: pointer;
}

.icon {
  position: absolute;
  width: 70px;
  height: 70px;
  background-color: var(--primary-color);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  border: 3px solid var(--secondary-color);
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s ease-out, scale 0.3s ease-out;
}

.icon:hover {
  background-color: var(--secondary-color);
  scale: 1.15;
  color: var(--highlight-color);

}

.icon.active {
  background-color: var(--secondary-color);
  scale: 1.15;
  color: var(--highlight-color);

}

/* Positioning icons around the main image*/
.icon:nth-child(2) {
  top: -25px;
  left: 75%;
  transform: translate(-50%, 0);
}

.icon:nth-child(3) {
  top: 40px;
  left: 92%;
  transform: translate(-50%, 0);
}

.icon:nth-child(4) {
  top: 125px;
  left: 100%;
  transform: translate(-50%, 0);
}

.icon:nth-child(5) {
  top: 205px;
  left: 92%;
  transform: translate(-50%, 0);
}

.icon:nth-child(6) {
  top: 270px;
  left: 72%;
  transform: translate(-50%, 0);
}


#qr-code {
  width: 150px;
  height: 150px;
  margin: 0 auto
}

.text-area {
  text-align: center;
  width: 500px;
  min-height: 400px;
  padding: 20px;
  margin: 20px 0;
  background-color: var(--primary-color);
  border: 3px solid var(--secondary-color);
  display: none;
  border-radius: 35px 0 35px 0;
}

#traits-list ul,
#licenses-list ul,
#nationalities-list ul {
  width: 100%;
  height: 60px;
  margin: 0;
  display: flex;
  justify-content: center;
  flex-direction: row;
  flex-wrap: wrap;
  box-sizing: border-box;
}


#btn-row {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.btn-colors {
  color: var(--text-color);
  text-decoration: none;
  width: 60px;
  height: 60px;
  text-align: center;
  transition: scale 0.3s ease-out;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  border: 3px solid;
  cursor: pointer;
}

.btn-colors:hover {
  scale: 1.4;
}

.btn-colors.active {
  scale: 1.4;
}

.project-icons {
  scale: 2.5;
  margin: auto;
}


#btn-color1 {
  border-color: mediumblue;
  background-color: midnightblue;
  color: lightskyblue;
}

#btn-color2 {
  border-color: firebrick;
  background-color: darkred;
  color: orange;
}

#btn-color3 {
  border-color: purple;
  background-color: indigo;
  color: violet;
}

#btn-color4 {
  border-color: limegreen;
  background-color: green;
  color: lightgreen;
}

#btn-color5 {
  border-color: darkgray;
  background-color: lightslategrey;
  color: lightgray;
}

/* inline components */

h1 {
  text-align: center;
  font-size: 3em;
  font-weight: bolder;
}

h2 {
  font-size: 2.5em;
  margin-bottom: 20px;
}

h3 {
  font-size: 2em;
  margin-bottom: 20px;
}


a {
  text-decoration: none;
  color: #F0F0F0;
  margin: 0 20px;
  font-size: 1.4em;
  transition: color 0.3s ease-out, background-color 0.3s ease-out;
}

a:hover {
  color: var(--highlight-color);
}

a.selectedLanguage {
  color: var(--highlight-color);
}


p {
  text-align: left;
  font-size: 1.4em;
  margin: 0.3em auto 1em auto;
}

footer p {
  text-align: center;
}

ul {
  list-style: none;
  margin-bottom: 1em;
  max-height: 150px;
  overflow-y: auto;
  scrollbar-color: var(--secondary-color) var(--highlight-color);
}

.text-area li {
  text-align: left;
  margin-left: 2em;
  font-size: 1.3em;
  line-height: 1.5em;
}


/* for smaller resolutions */

@media screen and (max-width: 1080px) {
  header {
    width: 100%;
    height: auto;
    padding: 0;
    margin-bottom: 30px;
  }

  nav {
    width: 100%;
    height: 120px;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
    padding: 0;
  }

  main {
    width: 100%;
  }



  .text-area {
    width: 90%;
    height: fit-content;
  }

  #main-image {
    margin-top: 20px;
    width: 90%;
    height: auto;
  }

  /* inline components */
  #traits-list ul,
  #licenses-list ul,
  #nationalities-list ul {
    font-size: 1.5em;
  }

  ul {
    max-height: 250px;
    font-size: 1.1em;
  }

  .text-area li {
    font-size: 1.5em;
  }

  h1 {
    font-size: 3em;
    line-height: 80px;
    margin: 0;
  }


}