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


/* HTML Elements */
body {
    background: var(--color-bg-body) var(--img-container-bg) no-repeat center;
    background-size: cover;
    font-family: var(--font-body);
    position: relative;
}
html,
body {
    height: 100%;
    width: 100%;
}
header {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    padding-top: 2.2rem;
    text-align: right;
    width: 72vw;
}
main {
    display: flex;
    justify-content: space-around;
}
article {
    background: var(--color-bg-article);
    border: 1px solid var(--color-border-article);
    border-radius: 2rem;
    color: var(--color-txt-article);
    font-family: var(--font-article);
    margin: 4.8rem 1rem 1.2rem 2.4rem;
    min-width: 500px;
    padding: 2.1rem 3rem 0 3.2rem;
}

footer {
    background: transparent;
    bottom: .4rem;
    color: var(--color-txt-copyright);
    font-size: .8rem;
    font-style: italic;
    left: .4rem;
    position: fixed;
    z-index: -1;
}


/** Container Specific HTML Elements **/
header h1 {
    color: var(--color-txt-header-h1);
    font-family: var(--font-title);
    font-size: 3rem;
    padding: .7rem 2.4rem .4rem 2.4rem;
}

header h2 {
    color: var(--color-txt-header-h2);
    font-size: 1.6rem;
    font-style: italic;
    font-weight: 400;
    padding: .2rem 2.4rem 1rem 4.2rem;
}

article.index h2 {
    border-bottom: 10px solid;
    border-image-slice: 1;
    border-width: 5px;
    border-image-source: var(--color-border-h2);
    color: var(--color-txt-article-title);
    font-family: var(--font-article-title);
    font-size: 2.7rem;
    font-weight: 800;
    margin-bottom: .4rem;
    padding-bottom: .5rem;
}

article.index p {
    color: var(--color-txt-article);
    font-size: 1.46rem;
    font-weight: 200;
    line-height: 1.92rem;
    padding-top: 1rem;
}


/* Classed Elements */
/** Theme Elements **/
img.side-img {
    display: block;
    height: 100vh;
}

/** Layout **/
.sub-box {
    background: var(--color-bg-header-txt);
    background: var(--color-bg-header-txt-grad); 
}

.container {
    display: flex;
    height: 100vh;
    left: 0;
    top: 0;
}

#container-side-hero {
    align-self: end;
    box-shadow: 0 0 18px rgba(255, 255, 255, .4);
    overflow: hidden;
    width: 40vw;
}

article.index {
    background: var(--color-bg-article-index);
    border-radius: 2rem;
    margin: 4.8rem 1rem 1.2rem 2.4rem;
    padding: 2.1rem 3rem 0 3.2rem;
    width: 50%;
}

aside.index {
    background: var(--color-bg-article-index);
    border-radius: 2rem;
    margin: 2.8rem 2.4rem 1.2rem 1rem;
    padding: 2.1rem 2.1rem 2.8rem 2.1rem;
    width: 40%;
}


/** Purpose **/
/*** Social Connections Bar ***/
.index .connect {
    background: var(--color-bg-connect);
    background: var(--color-bg-connect-grad);
    border-radius: .8rem;
    list-style-type: none;
    margin: 2.2rem auto;
    text-align: center;

}
.index .connect:hover .title {
    text-shadow: 0 0 6px var(--color-shadow-connect-title);
}
.connect li {
    display: inline-block;
    margin: 0 .4rem;
}
.connect .title {
    color: var(--color-txt-connect);
    font-family: var(--font-connect-title);
    font-size: 3.8rem;
    font-weight: 800;
    margin: 0 1.2rem 0 -1.6rem;
    opacity: .6;
}
.connect:hover .title {
    opacity: 1;
}
.connect a:hover img {
    opacity: 1;
    transform: rotate(-5deg) scale(1.9) translateY(-.3rem);
    transition: all .3s ease-in-out;
}
.connect .icon {
    display: inline-block;
    padding: .6rem;
}
.connect .icon img {
    display: inline-block;
    height: 2.8rem;
    opacity: .6;
    width: 2.8rem;
}
.connect .label {
    display: none;
}
.connect .github img {
    filter: var(--color-github);
}


