/* Challenge

   Make the navigation layout work
   on both mobile and large screens.

   Mobile-first, so mobile styles first,
   then add the large screen styles
   inside the existing media query

*/

:root {
    --clr-bg: #fffffe;
    --clr-bg-offset: #f2f4f6;
    --clr-bg-offset-fade: #f5faff;
    --clr-text: #1b2d45;
    --clr-text-offset: #3a6297;
    --clr-border: #d5e6fd;
    --clr-primary: #00bfa2;
    --clr-primary-offset: #00ceaf;
    --clr-secondary: #e71d44d9;
  }



*, *::before, *::after {
    box-sizing: border-box;
}

blockquote,
body,
h1,
h2,
h3,
h4,
li,
ol[class],
p,
ul[class] {
 margin:0
}

html {
    scroll-behavior:smooth;
    text-rendering:optimizeSpeed;
    line-height:1.5
   }

body {
    margin: 0;
    font-family: 'Fira Sans', sans-serif;
    font-size: 1rem;
    --back-header: rgba(241, 241, 241, 0.95);
    --back-header-high: rgba(248, 248, 248, 0.95);
    color: var(--clr-text);
    line-height: 1.8;
}

img {
    max-width: 100%;
}

h1, h2 {
    line-height: 1.2;
    /* font-weight: 600; */
    max-width: 100%;
}

h1 {
    font-size: 2.8rem;
    margin-top: 0;
    /* color: var(--clr-text-offset); */
}

h2 {
    font-size: 2rem;
}

p {
    padding: 0 0 1em 0;
    /* margin: 0 auto;
    max-width: 800px; */
}

.p_bajada {
    max-width: 800px;
    margin: 0 auto;
    /* padding:2em 0; */
}

#p_bajada_final {
    padding:0 0 3em 0;
}

.text-icon-wrapper{
    display: flex;
    flex-direction: row;
}


/* With flex-shrink 0 , shrink isn't allowed and keep the basis*/
.check {
    width: 2rem;
    flex-shrink: 0;
    flex-basis: 2rem;
    margin: 0 .2rem auto 0;
}

.btn:hover,
.btn:focus {
    opacity: .75; 
}

.container {
    width: 90%;
    max-width: 1600px;
    margin: 0 auto;
    /* added for nav-toggle positioning */
    position: relative;
}

.primary-content {
    width: 90%;
    margin: 0 auto;
}

header {
    position: relative;
    /* z-index: 10; */
    background: var(--clr-bg-offset);
    padding: 1em 0;
    text-align: center;
    box-shadow: rgba(3, 8, 20, 0.1) 0px 0.15rem 0.5rem, 
    rgba(2, 8, 20, 0.1) 0px 0.075rem 0.175rem;
}

.nav-toggle {
    cursor: pointer;
    border: 0;
    width: 3.5em;
    height: 3.5em;
    padding: 0em;
    border-radius: 50%;
    background: #dae6f3;
    justify-content: flex-start;
    position: absolute;
    left: 5px;
    /* top: 50%; */
    /* margin-top: -.4em */
}

.hamburger {
    width: 50%;
    position: relative;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    margin: 0 auto;
    height: 5px;
    background: var(--clr-text-offset);
    border-radius: 3px;
}

.hamburger::before,
.hamburger::after {
    content: '';
    width: 100%;
    transition: all 300ms ease-in-out;
}

.hamburger::before {
    transform: translateY(-10px);
}

.hamburger::after {
    transform: translateY(5px);
}

/* Animate hamburger icon */
.nav-toggle.active .hamburger {
    background-color: transparent;
    transition: ease-in-out 100ms;
  }

.nav-toggle.active .hamburger::before {
    transform: translateY(5px);
    transform: rotate(45deg);
  }
.nav-toggle.active .hamburger:after {
    transform: translateY(-5px) rotate(-45deg);
}
/* End of hamburger Animation */

   /* Works the same :)  */
.nav {
    width: 100%;
    visibility: hidden;
    height: 0;
    position: absolute;
    opacity:0;
    font-size:1.1rem;
    font-family: 'Roboto', sans-serif;
}

.nav--visible {
    visibility: visible;
    height: auto;
    position: relative;
    opacity: 1;
    transition: all ease-in 0.3s;
/*     moz-transition: all 0.3s ease; */
}

.nav__list {
    margin:0;
    padding: 0;
    list-style: none;
}

.nav__item {
    display: block;
    /* margin-top: 1em; */
}

