*, *:before, *:after {
  margin: 0;
}

html {
    background: #0e122d;
    font-size: 18px;
    height: 100%;
    width: 100%;
}

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

.logo img {
    height: 40px;
    z-index: 20;
    padding-top: 20px;
    transition: opacity .8s ease-out;
}

.logo img:hover {
    opacity: 0;
}

.logo {
    position: fixed;
    top: 0;
    width: 340px;
    left: 0;
    right: 0;
    margin: auto;
    z-index: 20;
}

a {
    text-decoration: none;
   /* cursor: none; */
}

.hi, .welcome, .way {
    font-family: 'Alice', serif;
    color: white;
    font-size: 1rem;
    width: 300pt;
    opacity: 0;
    z-index: -1;
    width: 250px;
    font-weight: 200;
}

.hi {
    color: #369275;
    margin-left: 25vw;
    margin-top: 25vh;   
    -webkit-animation: textRevealhi 2s ease-in-out forwards;
    animation: textRevealhi 2s ease-in-out forwards;
}
@keyframes textRevealhi {
    0% { margin-top: 30vh;}
    20% {opacity: 0;}
    100% { margin-top: 35vh; opacity: 1;}
}

.welcome {
    margin-left: 25vw;
    margin-top: 5px; 
    -webkit-animation: textRevealwelc 2s ease-in-out 1.5s forwards;
    animation: textRevealwelc 2s ease-in-out 1.5s forwards;
}
@keyframes textRevealwelc {
    0% { margin-top: -10px}
    20% {opacity: 0;}
    100% { margin-top: 5px; opacity: 1;}
}

.way {
    margin-left: 60vw;
    margin-top: 20vh;
    -webkit-animation: textRevealway 2s ease-in-out 3s forwards;
    animation: textRevealway 2s ease-in-out 3s forwards;
}
@keyframes textRevealway {
    0% { margin-top: 15vh;}
    20% {opacity: 0;}
    100% { margin-top: 20vh; opacity: 1;}
}


/* --------------  Background gradient nav  -------------- */


h2, .gradient {
     -webkit-transition: opacity 1s ease; /* Safari */
    transition: opacity 1s ease;
    opacity: 0;
}

.gradient {
    position: absolute;
}

h2 {
    z-index: 10;
    position: absolute;
    font-size: 6rem;
    font-weight: 100;
    padding: 30px;
    color: #ffff;
    font-family: 'Alice', serif;
}

.h2work {
    left: 20vw;
    bottom: 20vh;
}

.h2about {
    right: 10vw;
    top: 30vh;
}

.Work {
    bottom: -.5vh;
    left: 0;
    z-index: 5;
}

.Work img {
    max-width: 90%;
    width: auto;
}

h2:hover {
    opacity: 1;
}

.p-hide {
    height: 100vh;
    width: 100vw;
    position: absolute;
    top: 0;
    background-color: #0e122d;
    z-index: 4;
     -webkit-transition: opacity .8s ease; /* Safari */
    transition: opacity .8s ease;
    opacity: 0;
}

.About {
    z-index: 5;
    right: 0;
    top: 0;
    height: 80vh;
    max-width: 60%;
    height: auto;
}

.About img {
    height: auto;
    max-height: 110%;
    width: auto;
    max-width: 100%;
    height: 100vh;
    object-fit: fill;
}

/* When a is hover, the 2divs after appear */
.a-about:hover ~ .hidetrick1 {
    opacity: 1;
}
.a-work:hover ~ .hidetrick2 {
    opacity: 1;
}

.about-mini {
    display: none;
}

.menubig {
    display: none;
}

.dot1 {
    height: 10px;
    width: 10px;
    position: absolute;
    background-color: #EC619A;
    border-radius: 50%;
    left: 28vw;
    bottom: 20vh;
}

.dot2 {
    height: 10px;
    width: 10px;
    position: absolute;
    border-radius: 50%;
    background-color: #369275;
    right: 20vw;
    top: 40vh;
}

/* --------------  Responsive -------------- */

@media only screen and (max-width: 800px) {
    html {
        font-size: calc(14px + .4vw);
    }
    
    .logo img {
        height: 35px;
    }
    
    .logo {
        width: 300px;
    }
    
    .way {
        margin-left: 50vw;
        display: none;
    }
    
    h2 {
        font-size: 5rem;
        left: 0;
        right: 0;
        margin: auto;
        text-align: center;
    }
    .h2work {
        left: 0vw;
    }
    
    .h2about {
        right: 0;
        top: 20vh;
    }

    .gradient {
        max-width: 60%;
        height: auto;
    }
    
    .Work {
        max-width: 70%;
        width: auto;
    }
    
    /* -- Mobile Menu -- */
    
    .compmenu {
        display: none;
    }
    
    .menubig {
    display: block;
    }
    
    .about-mini {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    z-index: 5;
}
    
    .mobmenu {
    display: block;
    position: fixed;
    opacity: 1;
    -webkit-animation: menumob-anim 6s ease-in-out;
    animation: menumob-anim 6s ease-in-out;
    }  
@keyframes menumob-anim {
    0% {opacity: 0;}
    70% {opacity: 0;}
    100% {opacity: 1;}
}
    
    .mobmenucss {
    display: block;
    -webkit-transition: opacity .8s ease; /* Safari */
    transition: opacity .8s ease;
    }
    
}

    
    
@media only screen and (max-width: 600px) {
    h2 {
        font-size: 3.5rem;
    }
    
    p {
        width: 180px;
    }
    
    .hi {
        margin: 0 auto;
    }
    
    .welcome{
        margin: 0 auto;
    }
    
    .way {
        margin: 0 auto;
        display: none;
    }
    
    .about-mini {
         width: 90%;
    }
        
    }