* {
    font-family: 'Lexend Deca', sans-serif;
    text-decoration: none;
}

@keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}
body {
    min-height: 100vh; 
    display: grid;
    grid-template-rows: auto 1fr auto;
}

header {
    display: flex;
    align-items: center;
    padding-left: 5em;
    box-shadow: 0 -6px 10px 5px rgba(0,0,0,0.5);
}

header img {
    width: 5em;
}

header img:hover {
    opacity: 0.5;
}

div.shortcuts {
    margin-left: auto;
    padding-right: 5em;
    display: flex;
    align-items: center;
}

div.shortcuts i {
    display: none;
}

div.shortcuts i:hover {
    cursor: pointer;
}

div.shortcuts a {
    color: black;
    margin: 1em;
}

div.shortcuts a:hover {
  color: #555555;
}

div.shortcuts a:hover {
    cursor: pointer;
}

div.shortcuts label {
    padding: 1em;
}


a#enTranslator {
    display: none;
}

/* Home */ 

h1 {
    font-size: 180%;
}


article.home {
    display: flex;
    padding: 3em;
}

article.home article.introduction {
    max-width: 85%;
}

article.introduction div.headline {
    font-size: 280%;
    font-weight: bold;
}

article.introduction div.subtext {
    font-size: 140%;
    font-weight: bold;
    padding-bottom: 1em;
}

article.introduction div.intro-text {
    color: grey;
}

 /* Mac */
article.window-mac  {
    width: 35em;
    height: 25em;
    border: 1px solid #acacac;
    border-radius: 10px;
    box-shadow: 0px 0px 20px #acacac;
}