.nav__item:first-child {
    margin-top: 1em;
}

.nav__link {
    display: block;
    color: var(--clr-text);
    font-weight: 500;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
    text-decoration: none;
    padding: 1em 0.5em;
}

.nav__link:hover, 
.nav__link:focus {
    /* opacity:.7; */
    background-color: #dae6f3;
    transition: all ease-in-out 300ms;
    border-radius: 4px;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.logo {
    display: inline-block;
    vertical-align: middle;
    margin-left: 3.5rem;
    /* margin: 0 auto; */
}


.hero {
    padding: 4em 0 2em;
    background-color: white;
    color: var(--clr-text);
    background: url("../img/trees_small_w1_20k-2.svg");
    background-size: 100% 100% ;
    /* max-width: 1600px;
    margin: 0 auto; */
}

.hero__text {
    width: 100%;
    font-size: 1.2rem;
    padding-left: 10px;
}

.bracket {
	color: var(--clr-text);
	opacity: .4;
	display: block;
    font-size: 3.5rem;
    font-weight: 700;
}

h1 > .bracket {
	display: inline;
}

p > .bracket {
	line-height: 1.3;
}

.main {

    /* background-color: rgba(255, 0, 0, 0.048); */
    background-color: rgba(242, 244, 246, 0.4);
    padding-top: 1rem;
}

.list_items {
    padding-bottom: 3em;
}

.list_items p {
    padding-bottom: 2em;
}

.item_wrapper {
    max-width:800px;
    margin:0 auto;
}

.subitem {
    padding-left: 2em;
}

/* To work in firefox and chrome, both have to be set.
   In firefox, flex-basis is enough, but in chrome width also has to be changed  */
.subitem .check {
    width:1.5rem;
    /* flex-basis: 1.5em; */
}

.icon-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    align-content: center;
    margin-top: 2.5em;
    margin-bottom: 4em;
}

.icon-wrapper > h2 {
    text-align: center;
}

.big-icon {
    max-width: 8em;
    margin-bottom: 1em;
}

/* Appearing disappearing text and animated icon */
.tooltip-container {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    width:100%;
    margin: 0 auto;
}


.tooltip-content {
    opacity: 0;
    transition: opacity ease-in 1.2s;
    border: solid 2px var(--clr-border);
    padding: .5em;
    margin: 0;
    background-color: var(--clr-bg-offset);
    border-radius: 5px;
}

#info_bubble {
    margin: 1rem 0;
}

.content-visible {
    opacity: 1;
}

.animated-icon {
    cursor: pointer;
    transition: transform 300ms ease-in-out;
}

.rotated {
    transform: rotate(180deg);
    transition: transform 300ms ease-in-out;
}
/* End of appearing disappearing text and animated icon */

.extend-item {
    padding-left: 2rem;
}
.important-text {
    /* font-family: "Fira Sans Light"; */
    font-weight: 500;
    font-style: italic;
}
/*****  code snippets *****/
.codehilite {
    overflow-x: scroll;
    color: #93a1a1; 
    background-color: #f8f4e6;
    padding: .5em .5em;
    border-radius: 4px;
    margin: 0 0 2em 0;
}
.codehilite  code {
    background-color: #f8f4e6;
}

/***** end *****/

/*****  Footer *****/
footer {
    background-color: var(--clr-bg-offset);
    padding: 2rem 0;
    margin-top: 16rem;
}

