/* styles.css */
/* E-FEE-EN */

:root {
    --black: #000000;
    --grey: #ccc;
    --white: #ffffff;
    --grey-hover: #121212;
    --container: 69.375rem;
}

* {
    margin: 0;
    padding: 0;
    background-color: var(--black);
    font-family: 'myFont';
}

html {
    box-sizing: border-box;
    height: -webkit-fill-available;
    scroll-behavior: smooth;
}

/* --------------WRAPPERS--------------- */
.wrapper {
    width: calc(100% - 2rem);
    max-width: var(--container);
    margin-inline: auto;
}

.wrapperpg1 {
    width: calc(100% - 2rem);
    max-width: var(--container);
    margin-inline: auto;
    height: 100vh;
    /* Use vh as a fallback for browsers that do not support Custom Properties */
    height: calc(var(--vh, 1vh) * 100);
}

.wrapper_canv {
    width: calc(100% - 2rem);
    max-width: var(--container);
    margin-inline: auto;
    text-align: center;
}

header {
    display: flex;
    margin-inline: auto;
    text-align: center;
    justify-content: center;
    align-items: center;
    height: 40vh;
}

main {
    width: calc(100% - 2rem);
    max-width: var(--container);
    margin-inline: auto;
    text-align: center;
    justify-content: center;
    align-items: center;
}

body {
    height: 100vh;
    height: -webkit-fill-available;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background-color: var(--black);
    margin: 0;
    font-family: 'myFont';
}


/* FORMATING TEXT AND NAV*/
@font-face {
    font-family: myFont;
    src: url(SackersGothicStd-Light.ttf);
}

h1,
h2,
h3 {
    color: #ffffff;
    transform: scale(1, 0.5);
}

h3 {
    font-size: medium;
}

ul {
    margin: 0 auto 0;
    padding: 0;
    list-style: none;
    display: flex;
    justify-content: space-evenly;
    align-items: flex-start;
    width: 80%;
    text-align: center;
}

li {
    display: flex;
    position: relative;
    padding: 15px 0;
    width: fit-content;
}

a {
    color: #ffffff;
    width: calc(100% - 3.75rem);
    display: flex;
    justify-content: space-evenly;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.15em;
    display: inline-block;
    padding: 15px 20px;
    position: relative;
}

/* THIS IS FOR SECTIONS */

/* STATIC CANVAS MIDDLE */
canvas {
    align-self: center;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 10vh;
}

/* THIS IS FOR NAV */
nav {
    height: 10vh;
    display: flex;
}

.nav__bro {
    display: flex;
    height: 6px;
    font-size: 0.875rem;
    font-size: clamp(0.875rem, 0.6364503816793893rem + 1.0178117048346056vw, 1.125rem);
    align-items: center;
    text-align: center;
    justify-content: center;
}


.spaceafterhero {
    height: 40vh;
}

/* ABOUT */
.aboutsec {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* WORK */
.worksec {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* MY SHIT */
.portfoliosec {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* CONTACT FORM */
#contactsec {
    display: flex;
    text-align: center;
    height: 100vh;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#contacttitle {
    font-size: 40px;
    padding: 5px 5px;
    background-color: #000000;
    color: white;
    border: none;
    border-radius: 4px;
}

.contactsec h1 {
    font-size: 40px;
    transform: scale(1, 0.3);
    margin-bottom: 20px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

}

.contact-form input,
.contact-form textarea {
    width: 600px;
    padding: 10px;
    margin-bottom: 9px;
    border: 1px solid #ccc;
    color: white;
    border-radius: 1px;
    text-align: left;
}

.contact-form textarea {
    height: 100px;
}

.contact-form button {
    padding: 5px 5px;
    background-color: #000000;
    color: white;
    border: none;
    border-radius: 4px;
    transform: scale(4, 1.5);
}

.contact-form button:hover {
    animation-name: shake;
    animation-iteration-count: 9999;
    animation-duration: 0.01s;
    animation-fill-mode: both;
    color: red;
    filter: blur(1px);
}


/* FOOTER */
footer {
    display: flex;
    font-family: 'myFont';
    justify-content: center;
    align-items: center;
    height: 5vh;
    margin: 0;
    padding: 0;
}



/* THIS IS TO SHAKE SHIT*/
h2:hover {
    color: red;
}

h3:hover {
    color: red;
}

a:hover {
    animation-name: shake;
    animation-iteration-count: 999;
    animation-duration: 0.01s;
    animation-fill-mode: both;
    filter: blur(1px);
}

#backb:hover {
    animation-name: shake;
    animation-iteration-count: 999;
    animation-duration: 0.01s;
    animation-fill-mode: both;
    filter: blur(1px);
}

footer:hover {
    animation-name: shake;
    animation-iteration-count: 999;
    animation-duration: 0.01s;
    animation-fill-mode: both;
    filter: blur(1px);
}

@keyframes shake {
    20% {
        transform: translateX(-3px);
    }

    50% {
        transform: translateX(3px);
    }

    75% {
        transform: translateX(-3px);
    }

    85% {
        transform: translateX(3px);
    }

    91% {
        transform: translateX(-3px);
    }

    94% {
        transform: translateX(3px);
    }

    96% {
        transform: translateX(-3px);
    }

    97% {
        transform: translateX(3px);
    }

    97.75% {
        transform: translateX(-3px);
    }

    98.2% {
        transform: translateX(3px);
    }
}

/* BACK BUTTON */

#backloc {
    background-color: transparent;
    position: fixed;
    display: flex;
    margin-inline: auto;
    text-align: center;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1000;
    bottom: 1rem;
    height: 29.3px;
    width: calc(100% - 2rem);
    max-width: var(--container);
    /* This filter is a lot of the magic, try commenting it out to see how the morphing works! */
    filter: url(#threshold) blur(0.6px);

}

 #backloc.show {
    opacity: 1;
    pointer-events: auto; /* clickable when visible */
  }

