:root {
    --background-color: #f9f9f9;
    --text-color: #121212;
    --contrast-background: #eeeeee;
    --toggle-button-gray-scale: 100%;
    --toggle-button-gray-scale-hover: 0%;
    --icon-gray-scale: 0%;
    --tab-hover-color: #e3e3e3;
    --contrast-border-color: #c8c8c8;
    --dark-label: block;
    --light-label: none;

}

/* darkmode theme */
.dark-mode {
    --background-color: #252525;
    --text-color: #e0e0e0;
    --contrast-background: #202020;
    --toggle-button-gray-scale: 0%;
    --toggle-button-gray-scale-hover: 100%;
    --icon-gray-scale: 100%;
    --tab-hover-color: #333;
    --contrast-border-color: #888;
    --dark-label: none;
    --light-label: block;
}

/* universal styles */
html {
  scroll-behavior: smooth;
}

body {
    margin: 0px;
    color: var(--text-color);
    background-color: var(--background-color);
    font-family: "Atkinson Hyperlegible Mono", sans-serif;
    font-optical-sizing: auto;
    font-weight: 200;
    font-style: normal;
    line-height: 1.6;
}

a {
    color: var(--text-color);
    text-decoration: none;
    transition: transform 0.3s ease;
}

p {
    margin: 2rem 0px;
}

:target {
    scroll-margin-top: 150px;
}

.icon {
    padding: 0px 8px;
    transition: transform 0.3s ease;
}

.icon img {
    width: 36px;
    height: 36px;
}

.icon p {
    font-size: x-small;
    display: none;
    text-align: center;
    padding: 0px;
    margin: 0px;
}

#theme-toggle.icon {
    filter: grayscale(var(--toggle-button-gray-scale));
}


/* default fonts */
h1 {
    line-height: 1;
    font-size: 1.5rem;
}

h2 {
    font-size: 4rem;
    font-family: "Jersey 15", sans-serif;
    font-weight: 400;
    font-style: normal;
    line-height: 1;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

h3 {
    font-family: "Kode Mono", monospace;
    font-optical-sizing: auto;
    font-style: normal;
    font-weight: 600;
    font-size: 1.7rem;
    margin: 1rem 0px;
}

h4 {
    font-family: "Space Mono", monospace;
    font-style: normal;
    font-weight: 600;
    font-size: 1rem;
}

h5 {
    font-family: "Kode Mono", monospace;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    font-size: 1.25rem;
}

h6 {
    font-family: "Kode Mono", monospace;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
  font-size: 1rem;
}


/* nav styles */
.off-screen-menu {
    background-color: var(--contrast-background);
    color: var(--text-color);
    height: 100vh;
    min-height: 576px;
    width: 100%;
    max-width: 450px;
    position: fixed;
    top: 0;
    right: -450px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 2.5rem;
    transition: 0.5s ease;
}

.off-screen-menu.active {
    right: 0;
}

.off-screen-menu ul {
    padding: 0px 1rem;
}

.off-screen-menu li {
    list-style-type: none;
    padding: .5rem;
    width: 100%;
}

.off-screen-menu li a {
    display: block;
    transition: transform 0.3s ease;
}

nav {
    padding: 1rem;
    background-color: var(--contrast-background);
    display: grid;
    grid-template-columns: 100%;
    justify-items: center;
    position: sticky;
    top: 0;
    z-index: 10001;
    border-bottom: 1px solid var(--contrast-border-color);
}

.navbar {
    display: grid;
    grid-template-columns: auto 56px 56px 56px;
    justify-items: center;
    width: 100%;
}

.name {
    justify-self: start;
}

.ham-menu {
    height: 36px;
    width: 36px;
    position: relative;
    transition: transform 0.5s ease;
}

.ham-menu span {
    height: 5px;
    width: 100%;
    background-color: var(--text-color);
    border-radius: 25px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: 0.3s ease;
}

.ham-menu span:nth-child(1) {
    top: 25%;
}

.ham-menu span:nth-child(3) {
    top: 75%;
}

.ham-menu.active span:nth-child(1) {
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
}

.ham-menu.active span:nth-child(2) {
    opacity: 0%;
}

.ham-menu.active span:nth-child(3) {
    top: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
}


/* header styles */
header {
    background-image: url('./images/bg16-9.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
    max-height: 475px;
}

#landing {
    height: 100vh;
    max-height: 475px;
    margin: 0px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    justify-self: center;
}

#landing h2 {
    text-align: center;
}

