/* 
SETUP
*/
@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@200;300;400;500;600;700;800&display=swap");

body {
  all: unset;
}

* {
  font-family: "Manrope", sans-serif;
}

/* 
VARS
*/

:root {
}

/* 
STYLES
*/

* {
  font-size: 10pt;
}

hr {
  border: none;
  border-top: 1px solid #ccc;
  margin: 1.5rem 0 0 0;
}

h1 {
  margin-bottom: 0.5rem;
  font-size: 25pt;
  color: #323332;
}
h2 {
  font-size: 15pt;
  color: #70706f;
}
h3 {
  font-size: 10.5pt;
}

header p {
  margin-top: 0;
}

.description {
  color: #494a4b;
}

/* configure for printing */

@media print {
  .description {
    color: #494a4b;
  }
}

.outer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100vh;
  width: 100vw;
  background-color: #000000;
  overflow-y: scroll;
}

/* configure for printing */

@media print {
  .outer-container {
    all: unset;
    background-color: #fafafa;
    width: 100%;
  }
}

.inner-container {
  margin-top: 3rem;
  margin-bottom: 10rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: #fafafa;
  width: 210mm;
  max-width: 85vw;
  border-radius: 5px;
  box-shadow: rgba(255, 255, 255, 0.1) 0px 1px 1px 0px inset,
    rgba(50, 50, 93, 0.25) 0px 50px 100px -20px,
    rgba(0, 0, 0, 0.3) 0px 30px 60px -30px;
  padding: 0.5rem 2rem;
  padding-bottom: 2rem;
}

/* configure for printing */

@media print {
  .inner-container {
    all: unset;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #fafafa;
    /* padding: 0.5rem; */
    width: 100%;
  }
}

.main {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
}
@media only screen and (max-width: 525px) {
  .main {
    display: flex;
    flex-direction: column;
  }
}

.main ul {
  list-style: "- ";
  padding: 0;
  margin: 0.5rem 0;
  padding-left: 0.6rem;
}

/* for print A4 these need to be moved */

@media print {

  @page {
    margin-top:0;
    
 }
  #software-apps {
    page-break-after: always;
  }
  #hill-interiors-hr {
    page-break-after: always;
  }

  /* #tritan, #soft-skills{
    margin-top: -11.1vh;
  } */

}

.projects ul {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-auto-rows: auto;
  gap: 1rem;
  list-style: none;
  padding: 0;
  justify-content: space-between;
}

/* change for print */

@media print {
  .projects ul {
    gap: 0.5rem;
  }
}

@media only screen and (max-width: 725px) {
  .projects ul {
    grid-template-columns: 1fr 1fr;
  }
}
@media only screen and (max-width: 500px) {
  .projects ul {
    grid-template-columns: 1fr;
  }
}

.projects h3 {
  margin: 0 0 0.2rem 0;
}

.project-content {
  height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-links {
  height: min-content;
  display: flex;
  gap: 1rem;
  align-self: bottom;
}

.project-links ul {
  list-style: none;
}

@media only screen and (max-width: 500px) {
  .project-links {
    height: 100%;
    display: flex;
    gap: 1rem;
    align-self: top;
  }
}

/* change for print */

@media print {
  #fig-autocomplete {
    transform: translateY(-18px);
  }
}

#small-screen-separator {
  display: none;
}
@media only screen and (max-width: 525px) {
  #small-screen-separator {
    display: initial;
    height: min-content;
  }
}

footer {
  padding-top: 2rem;
}

/* change for print */

@media print {
  footer {
    transform: translateY(-10px);
    padding-top: 0.5rem;
  }
  #footer-hr {
    transform: translateY(-15px);
    margin: 0;
  }
}

/* this is a print version */

#print-only {
  display: none;
}

#print-only,
#print-only * {
  font-size: 7pt !important;
  opacity: 0.7;
}

#print-only a {
  cursor: pointer !important;
}

@media print {
  #print-only {
    display: initial;
    position: absolute;
    top: 0;
    /* horizontally center absolute object */
    left: 50%;
    transform: translateX(-50%);
  }
}

#continued-on-next-page {
  display: none;
}
/* continued on next page print */

@media print {
  #continued-on-next-page {
    display: initial;
    position: absolute;
    top: 245mm;
    /* horizontally center absolute object */
    left: 50%;
    transform: translateX(-50%);
  }
}

/* 
* custom link style
*/

a {
  text-decoration: none;
  color: #0074d9;
}

.underline {
  position: relative;
}

.underline::before {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 1px;
  background-color: #0074d9;
  transition: width 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

@media (hover: hover) and (pointer: fine) {
  .underline:hover::before {
    left: 0;
    right: auto;
    width: 100%;
  }
}