article.window-mac section.titlebar-mac {
    
  background: -webkit-linear-gradient(top, #ebebeb, #d5d5d5);
  height: 26px;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  display: flex;
  align-items: center;
}

article.window-mac div {
    margin: 4px;
}

article.window-mac .close {
    margin-left: 1em;
    background: #ff5c5c;
    width: 11px;
    height: 11px;
    border: 1px solid #e33e41;
    border-radius: 50%;
}

article.window-mac .zoom {
    background: #00ca56;
    width: 11px;
    height: 11px;
    border: 1px solid #14ae46;
    border-radius: 50%;
}
  
article.window-mac .minimize {
    background: #ffbd4c;
    width: 11px;
    height: 11px;
    border: 1px solid #e09e3e;
    border-radius: 50%;
}
/* End Mac */

 /* Windows */
article.window-windows  {
    width: 35em;
    height: 25em;
    border: 1px solid #acacac;
    border-radius: 2px;
    box-shadow: 0px 0px 20px #acacac;
    background-color: #0C0C0C;
    color: #FFFFFF;
}


article.window-windows section.titlebar-windows div {
    position: relative;
    float: right;
    width: 30px;
    height: 30px;
}

article.window-windows section.titlebar-windows {
    background: #FFFFFF;
    height: 30px;
    border: 1px solid #b1aeb1;
}

article.window-windows div:before,
article.window-windows div:after {
    top: 30%;
    right: 30%;
    bottom: 30%;
    left: 30%;
    content: " ";
    position: absolute;
    border-color: #CCCCCC;
    border-style: solid;
    border-width: 0 0 2px 0;
}

article.window-windows .minimize:before {
    border-bottom-width: 2px;
}
  
article.window-windows .maximize:before {
    border-width: 1px 1px 2px 1px;
}
  
article.window-windows .close:before,
article.window-windows .close:after {
    bottom: 50%;
    top: 50%;
}
  
article.window-windows .close:before {
    transform: rotate(45deg);
}
  
article.window-windows .close:after {
    transform: rotate(-45deg);
}
  
article.window-windows div:hover {
    background-color: #CCCCCC;
}
  
article.window-windows .close:hover {
    background-color: #E04343;
}
  
article.window-windows div:hover:after,
article.window-windows div:hover:before {
    border-color: #333333;
}
  
article.window-windows .close:hover:after,
article.window-windows .close:hover:before {
    border-color: #FFFFFF;
}
 /* End Windows */

 /*  Linux */
 article.window-linux {
    width: 35em;
    height: 25em;
    border: 1px solid #acacac;
    border-radius: 6px;
    box-shadow: 0px 0px 20px #acacac;
    background: rgba(56, 4, 40, .9);
    color: white;
  }
  
  section.titlebar-linux {
    background: linear-gradient(#504b45 0%,#3c3b37 100%);
    height: 25px;
    display: flex;
    align-items: center;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
  }

  section.titlebar-linux div{
    width: 12px;
    height: 12px;
    border-radius: 100%;
    background: linear-gradient(#7d7871 0%, #595953 100%);
    border: none;
    margin: 2px;
  }
  section.titlebar-linux div:hover {
    cursor: default;
  }
  section.titlebar-linux div.close {
    margin-left: 0.5em;
    background: linear-gradient(#f37458 0%, #de4c12 100%);
  }
  
 /* End Linux */

 article.code {
    padding-left: 0.5em;
    padding-top: 0.5em;
 }

 article.code output {
    font-family: 'JetBrains Mono', monospace;
}

article.bottom-articles {
    display: flex;
}

article.bottom-articles article div.headline {
    padding-top: 2em;
    font-size: 130%;
    font-weight: bold;
}

article.bottom-articles article div.subtext {
    font-size: 80%;
    color: grey;
}

section.field div.position {
    padding-top: 1em;
    font-weight: bold;
}

section.field div.company {
    font-size: 85%;
}

section.field div.timeline {
    padding-top: 0.2em;
    font-size: 80%;
    color: grey;
}


article.skills div.subtext {
    padding-bottom: 1em;
}

article.skills {
    padding-left: 5em;
}


div.icons img:hover{
    cursor: pointer;
}

/* Footer */
footer{
    padding-top: 0.5em;
    padding-bottom: 0.5em;
    display: flex;
    justify-content: center;
    box-shadow:  0 -1px 2px 0px rgba(0,0,0,0.1);
}

footer article {
    text-align: center;
}

footer article div.copyright {
    padding-top: 1em;
    font-size: 80%;
    color: grey;
}

footer a {
    color: #4b5563;
    padding: 0.2em;
    text-decoration: none;
    color: inherit;
}

footer a:hover {
    color: #6b7280;
}

footer img {
    display: none;
}

/* Projects */ 

article.projects {
    display: flex;
    flex-direction: column;
}

article.projects article.introduction {
    width:100%;
    padding-top: 2em;
}

article.projects article.introduction div.headline {
    text-align: center;
}

article.projects article.introduction div.subtext {
    text-align: center;
    font-size: 110%;
    color: gray;
    padding-bottom: 3em;
}

section.card {
    padding: 2em;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    width: 25em;
    
    border-radius: 1em;
    box-shadow: 0px 0px 20px #acacac;
}

.repo-card {
    padding: 1em;
    margin-left: auto;
    margin-right: auto;
    width: 20em;
    
    border-radius: 1em;
}

section.card div.title{
    font-size: 150%;
    font-weight: bold;
}
section.card div.description{
    color: gray;
}


/* Contact */ 


article.contact {
    display: flex;
    flex-direction: column;
}

article.contact article.introduction {
    width:100%;
    padding-top: 2em;
}

article.contact article.introduction div.headline {
    text-align: center;
}

article.contact article.introduction div.subtext {
    text-align: center;
}

article.button-container {
    display: flex;
    flex-wrap: wrap;
}
article.contact button {
    width: 20em;
}



@media screen and (prefers-color-scheme: dark) {
    main, header, footer, body, html, div.shortcuts a{
        background-color: #121212;
        color: #E2E2E2;
    }

    article.window-mac {
        background-color: #1e1e1e;
    }

    article.window-mac section.titlebar-mac {
        background: -webkit-linear-gradient(top, #39343d, #39343d);
        height: 26px;
        border-top-left-radius: 10px;
        border-top-right-radius: 10px;
        display: flex;
        align-items: center;
    }
}

@media screen and (max-width: 480px) {
    header {
        padding: 0.5em;
        font-size: 90%;
        padding-left: 0.1em;
    }

    header h1 {
        font-size: 160%;
    }

    div.shortcuts {
        display: none;
        margin: 0px;
        padding-right: 0em;

        
        margin-left: 1px;
        display: flex;
    }

    div.shortcuts i {
        display: inherit;
    }

    div.shortcuts a.home,a.projects,a.contact{
        margin: auto;
        padding: 0.1em;
    }
    

    article.home article.introduction {
        max-width: 100%;
    }

    article.skills {
        padding-left: 0em;
    }
    
    article.bottom-articles {
        display: block;
    }

    article.home {
        display: block;
        padding: 1em;
    }
    
    div.right {
        display: none;
    }
    
    /* Projects */

    article.projects {
        display: block;
        padding: 1em;
    }
    

    article.projects article.introduction {
        padding-top: 0.5em;
    }

    article.projects article.introduction div.headline {
        text-align: center;
    }

    article.projects article.introduction div.subtext {
        text-align: center;
        font-size: 110%;
        color: gray;
        padding-bottom: 2em;
    }

    section.card {
        padding: 2em;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
        width: 15em;
        
        border-radius: 1em;
        box-shadow: 0px 0px 20px #acacac;
    }

    .repo-card {
        padding: 1em;
        margin-left: auto;
        margin-right: auto;
        width: 10em;
        border-radius: 1em;
    }

    section.card div.title{
        font-size: 150%;
        font-weight: bold;
    }
    section.card div.description{
        color: gray;
    }


}