@import url('https://fonts.googleapis.com/css2?family=Lato:wght@100;300;400;700;900&family=Roboto+Mono:wght@100;200;300&display=swap');

body {
  background-color: #e0e0e0;
  font-family: 'Lato', sans-serif;
}

a {
  text-decoration: none;
  color: black;
  padding: 5px 10px;
  cursor: pointer;
}

a:hover {
  background-color: black;
  color: white;
}

h1 {
  font-size: 50px;
  margin: 0 0 15px 0;
  padding: 0;

}

h2 {
  font-size: 50px;
  line-height: 0.85;
  padding: 0;
  margin: 0;
  font-weight: 300;
  text-align: left;
}

h3 {
  font-size: 25px;
  margin: 20px 0 10px 0;
}

h4 {
  margin: 15px 0 5px 0;
}

p {
  font-weight: 300;
  margin: 0 0 5px 0;
}

ul {
  list-style-position: inside;
  padding-left: 5px;
  margin: 5px 0 10px 0;
}

li {
  font-weight: 300;
}

.bold {
  font-weight: 700;
}

.language {
  text-align: left;
  margin-top: 50px;
  display: flex;
  flex-direction: column;
  margin-right: 210px;
}

/**********************/
/***** navigation *****/
/**********************/

/***** top-header *****/
.top-header {
  display: flex;
  justify-content: space-between;
  flex-direction: row;
}

.top-header h2 {
  padding-left: 15px;
  font-size: 35px;
}

.top-header h5 {
  font-family: 'Roboto Mono', monospace;
  font-weight: 300;
  font-size: 12px;
  text-align: left;
  margin: 0;
  padding: 0;
}

.top-header h6 {
  font-size: 15px;
  text-align: right;
  margin: 0;
  padding: 0 25px 0 0 ;
}

/***** navigation-btm *****/
.navigation-btm {
  text-align: left;
  font-weight: 300;
  position: absolute;
  bottom: 10%;
}

.navigation-btm p {
  text-align: left;
  padding-left: 10px;
}

.resume-link-bar {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.main-container {
  display: flex;
  text-align: center;
  /* padding: 20px; */
}

/****** portfolios-link-bar ******/
.portfolios-link-bar div {
  display: flex;
  flex-direction: column;
  margin-left: 10px;
  margin-top: 15px;
  width: 60%;
}

.portfolios-link-bar a {
  border: 1px solid black;
  color: black;
  margin-right: 10px;
  font-weight: 500;
  margin-bottom: 5px;
}

.portfolios-link-bar a:hover {
  color: white;
  background-color: black;
}

a.code-link {
  background-color: black;
  color: white;
}

a.code-link:hover {
  border: 1px white dashed;
}

.portfolios-link-bar a.resume-link {
  position: relative;
  bottom: -10px;
  font-size: 13px;
  border: none;
}

/**********************/
/***** main-body ******/
/**********************/
.main-body {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.header {
  /* margin: 50% 0 20% 0; */
}

#header-1 { margin-left: 15%;}
#header-2 { margin-left: 5%;}
#header-3 { margin-left: 20%;}
#header-4 { margin-left: 18%;}
#header-5 { margin-left: 2%;}
#header-6 { margin-left: -4%;}
#header-7 { margin-left: 15%;}
#header-8 { margin-left: 2%;}

.dynamic-text {
  text-align: left;
  margin-top: 30px;
}

/**********************/
/***** side-code ******/
/**********************/
.side-code {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.dashed-div {
  height: 450px;
  overflow: hidden;
  position: relative;
  width: 70%;
  margin-top: 50%;
  padding: 15px;
  border: none;
  background:
    /* Top border */
    repeating-linear-gradient(to right,
      black, black 10px,
      transparent 10px, transparent 26px) 0 0/100% 1px no-repeat,

    /* Bottom border */
    repeating-linear-gradient(to right,
      black, black 10px,
      transparent 10px, transparent 26px) 0 100%/100% 1px no-repeat,

    /* Left border */
    repeating-linear-gradient(to bottom,
      black, black 10px,
      transparent 10px, transparent 26px) 0 0/1px 100% no-repeat,

    /* Right border */
    repeating-linear-gradient(to bottom,
      black, black 10px,
      transparent 10px, transparent 26px) 100% 0/1px 100% no-repeat;
}

/**********************/
/******* decors *******/
/**********************/
.decor-left {
  display: flex;
  margin: 0;
}

.decor-right {
  position: absolute;
  bottom: 20px;
  right: 15px;
}

/****** Flex rules ******/
.row-6 {
  width: 6%;
}

.row-12 {
  width: 12.5%;
}

.row-25 {
  width: 25%;
}

.row-50 {
  width: 50%;
}

/******** square divs ********/
.reg-sq {
  margin-left: 13px;
  display: flex;
}

.black-square {
  cursor: pointer;
  height: 25px;
  width: 25px;
  background-color: black;
  border: 1px solid black;
  margin-right: 10px;
}

.white-square {
  cursor: pointer;
  height: 25px;
  width: 25px;
  background-color: none;
  border: 1px solid black;
}

.dashed-square {
  width: 25px;
  height: 25px;
  background-color: #e0e0e0;
  position: absolute;
}

#square-5 {
  margin-top: 25px;
}

#square-6 {
  width: 25px;
  height: 25px;
  background-color: #e0e0e0;
  position: absolute;
  bottom: 10px;
}

.corner {
  width: 5px;
  height: 5px;
  position: absolute;
}

.top-left {
  border-left: 1px dashed black;
  border-top: 1px dashed black;
  top: 0;
  left: 0;
}

.top-right {
  border-right: 1px dashed black;
  border-top: 1px dashed black;
  top: 0;
  right: 0;
}

.bottom-left {
  border-left: 1px dashed black;
  border-bottom: 1px dashed black;
  bottom: 0;
  left: 0;
}

.bottom-right {
  border-right: 1px dashed black;
  border-bottom: 1px dashed black;
  bottom: 0;
  right: 0;
}

#dollar {
  font-family: 'Roboto Mono', monospace;
  font-size: 20px;
  position: relative;
  top: -5px;
}

