/* Imports */

@import url("https://www.joeykh.com/db/css/reset.css");
@import url("https://www.joeykh.com/db/css/skel.css");
@import url("https://www.joeykh.com/db/css/logo.css");
@import url("https://www.joeykh.com/db/css/animations.css");
@import url("variables.css");





/*  Body Styling and Background  */

html, body {
    background: var(--mainBg);
    overflow: hidden;
    height: 100vh;
    margin: 0;
    color: var(--black);
    touch-action: none;
    scroll-behavior: smooth;
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    -khtml-user-select: none; /* Konqueror HTML */
    -moz-user-select: none; /* Old versions of Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; /* Non-prefixed version, currently
                          supported by Chrome, Edge, Opera, Firefox */
}

#bg {
    position: absolute;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    background-image: url("https://www.joeykh.com/assets/images/joey.png");
    background-repeat: no-repeat;
    background-size: auto 80%;
    background-position: 200px 100%;
    display: none;
}

main {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	width: 100vw;
	min-height: 100vh;
}

section {
    height: 100vh;
    width: 100vw;
    position: relative;
    background-repeat: no-repeat;
    background-size: 100% auto;
    background-position: 50% 100%;
}

    section p {
        font-size: 1.6vw;
    }

    #intro .contents,
    #about .contents,
    #contact .contents {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 50%;
    }
    
    #portfolio .contents {
        position: absolute;
        top: 95px;
        left: 305px;
        right: 100px;
        padding-bottom: 40px;
    }
    
    #intro {
        background-image: url("https://www.joeykh.com/assets/images/designstudio.svg");
    }
    
    #about {
        background-image: url("https://www.joeykh.com/assets/images/about2.svg");
    }
    
        #about .me {
            position: absolute;
            top: 61px;
            left: 75px;
            height: 150px;
            width: auto;
            border-radius: 100%;
            z-index: 995;
        }
        
        #about .arrow {
            position: absolute;
            top: 120px;
            left: 285px;
            width: auto;
            z-index: 995;
            height: 30px;
            transform: rotate(-45deg);
        }
        
        #about .handwritten {
            position: absolute;
            top: 125px;
            left: 325px;
            width: 250px;
            height: auto;
            z-index: 995;
        }
        
        #announcement {
            position: absolute;
            bottom: 103px;
            right: 140px;
            font-size: 1.2vw;
            color: var(--lightBlack);
        }
        
        #announcement span {
            color: #e0218a;
            position: relative;
            border-radius: 50%;
            font-weight: 900;
        }
        
        #announcement span::before {
            position: absolute;
            left: 0px;
            top: -6px;
            height: 40px;
            width: 40px;
            content: "";
            background: transparent;
            border-radius: 50%;
            animation: animate-pulse 3s linear infinite;
        }
        
            @keyframes animate-pulse{
                0%{
                    box-shadow: 0 0 0 0 rgba(224, 33, 138, 0.5),  0 0 0 0 rgba(224, 33, 138, 0.5);
                }
                40%{
                    box-shadow: 0 0 0 30px rgba(224, 33, 138, 0),  0 0 0 0 rgba(224, 33, 138, 0.5);
                }
                80%{
                    box-shadow: 0 0 0 30px rgba(224, 33, 138, 0.0),  0 0 0 30px rgba(224, 33, 138, 0);
                }
                100%{
                    box-shadow: 0 0 0 0 rgba(224, 33, 138, 0.0),  0 0 0 30px rgba(224, 33, 138, 0);
                }
            }
    
    #portfolio {
        background-image: url("https://www.joeykh.com/assets/images/selectwork.svg");
        overflow: scroll;
    }
    
    #contact {
        background-color: var(--contactBg);
        background-image: url("https://www.joeykh.com/assets/images/contact3.svg");
    }
        
        #portfolio summary {
            /*font-size: 4.4rem;*/
            font-size: 3vw;
            color: #666666;
            text-decoration: none;
            list-style: none;
            cursor: pointer;
            margin-left: 15px;
        }
        
        #portfolio details {
            margin-top: 5px;
            margin-left: 20px;
            padding-top: 10px;
            
        }
        
            #portfolio details[open] {
                border-radius: 8px;
                /*background-color: var(--detailsBg);*/
            }
            
                #portfolio details[open] summary {
                    color: #666666;
                }
                
                #portfolio details[open] summary:hover {
                    color: #666666;
                    background-image: -webkit-linear-gradient(0deg, #666666 6%, #666666 63%); 
                background-clip: text; 
                -webkit-background-clip: text; 
                text-fill-color: transparent; 
                -webkit-text-fill-color: transparent;
                }
        
        #portfolio details p {
            margin-top: 0;
            padding-top: 20px;
            margin-left: 20px;
            margin-right: 20px;
            border-top: 1px solid /*var(--white)*/ #666666;
        }

        #portfolio details img {
            height: 100px;
            width: auto;
            margin-right: 20px;
            padding-bottom: 10px;
        }
        
        #contact a {
            font-size: 3rem;
            color: var(--white);
            text-decoration: none;
        }
        
            #contact a span {
                color: var(--red);
            }
        
            #portfolio summary:hover,
            #contact a:hover {
                color: var(--linkHover); 
            }
        

        #availability {
            position: fixed;
            top: 37px;
            left: 50px;
            color: var(--lightBlack);
            animation: noSpin 60s infinite linear;
            display: flex;
            justify-content: center;
            background: url("https://www.joeykh.com/db/images/logo.svg") fixed no-repeat 50% 50%;
            background-size: auto 40%;
            z-index: 950;
        }
        
            #availability img {
                height: 200px;
                width: auto;
                animation: spin 60s infinite linear;
            }
        
        #location {
            position: absolute;
            bottom: 3px;
            right: 60px;
            font-size: 1.2vw;
            color: var(--lightBlack);
        }
        
        
        
        
        
