* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* font */
    --primary-font: 'Merriweather', serif;
    --secondary-font: 'Montserrat', sans-serif;
    --tertiary-font: 'Sacramento', cursive;

    /* cursor */
    --light-cursor: url("../images/cursor-light.png"), auto;
    --link-cursor: url("../images/click.png"), auto;

    --light-primary-color: rgb(27, 46, 53);
    --light-primary-color-hover: rgba(27, 46, 53, 0.5);
    --color-white: rgb(250, 250, 250);

    --light-cursor: url("../images/cursor-light.png"), auto;
    --dark-cursor: url("../images/cursor-dark.png"), auto;
    --link-cursor: url("../images/grab.png"), auto;

    /* Dark theme */
    --dark-primary-bg-color: rgb(1, 4, 9);
    --dark-secondary-bg-color: rgb(13, 17, 23);

    --dark-heading-color: rgb(102, 73, 61);
    --dark-body-color: rgb(128, 128, 128);

    --link-bg-color: rgba(155, 179, 188, 0.4);
    --link-bg-color-hover: var(--light-primary-color-hover);
}

.container {
    padding: 2rem 0;
}

html,
body {
    cursor: var(--light-cursor);
}

html {
    scroll-behavior: smooth;
    transition: all 0.5s ease, color 0.5s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--primary-font);
}

main {
    position: relative;
    background: var(--color-white);
    /* background: var(--color-white); */
    transition: background 0.5s ease, color 0.5s ease;
}

section {
    height: 100vh;
    max-width: 100vw;
    position: relative;
}

h2 {
    font-size: 2.5rem;
    font-weight: normal;
}

img {
    -moz-user-select: -moz-none;
    -khtml-user-select: none;
    -webkit-user-select: none;
    -o-user-select: none;
    user-select: none;   
}

/* Links */
a:link,
a:visited,
a:hover,
a:active {
    text-decoration: none;
    color: var(--color-white);
    font-size: 18px;
    font-weight: 100;
    padding: 12px 21px;
    background: var(--link-bg-color);
    border-radius: 5px;
    cursor: var(--light-cursor);
}

a:hover {
    background: var(--link-bg-color-hover);
    transition: all 0.3s ease 0s;
}

.banner-bg {
    display: flex;
    flex-direction: column;
    position: relative;
    top: 0;
    left: 0;
    background: url("../images/banner8.png");
    background-size: 45%;
    background-repeat: no-repeat;
    background-position: 85% 50%;
    height: 100%;   
}

.headings {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    text-align: center;
}

.headings h1 {
    font-weight: 520;
}

.headings h2 {
    letter-spacing: .4rem;
    font-weight: 580;
}

.subheadings p {
    font-family: var(--secondary-font);
    font-weight: 550;
}

#skills {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
}

.skill-row {
    width: 50%;
    text-align: left;
    line-height: 2;
}

.code-img, .code-img2 {
    width: 25%;
    float: left;
    margin-right: 1rem;
}

.explainer {
    float: left;
}

.code-img2 {
    float: right;
}

.contact-bg {
    display: flex;
    flex-direction: column;
    position: relative;
    top: 0;
    left: 0;
    background: url("../images/mountain3.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center bottom;
    height: 100%;   
}

.footer-link {
    margin: 0 .5rem;
}

.cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 0 .5rem;
}

.cta h2 {
    margin-bottom: 2rem;
}

.cta h3 {
    margin-bottom: 3rem;
}

.cta p {
    margin-bottom: 2rem;
    line-height: 2;
    color: var(--light-primary-color)
}

.cta a {
    font-family: var(--secondary-font);
    font-weight: bold;
    background: var(--light-primary-color-hover);
}

.cta a:hover {
    background: var(--light-primary-color);
}

footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    flex: .2;
}

footer {
    color: var(--dark-primary-bg-color)
}

/* Navigation */
nav {
    position: fixed;
    top: 35%;
    right: 1.89%;
    z-index: 1;
    background-color: none;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    height: 40%;
}

.navBtn {
    position: relative;
    height: 38px;
    width: 45px;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center center;
    transition: transform 0.4s ease-in;
}

.navBtn:hover {
    transform: scale(1.8) !important;
}

#bannerBtn {
    background-image: url("../images/nav/id.png");
}

#skillsBtn {
    background-image: url("../images/nav/notes.png");
}

#toolsBtn {
    background-image: url("../images/nav/pencil.png");
}

#projectsBtn {
    background-image: url("../images/nav/think-out-of-the-box.png");
}

#contactBtn {
    background-image: url("../images/nav/chat.png");
}

.navBtn span {
    visibility: hidden;
    color: var(--light-primary-color);
    text-shadow:  black 1px 1px 30px;
    position: relative;
    border-radius: 2px;
    display: block;
    bottom: -95%;
    right: 0%;
    width: 45px;
    text-align: center;
    opacity: 1;
    font-size: 9px;
}

.navBtn:hover .tooltip-text {
    cursor:url("../images/cursor-light.png"), auto;
    visibility: visible;
}

.navBtn:hover:not(.tooltip-text) {
    z-index: 1;
}

/* Toggler */
.toggler {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: fixed;
    top: 3%;
    right: 1.79%;
    z-index: 1;
}

#toggle-theme > div.light-icon > span,
#toggle-theme > div.dark-icon > span {
    visibility: hidden;
    color: var(--light-primary-color);
    position: absolute;
    border-radius: 6px;
    padding: 1px 0 1px 7px;
    top: 16px;
    right: 67%;
    width: 100px;
    text-align: center;
    opacity: 0.7;
    font-size: 11px;
}

#toggle-theme > div.light-icon > img:hover ~ span,
#toggle-theme > div.dark-icon > img:hover~ span {
    cursor:url("../images/cursor-light.png"), auto;
    visibility: visible !important;
}