#landing h3 {
    text-align: center;
}

#landing p {
    padding-right: 30%;
    padding-left: 10%;
}


/* main styles */
main {
    max-width: 800px;
    margin: 0 auto;
}

main section {
    border-top: 3px solid #0095FF;
    border-left: 3px solid #0095FF;
    border-radius: 10px;
    margin: 1rem;
    margin-top: 8rem;
    max-width: 90%;
    padding: 1rem;
}

#about img {
    min-width: 100px;
    max-width: 200px;
    width: 50%;
    height: auto;
    border-radius: 10px;
    border: 2px solid #a751fc;
    float: right;
    margin: 1rem;
}

#expertise {
    border-color: #f5980d;
}

#expertise h4 {
    border-bottom: 2px solid #63FD8C;
    margin-top: 48px;
    padding: 0px 2px;
}

#expertise h4 span {
    color: #FE00FF;
}

#expertise li {
    list-style: none;
}

.tab {
    background-color: var(--contrast-background);
    border-radius: 10px;
    border: 2px solid var(--contrast-border-color);
    box-shadow: 2px 2px 5px var(--contrast-border-color);
    padding: 1rem;
    margin: 2rem 1rem;
    max-width: 232px;
    min-width: 110px;
    transition: transform 0.5s ease;
}

.tab-header {
    border-bottom: 2px solid var(--contrast-border-color);
    text-align: center;
}

.tab h5 {
    margin: 1rem 0px;
}

.tab h6 {
    margin: 1rem 0px;
}

.tab p {
    margin-top: 1.5rem;
}

.tab img {
    width: 200px;
    height: auto;
    border-radius: 10px;
    border: 2px solid var(--contrast-border-color);
    margin-top: 1rem;

}

#projects {
    border-color: #FE00FF;
}

#projects.tab {
    min-width: 200px;
}

#experience {
    border-color: #fce165;
}

#experience h4 {
    border-bottom: 2px solid #a751fc;
    margin: 4rem 0px 0px 0px;
    padding: 0px 2px;
    padding-bottom: .75rem;
}

#experience h4:nth-child(1) {
    margin-top: 1.5rem;
}

#experience h5 {
    font-size: .9rem;
    margin: .75rem 0px 2rem;
    padding: 0px 2px;
}

#connect {
    border-color: #00ddff;
}

.three-column {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    justify-items: center;
}

footer {
    padding: 1rem;
    margin-top: 4rem;
    background-color: var(--contrast-background);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    font-size: .8rem;
    text-align: center;
    border-top: 1px solid var(--contrast-border-color);
}

footer a {
    color: #00ddff;
}


/* large screen styles */
@media (min-width: 601px) {
    .navbar {
        /* width: 70%; */
        min-height: 60px;
    }

    main {
        width: 70%;
    }

    #landing {
        width: 70%;
    }
    
    h1 a:hover {
        display: block;
        transform: scale(1.1);
    }

    .icon {
        filter: grayscale(var(--icon-gray-scale));
    }

    .icon:hover {
        transform: scale(1.2);
        filter: grayscale(0%);
    }

    .icon:hover p {
        display: block;
    }

    #theme-toggle.icon:hover {
        filter: grayscale(var(--toggle-button-gray-scale-hover));
    }

    #theme-toggle.icon:hover p.dark {
        display: var(--dark-label);
    }

    #theme-toggle.icon:hover p.light {
        display: var(--light-label);
    }

    .off-screen-menu li a:hover {
        transform: scale(1.2);
    }

    .ham-menu:hover {
        transform: scale(1.2);
    }

    .class-row {
        display: grid;
        grid-template-columns: 50% 50%;
        justify-items: center;
    }

    .tab:hover {
        background-color: var(--tab-hover-color);
        transform: scale(1.05);
    }

    #projects {
        display: grid;
        grid-template-columns: 100%;
        justify-items: center;
    }

    #projects h3 {
        justify-self: start;
    }

    #connect {
        min-height: 140px;
    } 
}