#former {
  font-size: 9px;
}

/**********************/
/******* typing *******/
/**********************/

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.blinking-cursor {
  animation: blink 1s infinite;
  display: inline-block;
  width: 2px;
  height: 1em;
  background-color: black;
  vertical-align: bottom;
}

.mock-code p {
  display: inline;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

/**********************/
/***** drk mode *******/
/**********************/

.dark-mode {
  background-color: #1f1f1f;
  color: white;
}

.dark-mode a{
  color: white;
}

.dark-mode a:hover{
  background-color: #40E0D0;
  color: #1f1f1f;
}

.dark-mode .portfolios-link-bar a:hover {
  color: #1f1f1f;
  background-color: #40E0D0;
}
.dark-mode a.code-link {
  background-color: white;
  color: #1f1f1f;
}

.dark-mode .dashed-div {
  background:
    repeating-linear-gradient(to right,
      #40E0D0, #40E0D0 10px,
      transparent 10px, transparent 26px) 0 0/100% 1px no-repeat,
    repeating-linear-gradient(to right,
      #40E0D0, #40E0D0 10px,
      transparent 10px, transparent 26px) 0 100%/100% 1px no-repeat,
    repeating-linear-gradient(to bottom,
      #40E0D0, #40E0D0 10px,
      transparent 10px, transparent 26px) 0 0/1px 100% no-repeat,
    repeating-linear-gradient(to bottom,
      #40E0D0, #40E0D0 10px,
      transparent 10px, transparent 26px) 100% 0/1px 100% no-repeat;
}

.dark-mode .black-square {
  background-color: #40E0D0;
  border: 1px solid #40E0D0;
}

.dark-mode .white-square {
  border: 1px solid #FF4500;
}

.dark-mode .top-left,
.dark-mode .top-right,
.dark-mode .bottom-left,
.dark-mode .bottom-right {
  border-color: #40E0D0;
}

.dark-mode .blinking-cursor {
  background-color: #40E0D0;
}

.dark-mode #square-6 {
  background-color: #1f1f1f;
}