@font-face {
  font-family: "Source Sans Pro";
  src: url("../font/roboto-mono.woff2") format("woff2"),
    url("../font/roboto-mono.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans Pro";
  src: url("../font/roboto-mono-bold.woff2") format("woff2"),
    url("../font/roboto-mono-bold.woff") format("woff");
  font-weight: bold;
  font-display: swap
}

h1 {
  display: block;
  font-size: 2em;
  margin-top: 0.67em;
  margin-bottom: 0.67em;
  margin-left: 0;
  margin-right: 0;
  font-weight: bold;
}

h2 {
  display: block;
  font-size: 1.5em;
  margin-top: 0.83em;
  margin-bottom: 0.83em;
  margin-left: 0;
  margin-right: 0;
  font-weight: bold;
}

h3 {
  display: block;
  font-size: 1.17em;
  margin-top: 1em;
  margin-bottom: 1em;
  margin-left: 0;
  margin-right: 0;
  font-weight: bold;
}

h4 {
  display: block;
  margin-top: 1.33em;
  margin-bottom: 1.33em;
  margin-left: 0;
  margin-right: 0;
  font-weight: bold;
}

h5 {
  display: block;
  font-size: .83em;
  margin-top: 1.67em;
  margin-bottom: 1.67em;
  margin-left: 0;
  margin-right: 0;
  font-weight: bold;
}

h6 {
  display: block;
  font-size: .67em;
  margin-top: 2.33em;
  margin-bottom: 2.33em;
  margin-left: 0;
  margin-right: 0;
  font-weight: bold;
}

body {
  display: flex;
  flex-direction: column;
  background-color: #171E26;
  color: #d2e0f0;
  font-family: "Source Sans Pro";
  text-align: left;
  word-wrap: break-word;
  overflow-wrap: break-word;
  margin: auto;
  padding: 20px;
  max-width: 60%;
  max-width: 960px;
  min-height: 100vh;
  box-sizing: border-box;
  line-height: 1.5;
}

body a {
  text-decoration: none;
  color: #FF6600;
  border-bottom: 3px solid #FF6600;
}

body a:hover {
  background-color: #FF6600;
  color: #ffffff;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  border-bottom: 1px solid white;
}

strong {
  color: #ff6600;
  font-weight: bold;
}

figcaption {
  text-align: center;
  font-size: 13px;
  font-style: italic;
}

.body img {
  width: 100%;
  height: max-content;
}

.skip-to-main-content-link {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 999;
  padding: 1em;
  background-color: #FF6600;
  color: #ffffff;
  font-weight: bold;
  opacity: 0;
}

.skip-to-main-content-link:focus {
  opacity: 1;
}

/* region about me home*/
.about-me-home {
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: space-between;
  text-align: left;
  margin-top: 100px;
  align-items: center;
}

.about-me-home img {
  width: 250px;
  height: 250px;
}

.about-me-home-name {
  font-size: 50px;
  margin: 0;
  padding: 0;
  color: #FF6600;
  text-decoration: none;
}

.about-me-home-current-position {
  font-size: 20px;
  border-bottom: none;
}

.about-me-home-left {
  padding: 0;
  padding-right: 50px;
}

#about-me-home-icons {
  width: 100%;
  display: flex;
}

#about-me-home-icons a {
  height: 30px;
  width: 30px;
  margin-right: 10px;
}

.main-icons {
  display: flex;
  width: 30px;
  height: 30px;
}

.main-icons svg {
  height: fit-content;
}

#about-me-home-icons a:hover path {
  fill: #ffffff !important;
}

#about-me-home-icons a:hover polygon {
  fill: #ffffff !important;
}

.main-title {
  text-decoration: unset;
  color: inherit;
  border-bottom: unset;
}

.main-title h1 {
  text-decoration: none;
}

.main-title:hover {
  background-color: unset;
  color: unset;
}

/* endregion about me home*/

/* region header*/
header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  text-align: left;
}

header nav a {
  margin-left: 20px;
  color: #d2e0f0;
}

header h1 {
  border-bottom: 3px solid #FF6600;
  font-size: 2rem;
  width: fit-content;
}

header h1:hover {
  background-color: #FF6600;
  color: #ffffff;
}

.language-icon {
  width: 30px;
  height: 24px;
}

.common-switch {
  width: fit-content;
}

.common-switch:hover path {
    fill: #ffffff !important;
}

.common-switch:hover polygon {
    fill: #ffffff !important;
}

.portuguese-switch {
  color: #0C8F27;
  border-bottom: 3px solid #0C8F27;
}

.portuguese-switch path {
  fill: #0C8F27 !important;
}

.portuguese-switch polygon {
  fill: #0C8F27 !important;
}

.portuguese-switch:hover {
  background: #0C8F27;
  color: #ffffff;
}

.english-switch{
  color: #BE0A2F;
  border-bottom: 3px solid #BE0A2F;
  width: fit-content;
}

.english-switch path {
  fill: #BE0A2F !important;
}

.english-switch polygon {
  fill: #BE0A2F !important;
}

.english-switch:hover {
  background: #BE0A2F;
  color: #ffffff;
}

/* endregion header*/

/* region pre code*/
pre {
  tab-size: 2 !important;
  background: #282828;
  padding: 20px;
  overflow-x: auto;
  border: 1px solid #485fa0;
}

