@import url("https://fonts.googleapis.com/css2?family=Merriweather&family=Montserrat&family=Sacramento&display=swap");
/* Variables */
/* Mixins */
.hide {
  display: none;
}

#skills {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 92%;
  height: 90%;
  background-color: var(--primary);
  border-radius: 8px;
  border: 2px solid var(--shadow);
  padding: 12px;
  color: var(--text);
  overflow-y: auto;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 4px 4px;
  font-size: 14px;
}
table th {
  background-color: var(--bg);
}
table th h3 {
  margin: 3px;
}

thead::after {
  content: "";
  display: block;
  width: 100%;
  background: var(--primary);
}

tr:hover {
  background-color: var(--bg);
}

td:first-child {
  width: 6%;
  text-align: center;
  padding: 0px;
}
td:first-child img {
  width: 65%;
  margin-top: 4px;
}

td, th {
  border: 1px solid var(--shadow);
  padding: 8px;
}

td span {
  float: right;
}

.move {
  animation: bounce 0.9s cubic-bezier(0.59, -0.67, 0.24, 0.79) 2;
  animation-direction: alternate;
}

@keyframes bounce {
  0% {
    transform: translateX(0px);
  }
  100% {
    transform: translateX(-70px);
  }
}
@media (max-width: 1199px) {
  td:first-child img {
    width: 28px;
    margin-top: 4px;
  }
}
@media (max-width: 991px) {
  td:first-child img {
    width: 32px;
    padding: 4px;
  }
  @keyframes bounce {
    0% {
      transform: translateX(0px);
    }
    100% {
      transform: translateX(-40px);
    }
  }
}
@media (max-width: 767px) {
  table {
    font-size: 14px;
  }
  td:first-child img {
    width: 43px;
    padding: 4px;
  }
  @keyframes bounce {
    0% {
      transform: translateX(0px);
    }
    100% {
      transform: translateX(-60px);
    }
  }
}
@media (max-width: 575px) {
  table {
    font-size: 12px;
  }
  td:first-child img {
    width: 25px;
    margin-top: 4px;
  }
  @keyframes bounce {
    0% {
      transform: translateX(0px);
    }
    100% {
      transform: translateX(-40px);
    }
  }
}
#skills::-webkit-scrollbar {
  width: 8px;
}

#skills::-webkit-scrollbar-track {
  border-radius: 8px;
  background-color: transparent;
  border: 1px solid var(--shadow);
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
}

#skills::-webkit-scrollbar-thumb {
  border-radius: 8px;
  background-color: var(--main);
  border: 2px solid var(--shadow);
}

#projects {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 92%;
  height: 90%;
  background-color: var(--primary);
  border-radius: 8px;
  border: 2px solid var(--shadow);
  padding: 24px;
  color: var(--text);
}

.flex-wrapper {
  display: flex;
  height: 100%;
  width: 100%;
}

.heading {
  font-size: 20px;
  text-transform: uppercase;
  font-weight: 600;
  margin: 48px 0 12px 0;
  text-decoration: underline;
}

.sidebar {
  flex: 1 0 0;
  text-align: center;
}
.sidebar:first-of-type ul > li {
  padding: 8px;
}

.projects-wrapper {
  flex: 5 0 0;
  margin: 0 10px 0 10px;
}
.projects-wrapper img {
  width: 14%;
}

.sidebar, .projects-wrapper {
  background: var(--bg);
  padding: 12px;
  border: 1px solid var(--shadow);
  border-radius: 8px;
}

