:root {
    --basecolor1: black;
    --basecolor2: white;
    --highlightcolor1: #BCEDCA;
    --highlightcolor2: #F7DF99;
    --contrastcolor1: #23637A;

    --color1: #23637A;
    --color2: #B76480;
    --color3: #BCEDCA;
    --color4: #DB9F8D;
    --color5: #F7DF99;
}

[data-theme="dark"] {
    --basecolor1: white;
    --basecolor2: black;
    --highlightcolor1: #23637A;
    --highlightcolor2: #B76480;
    --contrastcolor1: #BCEDCA;
}

body, html {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    color: var(--basecolor1);
    background-color: var(--basecolor2);
    min-width: 300px;
    scroll-behavior: smooth;
}

* {
    margin: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
}

html {
    overflow-y: scroll;
    overflow-x: hidden;
    position: relative;
}

.highlight {
    background: linear-gradient(180deg,rgba(255,255,255,0) 50%, var(--highlightcolor1) 50%);
}

hr {
    border: 2px solid var(--basecolor1);
    background-color: var(--basecolor1);
}

::-moz-selection { /* Code for Firefox */
    color: var(--basecolor2);
    background: var(--contrastcolor1);
}
  
::selection {
    color: var(--basecolor2);
    background: var(--contrastcolor1);
}

/*::::::::::::::::::::::::::::::::::::::::::::::::
                    NAV
::::::::::::::::::::::::::::::::::::::::::::::::*/

nav {
    top: 25px;
    display: flex;
    float: left;
    background-color: none;
    position: fixed;
    z-index: 2;
}


.nav-items {
    top: -25px;
    color: var(--basecolor1);
    position: absolute;
    height: 100vh;
    width: 220px;
    background-color: var(--basecolor2);
    display: flex;
    padding-top: 120px;
    flex-direction: column;
    align-items: left;
    transform: translateX(calc(-100% - 5px));
    transition: transform 0.2s ease-in;
    border-right: 4px solid var(--basecolor1);
    box-shadow: 5px 0px var(--highlightcolor1);    
}

.nav-active {
    transform: translateX(0%);
}
    /*::::::::::::::::::::::::::::::::::::::::::::::::
                    LIGHT/DARK SWITCH
    ::::::::::::::::::::::::::::::::::::::::::::::::*/
    .switch {
        transform: translate(75px, 0);
        right: 50px;
        box-sizing: content-box;
        position: relative;
        display: inline-block;
        width: 60px;
        height: 36px;
        border: 4px solid var(--basecolor1);
        background-color: var(--highlightcolor1);
        border-radius: 22px;

        -moz-transition: all 0.2s ease;
        -o-transition: all 0.2s ease;
        -webkit-transition: all 0.2s ease;
        transition: all 0.2s ease;
    }

    .switch::after {
        content: '';
        position: absolute;
        width: 24px;
        height: 24px;
        border-radius: 50%;
        border: 4px solid var(--basecolor1);
        background-color: var(--basecolor2);
        top: 2px;
        left: 2px;

        -moz-transition: all 0.2s ease;
        -o-transition: all 0.2s ease;
        -webkit-transition: all 0.2s ease;
        transition: all 0.2s ease;
    }

    .switch::before {
        position: absolute;
        content: 'light/dark mode';
        font-style: italic;
        transform: translateX(70px);
    }

    .checkbox:checked + .switch::after {
        left: calc(50% - 4px);

    }

    .checkbox:checked + .switch {
    background-color: var(--highlightcolor1);
    }

    .checkbox {
    display: none;
    }

    /*::::::::::::::::::::::::::::::::::::::::::::::::
                    NAV BUTTON LINKS
    ::::::::::::::::::::::::::::::::::::::::::::::::*/
    .nav-items div {
        padding: 0;
        margin-top: 15px;
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .nav-items button {
        color: var(--basecolor1);
        font-size: 18px;
        background-color: var(--basecolor2);
        border: none;
        outline: none;
        cursor: pointer;
        user-select: none;
        font-weight: bold;
        margin-left: 25px;
        margin-top: 15px;
        display: inline-flex;
    }

    .nav-items a {
        text-decoration: none;
    }

    .nav-items button div {
        margin: 0;
        margin-left: 5px;
    }

    .nav-items button div:hover span {
        background: linear-gradient(180deg,rgba(255,255,255,0) 50%, var(--highlightcolor1) 50%);
    }

    /*::::::::::::::::::::::::::::::::::::::::::::::::
                        BURGER MENU
    ::::::::::::::::::::::::::::::::::::::::::::::::*/
    .burger {
        display: grid;
        place-items: center;
        transform: translate(25px, 0);
        width: 50px;
        height: 50px;
        background-color: var(--basecolor2);
        box-shadow: 5px 5px var(--highlightcolor1);
        border: 4px solid var(--basecolor1);
        cursor: pointer;
    }


    .burger .lines div {
        width: 30px;
        height: 3px;
        background-color: var(--basecolor1);
        margin: 6px;
        transition: transform 0.2s ease-in;
    }

    .toggle .line1 {
        transform: translate(0, 8.5px) rotate(-45deg);
    }
    .toggle .line2 {
        transform: rotate(-45deg);
    }
    .toggle .line3 {
        transform: translate(0, -8.5px) rotate(45deg);
    }

    
/*::::::::::::::::::::::::::::::::::::::::::::::::
                    HEADER
::::::::::::::::::::::::::::::::::::::::::::::::*/

#canvas-overlay {
    position: absolute;
    display: grid;
    place-items: center;
    width: 100vw;
    height: 100vh;
    text-align: center;
    pointer-events: none;
    overflow: auto;
    color: var(--basecolor1)
}