/* endregion pre code*/

/* region footer*/
footer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 50px;
  margin-top: auto;
  padding-top: 50px;
}

footer p {
  text-align: center;
}

#footer-icons {
  width: 100%;
  display: flex;
  justify-content: center;
}

#footer-icons a {
  height: 20px;
  width: 20px;
  margin-right: 10px;
}

#footer-icons a div {
  display: flex;
}

#footer-icons a div svg {
  width: fit-content;
  height: fit-content;
}

#footer-icons a:hover path {
  fill: #ffffff !important;
}

#footer-icons a:hover polygon {
  fill: #ffffff !important;
}

/* endregion footer*/

/* region articles list*/
.articles-list ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.articles-list ul li {
  display: flex;
  align-items: center;
  font-size: 16px;
  line-height: 1;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  height: 20px;
}

.articles-list ul li time {
  flex: 0 0 150px;
  font-family: monospace;
  letter-spacing: 0;
}

.articles-list ul li a {
  height: 18px;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* endregion articles list*/

.posted-on {
  font-style: italic;
  color: #D2DCF0;
  margin-bottom: 0;
}

.last-update {
  margin-top: 0;
  font-style: italic;
  color: #D2DCF0;
}

/* "Hide" checkbox -- moves it off screen*/
#menu-btn {
  position: absolute;
  top: -100%;
  left: -100%;
}

/* Hide hamburger for bigger screens */
.menu-icon {
  visibility: hidden;
}

/* region card*/

#my-projects-section {
  padding-top: 30px;
}

#card-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  padding: 0;
  gap: 2em;
}

#card-list a {
  width: 400px;
  padding: 20px;
  text-decoration: none;
  transition-property: background-color;
  transition-duration: .6s;
  border-bottom: none;
}

#card-list a h3 {
  border-bottom: none;
  padding: 0;
  margin: 10px 0;
  color: #D2E0F0;
}

#card-list a:hover {
  color: #ffffff;
  background-color: #ff6600;
  transition: .3s;
}

#card-list img {
  border-bottom: 2px solid #ff6600;
}

#card-list a p {
  margin: 0;
  padding: 0;
  color: #D2E0F0;
}

/* endregion card*/

.icon {
  width: 20px !important;
  height: 20px !important;
  vertical-align: text-top;
  padding-right: 5px;
}

/* region responsive*/
@media only screen and (max-device-width: 812px) {

  body {
    width: 90%;

  }

  header img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
  }

  header h1 {
    font-size: 2rem;
  }

  header {
    display: grid;
    grid-template-areas:
      "title   hamburger hamburger"
      "nav     nav     nav"
      "switch  switch  switch";
  }

  .menu a {
    text-decoration: none;
  }

  .menu-btn {
    display: none;
  }

  .menu-icon {
    grid-area: hamburger;
    cursor: pointer;
    display: flex;
    justify-content: flex-end;
    align-items: baseline;
    padding: 20px;
    position: relative;
    user-select: none;
    visibility: visible;
  }

  .navicon {
    background: #FF6600;
    display: block;
    height: 2px;
    width: 18px;
    position: relative;
  }

  .navicon:before {
    top: 5px;
  }

  .navicon:after {
    top: -5px;
  }

  .navicon:before,
  .navicon:after {
    background: #FF6600;
    display: block;
    width: 100%;
    height: 100%;
    content: '';
    position: absolute;
  }

  .menu {
    grid-area: nav;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
    background-color: #FF6600;
    display: flex;
    flex-direction: column;
  }

  .menu a {
    margin: 0;
    background-color: #FF6600;
    color: #ffffff;
    width: 100%;
    font-weight: 600;
    text-align: center;
    padding: 15px 0;
  }

  .menu-btn:checked~.menu {
    max-height: 240px;
  }

  .menu-btn:checked~.menu-icon .navicon {
    background: none;
  }

  .menu-btn:checked~.menu-icon .navicon:before {
    transform: rotate(-45deg);
  }

  .menu-btn:checked~.menu-icon .navicon:after {
    transform: rotate(45deg);
  }

  .menu-btn:checked~.menu-icon .navicon:before,
  .menu-btn:checked~.menu-icon .navicon:after {
    top: 0;
  }


  .about-me-home {
    width: 100%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
  }

  .about-me-home img {
    width: 250px;
    height: 250px;
    margin-top: 30px;
  }

  .about-me-home-left {
    padding: 0;
  }

  .articles-list ul {
    display: flex;
    flex-direction: column;
    gap: 25px;
  }

  .articles-list ul li {
    flex-direction: column;
    align-items: start;
    width: 100%;
    height: fit-content;
  }

  .articles-list ul li a {
    font-size: 20px;
    overflow: inherit;
    white-space: break-spaces;
    border-bottom: none;
    text-decoration: underline;
    text-decoration-color: #FF6600;
    text-decoration-thickness: 3px;
    line-height: 1.5;
    height: max-content;
  }

  .articles-list ul li time {
    flex: 0;
    padding-bottom: 10px;
  }

  footer {
    bottom: 0;
    text-align: center;
    width: 100%;
  }

  #card-list {
    width: 100%;
  }

  #card-list a {
    width: 100%;
  }

  #card-list img {
    width: 100%;
  }

  .about-me-home-current-position {
    font-size: 15px;
  }

}

/* endregion responsive*/