.short-instruction {
  display: none;
}
.short-instruction.active {
  display: block;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.short-instruction.active.active h5 {
  overflow: hidden;
  border-right: 1px solid var(--text);
  white-space: nowrap;
  letter-spacing: 1.4px;
  animation: typing 1.5s steps(30, end), blink-caret 1s step-end infinite;
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}
@keyframes blink-caret {
  from, to {
    border-color: transparent;
  }
  50% {
    border-color: var(--text);
  }
}
.list {
  list-style-type: none;
  margin: 0;
  padding: 0;
}
.list .active {
  font-weight: bold;
}

.list-horizontal li {
  display: inline-block;
}

a {
  text-decoration: none;
}

.authors li {
  margin-bottom: 12px;
}

.project {
  display: none;
}
.project.active {
  display: block;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.link {
  color: var(--text);
  margin-left: 4px;
  position: relative;
  bottom: 12px;
}
.link:hover .link-border {
  width: 100%;
}
.link:hover {
  color: grey;
}

.project i {
  position: relative;
  bottom: 12px;
}

.link-border {
  position: absolute;
  top: 100%;
  left: 0px;
  width: 0;
  height: 1px;
  background: var(--text);
  background: linear-gradient(90deg, transparent, var(--text));
  transition: width 0.3s;
}

.project-title {
  margin-bottom: 12px;
}

.project-author {
  font-style: italic;
}

.project-tags {
  display: flex;
  margin-bottom: 30px;
}
.project-tags p {
  margin: 0 10px 0 0;
}

.tag-size-1 {
  font-size: 12px;
}

.tag-size-2 {
  font-size: 16px;
}

.tag-size-3 {
  font-size: 16px;
}

.tag-size-4 {
  font-size: 18px;
}

.tag-size-5 {
  font-size: 20px;
}

@media (max-width: 1199px) {
  .project {
    font-size: 14px;
  }
  .sidebar {
    font-size: 14px;
  }
  .heading {
    font-size: 16px;
  }
  .tag-size-1 {
    font-size: 11px;
  }
  .tag-size-2 {
    font-size: 15px;
  }
  .tag-size-3 {
    font-size: 15px;
  }
  .tag-size-4 {
    font-size: 17px;
  }
  .tag-size-5 {
    font-size: 19px;
  }
}
@media (max-width: 991px) {
  .project {
    font-size: 12px;
  }
  .sidebar {
    font-size: 12px;
  }
  .heading {
    font-size: 14px;
  }
  .tag-size-1 {
    font-size: 9px;
  }
  .tag-size-2 {
    font-size: 13px;
  }
  .tag-size-3 {
    font-size: 13px;
  }
  .tag-size-4 {
    font-size: 15px;
  }
  .tag-size-5 {
    font-size: 17px;
  }
}
@media (max-width: 767px) {
  .projects-wrapper {
    margin: 4px 0 4px 0;
  }
  .flex-wrapper {
    flex-direction: column;
  }
  .project {
    font-size: 12px;
  }
  .project.active {
    width: 85%;
  }
  .sidebar {
    font-size: 12px;
  }
  .heading {
    font-size: 14px;
    margin-top: 8px;
  }
  .list li {
    display: inline;
  }
  #projects {
    padding: 10px;
  }
  .sidebar {
    flex: 1.6 0 0;
  }
  .sidebar:first-of-type .heading {
    margin-top: 36px;
  }
}
@media (max-width: 575px) {
  .projects-wrapper {
    margin: 4px 0 4px 0;
    position: relative;
    overflow-y: auto;
  }
  .projects-wrapper img {
    width: 30%;
    margin: 0;
  }
  .flex-wrapper {
    flex-direction: column;
  }
  .project {
    font-size: 12px;
    height: 100%;
    margin: 20px 0 20px 0;
  }
  .project.active {
    width: 85%;
  }
  #projects-wrapper::-webkit-scrollbar {
    width: 8px;
  }
  #projects-wrapper::-webkit-scrollbar-track {
    border-radius: 8px;
    background-color: transparent;
    border: 1px solid var(--shadow);
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  }
  #projects-wrapper::-webkit-scrollbar-thumb {
    border-radius: 8px;
    background-color: var(--main);
    border: 2px solid var(--shadow);
  }
  .sidebar {
    font-size: 12px;
  }
  .heading {
    font-size: 14px;
  }
  .list {
    padding: 2px;
  }
  .list li {
    display: inline;
  }
  #projects {
    padding: 10px;
  }
  .sidebar {
    flex: 1.8 0 0;
    padding: 3px;
  }
  .sidebar .heading {
    margin: 0px;
  }
  .sidebar:first-of-type .heading {
    margin-top: 4px;
    padding: 2px;
  }
  .project-title {
    margin: 0 0 4px 0;
  }
}
/* RWD MAP */
:root {
  --bg-light: #FDF6EC;
  --main-light: #DAB88B;
  --primary-light: #F3E9DD;
  --secondary-light: linear-gradient(63deg, rgba(218,184,139,1) 0%, rgba(253,246,236,1) 100%);
  --text-light: #121716;
  --shadow-light: #121716;
  --bg-dark: #0F0E0E;
  --main-dark: #191919;
  --primary-dark: #2B2B2B;
  --secondary-dark: #0F0E0E;
  --shadow-dark: #423F3E;
  --text-dark: #CDCDCD;
}

@media (color-scheme: light) {
  :root {
    --bg: var(--bg-light);
    --main: var(--main-light);
    --primary: var(--primary-light);
    --secondary: var(--secondary-light);
    --text: var(--text-light);
    --shadow: var(--shadow-light);
  }
}
@media (color-scheme: dark) {
  :root {
    --bg: var(--bg-dark);
    --main: var(--main-dark);
    --primary: var(--primary-dark);
    --secondary: var(--secondary-dark);
    --text: var(--text-dark);
    --shadow: var(--shadow-dark);
  }
}
[theme-mode=light] {
  --bg: var(--bg-light);
  --main: var(--main-light);
  --primary: var(--primary-light);
  --secondary: var(--secondary-light);
  --text: var(--text-light);
  --shadow: var(--shadow-light);
}

[theme-mode=dark] {
  --bg: var(--bg-dark);
  --main: var(--main-dark);
  --primary: var(--primary-dark);
  --secondary: var(--secondary-dark);
  --text: var(--text-dark);
  --shadow: var(--shadow-dark);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

body {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--bg);
  margin: 0;
  font-family: "Merriweather", serif;
}

main {
  border-radius: 8px;
  box-shadow: 10px 10px 17px -5px var(--shadow);
  background-color: var(--bg);
  border: 2px solid var(--shadow);
  position: relative;
}

h1 {
  font-family: "Montserrat", sans-serif;
  text-transform: uppercase;
}

.home {
  background: var(--main);
  border-radius: 8px;
}

.box {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  border: 2px solid var(--shadow);
  border-radius: 8px;
  color: var(--text);
}
.box a {
  display: flex;
  height: 100%;
  width: 100%;
}
.box .icon-home {
  object-fit: contain;
  padding: 12px;
}
.box .icon-home:hover {
  transform: scale(1.1);
  transition: 0.9s;
}
.box:hover {
  background: var(--secondary);
  box-shadow: 0px 0px 15px 5px var(--shadow);
  cursor: pointer;
}
.box img {
  width: 100%;
}