#canvas-overlay div {
    margin: 30px;
}

#canvas-overlay h2 h3 {
    overflow: auto;
    resize: both;
}

/*::::::::::::::::::::::::::::::::::::::::::::::::
                    CANVAS
::::::::::::::::::::::::::::::::::::::::::::::::*/

#canvas-container canvas {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
}

/*::::::::::::::::::::::::::::::::::::::::::::::::
            FLOCKING SIMULATION INFO
::::::::::::::::::::::::::::::::::::::::::::::::*/

.popup {
    z-index: 1;
    position: absolute;
    right: 25px;
    bottom: 25px;
    display: inline-grid;
    width: 250px;
    user-select: none;
}

.popup-button {
    position: relative;
    display: inline-flex;
    justify-content: flex-end;
    width: 100%;
    transition: transform 0.5s;
}

.popbtn {
    width: 50px;
    height: 50px;
}

.burger {
    display: grid;
    place-items: center;
    transform: translate(25px, 0);
    width: 50px;
    height: 50px;
    background-color: var(--basecolor2);
    box-shadow: 5px 5px var(--highlightcolor1);
    border: 4px solid var(--basecolor1);
    cursor: pointer;
}

.popbtn {
    /* position: relative; */
    /* opacity: 1; */
    pointer-events: all;
    width: 50px;
    height: 50px;
    /* height: 100%; */
    right: 0;
    color: var(--basecolor1);
    font-size: 30px;
    text-align: center center;
    background-color: var(--basecolor2);
    box-shadow: 5px 5px var(--highlightcolor1);
    border: 4px solid var(--basecolor1);
    outline: none;
    cursor: pointer;
    user-select: none;
    font-weight: bold;
}

.popbtn p {
    height: 100%;
    display: grid;
    place-items: center;
}

.arrow {
    border: solid var(--basecolor1);
    border-width: 0 5px 5px 0;
    display: inline-block;
    padding: 5px;
    transform: rotate(-135deg);
    -webkit-transform: rotate(-135deg);
    transition: transform 0.5s ease;
}

.popup-info {
    margin: 0;
    border: "none";
    max-height: 0;
    overflow: hidden;
    width: 100%;
    display: inline-block;
    position: relative;
    background-color: var(--basecolor2);
    box-shadow: 0px 0px var(--highlightcolor1);
    border: 0px solid var(--basecolor2);
    transition: max-height 0.5s, margin 0.5s, border 0.5s, box-shadow 0.5s;
}

.popup-info h5 {
    margin: 20px 0px;
    color: var(--basecolor1);
    padding: 0px 20px;
    text-decoration: none;
    display: block;
}

/*::::::::::::::  transition classes  ::::::::::::::::*/

.downarrow {
    border-width: 0 5px 5px 0;
    transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
}