#checkbox {
    display: none;
}

#toggle-theme {
    height: 3.5rem;
    width: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 5px;
}

.dark #toggle-theme:hover {
    cursor: var(--dark-cursor);
}

.light-icon,
.dark-icon {
    width: 3rem;
    position: absolute;
    transition: transform 0.5s ease, opacity 0.3s ease, color 0.5s ease !important;
}

.light-icon:hover,
.dark-icon:hover {
    transform: scale(1.2) rotate(0.01deg) !important;
}

.light-icon img,
.dark-icon img {
    width: 100%;
}

.light-icon {
    opacity: 0;
    transform: translateY(90px);
}

.dark-icon {
    transform: translateY(0px);
}

#checkbox:checked ~ #toggle-theme .light-icon {
    opacity: 1;
    transform: translateY(0px);
}

#checkbox:checked ~ #toggle-theme .dark-icon {
    opacity: 0;
    transform: translateY(-90px);
}

/* Dark theme */
.dark {
    background: var(--dark-secondary-bg-color);
    cursor: var(--dark-cursor);
}

.dark #toggle-theme > div.light-icon > span,
.dark #toggle-theme > div.dark-icon > span { 
    color: var(--color-white);
}

.dark .navBtn {
    border-color: rgb(102, 73, 61);
}

.dark .navBtn span {
    color: var(--dark-body-color);
}

.dark #bannerBtn,
.dark #skillsBtn,
.dark #toolsBtn,
.dark #projectsBtn,
.dark #contactBtn {
    transition: all 0.5s ease;
}

.dark h1,
.dark h2,
.dark h3,
.dark h4,
.dark h5,
.dark h6 {
    color: var(--dark-heading-color);
}

.dark p,
.dark ol,
.dark ul {
    color: var(--dark-body-color)
}

.dark #skills,
.dark #projects {
    background: var(--dark-primary-bg-color);
}

.dark #update {
    color: rgb(1, 4, 9);
}
@media only screen and (min-height: 1289.33px) {
    nav {
        justify-content: space-evenly;
    }
}

@media only screen and (max-width: 691px){

    .navBtn {
        transition: transform 0.4s ease-in;
    }

    .navBtn span {
        visibility: hidden;
        color: var(--light-primary-color);
        text-shadow:  black 1px 1px 30px;
        position: absolute;
        border-radius: 2px;
        bottom: 25%;
        right: 15%;
        width: 32px;
        text-align: center;
        opacity: 1;
        font-size: 8px;
        background: rgba(155, 179, 188, 0.8);
        color: var(--dark-primary-bg-color);
    }

    .dark .navBtn span {
        background: rgba(155, 179, 188, 0.8);
        color: var(--dark-primary-bg-color);
    }

    .navBtn:hover {
        transform: scale(1.9);
    }

    .banner-bg {
        background-size: 80%;
        background-position: 30%;
    }

    .headings {
        justify-content: center;
        flex: 0.8;
        text-align: center;
    }

    .headings h1 {
        display: flex;
        justify-content: center;
        align-items: center;
        flex: 1.4;
    }

    .subheading {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        flex-direction: column;
        flex: .3;
    }

    .subheading p {
        text-align: center;
    }

    #skills {
        justify-content: space-around;
    }

    .skill-row {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-around;
        font-size: 14px;
        padding: 0 1.8rem;
    }

    .skill-row img,
    .skill-row h3 {
        margin-bottom: 1rem;
    }

    .skill-row p {
        line-height: 1.5;
    }


    #projects h2{
        font-size :1.875rem;
    }

    ul, ol {
        font-size: 12px;
        padding: 0 1rem ;
    }

    .cta p {
        text-align: center;
    }

    .container {
        padding: 0;
    }
}

/* Nest hub */
@media only screen and (min-width: 1024px) and (max-width: 1025px) and (min-height: 600px) and (max-height: 601px) {

}

/* Effects */
.blink {
    animation: blinker 2s linear infinite;
}
  
@keyframes blinker {
    50% {
        opacity: 0;
    }
}

@-webkit-keyframes hover {
    0% {
      -webkit-transform: scale(1.1);
      transform: scale(1.1);
    }
  
    25% {
      -webkit-transform: scale(1.2);
      transform: scale(1.2);
    }
  
    60% {
      -webkit-transform: scale(1.3);
      transform: scale(1.3);
    }
  
    100% {
      -webkit-transform: scale(1.4);
      transform: scale(1.4);
    }
  }
  
  @keyframes hover {
    0% {
      -webkit-transform: scale(1.1);
      -ms-transform: scale(1.1);
      transform: scale(1.1);
    }
  
    25% {
      -webkit-transform: scale(1.2);
      -ms-transform: scale(1.2);
      transform: scale(1.2);
    }
  
    60% {
      -webkit-transform: scale(1.3);
      -ms-transform: scale(1.3);
      transform: scale(1.3);
    }
  
    100% {
      -webkit-transform: scale(1.4);
      -ms-transform: scale(1.4);
      transform: scale(1.4);
    }
  }
  

/* Temp */
ul, ol {
    padding: 0 1.8rem;
    margin: 0 auto;
}

a.body-link {
    background: none;
    padding: 0;
    font-size: 14px;
    font-weight: 400;
    color: blue;
    text-decoration: underline;
}

#toggle-theme:hover {
    cursor: var(--light-cursor);
}

a:hover:not(.navBtn) {
    cursor: var(--link-cursor);
}

.unselectable {
    -moz-user-select: -moz-none;
    -khtml-user-select: none;
    -webkit-user-select: none;
    -o-user-select: none;
    user-select: none;
}