.box-1 {
  overflow: auto;
  -ms-overflow-style: none; /* Internet Explorer 10+ */
  scrollbar-width: none; /* Firefox */
}
.box-1::-webkit-scrollbar {
  display: none; /* Safari and Chrome */
}
.box-1:hover {
  cursor: auto;
}
.box-1 span {
  font-size: 20px;
}

.box-2 img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  cursor: pointer;
  filter: sepia(50%);
  border-radius: 5px;
}

.info-board {
  width: 20%;
  height: 5%;
  background-color: rgba(0, 0, 0, 0.4);
  position: absolute;
  z-index: 1;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 14px;
}
.info-board:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

.description {
  background-color: rgba(0, 0, 0, 0.7);
  color: var(--text-dark);
  visibility: hidden;
  position: absolute;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  left: 0px;
}

.rotation-Y:hover {
  transition: transform 0.7s ease-in 0.5s;
  transform: rotateY(360deg);
}
.rotation-Y:hover .description {
  transition: visibility 0s ease-in 1.1s;
  visibility: visible;
  border-radius: 50%;
  height: 100%;
  width: 100%;
}
.rotation-Y:hover .icon-home {
  filter: blur(1.5px);
}

.rotation-X:hover {
  transition: transform 0.7s ease-in 0.5s;
  transform: rotateX(360deg);
}
.rotation-X:hover .description {
  transition: visibility 0s ease-in 1.1s;
  visibility: visible;
  border-radius: 5px;
  height: 100%;
  width: 100%;
}
.rotation-X:hover .icon-home {
  filter: blur(1.5px);
}

.r-box {
  border-radius: 50%;
  position: relative;
}

.profile-box .img-box {
  padding: 12px;
  width: 100%;
  height: 100%;
}
.profile-box img {
  margin-top: 5%;
  width: 50%;
  float: left;
}

.box-6 {
  box-shadow: inset 0px 0px 30px -10px rgb(0, 0, 0);
}
.box-6 .icon-home {
  padding: 30px;
}
.box-6:hover {
  cursor: auto;
}

.back-btn {
  position: absolute;
  top: 1px;
  left: 3px;
  background: var(--primary);
  color: var(--text);
  border: none;
  background: transparent;
  font-size: 26px;
  padding: 0px;
}
.back-btn:hover {
  cursor: pointer;
}
.back-btn:hover span {
  display: inline;
  position: relative;
  font-size: 16px;
  left: 12px;
  bottom: 5px;
  font-family: "Merriweather", serif;
}

form {
  height: 90%;
  width: 100%;
}

fieldset {
  height: 100%;
  border-radius: 8px;
}

legend {
  text-align: center;
  padding: 0 20px;
  text-transform: uppercase;
  font-size: 14px;
}

