/* Define global variables */
:root {
  --lcol-width: 24%;
  /* --accent-color: #078891; */
  --background-color: #101010;
  --accent-color: #098;
  --secondary-color: #C50;
  --hover-color: rgb(0, 144, 128, 0.3);
  --offwhite: #eee;
  --full-height: max(800px, min(100vh, 1020px));
  --third-width: max(320px, 30%)
}

/* -------------------------------------------------------------------------------------
    BASIC OBJECT STYLES
*/

* {
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  display: block;
  overflow: auto;
  /* background-color: var(--background-color); */
}

h1 {
  color: #fff;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent-color);
}

h2 {
  font-family: 'Courier New', monospace;
  color: #ddd;
  font-size: 1.5em;
}

h3 {
  color: #ccc;
  font-weight: 600;
}

h4 {
  margin-top: 50px;
  color: #585858;
}

p {
  color: var(--offwhite);
  margin-bottom: 0px;
}

/* Moving triangles */

body {
  margin: 0;
  background: #000;
  overflow: auto;
}

.triangle {
  position: fixed;
  top: 100%;
  background: rgba(255, 255, 255, 0.8);
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
  animation: floatUp linear infinite;
  animation-fill-mode: backwards;
  z-index: -1;
}

.triangle:nth-child(1) { left: 8%;  width: 14px; height: 14px; animation-duration: 12s; animation-delay: 0s;  transform: rotate(25deg); }
.triangle:nth-child(2) { left: 77%; width: 10px; height: 10px; animation-duration: 15s; animation-delay: 2s;  transform: rotate(300deg); }
.triangle:nth-child(3) { left: 55%; width: 16px; height: 16px; animation-duration: 18s; animation-delay: 4s;  transform: rotate(120deg); }
.triangle:nth-child(4) { left: 23%; width: 12px; height: 12px; animation-duration: 14s; animation-delay: 1s;  transform: rotate(350deg); }
.triangle:nth-child(5) { left: 64%; width: 8px;  height: 8px;  animation-duration: 10s; animation-delay: 3s;  transform: rotate(45deg); }
.triangle:nth-child(6) { left: 31%; width: 20px; height: 20px; animation-duration: 16s; animation-delay: 5s;  transform: rotate(200deg); }
.triangle:nth-child(7) { left: 12%; width: 18px; height: 18px; animation-duration: 11s; animation-delay: 7s;  transform: rotate(150deg); }
.triangle:nth-child(8) { left: 85%; width: 13px; height: 13px; animation-duration: 17s; animation-delay: 6s;  transform: rotate(90deg); }
.triangle:nth-child(9) { left: 41%; width: 15px; height: 15px; animation-duration: 19s; animation-delay: 1.5s; transform: rotate(270deg); }
.triangle:nth-child(10){ left: 70%; width: 9px;  height: 9px;  animation-duration: 13s; animation-delay: 2.5s; transform: rotate(310deg); }
.triangle:nth-child(11){ left: 95%; width: 17px; height: 17px; animation-duration: 20s; animation-delay: 8s;  transform: rotate(130deg); }
.triangle:nth-child(12){ left: 5%;  width: 11px; height: 11px; animation-duration: 12s; animation-delay: 3.5s; transform: rotate(15deg); }
.triangle:nth-child(13){ left: 49%; width: 21px; height: 21px; animation-duration: 15s; animation-delay: 4.5s; transform: rotate(65deg); }
.triangle:nth-child(14){ left: 29%; width: 7px;  height: 7px;  animation-duration: 9s;  animation-delay: 6.5s; transform: rotate(5deg); }
.triangle:nth-child(15){ left: 88%; width: 19px; height: 19px; animation-duration: 18s; animation-delay: 5.5s; transform: rotate(210deg); }
.triangle:nth-child(16){ left: 36%; width: 10px; height: 10px; animation-duration: 14s; animation-delay: 1.2s; transform: rotate(280deg); }