.footer__inner {
    display: flex;
    font-size: 1rem;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer__item {
    margin: 0 1rem;
}
/***** end *****/


code {
    background-color: var(--clr-bg-offset);
    font-family: 'source code pro';
    padding: 2px;
    color: var(--clr-text-offset);
    /* padding-bottom: 10px; */
    border-radius: 2px;
}
.material-icons {
    font-weight: bold;
    color: var(--clr-text-offset);
    /* font-size: 130%; */
    /* font-size: 2rem; */
}


.card {
    position: relative;
    max-width: 1200px;
    margin: 4em auto;
    /* position: relative; */
    font-family: "IBM plex sans", "Roboto";
    font-weight: 500;
    border: 1px #eceeef;
    /* border: 1px var(--clr-border); */
    padding: 1rem;
    background-color: var(--clr-bg-offset);
    box-shadow: rgba(3, 8, 20, 0.1) 0px 0.3rem 0.5rem, 
    rgba(2, 8, 20, 0.1) 0.2rem 0.2rem 0.2rem;
}

.my_info {
    display: flex;
    flex-direction: column;
}
.prof_pic_wrapper {
    width: 100%; /*or whatever you choose*/
    margin: 1.5em auto;
 }


.prof_pic_wrapper img {
    display: block;
    width: 100%;
    max-width: 250px; /*actual image width*/
    height: auto; /*maintain aspect ratio*/
    margin: auto; /*optional centering of image*/
}

.my_info p {
    margin: 0 auto;
    max-width: 800px; /*actual image width*/
}

/* Links */

.main a {
    /* text-decoration: none; */
    color: var(--clr-text-offset);
    font-weight: bold;
    display:inline-block;
    text-decoration-color: var(--clr-primary);
    text-decoration-thickness: 3px;
}

.main a:hover, .main a:focus {
    /* background-color: var(--clr-border); */
    color: var(--clr-primary-offset);
    transition: 300ms linear;
    border-radius: 4px;
    padding: 0 4px;
}
/* End Links */

.svg-wrap {
    width: 2rem;
    flex-shrink: 0;
    flex-basis: 2rem;
    margin: 0 .2rem auto 0;
}

#about_p {
    flex-shrink: 0;
    flex-basis:60%;

}

@media (min-width:800px) {

    body {
        font-size: 1.2rem;
        line-height: 1.8;
    }
    .nav-toggle {
        display: none;
    }

    .nav {
        visibility: visible;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        height: auto;
        position: relative;
        opacity:1;
    }

    .nav__list {
        display: flex;
        margin:0;
        align-content: center;
        align-items: center;
    }

    .nav__item {
        margin: 0 0 0 1.5em;
    }

    /* Reset the background for links when wide */
    .nav__link:hover, 
    .nav__link:focus {
        background-color: var(--back-header);               
    }
      /* bar over the menu items (when wide), see top: */
      .nav__link::after {
        content: '';
        display: block;
        height: 3px;
        background:var(--clr-text-offset);
        transform: scale(0, 1);
        transition: transform ease-in-out 150ms;
  }
  
    .nav__link:hover::after, .nav__link:focus::after{
        transform: scale(1,1);
  }

    .row {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        align-content: center;
    }

    .hero__text {
        width: 60%;
        font-size: 1.5rem;
    }

    header {
        padding: .4em 0;
    }
    

    h1 {
        font-size: 3.5rem;
    }

    .bracket {
        color: var(--clr-text);
        opacity: .4;
        display: block;
        font-size: 4.5rem;
        font-weight: 700;
    }

    .nav__item:first-child {
        margin-top: 0;
    }

    .icon-wrapper {
        flex-direction: row;
        align-items: flex-end;
        justify-content: center;
        align-items: center;
    }

    .big-icon {
        margin-bottom: 0;
        margin-right: 1em;
    }

    .logo {
        position: relative;
        margin-top: 0.5rem;
        margin-left: 0;
        /* height: 50px; */
        /* width: 100%; */
        /* vertical-align: middle; */
    }

    .img_patcher {
        padding: 1em;
    }

    .tooltip-content{
        padding: 1em 1em;
    }

    .footer__inner {
        justify-content: space-around;
        margin: 0 2rem;
    }

    .my_info {
        flex-direction: row;
    }

    .prof_pic_wrapper {
        width: 100%; /*or whatever you choose*/
        margin: auto;
     }
}


@media (min-width: 1200px) {

    body {
        font-size: 1.3rem;
        line-height: 1.8;
    }

    .hero__text p{
        padding-left: 1.1rem;
    }

    .list_items {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    column-gap: 3em;
    }

    .item_wrapper {
        max-width:100%;
        margin:0;
    }

    .check {
        width: 2.5rem;
        margin: 0 1rem auto 0;
    }

    .svg-wrap {
        width: 2.5rem;
        flex-shrink: 0;
        flex-basis: 2.5rem;
        margin: 0 1rem auto 0;
    }

    .subitem .check {
        width:2rem;
        /* flex-basis: 1.5em; */
    }
    
}

@media (max-width: 600px) {
    .container {
        width: 100%;
    }

    .hero__text p {
        padding-left:1em;
    }

    .check {
        width: 2rem;
        /* margin: 0 .5rem auto 0; */
    }

    .svg-wrap {
        width: 2rem;
        flex-shrink: 0;
        flex-basis: 2rem;
        /* margin: 0 0.5rem auto 0; */
    }

    .subitem .check {
        width:1.5rem;
        /* flex-basis: 1.5em; */
    }

}