.content-form {
  display: flex;
  flex-direction: none;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.content-form > * {
  padding: 24px;
}

.input-group {
  padding: 8px;
}

input, textarea {
  width: 100%;
  margin-top: 3px;
  padding: 6px;
  border: 1px solid var(--shadow);
  background: transparent;
  color: var(--text);
}

textarea {
  height: 136px;
}

.btn-form {
  background: transparent;
  border: 1px solid var(--text);
  cursor: pointer;
  font-size: 14px;
}
.btn-form:hover {
  background-color: var(--primary);
}

@keyframes movingEnvelop {
  from {
    transform: translateX(-100px);
  }
  to {
    transform: translateX(100px);
  }
}
.confirm {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}
.confirm p {
  font-size: 18px;
  margin-top: 10px;
}
.confirm .envelop-img {
  width: 60%;
  padding: 0;
  animation: 1.8s linear 0s infinite running movingEnvelop;
}

.hide {
  display: none;
}

@media (min-width: 0) {
  form {
    display: none;
  }
  .contact-form {
    padding: 0;
  }
}
@media (min-width: 576px) {
  form {
    display: none;
  }
  .contact-form {
    padding: 0;
  }
}
@media (min-width: 768px) {
  .contact-form a {
    display: none;
  }
  form {
    display: block;
  }
  .contact-form {
    padding: 0 12px 0 12px;
  }
  .contact-form:hover {
    cursor: auto;
  }
}
@media (min-width: 0) {
  body {
    max-height: 75vh;
  }
  main {
    width: 340px;
    height: 653px;
    background-color: var(--main);
  }
  .container {
    display: grid;
    grid-template-columns: repeat(3, 100px);
    grid-template-rows: repeat(6, 100px);
    gap: 5px;
    padding: 12px;
  }
  .copyright {
    position: absolute;
    font-weight: 500;
    font-size: 9px;
    right: 4px;
    bottom: 0px;
  }
  .box {
    font-size: 11.2px;
  }
  .box h1 {
    font-size: 10.4px;
  }
  .box-1 {
    grid-column: 1/3;
    grid-row: 1/3;
  }
  .box-2 {
    grid-column: 2/4;
    grid-row: 6/7;
  }
  .box-3 {
    grid-column: 1/2;
    grid-row: 3/4;
  }
  .box-4 {
    grid-column: 2/3;
    grid-row: 3/4;
  }
  .box-5 {
    grid-column: 2/3;
    grid-row: 4/5;
  }
  .box-6 {
    grid-column: 1/2;
    grid-row: 6/7;
  }
  .box-7 {
    grid-column: 3/4;
    grid-row: 1/2;
  }
  .box-8 {
    grid-column: 1/2;
    grid-row: 4/5;
  }
  .box-9 {
    grid-column: 3/4;
    grid-row: 4/5;
  }
  .box-10 {
    grid-column: 1/3;
    grid-row: 5/6;
  }
  .box-11 {
    grid-column: 3/4;
    grid-row: 2/3;
  }
  .box-12 {
    grid-column: 3/4;
    grid-row: 5/6;
  }
  .box-13 {
    grid-column: 3/4;
    grid-row: 3/4;
  }
}
@media (min-width: 576px) {
  main {
    width: 482px;
    height: 930px;
  }
  .container {
    display: grid;
    grid-template-columns: repeat(3, 140px);
    grid-template-rows: repeat(6, 140px);
    gap: 10px;
    padding: 18px;
  }
  .copyright {
    font-size: 10px;
    right: 7px;
    bottom: 0px;
  }
  .box {
    font-size: 14.4px;
  }
  .box h1 {
    font-size: 16px;
  }
  .box-1 {
    grid-column: 1/3;
    grid-row: 1/3;
  }
  .box-2 {
    grid-column: 2/4;
    grid-row: 6/7;
  }
  .box-3 {
    grid-column: 1/2;
    grid-row: 3/4;
  }
  .box-4 {
    grid-column: 2/3;
    grid-row: 3/4;
  }
  .box-5 {
    grid-column: 2/3;
    grid-row: 4/5;
  }
  .box-6 {
    grid-column: 1/2;
    grid-row: 6/7;
  }
  .box-7 {
    grid-column: 3/4;
    grid-row: 1/2;
  }
  .box-8 {
    grid-column: 1/2;
    grid-row: 4/5;
  }
  .box-9 {
    grid-column: 3/4;
    grid-row: 4/5;
  }
  .box-10 {
    grid-column: 1/3;
    grid-row: 5/6;
  }
  .box-11 {
    grid-column: 3/4;
    grid-row: 2/3;
  }
  .box-12 {
    grid-column: 3/4;
    grid-row: 5/6;
  }
  .box-13 {
    grid-column: 3/4;
    grid-row: 3/4;
  }
}
@media (min-width: 768px) {
  body {
    max-height: 100vh;
  }
  main {
    width: 754px;
    height: 752px;
  }
  .container {
    display: grid;
    grid-template-columns: repeat(6, 110px);
    grid-template-rows: repeat(6, 110px);
    gap: 8px;
    padding: 24px;
  }
  .copyright {
    font-size: 11px;
  }
  .box {
    font-size: 14.4px;
  }
  .box-1 {
    grid-column: 1/4;
    grid-row: 1/4;
  }
  .box-2 {
    grid-column: 4/6;
    grid-row: 1/3;
  }
  .box-3 {
    grid-column: 5/6;
    grid-row: 6/7;
  }
  .box-4 {
    grid-column: 2/3;
    grid-row: 6/7;
  }
  .box-5 {
    grid-column: 1/8;
    grid-row: 4/6;
  }
  .box-6 {
    grid-column: 6/7;
    grid-row: 6/7;
  }
  .box-7 {
    grid-column: 6/7;
    grid-row: 1/2;
  }
  .box-8 {
    grid-column: 1/2;
    grid-row: 6/7;
  }
  .box-9 {
    grid-column: 3/4;
    grid-row: 6/7;
  }
  .box-10 {
    grid-column: 5/7;
    grid-row: 3/4;
  }
  .box-11 {
    grid-column: 4/5;
    grid-row: 6/7;
  }
  .box-12 {
    grid-column: 4/5;
    grid-row: 3/4;
  }
  .box-13 {
    grid-column: 6/7;
    grid-row: 2/3;
  }
}
@media (min-width: 992px) {
  main {
    width: 966px;
    height: 704px;
  }
  .container {
    display: grid;
    grid-template-columns: repeat(7, 120px);
    grid-template-rows: repeat(5, 120px);
    gap: 10px;
    padding: 30px;
  }
  .box {
    font-size: 14.4px;
  }
  .box h1 {
    font-size: 20.8px;
  }
  .box-1 {
    grid-column: 1/4;
    grid-row: 1/4;
  }
  .box-2 {
    grid-column: 4/7;
    grid-row: 1/3;
  }
  .box-3 {
    grid-column: 1/2;
    grid-row: 4/5;
  }
  .box-4 {
    grid-column: 2/3;
    grid-row: 4/5;
  }
  .box-5 {
    grid-column: 3/8;
    grid-row: 4/6;
  }
  .box-6 {
    grid-column: 5/6;
    grid-row: 3/4;
  }
  .box-7 {
    grid-column: 7/8;
    grid-row: 1/2;
  }
  .box-8 {
    grid-column: 1/2;
    grid-row: 5/6;
  }
  .box-9 {
    grid-column: 2/3;
    grid-row: 5/6;
  }
  .box-10 {
    grid-column: 6/7;
    grid-row: 3/4;
  }
  .box-11 {
    grid-column: 7/8;
    grid-row: 3/4;
  }
  .box-12 {
    grid-column: 4/5;
    grid-row: 3/4;
  }
  .box-13 {
    grid-column: 7/8;
    grid-row: 2/3;
  }
}
@media (min-width: 1200px) {
  main {
    width: 1170px;
    height: 860px;
  }
  .container {
    display: grid;
    grid-template-columns: repeat(7, 140px);
    grid-template-rows: repeat(5, 140px);
    gap: 15px;
    padding: 48px;
  }
  .copyright {
    bottom: 4px;
  }
  .box {
    font-size: 14.4px;
  }
  .box h1 {
    font-size: 25.6px;
  }
  .box-1 {
    grid-column: 1/4;
    grid-row: 1/4;
  }
  .box-2 {
    grid-column: 5/8;
    grid-row: 2/4;
  }
  .box-3 {
    grid-column: 1/2;
    grid-row: 4/5;
  }
  .box-4 {
    grid-column: 2/3;
    grid-row: 4/5;
  }
  .box-5 {
    grid-column: 3/8;
    grid-row: 4/6;
  }
  .box-6 {
    grid-column: 4/5;
    grid-row: 2/3;
  }
  .box-7 {
    grid-column: 4/5;
    grid-row: 1/2;
  }
  .box-8 {
    grid-column: 1/2;
    grid-row: 5/6;
  }
  .box-9 {
    grid-column: 2/3;
    grid-row: 5/6;
  }
  .box-10 {
    grid-column: 6/7;
    grid-row: 1/2;
  }
  .box-11 {
    grid-column: 5/6;
    grid-row: 1/2;
  }
  .box-12 {
    grid-column: 4/5;
    grid-row: 3/4;
  }
  .box-13 {
    grid-column: 7/8;
    grid-row: 1/2;
  }
}
#gallery .container {
  gap: 0px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 0px;
  border: 3px solid var(--shadow);
  border-radius: 8px;
}

