:root {
    --solig-red:#ff0000;
    --pico-text:#73828c;
    --tl-card-border:#993366;
    --tl-line-color:#ff9f55;
    --tl-marker-color:#ff9f55;
}

[data-theme="dark"] {
    --pico-bg:#11191f;
    --test-col:#00ff00;
    --nice-border:#c1d5f5;
    --navbar-bg: rgba(17, 25, 31, 0.8);
    --glow-color1:#224;
    --glow-color2:#112;
}

[data-theme="light"] {
    --pico-bg:#fff;
    --test-col:#0000ff;
    --nice-border:#3273dc;
    --navbar-bg: rgba(355, 355, 355, 0.8);
    --glow-color1:#bcf;
    --glow-color2:#cdf;
}


@media only screen and (min-width: 320px) and (max-width: 479px){
    /*small, phones*/
    html {
        font-size: 14px;
    }
    .timeline-wrapper {
        display: block;
    }
    .tl-card {
        margin: 1rem;
    }
    .nav-menu {
      display:inline;
    }
    .nav-list {
      display:none;
      position: absolute;
      top: 100%;
      right: 0px;
      background-color: var(--navbar-bg);
      border: 1px solid var(--nice-border);
      border-top: none;
      border-radius: 0px 0px 5px 5px;
      padding: 1rem;
    }
    .nav-list > li {
      display:block;
    }

}

@media only screen and (min-width: 480px) and (max-width: 767px){
    /*medium, tablets*/
    html {
        font-size: 14px;
    }
    .timeline-wrapper {
        display: block;
    }
    .tl-card {
        margin: 1rem;
    }
    .nav-menu {
      display:none;
    }
    .nav-list {
      display:inline;
    }

}

@media only screen and (min-width: 768px) and (max-width: 991px){
    /*large, laptops*/
    .timeline-wrapper {
      display: grid;
      grid-template-columns: 1fr 1px 1fr;
      gap: 0rem 1rem;
    }
    .nav-menu {
      display:none;
    }
    .nav-list {
      display:inline;
    }

}

@media only screen and (min-width: 992px){
    /*very large, monitors*/
    .timeline-wrapper {
      display: grid;
      grid-template-columns: 1fr 1px 1fr;
      gap: 0rem 1rem;
    }
    .nav-menu {
      display:none;
    }
    .nav-list {
      display:inline;
    }

}



html > * {
    padding: 0rem 1rem;
}

.emp-red {
    color: var(--solig-red);
}

/*-------------*/
/* navbar */
.navbar {
    position: sticky;
    top: 0px;
    backdrop-filter: saturate(180%) blur(20px);
    background-color: var(--navbar-bg);
    border-bottom: 1px solid var(--pico-bg);
    z-index: 500;
}
.nav-menu {
    max-width: 50%;
    width: 5rem;
    max-height: 90%;
    margin: auto 0.5rem;
    text-align: center;
    border: 1px solid var(--nice-border);
    border-radius: 5px;
    /*border-radius: 50px 5px;*/
}
.nav-list {

}


/*---------------*/
/*landing section*/

.landing-section {
    min-height: 80vh;
    padding: 1rem;
}
.landing-section > h4 {
    font-size: 1.2rem;
    padding: 0rem;
    margin: 0rem;
    color: var(--solig-red);
    font-style: italic;
}
.landing-section > h1 {
    font-size: 3rem;
    line-height: 5rem;
    padding: 0rem 0rem 1rem 0rem;
    margin: 0rem;
}

/*-------------*/
/*about section*/

.about-section {
    padding: 4rem 2rem;
}

/*----------------*/
/*timeline section*/

.timeline-section {
    padding: 5rem 0rem;
}

.timeline-section h1 {
    text-align: center;
    text-decoration: underline;
}

.tl-card {
  border: 1px solid var(--tl-card-border);
  padding: 1rem;
  text-align: right;
  position: relative;
  -webkit-box-shadow: 5px 5px 10px var(--glow-color1), -5px -5px 10px var(--glow-color2);
          box-shadow: 5px 5px 10px var(--glow-color1), -5px -5px 10px var(--glow-color2);
  border-radius: 0.5rem;
}

.tl-card:nth-of-type(even) {
  text-align: left;
}

.tl-marker {
  position: absolute;
  right: -1.5rem;
  top: 5px;
  color: var(--tl-marker-color);
}

.tl-card:nth-of-type(even) > .tl-marker {
  left: -1.5rem;
}

.tl-line {
  background-color: var(--tl-line-color);
  text-align: center;
}

/*-----------------*/
/* project section */

.project-section {
    padding: 5rem 0rem;
}
.project-section h1 {
    text-align: center;
    text-decoration: underline;
    margin: 0rem auto;
}

.projects-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    flex-wrap: wrap;
}
.projects-wrapper div {
    width: 30vw;
    background-color: #242446;
    padding: 1rem;
}
.projects-wrapper h3 {
    border-bottom: 1px solid var(--pico-text);
    padding: 0rem;
    margin: 0rem;
}
.projects-wrapper p {
    border-top: 1px solid var(--pico-text);
    padding: 0rem;
    margin: 0rem;
}
.projects-wrapper img {
    padding: 1rem;
}
.projects-wrapper a:hover {
    text-decoration: none;
}

/*------------------*/
/* contact-section  */
.contact-section {
    padding: 5rem 0rem;
}
.contact-section h2 {
    padding: 0rem;
    margin: 0rem;
}

footer {
    background-color: var(--pico-bg);
    padding: 1rem;
    margin: 0rem;
    text-align: center;
    border-top: 1px solid var(--nice-border);
}

/* -------------------------------------------------------------- */

/* extra things */
.to-top {   
    /*position*/ 
    cursor: pointer;
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: none;
    /*size*/
    height: 2rem;
    width: 2rem;
    /*text*/
    text-align: center;
    padding: 0rem 0.5rem;
    /*design*/
    background-color: var(--pico-bg);
    border: 1px solid var(--nice-border);
    border-radius: 50px;
    z-index: 500;
}
.to-top > span {
    display: none;
}

.to-top:hover {
    width: fit-content;
}
.to-top:hover > span {
    display: inline-block;
}


/*result pop up for after submit contact form*/
.resultpopup {
    position: absolute;
    top: 40%;
    left: 0px;
    width: 100%;
    background-color: var(--pico-bg);
    border: 1px solid var(--nice-border);
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    z-index: 500;

}
