html {
    width: 80vw !important;
}

@keyframes appearFromTop{
    0%{
        height: 0;
        opacity: 0;
        transform: translateY(-200%);
    }
    100%{
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes FromBottom{
    0%{
        height: 0;
        opacity: 0;
        transform: translateY(200%);
    }
    100%{
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes appear {
    0% {
        opacity: 0;
        border-radius: 100%;
    }
    100% {
        opacity: 1;
        border-radius: 0;
    }
}

.sec1{
    background-image: linear-gradient(var(--leading-theme-color), var(--second-leading-color));
}

nav{
    background-image: linear-gradient(var(--second-leading-color), var(--leading-theme-color));
}

.background {
    width: 50%;
    height: 500px;
}

.background:hover {
    filter: drop-shadow(8px 8px 2px black);
    transition: filter 0.5s ease;
}

.sec1 {
    width: 100vw;
    display: flex;
    height: 100vh;
    justify-content: space-between;
}

.description {
    align-content: center;
    text-transform: uppercase;
    color: white;
    font-size: 26px;
    padding-right: 10%;
    padding-left: 5%;
    padding-bottom: 10%;
    line-height: 200%;
}

@media screen and (max-width: 768px){

    .description {
        font-size: 18px;
    }

}

@media screen and (max-width: 768px){

    section {
        height: 50%;
    }

    .rightnav{
        opacity: 0;
        position: absolute;
    }

    .sec3 .curves2 {
        height: 50vh;
    }
}

.rightnav{
    padding-right: 3%;
    display: flex;
    flex-direction: column;
    gap: 25%;
    height: 7%;
    width: 15%;

}



.line1, .line2 {
    height: 25vh;
}

.inst:hover, .mail:hover {
    transform: rotate(15deg) scale(2) translateX(-30%);
    transition: transform 1s ease-out;
}
.face:hover {
    transform: rotate(15deg) scale(1.5) translateX(-30%);
    transition: transform 1s ease-out;
}

.inst:hover:after {
    content: url('grafiki_pod_strone/1x/instk.svg');
}

.line1 {
    animation-timing-function: ease-out;
    animation-fill-mode: forwards;
    animation: appearFromTop 2s ;
}
.line2 {
    animation-timing-function: ease-out;
    animation-fill-mode: forwards;
    animation: FromBottom 2s ;
}

.inst, .face, .mail {
    animation-timing-function: ease-out;
    animation-fill-mode: forwards;
    animation: appear 3s ;
}

.curves1 {
    z-index: 1;
    width: 100vw;
    height: 100vh;
    background: url("grafiki_pod_strone/curves1.svg") no-repeat;
    background-size: cover;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.shortAbout {
    padding-top: 10%;
}

.slider {
    margin-top: 20%;
    flex-wrap: wrap;
    overflow: hidden;
    height: 450px;
    width: 300px;
    box-shadow: 20px 20px 10px #242424;
    border-radius: 10%;
}

.slider figure {
    position: relative;
    width: 500%;
    margin: 0;
    left: 0;
    animation: 20s slider infinite;
    animation-timing-function: linear;
    animation-fill-mode: both;
}
.slider figure:hover {
    animation-play-state: paused;
}

.slider figure img {
    width: 20%;
    float: left;
}

.about_container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    align-content: space-between;
    width: 100vw;
    flex-wrap: wrap;
}

@keyframes slider {
    0% {
        left: 0;
    }

    100% {
        left: -300%;
    }

}

.curves2 {
    z-index: 1;
    width: 100vw;
    height: 100vh;
    background: url("grafiki_pod_strone/curves2.svg") no-repeat;
    background-size: cover;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
}

.slogan {
    z-index: 1;
    color: white;
    padding: 1%;
    margin-bottom: 8%;
    margin-left: 15%;
    backdrop-filter: blur(30px);
    text-transform: uppercase;
}

.g:hover {
    transform-style: preserve-3d;
    transform: perspective(4000px) translateZ(300px);
    filter: drop-shadow(8px 8px 2px rgba(255, 255, 255, 0.27));
}

@keyframes moving-shape1{
    0%{
        transform: translateX(-10%);
    }
    50%{
        transform: translateY(-10%);
    }
    100%{
        transform: translateX(10%);
    }
}
@keyframes moving-shape2{
    0%{
        transform: translateX(-10%);
    }
    50%{
        transform: translateY(10%);
    }
    100%{
        transform: translateX(10%);
    }
}

.shape1 {
    position: relative;
    left: 20%;
    bottom: 5%;
    border-radius: 50%;
    height: 150px;
    width: 150px;
    background: linear-gradient(rgb(255, 255, 255) 0%, rgb(175, 133, 191) 50%, rgb(37, 17, 54) 100%);
}

.shape2 {
    position: relative;
    left: -10%;
    bottom: 20%;
    border-radius: 50%;
    height: 150px;
    width: 150px;
    background: linear-gradient(rgb(255, 255, 255) 0%, rgb(175, 133, 191) 50%, rgb(37, 17, 54) 100%);
}

.shape1{
    display: flex;
    animation-name: moving-shape1;
    animation-duration: 3s;
    animation-delay: 1s;
    animation-fill-mode: both;
    animation-iteration-count: infinite;
    animation-direction: alternate;
    animation-timing-function: ease;
}
.shape2{
    display: flex;
    animation-name: moving-shape2;
    animation-duration: 3s;
    animation-delay: 1s;
    animation-fill-mode: both;
    animation-iteration-count: infinite;
    animation-direction: alternate;
    animation-timing-function: ease;
}

.sec4 {
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background-image: linear-gradient(#5a3d72, #cbc2d3);
}

.sec5 {
    background-image: url(zdjęcia_portfolio/slogan2back.webp);
    background-size: cover;
    background-position: center;

/*background: linear-gradient(
        15deg,
        var(--second-leading-color) 0%,
        transparent 100%
);*/
color: white;
text-transform: uppercase;
height: 40vh;
width: 100vw;
display: flex;
align-items: center;
justify-content: center;
flex-direction: row;
flex-wrap: wrap;
gap: 10%;
}
.overlay {
    position: absolute;
    width: 100vw;
    height: 40vh;
    z-index: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}
.over {
    height: 40vh;
    width: 100vw;
    padding: 0;
    margin: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20%;
}

@media screen and (max-width: 1470px){

    .more3 {
        display: flex;
        flex-wrap: wrap;
    }

}

@media screen and (max-width: 768px){

    .over{
        height: 10vh !important;
    }

    .slider {
        height: 300px;
        width: 200px;
    }

}
@media screen and (max-width: 768px){

    .sec1{
        height: 90vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }
    .background {
        margin-left: 30%;
        padding-top: 20vh !important;
    }
    .description {
        padding-bottom: 10%;
    }

}

@media screen and (max-width: 768px){

    .sec2{
        height: 80vh;

    }

}
@media screen and (max-width: 585px){

    .sec2{
        height: 80vh;
    }
    .shortAbout {
        padding-top: 50%;
        font-weight: bold;
        padding-right: 5vw;
        padding-left: 5vw;
    }

    .shape1 .shape2 {
        height: 100px; !important;
        width: 100px; !important;
    }

}
@media screen and (max-width: 768px){

    .more3 {
        margin-right: 10%;
    }

}
@media screen and (max-width: 768px){

    .more3 {
        margin-right: 10%;
    }

}

@media screen and (max-width: 1290px){

    .shape1, .shape2 {
        height: 100px;
        width: 100px;
        min-height: 100px;
        min-width: 100px;
    }

}

@media screen and (max-width: 768px){

    .shape1, .shape2 {
        height: 50px;
        width: 50px;
        min-height: 50px;
        min-width: 50px;
    }

}