.gallery img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  cursor: pointer;
}

.gallery:hover img {
  filter: grayscale(100%);
}

.gallery img:hover {
  filter: grayscale(0%);
}

.popup {
  z-index: -1;
}

.active {
  z-index: 1;
}

.popup__img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  border-radius: 5.3333333333px;
  position: absolute;
}

.popup__btn {
  position: absolute;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  border: none;
  background-color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  font-size: 14px;
}
.popup__btn:hover {
  background-color: rgba(255, 255, 255, 0.8);
}
.popup__btn.previous {
  top: 50%;
  left: 2%;
}
.popup__btn.next {
  right: 2%;
  top: 50%;
}

@media (min-width: 0) {
  #gallery .container {
    display: grid;
    grid-template-columns: repeat(3, 95px);
    grid-template-rows: repeat(6, 95px);
    gap: none;
  }
  .gallery img:nth-child(1) {
    grid-column: 1/3;
    grid-row: 1/3;
    clip-path: polygon(0 0, 100% 0, 0 100%);
  }
  .gallery img:nth-child(2) {
    grid-column: 1/3;
    grid-row: 2/4;
    clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  }
  .gallery img:nth-child(3) {
    grid-column: 2/4;
    grid-row: 1/3;
    clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  }
  .gallery img:nth-child(4) {
    grid-column: 3/4;
    grid-row: 1/2;
    clip-path: polygon(0 0, 100% 100%, 100% 0);
  }
  .gallery img:nth-child(5) {
    grid-column: 3/4;
    grid-row: 2/3;
    clip-path: polygon(100% 0, 0 100%, 100% 100%);
  }
  .gallery img:nth-child(6) {
    grid-column: 2/3;
    grid-row: 3/5;
    clip-path: polygon(100% 0, 0 50%, 100% 100%);
  }
  .gallery img:nth-child(7) {
    grid-column: 1/3;
    grid-row: 4/5;
    clip-path: polygon(0 0, 50% 0, 100% 100%, 50% 100%);
  }
  .gallery img:nth-child(8) {
    grid-column: 2/4;
    grid-row: 5/6;
    clip-path: polygon(0 0, 50% 0, 100% 100%, 50% 100%);
  }
  .gallery img:nth-child(9) {
    grid-column: 2/4;
    grid-row: 6/7;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 100%);
  }
  .gallery img:nth-child(10) {
    grid-column: 1/2;
    grid-row: 6/7;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
  }
  .gallery img:nth-child(11) {
    grid-column: 3/4;
    grid-row: 4/6;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 50%);
  }
  .gallery img:nth-child(12) {
    grid-column: 1/3;
    grid-row: 4/6;
    clip-path: polygon(0 0, 0 100%, 100% 100%);
  }
  .gallery img:nth-child(13) {
    grid-column: 3/4;
    grid-row: 3/4;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
  }
  .gallery img:nth-child(14) {
    grid-column: 1/2;
    grid-row: 3/4;
    clip-path: polygon(0 0, 0% 100%, 100% 100%);
  }
  .gallery img:nth-child(15) {
    grid-column: 2/3;
    grid-row: 6/7;
    clip-path: polygon(0 0, 0% 100%, 100% 100%);
  }
}
@media (min-width: 576px) {
  #gallery .container {
    display: grid;
    grid-template-columns: repeat(3, 145px);
    grid-template-rows: repeat(6, 145px);
    gap: none;
  }
  .gallery img:nth-child(1) {
    grid-column: 1/3;
    grid-row: 1/3;
    clip-path: polygon(0 0, 100% 0, 0 100%);
  }
  .gallery img:nth-child(2) {
    grid-column: 1/3;
    grid-row: 2/4;
    clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  }
  .gallery img:nth-child(3) {
    grid-column: 2/4;
    grid-row: 1/3;
    clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  }
  .gallery img:nth-child(4) {
    grid-column: 3/4;
    grid-row: 1/2;
    clip-path: polygon(0 0, 100% 100%, 100% 0);
  }
  .gallery img:nth-child(5) {
    grid-column: 3/4;
    grid-row: 2/3;
    clip-path: polygon(100% 0, 0 100%, 100% 100%);
  }
  .gallery img:nth-child(6) {
    grid-column: 2/3;
    grid-row: 3/5;
    clip-path: polygon(100% 0, 0 50%, 100% 100%);
  }
  .gallery img:nth-child(7) {
    grid-column: 1/3;
    grid-row: 4/5;
    clip-path: polygon(0 0, 50% 0, 100% 100%, 50% 100%);
  }
  .gallery img:nth-child(8) {
    grid-column: 2/4;
    grid-row: 5/6;
    clip-path: polygon(0 0, 50% 0, 100% 100%, 50% 100%);
  }
  .gallery img:nth-child(9) {
    grid-column: 2/4;
    grid-row: 6/7;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 100%);
  }
  .gallery img:nth-child(10) {
    grid-column: 1/2;
    grid-row: 6/7;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
  }
  .gallery img:nth-child(11) {
    grid-column: 3/4;
    grid-row: 4/6;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 50%);
  }
  .gallery img:nth-child(12) {
    grid-column: 1/3;
    grid-row: 4/6;
    clip-path: polygon(0 0, 0 100%, 100% 100%);
  }
  .gallery img:nth-child(13) {
    grid-column: 3/4;
    grid-row: 3/4;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
  }
  .gallery img:nth-child(14) {
    grid-column: 1/2;
    grid-row: 3/4;
    clip-path: polygon(0 0, 0% 100%, 100% 100%);
  }
  .gallery img:nth-child(15) {
    grid-column: 2/3;
    grid-row: 6/7;
    clip-path: polygon(0 0, 0% 100%, 100% 100%);
  }
}
@media (min-width: 768px) {
  #gallery .container {
    display: grid;
    grid-template-columns: repeat(6, 115px);
    grid-template-rows: repeat(6, 115px);
    gap: none;
  }
  .gallery img:nth-child(1) {
    grid-column: 1/3;
    grid-row: 1/3;
    clip-path: polygon(0 0, 100% 0, 0 100%);
  }
  .gallery img:nth-child(2) {
    grid-column: 1/3;
    grid-row: 2/4;
    clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  }
  .gallery img:nth-child(3) {
    grid-column: 2/4;
    grid-row: 1/3;
    clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  }
  .gallery img:nth-child(4) {
    grid-column: 3/5;
    grid-row: 1/3;
    clip-path: polygon(0 0, 100% 100%, 100% 0);
  }
  .gallery img:nth-child(5) {
    grid-column: 3/5;
    grid-row: 2/4;
    clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  }
  .gallery img:nth-child(6) {
    grid-column: 2/4;
    grid-row: 3/5;
    clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  }
  .gallery img:nth-child(7) {
    grid-column: 5/7;
    grid-row: 1/3;
    clip-path: polygon(100% 0, 0 100%, 0 0);
  }
  .gallery img:nth-child(8) {
    grid-column: 4/7;
    grid-row: 1/7;
    clip-path: polygon(100% 0, 0 50%, 100% 100%);
  }
  .gallery img:nth-child(9) {
    grid-column: 2/4;
    grid-row: 6/7;
    clip-path: polygon(100% 0, 50% 100%, 0 0);
  }
  .gallery img:nth-child(10) {
    grid-column: 1/3;
    grid-row: 6/7;
    clip-path: polygon(0 0, 50% 0, 100% 100%, 0% 100%);
  }
  .gallery img:nth-child(11) {
    grid-column: 3/5;
    grid-row: 6/7;
    clip-path: polygon(50% 0, 0 100%, 100% 100%);
  }
  .gallery img:nth-child(12) {
    grid-column: 1/4;
    grid-row: 3/6;
    clip-path: polygon(0 0, 0 100%, 100% 100%);
  }
  .gallery img:nth-child(13) {
    grid-column: 3/5;
    grid-row: 4/6;
    clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  }
  .gallery img:nth-child(14) {
    grid-column: 4/6;
    grid-row: 5/7;
    clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  }
  .gallery img:nth-child(15) {
    grid-column: 5/7;
    grid-row: 6/7;
    clip-path: polygon(50% 0, 0 100%, 100% 100%);
  }
}
@media (min-width: 992px) {
  #gallery .container {
    display: grid;
    grid-template-columns: repeat(7, 130px);
    grid-template-rows: repeat(5, 130px);
    gap: none;
  }
  .gallery img:nth-child(1) {
    grid-column: 1/3;
    grid-row: 1/3;
    clip-path: polygon(0 0, 100% 0, 0 100%);
  }
  .gallery img:nth-child(2) {
    grid-column: 1/3;
    grid-row: 2/4;
    clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  }
  .gallery img:nth-child(3) {
    grid-column: 2/4;
    grid-row: 1/3;
    clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  }
  .gallery img:nth-child(4) {
    grid-column: 3/5;
    grid-row: 1/3;
    clip-path: polygon(0 0, 100% 100%, 100% 0);
  }
  .gallery img:nth-child(5) {
    grid-column: 3/5;
    grid-row: 2/4;
    clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  }
  .gallery img:nth-child(6) {
    grid-column: 2/4;
    grid-row: 3/5;
    clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  }
  .gallery img:nth-child(7) {
    grid-column: 5/8;
    grid-row: 1/4;
    clip-path: polygon(0 0, 100% 100%, 100% 0);
  }
  .gallery img:nth-child(8) {
    grid-column: 4/6;
    grid-row: 2/6;
    clip-path: polygon(100% 0, 0 50%, 100% 100%);
  }
  .gallery img:nth-child(9) {
    grid-column: 6/8;
    grid-row: 2/4;
    clip-path: polygon(0 0, 0 100%, 100% 100%);
  }
  .gallery img:nth-child(10) {
    grid-column: 6/8;
    grid-row: 4/6;
    clip-path: polygon(0 0, 0 100%, 100% 0);
  }
  .gallery img:nth-child(11) {
    grid-column: 5/6;
    grid-row: 1/3;
    clip-path: polygon(0 0, 0 100%, 100% 50%);
  }
  .gallery img:nth-child(12) {
    grid-column: 1/4;
    grid-row: 3/6;
    clip-path: polygon(0 0, 0 100%, 100% 100%);
  }
  .gallery img:nth-child(13) {
    grid-column: 3/5;
    grid-row: 4/6;
    clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  }
  .gallery img:nth-child(14) {
    grid-column: 4/6;
    grid-row: 5/6;
    clip-path: polygon(50% 0, 0 100%, 100% 100%);
  }
  .gallery img:nth-child(15) {
    grid-column: 6/8;
    grid-row: 4/6;
    clip-path: polygon(100% 100%, 0 100%, 100% 0);
  }
}
@media (min-width: 1200px) {
  #gallery .container {
    display: grid;
    grid-template-columns: repeat(7, 158px);
    grid-template-rows: repeat(5, 158px);
    gap: none;
  }
  .gallery img:nth-child(1) {
    grid-column: 1/3;
    grid-row: 1/3;
    clip-path: polygon(0 0, 100% 0, 0 100%);
  }
  .gallery img:nth-child(2) {
    grid-column: 1/3;
    grid-row: 2/4;
    clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  }
  .gallery img:nth-child(3) {
    grid-column: 2/4;
    grid-row: 1/3;
    clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  }
  .gallery img:nth-child(4) {
    grid-column: 3/5;
    grid-row: 1/3;
    clip-path: polygon(0 0, 100% 100%, 100% 0);
  }
  .gallery img:nth-child(5) {
    grid-column: 3/5;
    grid-row: 2/4;
    clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  }
  .gallery img:nth-child(6) {
    grid-column: 2/4;
    grid-row: 3/5;
    clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  }
  .gallery img:nth-child(7) {
    grid-column: 5/8;
    grid-row: 1/4;
    clip-path: polygon(0 0, 100% 100%, 100% 0);
  }
  .gallery img:nth-child(8) {
    grid-column: 4/6;
    grid-row: 2/6;
    clip-path: polygon(100% 0, 0 50%, 100% 100%);
  }
  .gallery img:nth-child(9) {
    grid-column: 6/8;
    grid-row: 2/4;
    clip-path: polygon(0 0, 0 100%, 100% 100%);
  }
  .gallery img:nth-child(10) {
    grid-column: 6/8;
    grid-row: 4/6;
    clip-path: polygon(0 0, 0 100%, 100% 0);
  }
  .gallery img:nth-child(11) {
    grid-column: 5/6;
    grid-row: 1/3;
    clip-path: polygon(0 0, 0 100%, 100% 50%);
  }
  .gallery img:nth-child(12) {
    grid-column: 1/4;
    grid-row: 3/6;
    clip-path: polygon(0 0, 0 100%, 100% 100%);
  }
  .gallery img:nth-child(13) {
    grid-column: 3/5;
    grid-row: 4/6;
    clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  }
  .gallery img:nth-child(14) {
    grid-column: 4/6;
    grid-row: 5/6;
    clip-path: polygon(50% 0, 0 100%, 100% 100%);
  }
  .gallery img:nth-child(15) {
    grid-column: 6/8;
    grid-row: 4/6;
    clip-path: polygon(100% 100%, 0 100%, 100% 0);
  }
}
#certificates {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 92%;
  height: 90%;
  background-color: var(--primary);
  border-radius: 8px;
  border: 2px solid var(--shadow);
}

