:root {
    --black: #ffffff;
    --sect-1: #acacac;
    --sect-2: #fffafa;
    --sect-3: #f77f00;
    --sect-4: #fcbf49;
    --sect-5: #eae2b7;
}


html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    transition: all 500ms ease 0s;
}

header {
    width: 100%;
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 65px;
    background: linear-gradient(0deg, #fff0 0px, var(--black) 0px 100%);
    display: flex;
    text-align: center;
    transition: all 500ms ease 0s;
}

a {
    width: 100%;
    z-index: 1;
    color: #dcdcdc;
    text-decoration: none;
    padding: 16px 10px;
    position: relative;
    font-size: 1.5rem;
    border: 0px solid #fff;
    border-top-width: 0px;
    border-bottom-width: 20px;

}

a:first-child {
    border-left-width: 0;
}

a:last-child {
    border-left-width: 0;
}

nav:after {
    position: absolute;
    content: "";
    width: 20vw;
    height: 100%;

    background: linear-gradient(90deg, var(--sect-1) 0 calc(20vw - 3px),
            var(--sect-2) 0 calc(40vw - 3px),
            var(--sect-3) 0 calc(60vw - 3px),
            var(--sect-4) 0 calc(80vw - 3px),
            var(--sect-5) 0 100vw);

    bottom: 0;
    left: 0;
    animation: progress linear;
    animation-timeline: scroll(root);
    z-index: -1;
}

@keyframes progress {
    100% {
        width: 100%;
    }
}

section {
    --bg: var(--sect-1);
    height: 100vh;
    background-color: var(--bg);
	
    color: #fffafa;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
	font-family: Georgia, serif;
    font-size: 3rem;
    padding-top: 30px;
    align-content: center;
}
h2 {
	text-decoration: underline solid 1px ;
	text-underline-offset: 5px;
}

h2,
p {
    margin: 0px 0px 0px 0px;
    width: 100%;
    text-align: right;
    font-weight: 200;
}

p {
	font-size: 1.4rem;
}

#start {
    --bg: var(--sect-1);
	background-image: url("images/background.jpg") no-repeat center center fixed;
	background-size: cover;
	align-content: center;
}

#html {
    --bg: var(--sect-2);
	height: 50vh;
	padding-top: 0px;
	align-content: flex-start;
	color: #000;
}
.text {
	
    width: 400px;
	font-size: 1.2rem;
	text-align: justify;
	color: #000;
	margin: 0px;
	
}

#js {
    --bg: var(--sect-3);
}

#php {
    --bg: var(--sect-4);
}

#sql {
    --bg: var(--sect-5);
}
iframe {
	margin: 70px;
	width: 400px; 
	height: 40vh;
}
