html {
    scroll-behavior: smooth;
    background-color: #00242d;
    height: 96%;
}
body {
    margin: 0;
    height: 100%;
    font-family: AvenirReg, Arial, Helvetica, sans-serif;
    font-size: 1.3em;
    background-image: url(img/canyonblue.png);
    background-size: cover;
}
@font-face {
    font-family: AvenirReg;
    src: url(/fonts/AvenirNextLTPro-Regular.otf);
}
.msm {
    position: absolute;
    left: calc(50% - 200px);
    top: 200px;
    animation-name: logo;
    animation: logo forwards;
    animation-duration: 4s;
}
@keyframes logo {
    0%   {scale: 1; opacity: 0}
    40%   {scale: 1; opacity: 1}
    70%  {top: 200px; scale: 1; opacity: 1}
    100%  {top: 0px; scale: .5; opacity: 1}
}
.content {
    position: absolute;
    top: 200px;
    color: #fff;
    animation: txt-fade;
    animation-duration: 5s;
}
@keyframes txt-fade {
    0%   {opacity: 0}
    80%   {opacity: 0}
    100%  {opacity: 1}
}
#welcome {
    padding: 0 100px 30px;
    text-align: center;
}
#links {
    display: flex;
    justify-content: center;
}
#links > a {
    margin: 10px;
}
.down {
    color: #fff;
    height: 50px;
    display: block;
    margin: auto;
    animation: updown .4s linear infinite;
}
@keyframes updown {
    0% {transform: translate(0,0)}
    50% {transform: translate(0,7px);}
    100% {transform: translate(0,0);}
}
.banner {
    display: block;
    margin: auto;
    height: 180px;
    opacity: .1;
    object-fit: cover;
    animation: gowide linear forwards;
    animation-timeline: view();
    animation-range: 150px 600px;
}
@keyframes gowide {
    to {width: 100%; opacity: 1;}
}
.bgimg {
    position: relative;
    background-image: url("img/abstract.jpg");
    height: 500px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
#myskills {
    position: absolute;
    opacity: .85;
    background-color: #002524;
    padding-top: 20px;
    text-align: center;
}
#skillstxt {
    padding: 0px 100px 0px;
    opacity: 1;
}
.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    padding: 10px;
    margin: 0px 100px 0px;
}
.skills-grid > div {
    padding: 10px;
    font-size: 20px;
    font-weight: 900;
    text-align: center;
    border: 1px solid #fff;
    border-radius: 10px;
}
.workspace {
    width: 100vw;
    background-color: #00213e;
    text-align: center;
    background-image: url(img/wheelBG.png);
    background-size: cover;
}
#myworktxt {
    padding: 20px 100px 0px;
    opacity: 1;
}
.wheel {
    width: 100%;
    height: 47vh;
    text-align: center;
    overflow: hidden;
    position: relative;
}
.wheel .slider {
    position: absolute;
    width: 200px;
    height: 100px;
    top: 10%;
    left: calc(50% - 100px);
    transform-style: preserve-3d;
    transform: perspective(800px);
    animation: autoRun 20s linear infinite;
}
@keyframes autoRun {
    from{
        transform: perspective(800px) rotateX(-5deg) rotateY(0deg);
    }to{
        transform: perspective(800px) rotateX(-5deg) rotateY(360deg);
    }
}
.wheel .slider .item {
    position: absolute;
    inset: 0 0 0 0;
    transform:
        rotateY(calc( (var(--position) - 1) * (360 / var(--quantity)) * 1deg))
        translateZ(400px);
}
.wheel .slider .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
#icons {
    display: flex;
    justify-content: center;
}
#icons > a {
    margin: 15px 10px;
}
@media only screen and (max-width: 600px) {
    #welcome {
        padding: 0 30px 30px;
    }
    .banner {
        height: 120px;
    }
    #skillstxt {
        padding: 0px 35px 0px;
    }
    .skills-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
        padding: 5px;
        margin: 0px 30px 0px;
    }
    .skills-grid > div {
        padding: 5px;
        font-size: 18px;
    }
    .bgimg {
        height: 600px;
    }
    #myworktxt {
        padding: 20px 30px 0px;
    }
    .wheel {
        height: 57vh;
    }
    @keyframes autoRun {
        from{
            transform: perspective(800px) rotateX(-10deg) rotateY(0deg);
        }to{
            transform: perspective(800px) rotateX(-10deg) rotateY(360deg);
        }
    }
}