.certificates {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-evenly;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
}

.certificate {
  max-width: 320px;
  list-style-type: none;
  transform: scale(1);
  transition: transform 0.3s;
  flex: 30%;
  border: 4mm ridge #6b4b38;
  overflow: hidden;
  cursor: zoom-in;
}
.certificate::before {
  content: "";
  width: 100%;
  height: 100%;
  background: linear-gradient(to right top, rgba(131, 168, 183, 0.4), rgba(0, 0, 0, 0));
  position: absolute;
}
.certificate::after {
  content: "";
  height: 150%;
  width: 50px;
  position: absolute;
  background-color: rgba(255, 255, 255, 0.4);
  transform: rotate(20deg);
  transition: transform 0.6s;
  left: -120px;
  top: -50px;
}
.certificate:hover {
  transform: scale(1.05);
}
.certificate:hover:after {
  transform: translateX(500px) rotate(20deg);
}
.certificate img {
  height: 100%;
  width: 100%;
  margin-bottom: -4px;
}

.zoom {
  scale: 2.7;
  z-index: 1;
  position: absolute;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

@media (max-width: 1200px) {
  .certificate {
    margin: 10px;
    max-width: 250px;
  }
}
@media (max-width: 766px) {
  .zoom {
    scale: 1.4;
    z-index: 1;
    position: absolute;
    align-items: center;
    justify-content: center;
  }
}
#cv {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 92%;
  height: 90%;
  background-color: var(--primary);
  border-radius: 8px;
  border: 2px solid var(--shadow);
  overflow: hidden;
}