#backb {
    /* Center the text in the viewport. */
    background-color: rgb(214, 0, 0);
    height: 29.3px;
    width: vw;
    display: flex;
    align-items: center;
    /* This filter is a lot of the magic, try commenting it out to see how the morphing works! */
    filter: url(#threshold) blur(0.6px);
}

#backb:hover {
    cursor: pointer;
}

#filters {
    height: 0px;
}

#text1,
#text2 {
    position: absolute;
    width: 100%;
    display: inline-block;
    font-family: 'myFont';
    font-size: x-large;
    color: #ffffff;
    text-align: center;
    user-select: none;
    transform: scale(1, 0.5);
}

#text1,
#text2:hover {
    color: red;
}


/* THIS IS FOR CURSOR

.inner-cursor {
    position: fixed;
    left: 10px;
    width: 14px;
    height: 14px;
    transform: translate(-50%, -50%);
    background-color: #ffffff;
    mix-blend-mode: difference;
    border-radius: 50%;
    pointer-events: none;
    transition: width 0.5s, height 0.5s;
}

.inner-cursor.grow {
    width: 30px;
    height: 30px;
    transition: width 0.5s, height 0.5s;
}
*/

/* ----------------------------------MOBILE------------------------------- */

@media only screen and (max-width: 768px) {
    * {
        font-size: small;
    }


    h1 {
        color: #ffffff;
        font-size: x-large;
    }

    h2 {
        color: #ffffff;
        font-size: medium;
    }

    header {
        width: calc(100% - 2rem);
        max-width: var(--container);
        display: flex;
        margin-inline: auto;
        text-align: center;
        justify-content: center;
        align-items: center;
        height: 30vh;
    }



    canvas {
        align-self: center;
        display: flex;
        justify-content: center;
        align-items: center;
        width: calc(100% - 2rem);
        max-width: var(--container);
        height: 10vh;
    }


    ul {
        width: fit-content;
        display: flex;
        flex-direction: column;
        max-width: var(--container);
        margin-inline: auto;
        text-align: center;
        justify-content: center;
        align-items: flex-start;

    }


    li {
        display: block;
        padding: 15px 0;
        width: 10px;
        max-width: var(--container);
        margin-inline: auto;
        text-align: center;
        align-items: flex-start;
    }

    a {
        padding: 10px 15px;
        display: flex;
        align-items: flex-start;
    }

    .nav__special {
        display: flex;
        align-items: flex-start;
    }

    nav {
        height: 60vh;
        display: flex;
        margin-inline: auto;
        text-align: center;
        justify-content: center;
        align-items: flex-start;
    }

    .nav__shake {
        display: flex;
        height: 5px;
        width: fill;
        text-align: center;
        justify-content: center;
        align-items: center;

    }


    #contactsec {
        display: flex;
        margin-inline: auto;
        text-align: center;
        justify-content: center;
        align-items: center;
        height: 90vh;
    }


    .contact-form input,
    .contact-form textarea {
        width: 70vw;
        padding: 10px;
        margin-bottom: 9px;
        border: 1px solid #ccc;
        color: white;
        border-radius: 1px;
        text-align: left;

    }

    .contactsec h1 {
        font-size: 33px;
        margin-bottom: 20px;
        text-align: center;
        justify-content: center;
        align-items: center;
    }

    /* BACK BUTTON */

    #backloc {
        position: sticky;
        display: flex;
        justify-content: flex-end;
        bottom: 1rem;
        align-self: flex-start;
        height: 29.3px;
        width: calc(100% - 2rem);
        max-width: var(--container);
        /* This filter is a lot of the magic, try commenting it out to see how the morphing works! */
        filter: url(#threshold) blur(0.6px);

    }

    #backb {
        /* Center the text in the viewport. */
        background-color: black;
        height: 2vh;
        width: 18vw;
        /* This filter is a lot of the magic, try commenting it out to see how the morphing works! */
        filter: url(#threshold) blur(0.6px);
    }

    /* THIS IS TO SHAKE SHIT*/
    h2:hover {
        color: red;
    }

    h3:hover {
        color: red;
    }

    a:hover {
        animation-name: shake;
        animation-iteration-count: 9999;
        animation-duration: 0.01s;
        animation-fill-mode: both;
        filter: blur(1px);
    }

    #backb:hover {
        animation-name: shake;
        animation-iteration-count: 9999;
        animation-duration: 0.01s;
        animation-fill-mode: both;
        filter: blur(1px);

    }

    .contact-form button {
        padding: 5px 5px;
        background-color: #000000;
        color: white;
        border: none;
        border-radius: 4px;
        transform: scale(3, 1);
    }

    footer:hover {
        animation-name: shake;
        animation-iteration-count: 9999;
        animation-duration: 0.01s;
        animation-fill-mode: both;
        filter: blur(1px);
    }
    ?
    @keyframes shake {
        20% {
            transform: translateX(-3px);
        }

        50% {
            transform: translateX(3px);
        }

        75% {
            transform: translateX(-3px);
        }

        85% {
            transform: translateX(3px);
        }

        91% {
            transform: translateX(-3px);
        }

        94% {
            transform: translateX(3px);
        }

        96% {
            transform: translateX(-3px);
        }

        97% {
            transform: translateX(3px);
        }

        97.75% {
            transform: translateX(-3px);
        }

        98.2% {
            transform: translateX(3px);
        }
    }

    #text1,
    #text2:hover {
        color: red;
    }

    #filters {
        height: 0px;
    }

    #text1,
    #text2 {
        position: absolute;
        width: 100%;
        display: inline-block;
        font-family: 'myFont';
        font-size: large;
        color: #ffffff;
        text-align: center;
        user-select: none;
        transform: scale(1, 0.5);
    }


    footer {
        height: 10vh;
    }
}