@keyframes floatUp {
  0% {
    top: 100%;
    opacity: 0;
  }
  10% {
    opacity: 0.8;
  }
  90% {
    opacity: 0.8;
  }
  100% {
    top: -20px;
    opacity: 0;
  }
}

/* -------------------------------------------------------------------------------------
    BASE CLASSES STYLE
*/

.section {
  display: grid;
  padding: 0px 20px;
  width: calc(100% - 100px);
  margin: auto;
}

.full {
  height: var(--full-height);
}

.buff {
  display: block;
  width: 10%;
  height: 16px;
}

.row {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
}

.float-left {
  width: 500px;
  text-align: center;
}

.float-right {
  width: calc(100% - 500px);
  height: 640px;
  display: flex;
  float: right;
  align-items: center;
  justify-content: center;
}

.category {
  width: 100%;
  border-radius: 16px;
  /* border: 1px solid var(--offwhite); */
  padding: 12px 16px;
  background-color: rgb(32, 32, 32, 0.5);
}

.category h1 {
  font-family: 'Courier New', monospace;
  color: #fff;
  font-size: 2.5em;
  margin-top: 8px;
}

.item {
  width: fit-content;
  height: fit-content;
  display: flex;
  padding: 20px;
  margin: 0px 5px;
  border-radius: 5px;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  border: 2px solid rgb(20, 20, 20, 0);
}

.item:hover {
  background-color: var(--hover-color);
}

.item img {
  width: 66px;
  height: 66px;
}

.item p {
  font-weight: bold;
  font-size: 0.8em;
  color: #fff;
}

/* -------------------------------------------------------------------------------------
    SKILLS SECTION STYLE
*/

#skills-container {
  width: 100%;
  height: var(--full-height);
}

#skills-container .float-left {
  height: 100%;
  width: 20%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

#skills-container .float-right {
  height: 100%;
  width: max(80%, 880px);
  padding-left: 48px;
}

#skills {
  display: block;
  height: fit-content;
}

#professional-card {
  width: min(480px, 100%);
  height: 480px;
  display: flex;
  flex-shrink: 0;
  padding: 20px;
  border: 4px  solid var(--accent-color);
  background-color: var(--offwhite);
  border-radius: 24px;
  align-items: center;
  justify-content: center;
}

#professional-card img{
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

#professional-card #prof-contact img {
  width: 50px;
  height: 50px;
  margin: 8px 4px;
}

#professional-card h2{
  color: #000;
  margin-bottom: 0px;
}

#professional-card h4{
  margin: 4px;
}

.content h1 {
  font-family: 'Courier New', monospace;
  color: #0F0F0F;
  border: 0px;
  padding: 0px;
}

.content {
  display: block;
  text-align: center;
}

#skill-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

#languages {
  width: 500px;
  text-align: center;
}

.about-skill {
  display: none;
  width: min(580px, 30%);
  min-width: 200px;
  padding: 10px 25px;
  margin-left: 32px;
  border: 3px dashed var(--secondary-color);
  max-height: 500px;
  overflow-y: auto;
  background-color: var(--background-color);
}

.about-skill h2 {
  font-size: xx-large;
  text-decoration: underline var(--secondary-color);
}

#projects .float-left{
  width: max(var(--third-width), 300px);
  flex-shrink: 0;
}

#projects .float-right {
  width: max(calc(100% - var(--third-width)), 740px);
  margin-left: 10px;
  padding: 0px 30px;
  border: 3px dashed var(--secondary-color);
  border-left: 0px;
  border-top: 0px;
  height: 100%;
  display: block;
  background-color: var(--background-color);
}

#projects h2 {
  font-size: xx-large;
  color: #FFF;
  margin-bottom: 0px;
}

.projects-preview {
  overflow: auto;
}