.cv-container {
  display: flex;
  flex-direction: row;
  position: relative;
  width: 100%;
  height: 100%;
}

aside {
  flex: 4;
  color: var(--text);
  background-color: var(--primary);
  overflow-y: auto;
}
aside h2 {
  text-align: center;
}
aside h2 i {
  margin-right: 15px;
}
aside p {
  margin: 0 8px 25px 12px;
}

.article {
  flex: 6;
  color: var(--text);
  background-color: var(--bg);
  overflow-y: auto;
  position: relative;
  padding-bottom: 20px;
}
.article > * {
  margin: 0 20px 0 20px;
}
.article h3 {
  text-decoration: underline;
  margin-bottom: 20px;
}
.article h3 i {
  margin-right: 15px;
}
.article h3:not(:first-child) {
  margin-top: 60px;
}

.informtion {
  margin-top: 20px;
}

.clause {
  margin-top: 70px;
  font-size: 11px;
}

a:link {
  text-decoration: none;
  color: var(--text);
}
a:link:hover {
  color: gray;
}

@media (max-width: 766px) {
  .cv-container {
    display: flex;
    flex-direction: column;
  }
  .cv-container .article {
    border-top: 2px solid var(--shadow);
  }
}
/* Scrollbars */
#about::-webkit-scrollbar {
  width: 8px;
}