.ppactive {
    margin-top: 25px;
    max-height: 300px;
    overflow-y: hidden;
    box-shadow: 5px 5px var(--highlightcolor1);
    border: 4px solid var(--basecolor1);
}

/*::::::::::::::  slider  ::::::::::::::::*/

.slider-container {
    padding: 20px;
    padding-top: 0;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-content: center center;
}

.slider {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: var(--basecolor1);
    outline: none;
    -webkit-transition: .2s;
    transition: opacity .2s;
    margin-bottom: 10px;
    margin-top: 10px;
}


.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 9px;
    border: 3px solid var(--basecolor1);
    background: var(--highlightcolor1);
    cursor: pointer;
}

.slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 7px;
    background: var(--highlightcolor1);
    cursor: pointer;
}

/*::::::::::::::::::::::::::::::::::::::::::::::::
                    BODY
::::::::::::::::::::::::::::::::::::::::::::::::*/
section {
    margin: 0px;
}

.split-section {
    width: 100vw;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    color: var(--basecolor1);
}

.split-section div {
    flex: 1 1 450px;
    display: grid;
    place-items: center;
    background-color: var(--basecolor2);
    margin: 0px;
}

.split-section .title {
    height: 100vh;
    position: -webkit-sticky; 
    position: sticky;
    top: 0;
    display: grid;
    place-items: center;
}

.split-section .title h1 {
    /* background-color: var(--highlightcolor1); */
    font-size: 8vmin;
}

.split-section .title img {
    position: relative;
    height: 40vmin;
    margin: 0;
}

.split-section .text {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 5vw;
    text-align: justify;
    text-justify: inter-word;
}

.split-section .text div {
    display: inline-block;
}

.split-section .text section {
    padding: 25px;
    /* background-color: var(--highlightcolor1); */
}

.split-section .text a {
    text-decoration: none;
    color: var(--basecolor1);
}
.split-section .text a:hover {
    /* color: var(--highlightcolor2); */
    background: linear-gradient(180deg,rgba(255,255,255,0) 50%, var(--highlightcolor1) 50%);
}

@media only screen and (max-width: 920px) {
    .split-section .title {
        display: grid;
        place-items: center;

    }
    .split-section .title {
        position: relative;
    }
}

#showcase {
    text-align: center;
}



/*::::::::::::::::::::::::::::::::::::::::::::::::
                    CONTACT
::::::::::::::::::::::::::::::::::::::::::::::::*/

#contact {
    display: grid;
    place-items: center;
    width: 100vw;
    padding: 30px;
}

#contact-content {
    width: 50%;
    text-align: left;
    overflow: auto;
    color: var(--basecolor1);
    background-color: var(--basecolor2);
    margin: 30px;
    margin-right:30px;
    box-shadow: 5px 5px var(--highlightcolor1);
    border:  4px solid var(--basecolor1);
    padding: 30px;
}

#contact-content div {
    padding: 15px;
}

#contact-content .textboxinput {
    padding: 5px;
    border:  4px solid var(--basecolor1);
    background-color: var(--basecolor2);
    color: var(--basecolor1);
    width: 100%;
    display: inline-block;
    text-align: top;
    margin-top: 10px;
    margin-bottom: 10px;
    font-family: monospace;
    resize: none;
}

#contact-content .form-control {
    display: none;
}

#contact-content #message {
    height: 100px;
}

#contact-content .textboxinput:focus {
    outline: none;
    box-shadow: 5px 5px var(--highlightcolor1);
}

#contact-content button {
    color: var(--basecolor1);
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
    border:  4px solid var(--basecolor1);
    background-color: var(--basecolor2);
    color: var(--basecolor1);
    text-align: center;
    margin-top: 10px;
    margin-bottom: 10px;
    
    box-shadow: 5px 5px var(--highlightcolor1);
}


#contact-content button:hover {
    box-shadow: 5px 5px var(--contrastcolor1);
}

@media only screen and (max-width: 920px) {
    #contact-content {
        width: 95%;
        text-align: left;
        overflow: auto;
        color: var(--basecolor1);
        background-color: var(--basecolor2);
        margin: 30px;
        margin-right:30px;
        box-shadow: 5px 5px var(--highlightcolor1);
        border:  4px solid var(--basecolor1);
        padding: 30px;
    }
}




