@import url("https://fonts.googleapis.com/css?family=Open+Sans");

* {
  font-family: "Open Sans", "Helvetica Neue", "Helvetica", Helvetica, Arial,
    sans-serif;
  color: rgba(50, 50, 50, 0.8);
}

body {
  max-width: 960px;
  margin: auto;
  width: 90%;
  min-width: 300px;
  overflow: auto;
  background-color: rgb(244, 244, 240);
  font-size: 14px;
  -webkit-text-size-adjust: 100%;
}

/* Common styles for headings and lists */
h1 {
  font-size: 2em;
}

h3 {
  margin: 0.5em 0em 1em 0.5em;
  font-size: 1.4em;
}

h4 {
  margin-block-start: 0em;
  margin-block-end: 1em;
}

ul,
li,
p {
  margin-block-start: 0em;
  margin-block-end: 1em;
  text-align: justify;
}

button,
input {
  font-size: inherit;
  padding: inherit;
  -webkit-appearance: none;
}
/* Header and footer styles */
.header {
  margin-top: 20px;
  text-align: right;
}

.footer {
  display: flex;
  justify-content: space-between;
  margin-top: 80px;
  margin-bottom: 60px;
}
.signature {
  font-size: 0.8em;
  font-style: oblique;
  background-color: transparent;
  border: none;
  margin-inline-start: 15px;
}

/* Introduction section styles */
.intro {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
}

.greetings {
  margin-top: 50px;
  flex: 1 1 400px;
}

.referrals {
  align-self: flex-end;
  margin-left: auto;
  margin-bottom: 10px;
}

.my-info {
  margin-bottom: 50px;
}

p.my-info {
  text-align: justify;
  text-indent: 30px;
  font-style: oblique;
}

.contact {
  display: flex;
  margin-top: 20px;
}

/* Section container styles */
.section-container {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

/* Category styles */
.category-info {
  display: flex;
  margin-top: 10px;
  flex-wrap: wrap;
  flex: 1 1 500px;
  padding: 0em 0em 0em 1em;
  border-left: 1px solid rgba(0, 0, 0, 0.5);
}

.category-title {
  display: flex;
  writing-mode: vertical-lr;
  transform: rotate(180deg);
  top: 15px;
  align-self: flex-start;
  position: sticky;
  position: -webkit-sticky;
}

/* CV section styles */
.cv-key-info {
  display: flex;
  width: 100%;
  flex-wrap: nowrap;
  border-bottom: 0.5px dotted rgba(0, 0, 0, 0.3);
}

.cv-extra-info {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.cv-title {
  flex: 1 1 auto;
}

.cv-date {
  font-size: 0.9em;
  font-style: italic;
  flex: 0 0 100px;
  box-sizing: border-box;
  padding-right: 10px;
}

.cv-description {
  font-style: italic;
  flex: 1 1 500px;
}

/* Image styles */
img.referral-logo {
  width: 50px;
  height: auto;
  vertical-align: middle;
  border-radius: 5px;
  background-color: transparent;
  border: none;
}

img.logos {
  height: 75px;
  width: auto;
  vertical-align: middle;
  border-radius: 5px;
  background-color: transparent;
  border: none;
}

img.logos:hover,
img.referral-logo:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

/* Logo and button styles */
.logo-container {
  text-align: center;
  margin: auto;
  flex: 0 0 100px;
}

.material-symbols-outlined,
.language-options,
.back-to-top-button {
  border-radius: 5px;
  text-align: center;
  background-color: transparent;
  border: none;
  padding-inline: 0px;
  margin-inline-start: 15px;
}

.material-symbols-outlined:hover,
.language-options:hover,
.back-to-top-button:hover {
  cursor: pointer;
  background-color: rgba(0, 0, 0, 0.05);
}

/* Progress bar styles */
.progress-bar {
  position: fixed;
  z-index: 99;
  top: 0;
  left: 0;
  height: 8px;
  background: rgba(50, 50, 50, 1);
  width: 0%;
}

/* Tool tip style */
.tooltip {
  opacity: 0;
  transition: opacity 0.5s ease;
  background-color: rgba(50, 50, 50, 1);
  color: rgb(244, 244, 240);
  border-radius: 15px;
  border-color: rgba(0, 0, 0, 0.2);
  padding: 6px;
  width: 220px;
  text-align: center;
  position: absolute;
  z-index: 1;
}

#more-info {
  display: none;
}
#email {
  border-radius: 15px;
  border-color: rgba(0, 0, 0, 0.2);
  font-size: 14px;
  padding: 4px;
  width: 220px;
}
#id {
  color: red;
  font-style: italic;
}
#top {
  margin-top: -20px;
}
#skills .category-info *,
#languages .category-info *,
#other-merits .category-info * {
  flex-basis: 100%;
}
#skills .cv-extra-info,
#languages .cv-extra-info,
#other-merits .cv-extra-info {
  margin-bottom: 10px;
}

/* Responsive design styles */
@media (max-width: 666px) {
  .category-title {
    writing-mode: horizontal-tb;
    transform: rotate(0deg);
    top: 0px;
    padding: 15px 0px 0px 0px;
    flex: 1 1 500px;
    position: sticky;
    position: -webkit-sticky;
    background-color: rgb(244, 244, 240);
    border-bottom: 1px solid rgba(0, 0, 0, 0.5);
  }
  .category-info {
    border-left: 0px;
  }
}

@media (max-width: 776px) {
  .logo-container {
    flex: 1 0 200px;
  }
}