#about::-webkit-scrollbar-track {
  border-radius: 8px;
  background-color: transparent;
  border: 1px solid var(--shadow);
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
}

#about::-webkit-scrollbar-thumb {
  border-radius: 8px;
  background-color: var(--main);
  border: 2px solid var(--shadow);
}

#experience::-webkit-scrollbar {
  width: 8px;
}

#experience::-webkit-scrollbar-track {
  border-radius: 8px;
  background-color: transparent;
  border: 1px solid var(--shadow);
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
}

#experience::-webkit-scrollbar-thumb {
  border-radius: 8px;
  background-color: var(--main);
  border: 2px solid var(--shadow);
}

.clock {
  position: relative;
  pointer-events: none;
  box-shadow: 0px 0px 10px 0px rgb(0, 0, 0);
}

.outer-clock-face {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
}

.outer-clock-face::after {
  -webkit-transform: rotate(90deg);
  -moz-transform: rotate(90deg);
  transform: rotate(90deg);
}

.outer-clock-face::after,
.outer-clock-face::before,
.outer-clock-face .marking {
  content: "";
  position: absolute;
  width: 3px;
  height: 100%;
  background: var(--text);
  left: 49%;
}

.outer-clock-face .marking {
  background: var(--shadow);
  width: 2px;
}

.outer-clock-face .marking.marking-one {
  -webkit-transform: rotate(30deg);
  -moz-transform: rotate(30deg);
  transform: rotate(30deg);
}

.outer-clock-face .marking.marking-two {
  -webkit-transform: rotate(60deg);
  -moz-transform: rotate(60deg);
  transform: rotate(60deg);
}

.outer-clock-face .marking.marking-three {
  -webkit-transform: rotate(120deg);
  -moz-transform: rotate(120deg);
  transform: rotate(120deg);
}

.outer-clock-face .marking.marking-four {
  -webkit-transform: rotate(150deg);
  -moz-transform: rotate(150deg);
  transform: rotate(150deg);
}

.inner-clock-face {
  position: absolute;
  top: 10%;
  left: 10%;
  width: 80%;
  height: 80%;
  background: var(--primary);
  -webkit-border-radius: 100%;
  -moz-border-radius: 100%;
  border-radius: 100%;
  z-index: 1;
}

.inner-clock-face::before {
  content: "";
  position: absolute;
  top: 52%;
  left: 55%;
  width: 10px;
  height: 10px;
  border-radius: 18px;
  margin-left: -9px;
  margin-top: -6px;
  background: var(--shadow);
  z-index: 11;
}

.hand {
  width: 50%;
  right: 50%;
  height: 4px;
  background: #cc0000;
  position: absolute;
  top: 50%;
  border-radius: 6px;
  transform-origin: 100%;
  transform: rotate(90deg);
  transition-timing-function: cubic-bezier(0.1, 2.7, 0.58, 1);
}

.hand.hour-hand {
  width: 30%;
  z-index: 3;
}

.hand.min-hand {
  height: 2px;
  z-index: 10;
  width: 45%;
}

.hand.second-hand {
  background: var(--text);
  width: 48%;
  height: 1px;
}

.box-10 {
  box-shadow: inset 0px 0px 30px -10px rgb(0, 0, 0);
}
.box-10:hover {
  cursor: auto;
}

#count {
  display: inline;
  color: #cc0000;
  font-size: 26px;
}

.counter {
  text-align: center;
}
.counter p, .counter sup {
  font-size: 12px;
  margin: 4px;
  background: -webkit-linear-gradient(138deg, rgb(151, 0, 212) 18%, rgb(180, 101, 0) 85%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.counter sup {
  display: inline;
}

/*# sourceMappingURL=style.css.map */