/** Theme Switch **/
.theme-switch-wrapper {
    align-items: center;
    display: flex;
    transition: all .3s ease-in-out;
    position: fixed;
    right: 1rem;
    top: 10px;
    transition: all .3s ease-in-out;
    z-index: 1000;
}

.theme-switch {
    display: inline-block;
    height: 34px;
    position: relative;
    width: 60px;
}

.theme-switch input {
    display:none;
}

.slider {
    background-color: #306332;
    bottom: 0;
    cursor: pointer;
    left: 0;
    overflow: hidden;
    position: absolute;
    right: 0;
    top: 0;
    transition: .4s;
}
.slider:before {
    background-color: #fff;
    border: 1px solid #ccc;
    bottom: 4px;
    content: "";
    height: 24px;
    left: 4px;
    position: absolute;
    transition: .4s;
    width: 24px;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}
.slider.round:before {
    border-radius: 50%;
}

.slider .icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.2s ease-in-out;
    font-size: 16px;
}
.slider .sun {
    left: 5px;
    opacity: 1;
    filter: brightness(0) saturate(100%) invert(80%) sepia(75%) saturate(552%) hue-rotate(359deg) brightness(103%) contrast(104%);
}
.slider .moon {
    right: 5px;
    opacity: 1;
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
}
.theme-switch input:checked + .slider .sun {
    opacity: 1;
}
.theme-switch input:checked + .slider .moon {
    opacity: 0;
}


/* Branding */
.brand-cj {
    font-family: "Ubuntu", sans-serif;
}
.brand-cj em {
    font-style: normal;
}
.brand-coder {
    font-weight: 700;
}
.brand-coder span {
    display: inline-block;
    font-size: 3.6rem;
    margin-left:-.2rem;
    transform: translate(.1rem, .6rem);
}

/** Specific Positions **/
/*** Header ***/
header .logo {
    display: block;
    left: 1.7rem;
    position: absolute;
    top: .3rem;
    width: 520px;
}


/*** Footer ***/
footer .brand-cj {
    font-size: 1rem;
    font-style: none;
    margin: 0 .1rem;
}
footer .brand-coder {
    color: var(--color-txt-copyright-coder);
}
footer .brand-coder span {
    font-size: 2.4rem;
    transform: translate(.1rem, .46rem);
}
footer .brand-jason {
    color: var(--color-txt-copyright-jason);
}


/* Smaller Displays */
@media screen and (max-width: 1880px) {
    article.index {
        margin: 2rem 0 5rem 0;
        padding: 1.3rem 1.6rem 0 1.8rem;
    }

    .connect .title {
        display: block;
        margin: 0;
    }
}

@media screen and (max-width: 1600px) {
    #container-side-hero img {
        display: none;
    }
}

@media screen and (max-width: 800px) {
    header {
        display: block;
        padding-top: 4.6rem;
        text-align: right;
        width: 100vw;
    }
    header h1 {
        display: none;
    }
    header h2 {
        display: none;
    }

    header .logo {
        left: .4rem;
        width: 210px;
    }
    .sub-box {
        font-size: .8em;
        max-width: 780px;
    }

    main {
        display: block;
        margin: auto ;
        padding: 2rem 0 3.4rem 0;
        width: 90vw;
    }

    article.index {
        font-size: 1.1rem;
        margin: auto;
        min-width: 240px;
        padding: 1rem 1rem 0 1.2rem;
        width: 100%;
    }
    article.index h2 {
        font-size: 2.2rem;
    }
    article.index p:nth-child(3) {
        display: none;
    }

    .connect .title {
        display: block;
        font-size: 3.4rem;
        margin: 0;
    }
}


/* Important UI Classes */
.hidden {
    display: none;
}