#projects .header {
  display: block;
  padding-bottom: 10px;
  padding-top: 10px;
  border-bottom: 2px solid var(--secondary-color);
  margin-bottom: 16px;
}

#projects .header h2 {
  color: #fff;
  border: 0px;
  display: inline;
  margin-right: 32px;
  margin-bottom: 0px;
  border-bottom: 0px;
  text-decoration: none;
}

#projects .cat-img {
  width: 28px;
  height: 28px;
  margin-right: 4px;
}

#projects a {
  color: var(--secondary-color);
}

.table-container {
  display: flex;
  align-items: center;
  height: calc(var(--full-height) - 150px);
}

.project-tab {
  width: 100%;
  height: 150px;
  margin: 10px 0px;
  border: 2px solid var(--accent-color);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.project-tab:hover {
  background-color: var(--hover-color);
}

.project-tab:active{
  background-color: #210;
}

.description {
  display: block;
  height: 85%;
  overflow: auto;
  padding-right: 8px;
}

.description img {
  width: 300px;
  height: auto;
  flex-shrink: 0;
  display: block;
  padding-top: 16px;
  margin: 16px auto;
}

#archery-img {
  width: 480px;
}

#ruta-img {
  width: 460px;
}

.selected {
  border: 2px solid var(--secondary-color);
}

.description h3 {
  display: inline;
}

#certificates .row {
  margin-bottom: 24px;
}

#certificates .card {
  background-color: var(--background-color);
  margin: 0px 8px;
}

#certificates .card:hover {
  background-color: #144;
}

.card {
  text-wrap: wrap;
  padding: 16px;
  border: 2px solid var(--secondary-color);
  border-radius: 6px;
  margin: 0px 16px;
  cursor: pointer;
}

.card img {
  width: 150px;
  height: 150px;
  margin-right: 16px;
  border-radius: 8px;
  flex-shrink: 0;
}

.card:hover {
  background-color: var(--hover-color);
}

.card h4 {
  color: #fff;
  margin-top: 16px;
}

#experience .card {
  width: max(60%, 800px);
  height: 300px;
  margin-top: 16px;
  background-color: var(--offwhite);
  cursor: auto;
  display: flex;
  border: 2px solid #555;
}

#experience img {
  width: 160px;
  height: auto;
}

#experience .float-left {
  width: 28%;
  display: flex;
  justify-content: center;
  align-items: center;
}

#experience .float-right {
  padding-left: 32px;
  height: 100%;
  width: 70%;
  justify-content: left;
}

#experience .card h2 {
  margin-bottom: 0px;
  color: #0F0F0F;
}

#experience .card h3 {
  margin-top: 0px;
  color: var(--secondary-color);
}

#experience .card p {
  color: #000;
}

#certificates-table {
  display: grid;
  grid-template-columns: repeat(3, 1fr);;
  column-gap: 20px;
  row-gap: 12px;
}

#contact  {
  justify-content: right;
}

#contact .row {
  width: fit-content;
  margin-right: 16px;
}

#contact .item {
  padding: 8px;
}

#contact img {
  width: 58px;
  height: 58px;
}

.table-container {
  width: 100%;
}

@media (max-width: 1200px) {
  .section {
    width: 100%;
  }

  #section-1 {
    padding-top: 16px;
    height: fit-content;
  }
  #skills-container {
    display: block;
    height: fit-content;
  }

  #skills-container .float-left {
    width: 100%;
    height: fit-content;
  }

  #skills-container .float-right {
    float: left;
    padding-left: 0px;
    width: 100%;
  }

  #archery-img {
    width: 300px;	
  }

  #ruta-img {
    width: 300px;
  }

  #category {
    margin: 0px auto;
  }

  #professional-card {
    margin-bottom: 16px;
    width: 40%;
  }

  #experience .card {
    height: 400px;
  }

  #experience img {
    width: 100px;
  }

  #certificates-table {
    grid-template-columns: repeat(2, 1fr);;
  }

}