/* ----------------------------------TABLET------------------------------- */
@media (min-width: 37.5em)

/* 600px */


    {
    .wrapper {
        width: calc(100% - 3.75rem);
    }

    .wrapper_canv {
        width: calc(100% - 3.75rem);
    }

    h2,
h3 {
    color: #ffffff;
    font-size: larger;
    transform: scale(1, 0.5);
}

    nav {
        height: 60vh;
        display: flex;
        text-align: center;
        justify-content: center;
        align-items: flex-start;
    }
    ul {
        margin: 0 auto 0;
        padding: 0;
        list-style: none;
        display: flex;
        justify-content: space-evenly;
        align-items: flex-start;
        width: 80%;
        text-align: center;
    }
    
    li {
        display: flex;
        position: relative;
        padding: 15px 0;
        width: 190px;
    }
    
    a {
        color: #ffffff;
        width: calc(100% - 3.75rem);
        display: flex;
        justify-content: space-evenly;
        text-transform: uppercase;
        text-decoration: none;
        letter-spacing: 0.15em;
        display: inline-block;
        padding: 15px 20px;
        position: relative;
    }

    .nav__shake {
        display: flex;
        height: 10px;
        text-align: center;
        justify-content: center;
        align-items: center;

    }

    .nav__bro {
        display: flex;
        width: fit-content;
        text-align: center;
        justify-content: center;
        align-items: center;
    }


    header {
        width: calc(100% - 3.75rem);
    }

    /* BACK BUTTON */

    #backloc {
        position: sticky;
        display: flex;
        justify-content: flex-end;
        bottom: 1rem;
        align-self: flex-start;
        height: 29.3px;
        width: calc(100% - 2rem);
        max-width: var(--container);
        /* This filter is a lot of the magic, try commenting it out to see how the morphing works! */
        filter: url(#threshold) blur(0.6px);

    }

    #filters {
        width: calc(100% - 2rem);
        max-width: var(--container);
        display: flex;
        margin-inline: auto;
        text-align: center;
        justify-content: center;
        align-items: center;
        height: 1px;
    }

    #backb {
        /* Center the text in the viewport. */
        background-color: black;
        height: 2vh;
        width: 9vw;
        /* This filter is a lot of the magic, try commenting it out to see how the morphing works! */
        filter: url(#threshold) blur(0.6px);
    }


    #text1,
    #text2 {
        position: absolute;
        width: 100%;
        display: inline-block;
        font-family: 'myFont';
        font-size: large;
        color: #ffffff;
        text-align: center;
        user-select: none;
        transform: scale(1, 0.5);
        background-color: transparent;
    }

    .contactsec {

        width: calc(100% - 2rem);
        max-width: var(--container);
        display: flex;
        margin-inline: auto;
        text-align: center;
        justify-content: center;
        align-items: center;
        height: 90vh;
    }

    .contact-form input,
    .contact-form textarea {
        width: 70vw;
        padding: 10px;
        margin-bottom: 9px;
        border: 1px solid #ccc;
        color: white;
        border-radius: 1px;
        text-align: left;
    }

    .contactsec h1 {
        font-size: 33px;
        margin-bottom: 20px;
    }


    footer {
        height: 5vh;
    }



}