:root {
    --font_bebas: "Bebas Neue", sans-serif;
    --console_h_s: 2.5em;
    --console_h_w: 400;
    --console_h_ms: 1.8em;
    --console_h_mw: 400;
    --console_t_s: 1.4em;
    --console_t_w: 400;
    --pagetitle_s: 4em;
    --pagetitle_w: 400;
    --title_s: 3em;
    --title_w: 400;
    --title_c: #c2cad7;
    --title_ms: 2em;
    --title_mw: 400;
    --title_mc: #c2cad7;
    --text_s: 1.4rem;
    --text_w: 100;
    --text_c: #657183;
    --skill_s: 1.4em;
    --skill_w: 200;
    --cvtitle_s: 2rem;
    --date_c: #8595ae;
    
}
  /* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Set core body defaults */
body {
    min-height: 100vh;
    width: 100%;
    text-rendering: optimizeSpeed;
    line-height: 1.5;
    margin: 0;
    background-color: #121212;
    background: -webkit-linear-gradient(to top right, #161618, #303032);  /* Chrome 10-25, Safari 5.1-6 */
    background: linear-gradient(to top right, #121212, #262628); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
    background-size: cover;
    background-position: center;
    background-attachment:fixed;
  }

/* Remove default margin */
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

/* -------- custom scoll bar -------- */ 
::-webkit-scrollbar {
    width: 30px;

}
::-webkit-scrollbar-track {
    background-color: #131313;
}
::-webkit-scrollbar-thumb {
    background-color: #303032;
    border-color: #131313;
    border-style: solid;
    border-width: 8px;
    border-radius: 4px;
}

/* -------- main layout -------- */ 
.mainwrapper {
  position: absolute;
  height: 100%;
  width: 100%;
  overflow-x: hidden;
}
.main-grid {
  display: grid;
  height:fit-content;
  grid-template-rows: 65px 90vh;
  grid-template-columns: 100%;
}
@media screen and (min-width: 75em) {
  .main-grid {
    display: grid;
    height:fit-content;
    grid-template-rows: 100%;
    grid-template-columns: 65px 1fr;
  }
}
.sidepanel {
background-image: url(img/sidebar_h_bg.png);
zoom: 50%;
display: flex;
justify-content: center;
align-items: center;
z-index: 100;
}
@media screen and (min-width: 75em) {
  .sidepanel {
    background-image: url(img/sidebar_bg.png);
    height: 100%;
  }
}
.content {
  position:relative;
  background: #485563;  /* fallback for old browsers */
  background: -webkit-linear-gradient(to top right, #161618, #303032);  /* Chrome 10-25, Safari 5.1-6 */
  background: linear-gradient(to top right, #121212, #262628); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
  background-size: cover;
  background-position: center;
  background-attachment:fixed;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-height: 100vh;
  height: 100%;
}

/* -------- side navigation -------- */ 
.nav-list {
  padding: 0;
  display: inline-block;
}
.nav-list ul {
  display: none;
}
.nav-list li {
  display: inline-block;
}
@media screen and (min-width: 75em) {
  .nav-list ul {
    display: none;
  }
}
@media screen and (min-width: 75em) {
  .nav-list li {
    padding: 0;
    display: block;
  }
}
.nav-list-item {
  width: 90px;
  height: 90px;
  border: 1px solid linear-gradient(to right, black, white);
  border-radius: 20px;
  background-color: #212121;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 15px;
  margin-bottom: 25px;
  margin-left: 15px;
  margin-right: 15px;
  box-shadow: 6px 6px 10px #1a1a1a, -6px -6px 10px #2c2c2c;
}
.nav-list-item:hover {
  background-color: #8595ae;
}
@media screen and (min-width: 75em) {
  .nav-list-item {
    width: 90px;
    height: 90px;
    border: 1px solid linear-gradient(to right, black, white);
    border-radius: 20px;
    background-color: #212121;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 15px;
    margin-bottom: 25px;
    margin-left: 15px;
    margin-right: 15px;
    box-shadow: 6px 6px 10px #1a1a1a, -6px -6px 10px #2c2c2c;
  }
}
.nav-item-home {
  width: 90px;
  height: 90px;
  display: block;
  background-image: url(img/nav_home.png);
  background-position: center;
  background-repeat: no-repeat;
}
.nav-item-home:hover {
  background-image: url(img/nav_home_hover.png);
}
.nav-item-profile {
  width: 90px;
  height: 90px;
  display: block;
  background-image: url(img/nav_profile.png);
  background-position: center;
  background-repeat: no-repeat;
}
.nav-item-profile:hover {
  background-image: url(img/nav_profile_hover.png);
}
.nav-item-cv {
  width: 90px;
  height: 90px;
  display: block;
  background-image: url(img/nav_cv.png);
  background-position: center;
  background-repeat: no-repeat;
}
.nav-item-cv:hover {
  background-image: url(img/nav_cv_hover.png);
}
.nav-item-portfolio {
  width: 90px;
  height: 90px;
  display: block;
  background-image: url(img/nav_portfolio.png);
  background-position: center;
  background-repeat: no-repeat;
}
.nav-item-portfolio:hover {
  background-image: url(img/nav_portfolio_hover.png);
}
.nav-item-mail {
  width: 90px;
  height: 90px;
  display: block;
  background-image: url(img/nav_mail.png);
  background-position: center;
  background-repeat: no-repeat;
}
.nav-item-mail:hover {
  background-image: url(img/nav_mail_hover.png);
}
.nav-link {
  width: 90px;
  height: 90px;
  display: block;
}
.sidepanel_buttons {
  margin: 0;
  padding: 0;
  position: absolute;
}
@media screen and (min-width: 75em) {
  .sidepanel_buttons {
    margin: 0;
    padding: 0;
    position: fixed;
    top: 50%;
    left: 0;
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
  }
}

/* -------- console effect -------- */ 
.console-container {
  display: block;
  font-family: var(--font_bebas);
  font-size: var(--console_t_s);
  font-weight: var(--console_t_w);
  color: #1bc5aa;
  text-shadow: 0 0 10px rgba(27, 197, 170, 0.25);
  text-align:left;
  height:200px;
  display: flex;
  flex-direction: column;
  position:absolute;
  bottom: 4em;
  margin-inline:auto;
  padding: 20px;
}
@media screen and (min-width: 75em) {
  .console-container {
    font-family: var(--font_bebas);
    font-size: var(--console_t_s);
    font-weight: var(--console_t_w);
    color: #1bc5aa;
    text-shadow: 0 0 10px rgba(27, 197, 170, 0.25);
    text-align:left;
    height:200px;
    display:flex;
    flex-direction: column;
    position:absolute;
    top:50%;
    bottom:0;
    left:10em;
    right:0;
    margin:auto;
  }
}
.console-underscore {
  /*display:inline-block;*/
  display: inline-block;
  position:relative;
  top:-0.10em;
  left:0px;
  font-size: 2em;
  color: #1bc5aa;
}
.hidden {
  opacity:0;
}
.home_name {
  font-family: var(--font_bebas);
  font-size: var(--console_h_ms);
  font-weight: var(--console_h_mw);
  color: #c2cad7;
  text-shadow: 0 0 10px rgba(27, 197, 170, 0);
  padding: 0;
  margin: 0;  
}
@media screen and (min-width: 75em) {
  .home_name {
    font-family: var(--font_bebas);
    font-size: var(--console_h_s);
    font-weight: var(--console_h_w);
    color: #c2cad7;
    text-shadow: 0 0 10px rgba(27, 197, 170, 0);
    padding: 0;
    margin: 0;  
  }
}
.home_text {
  font-family: var(--font_bebas);
  font-size: var(--console_t_s);
  font-weight: var(--console_t_w);
  color: #1bc5aa;
  text-shadow: 0 0 10px rgba(27, 197, 170, 0.25);
  position: absolute;
  top: 1em;
}
@media screen and (min-width: 75em) {
  .home_text {
    font-family: var(--font_bebas);
    font-size: var(--console_t_s);
    font-weight: var(--console_t_w);
    color: #1bc5aa;
    text-shadow: 0 0 10px rgba(27, 197, 170, 0.25);
    position: absolute;
    top: 1.4em;
  }
}
.home_container {
  display: flex;
  flex-direction: column;
  position: absolute;
  left: 25%;
  top: 25%;
}
.container {
  position: relative;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
  background-image: url(img/home_vertical_bg.png);
  background-size: 100%;
  background-repeat: no-repeat;
  background-position: bottom;
}
@media screen and (min-width: 75em) {
  .container {
    position: relative;
    width: 100%;
    height: 100vh;
    justify-content: center;
    align-items: center;
    background-image: url(img/home_bg.png);
    background-size: 100%;
    background-repeat: no-repeat;
  }
}
/*.container {
  margin: 0;
  position: absolute;
  top: 50%;
  width:100%;
  display: flex;
  justify-content: center;
}
@media screen and (min-width: 75em) {
  .container {
    margin: 0;
    position: absolute;
    top: 50%;
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
  }
}*/

/* -------- portfolio grid -------- */ 
.portfolio-grid {
  display: grid;
  width:100%;
  justify-content: center;
  gap: 1.5rem;
  grid-template-rows: repeat(3, 20em);
  grid-template-columns: 20em;
  margin-top: 2em;
  margin-bottom: 2em;
  background: #485563;  /* fallback for old browsers */
  background: -webkit-linear-gradient(to top right, #161618, #303032);  /* Chrome 10-25, Safari 5.1-6 */
  background: linear-gradient(to top right, #121212, #262628); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
  background-size: cover;
  background-position: center;
  background-attachment:fixed;
}
@media screen and (min-width: 75em) {
  .portfolio-grid {
    display: grid;
    width:100%;
    justify-content: center;
    -ms-transform: translateY(25%);
    transform: translateY(25%);
    grid-template-rows: 20em;
    grid-template-columns: 20em 20em 20em;
    background: none;
  }
}
.portfolio-thumb {
  background-color: #121212;
  display: flex;
  border-radius: 1em;
  justify-content: center;
  align-items: center;
}
.portfolio-thumb img {
  width: 19em;
  height: 19em;
  border-radius: 1em;
}
@media screen and (min-width: 75em) {
  .portfolio-thumb img {
    width: 19em;
    height: 19em;
    border-radius: 1em;
  }
}
.pagetitle {
  font-family: var(--font_bebas);
  font-weight: var(--pagetitle_w);
  font-size: var(--pagetitle_s);
  color: #485563;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 0.8em;
}
/* -------- profile grid -------- */ 

.profile-grid {
  display: grid;
  width:100%;
  justify-content: center;
  grid-template-rows: 22em 100%;
  grid-template-columns: 1fr;
  margin-top: 4em;
  padding-bottom: 1em;
  padding-left: 2em;
  padding-right: 2em;
  background: #485563;  /* fallback for old browsers */
  background: -webkit-linear-gradient(to top right, #161618, #303032);  /* Chrome 10-25, Safari 5.1-6 */
  background: linear-gradient(to top right, #121212, #262628); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
  background-size: cover;
  background-position: center;
  background-attachment:fixed;
}
@media screen and (min-width: 75em) {
  .profile-grid {
    display: grid;
    width:100%;
    justify-content: center;
    grid-template-rows: 1fr;
    grid-template-columns: 25em 55em;
    margin-top: 8em;
    padding-bottom: 5em;
    background: #485563;  /* fallback for old browsers */
    background: -webkit-linear-gradient(to top right, #161618, #303032);  /* Chrome 10-25, Safari 5.1-6 */
    background: linear-gradient(to top right, #121212, #262628); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
    background-size: cover;
    background-position: center;
    background-attachment:fixed;
  }
}
.profile_pic {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden
}
.profile_pic img {
  width: 20em;
  aspect-ratio: 1;
  flex-shrink: 0;
  min-width: 100%;
  min-height: 100%;
  border-radius: 0em 0em 0em 0em;
}
@media screen and (min-width: 75em) {
  .profile_pic img {
    width: 25rem;
    aspect-ratio: 1;
    border-radius: 1em 0em 0em 1em;
  }
}
.profile_title {
  font-size: var(--title_s);
  font-weight: var(--title_w);
  font-family: var(--font_bebas);
  color: var(--title_c);
  line-height: 1;
  display: flex;
}
@media screen and (min-width: 75em) {
  .profile_title {
    font-size: var(--title_s);
    font-weight: var(--title_w);
    font-family: var(--font_bebas);
    color: var(--title_c);
    line-height: 1;
    display: flex;
  }
}

.profile_content {
  background-color:rgba(0, 0, 0, 0.0);
  padding: 2em 0em 0em 0em;
  border-radius: 0em 0em 0em 0em;
}
@media screen and (min-width: 75em) {
  .profile_content {
    background-color:rgba(0, 0, 0, 0.15);
    padding: 2em;
    border-radius: 0em 1em 1em 0em;
  }
}
.profile_text {
  font-size: var(--text_s);
  font-weight: var(--text_w);
  font-family: var(--font_bebas);
  text-align: justify;
  word-break: break-all;
  line-height: 1em;
  color: var(--text_c);
  margin-top: 20px;
  margin-bottom: 40px;
}
.button {
  position: relative;
  display: flex;
  align-items: center;
  background: #8595ae;
  color: #121212;
  text-decoration: none;
  text-transform: uppercase;
  font-family: var(--font_bebas);
  font-size: 1.5em;
  letter-spacing: 0.1em;
  font-weight: 400;
  padding: 10px 30px;
  transition: 0.5s;
  border-radius: 10px;
  border: none;
  cursor: pointer;
}

/* -------- skills grid -------- */ 

.skills-grid {
  display: grid;
  width:100%;
  justify-content: center;
  grid-template-rows: 1fr 1fr;
  grid-template-columns: 1fr;
  margin-top: 2em;
  padding-bottom: 4em;
  padding-left: 2em;
  padding-right: 2em;
  /* background: #485563;  /* fallback for old browsers */
  /* background: -webkit-linear-gradient(to top right, #161618, #303032);  /* Chrome 10-25, Safari 5.1-6 */ 
  /* background: linear-gradient(to top right, #121212, #262628); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */ 
  /* background-size: cover; */
  /* background-position: center; */
  /* background-attachment:fixed; */
}
@media screen and (min-width: 75em) {
  .skills-grid {
    display: grid;
    width:100%;
    justify-content: center;
    grid-template-rows: 1fr;
    grid-template-columns: 40em 40em;
    padding-bottom: 5em;
  /* background: #485563;  /* fallback for old browsers */
  /* background: -webkit-linear-gradient(to top right, #161618, #303032);  /* Chrome 10-25, Safari 5.1-6 */ 
  /* background: linear-gradient(to top right, #121212, #262628); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */ 
  /* background-size: cover; */
  /* background-position: center; */
  /* background-attachment:fixed; */
  }
}
.skillswrapper {
  background-color:none;
  border-radius: 0;
  padding: 0;
  height:auto;
  width:auto;
}
@media screen and (min-width: 75em) {
  .skillswrapper {
    background-color:rgba(0, 0, 0, 0.25);
    border-radius: 1em;
    padding: 1em;
    height: fit-content;
    width:fit-content;
  }
}
.skills {
  display: grid;
  width:100%;
  justify-content: center;
  grid-template-rows: repeat(6, 2em);
  grid-template-columns: 1fr;
  background-color:rgba(0, 0, 0, 0);
  /* background: #485563;  /* fallback for old browsers */
  /* background: -webkit-linear-gradient(to top right, #161618, #303032);  /* Chrome 10-25, Safari 5.1-6 */ 
  /* background: linear-gradient(to top right, #121212, #262628); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */ 
  /* background-size: cover; */
  /* background-position: center; */
  /* background-attachment:fixed; */
}
@media screen and (min-width: 75em) {
  .skills {
    display: grid;
    width:100%;
    justify-content: center;
    gap: 1rem;
    padding-top: 1em;
    padding-bottom: 2em;
    grid-template-rows: repeat(6, 1.2em);
    grid-template-columns: 1fr;
    background-color:rgba(0, 0, 0, 0.15);
  /* background: #485563;  /* fallback for old browsers */
  /* background: -webkit-linear-gradient(to top right, #161618, #303032);  /* Chrome 10-25, Safari 5.1-6 */ 
  /* background: linear-gradient(to top right, #121212, #262628); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */ 
  /* background-size: cover; */
  /* background-position: center; */
  /* background-attachment:fixed; */
  }
}
 .skills:first-of-type {
  border-radius: 0em 0em 0em 0em;
  padding-left: 0em;
}
.skills:last-of-type {
  border-radius: 0em 0em 0em 0em;
  padding-right: 0em;
}
@media screen and (min-width: 75em) {
  .skills:first-of-type {
    border-radius: 1em 0em 0em 1em;
    padding-left: 1em;
  }
  .skills:last-of-type {
    border-radius: 0em 1em 1em 0em;
    padding-right: 1em;
  }
}
.skill {
  display: flex;
}
.skill_name {
  text-align: right;
  width: 50%;
  height: 1em;
  margin: 0.2em;
  font-family: var(--font_bebas);
  font-size: var(--skill_s);
  font-weight: var(--skill_w);
  color: var(--text_c);
}
.skill_level_container {
  background-color: #121212;
  width: 50%;
  height: 1em;
  margin: 0.6em;
  padding: 0.4em;
  text-align: left;
  border-radius: 0.4em;
}
.skill_level_bar {
  background-color: #1bc5aa;
  display: block;
  height: 100%;
}
.percent25 {
  width: 25%;
}
.percent50 {
  width: 50%;
}
.percent75 {
  width: 75%;
}
.percent100 {
  width: 100%
}
.skilltitle {
  font-family: var(--font_bebas);
  font-weight: var(--pagetitle_w);
  font-size: var(--pagetitle_s);
  color: #485563;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 0.4em;
  margin-bottom: 0.2em;
}

/* -------- resume layout -------- */ 

.resume-grid {
  display: grid;
  width:100%;
  grid-template-rows: repeat(2, 1fr);
  grid-template-columns: 1fr;
  padding-block: 2rem;
  width: min(95%, 70rem);
  margin-inline: auto;
}
.resume-section {
  display: flex;
  flex-direction: column;
  width:100%;
  height: 100%;
}
.resume {
  position: relative;
  display: flex;
  flex-direction: row;
  min-height: 12em;
  height: fit-content;
  width: 100%;
  margin: 1em;
}
.resume-cap {
  background-color: #8595ae;
  border-radius: 10px 0px 0px 10px;
  width: 10px;
  height:100%;
  width: 10px;
  position:relative;
  display: block;
}
.resume-content {
  display: flex;
  flex-direction: column;
  padding: 1em;
  width: 100%;
  margin-right: 1em;
  background-color:rgba(0, 0, 0, 0.15);
  border-radius: 0em 1em 1em 0em;
}
.resume_title {
  font-size: var(--cvtitle_s);
  font-weight: var(--title_w);
  font-family: var(--font_bebas);
  color: var(--title_c);
  line-height: 1;
}
.resume_date {
  font-size: var(--text_s);
  font-weight: var(--title_w);
  font-family: var(--font_bebas);
  color: var(--date_c);
  line-height: 1;
}
.resume_text {
  font-size: var(--text_s);
  font-weight: var(--text_w);
  font-family: var(--font_bebas);
  color: var(--text_c);
  line-height: 1;
}
@media screen and (min-width: 75em) {
  .resume-grid {
    display: grid;
    width:100%;
    grid-template-rows: 1fr;
    grid-template-columns: repeat(2, 1fr);
    padding-block: 2rem;
    width: min(95%, 70rem);
    margin-inline: auto;
  }
}

/* -------- contact layout -------- */ 

.contactform {
 margin-top: 2em;
}
.contact-input {
  width: 360px;
  height: 50px;
  border: none;
  outline: none;
  padding-left: 25px;
  background-color: #121212;
  border-radius: 0.5em;
  color: #8595ae;
}
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active{
    -webkit-box-shadow: 0 0 0px 100px #121212 inset;
    transition: background-color 5000s ease-in-out 0s;
    -webkit-text-fill-color: #8595ae !important;
}
.contact-left {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 20px;
}
.contact-left textarea {
  height: 200px;
  padding-top: 15px;
  border-radius: 0.5em;
  margin-bottom: 1.6em;
}
.contact-input:focus {
  border: 2px solid #1bc5aa;
}
.contact-input::placeholder {
  color:#485563;
}
@media screen and (min-width: 75em) {
  .contact-input {
    width: 400px;
    height: 50px;
    border: none;
    outline: none;
    padding-left: 25px;
    background-color: #121212;
    border-radius: 0.5em;
    color: #8595ae;
  }
}