/* Icons */

.icon,
.icon img {
    padding: 0;
    margin: 0 20px 0 0;
    /*height: 30px;*/
    height: 4vh;
    width: auto;
    display: inline;
}

.icon img:hover {
  filter: url(#iconHover);
}





/* Logos */

#mainLogo {
    position: fixed;
	top: 28px;
	left: 50px;
	height: auto;
	width: 50px;
	z-index: 950;
	transition: transform 1s ease;
	transform: translateY(-100px);
	display: none;
}

    #mainLogo.active {
        transform: translateY(0px);
        transition: transform 1s ease;
    }

#heroLogo {
    height: auto;
    width: 20%;
    display: block;
    transition: transform 3s ease-in-out;
    z-index: 500;
	opacity: 0;
	border-radius: 5px;
}

    #heroLogo.active {
	    opacity: 1;
	    transition-property: opacity, transform;
	    transition-duration: 3s;
	    transition-timing-function: ease-in-out;
    }

#navLogo {
    position: absolute;
	bottom: 10px;
	left: 20px;
	z-index: 997;
    height: auto;
    width: 90px;
}
    




/* Menu & Navigation */

menu {
    margin: 0;
    padding: 0;
}

.menu {
    height: 30px;
    width: 30px;
    position: fixed;
    z-index: 999;
    right: 50px;
    top: 37px;
    cursor: pointer;
    vertical-align: middle;
}

    .menu span {
        height: 2px;
        width: 30px;
        display: block;
        transition: transform .2s ease;
        margin-top: 14px;
    }

        .menu span:before, 
        .menu span:after {
            width: 15px;
            content: "";
            height: 2px;
            transition-duration: .2s;
            transform: rotate(0deg);
        }

        .menu span,
        .menu span:before,
        .menu span:after {
            background-color: var(--menu);
        }

        .menu span:before {
            float: left;
            margin-top: -5px;
        }

        .menu span:after {
            margin-top: 6px;
            float: right;
            width: 8px;
        }

        .menu.active span,
        .menu.active span:before,
        .menu.active span:after {
            background-color: var(--menuActive);
        }

        .menu.active span {
            transform: translate(0px, 0px) rotate(-45deg);
        }

        .menu.active span:before {
            transform: translate(8px, -3px) rotate(90deg);
        }

        .menu.active span:after {
            transform: translate(-7px, 2px) rotate(90deg);
            width: 15px;
        }

.navi {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: var(--menuBg);
    transform: translateY(150%);
    transition: transform .2s ease;
    z-index: 995;
    border-top: 3px solid var(--menuBorder);
}

    .navi.active {
        transform: translateX(0px);
    }

.links {
    position: absolute;
    bottom: 5px;
    right: 20px;
    width: 200px;
}

    .links span {
        text-align: right;
        font-size: 1.8rem;
        line-height: 2rem;
        color: var(--lightBlack);
        font-weight: bold;
        margin: 0 0 10px 0;
        display: block;
        text-transform: uppercase;
    }

        .links span a {
            text-decoration: none;
            margin-left: 30px;
            color: var(--black);
        }

        .links span a:hover {
            text-decoration: none;
            margin-left: 30px;
            color: var(--red);
        }





/* Top Button */

.top {
    position: fixed;
    bottom: 30px;
    right: 56px;
    height: 20px;
    width: 20px;
    transform: translateY(100px) rotate(-90deg);
    transition: transform 1s ease;
    padding: 5px 0;
}

    .top.active {
        transform: translateY(0px) rotate(-90deg);
    }

    .top span {
        display: block;
        height: 2px;
        margin-top: 10px;
    }

        .top span:before {
            content: "";
            display: block;
            height: 2px;
	        width: 10px;
	        float: right;
            margin-top: -4px;
            transform: rotate(45deg);
        }

        .top span:after {
            content: "";
            display: block;
            height: 2px;
	        width: 10px;
	        float: right;
            margin-top: 4px;
            transform: rotate(-45deg);
        }

        .top span,
        .top span:before,
        .top span:after {
	        background: var(--arrow);
        }