* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10px;
    width: 100vw;
    height: 100vh;
    overflow-x: hidden;
    /*Ukrywa dolny pasek przewijania*/
}

.menu2 {
    display: none;
}

.header {
    background-color: black;
    height: 100vh;
    width: 100vw;
    position: relative;
}

.menuMobile {
    width: 100%;
    height: 80px;
    background: black;
    top: 0px;
    z-index: 40;
    display: inline-block;
    font-size: 1rem;
    color: white;
    z-index: 1000;
}

.active {
    top: 0px;
    position: fixed;
}

.menuMobile p:first-child {
    position: absolute;
    display: inline-block;
    left: 10px;
    top: 10px;
    color: rgb(216, 25, 25);
}

.menuMobile p:nth-child(2) {
    position: absolute;
    display: inline-block;
    left: 10px;
    top: 35px;
}

.menuMobile nav {
    position: absolute;
    color: whitesmoke;
    font-size: 40px;
    right: 8%;
    top: 10px;
}

.navigation {
    position: absolute;
    z-index: 30;
    width: 100vw;
    height: 100vh;
    background-color: #212121;
    margin-left: 100%;
    transform: translateX(-100%);
    transition: transform 0.5s;
}

.menu {
    font-size: 2rem;
    text-align: center;
    list-style-type: none;
    margin-top: 150px;
}

.menu li {
    padding-bottom: 20px;
}

.menu a {
    text-decoration: none;
    color: whitesmoke;
}

.menu #one {
    color: yellowgreen;
}

.menu a:hover {
    color: yellowgreen;
}

#exit {
    position: absolute;
    color: whitesmoke;
    font-size: 44px;
    right: 8%;
    top: 2%;
}

.name {
    position: absolute;
    top: 27%;
    left: 50%;
    margin-right: 50%;
    transform: translate(-50%, -50%);
}

.name2 p {
    color: whitesmoke;
    border-right: .15em solid orange;
    font-family: "Courier";
    font-size: 1.5rem;
    white-space: nowrap;
    /* Utrzymuje zawartość w jednej linii */
    overflow: hidden;
    /* Zapewnia,że zawartość nie zostanie ujawniona do czasu animacji */
    margin: 0 auto;
}

.name2 p:nth-child(1) {
    width: 13em;
    font-weight: 800;
    animation: type 1.6s steps(40, end);
    -webkit-animation: type 1.6s steps(40, end);
    -webkit-animation-fill-mode: forwards;
    animation-fill-mode: forwards;
}

.name p:nth-child(2) {
    width: 12em;
    opacity: 0;
    animation: type2 2s steps(40, end);
    -webkit-animation: type2 1.6s steps(40, end);
    animation-delay: 1.7s;
    -webkit-animation-delay: 1.7s;
    -webkit-animation-fill-mode: forwards;
    animation-fill-mode: forwards;
}

@keyframes type {
    0% {
        width: 0;
    }
    99.9% {
        border-right: .15em solid orange;
    }
    100% {
        border: none;
        color: rgb(216, 25, 25);
    }
}

@keyframes type2 {
    0% {
        width: 0;
    }
    1% {
        opacity: 1;
    }
    99% {
        border-right: .15em solid orange;
    }
    100% {
        opacity: 1;
        border: none;
    }
}

.name2 a {
    border-right: .15em solid orange;
    font-family: "Courier";
    font-size: 42px;
    white-space: nowrap;
    overflow: hidden;
    width: 0px;
    opacity: 0;
    animation: blink .5s step-end infinite alternate;
    animation-fill-mode: forwards;
    padding-left: 12px;
}

@keyframes blink {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 1;
    }
    50% {
        border-color: transparent;
    }
}

.picture {
    position: absolute;
    background: url(/Image/laptop_portrait.jpg) no-repeat;
    height: 320px;
    width: 100%;
    top: 45%;
    background-size: 100%;
    z-index: 10;
}

#arrow {
    color: whitesmoke;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 2%;
    font-size: 50px;
    text-align: center;
    /* text-shadow: 0px 15px 0 black, 0px 30px 0 black;  - dodaje dwie kolejne strzałki*/
    z-index: 20;
}

#arrow:hover {
    color: red;
    cursor: pointer;
}

@keyframes arrow {
    0% {
        transform: translateY(-80px);
    }
    50% {
        transform: translateY(0px);
    }
    100% {
        transform: translateY(35px);
        opacity: 1;
    }
}

.fa-chevron-down {
    opacity: 0;
    animation: arrow 1.4s infinite linear;
    animation-delay: 3s;
}

.aboutMe {
    position: relative;
    font-size: 1.5rem;
    background: url("Image/me_mobile.jpg") no-repeat center;
    background-size: 100%;
    width: 100%;
    height: 600px;
}

.okno {
    width: 100%;
    height: 600px;
    background-color: rgb(50, 50, 107);
    opacity: 0.7;
}

.aboutMe span {
    position: absolute;
    font-weight: 800;
    margin: 50px 0 0 50%;
    transform: translate(-50%, -50%);
    color: rgb(216, 25, 25);
    font-size: 2rem;
    /* background: -webkit-linear-gradient(5deg, rgb(248, 0, 0), rgb(2, 19, 255));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent; */
}

.aboutMe p {
    position: relative;
    width: 90%;
    top: 80px;
    left: 20px;
    margin-bottom: 10px;
    font-size: 1rem;
    color: whitesmoke;
    /* color: rgb(7, 7, 161); */
    line-height: 22px;
}

.aboutMe #line {
    width: 90%;
    height: 2px;
    background-color: rgb(216, 25, 25);
    top: 80px;
    margin-left: 0px;
    left: 5%;
}

.experience {
    width: 100vw;
    height: 700px;
    position: relative;
}

.experience span {
    display: block;
    font-weight: 800;
    text-align: center;
    color: rgb(216, 25, 25);
    font-size: 2rem;
    margin-bottom: 20px;
    margin-top: 60px;
}

.experience p {
    font-size: 1rem;
    color: rgb(7, 7, 161);
    text-align: center;
    margin-bottom: 15px;
    margin-top: 75px;
    font-weight: 600;
}

.experience img {
    margin-left: 10px;
    margin-top: 3%;
}

.experience #html5 {
    width: 100px;
    height: 100px;
}

.experience #css {
    width: 100px;
    height: 100px;
}

.experience #js {
    width: 100px;
    height: 100px;
}

.experience #rwd {
    width: 100px;
    height: 100px;
}

.experience #jq {
    width: 100px;
    height: 100px;
}

.experience #sass {
    width: 100px;
    height: 100px;
}

.experience #react {
    width: 100px;
    height: 100px;
}

.experience #ts {
    width: 100px;
    height: 100px;
}

.experience #node {
    width: 100px;
    height: 100px;
}

.experience #mysql {
    width: 100px;
    height: 100px;
}

.experience #json {
    width: 100px;
    height: 100px;
}

.experience #git {
    width: 100px;
    height: 100px;
}

.line {
    width: 95%;
    height: 2px;
    background-color: rgb(216, 25, 25);
    margin-top: 15px;
    left: 2.5%;
    margin-bottom: 10px;
}

.line2 {
    width: 95%;
    height: 2px;
    background-color: rgb(216, 25, 25);
    margin-top: 55px;
    margin-left: 2.5%;
    margin-right: 2.5%;
}

#portfolio2 {
    display: block;
    font-weight: 800;
    text-align: center;
    color: rgb(216, 25, 25);
    font-size: 2rem;
    margin-bottom: 20px;
}

.portfolio {
    display: flex;
    flex-wrap: wrap;
}

.portfolio .project {
    height: 220px;
    flex-basis: 100%;
}

.portfolio #project1 {
    position: relative;
    z-index: 130;
    background-image: url("/Image/mymemory2.png");
    background-repeat: no-repeat;
    background-size: 100%;
}

.portfolio #project2 {
    position: relative;
    z-index: 110;
    background-image: url("/Image/weather.png");
    background-repeat: no-repeat;
    background-size: 100%;
}

.portfolio #project3 {
    position: relative;
    z-index: 90;
    background-image: url("/Image/project2_mobile.jpg");
    background-repeat: no-repeat;
    background-size: 100%;
}

.portfolio #project4 {
    position: relative;
    z-index: 130;
    background-image: url("/Image/losowanie.png");
    background-repeat: no-repeat;
    background-size: 100%;
}

.portfolio #project5 {
    position: relative;
    z-index: 110;
    background-image: url("/Image/game.png");
    background-repeat: no-repeat;
    background-size: 100%;
}

.portfolio #project6 {
    position: relative;
    z-index: 90;
    background-image: url("/Image/kolko_i_krzyzyk.png");
    background-repeat: no-repeat;
    background-size: 100%;
}

.description1 {
    background: rgba(36, 46, 108, 0.9);
    width: 100%;
    height: 100%;
    position: absolute;
    left: -100%;
    z-index: 140;
    padding-left: 10px;
    padding-top: 10px;
    color: whitesmoke;
    font-size: 1rem;
}

.about {
    font-size: 0.9rem;
    padding-top: 10px;
    position: relative;
}

.button {
    width: 60px;
    height: 40px;
    background-color: black;
    bottom: 10px;
    border-radius: 25px;
    font-size: 2rem;
    text-align: center;
    line-height: 40px;
    position: absolute;
    left: 50%;
    margin-right: -50%;
    transform: translateX(-50%);
    text-decoration: none;
    color: whitesmoke;
}

.description2 {
    background: rgba(36, 46, 108, 0.9);
    width: 100%;
    height: 100%;
    position: absolute;
    left: -100%;
    z-index: 120;
    padding-left: 10px;
    padding-top: 10px;
    color: whitesmoke;
    font-size: 1rem;
}

.description3 {
    background: rgba(36, 46, 108, 0.9);
    width: 100%;
    height: 100%;
    position: absolute;
    left: -100%;
    z-index: 100;
    padding-left: 10px;
    padding-top: 10px;
    color: whitesmoke;
    font-size: 1rem;
}

.description4 {
    background: rgba(36, 46, 108, 0.9);
    width: 100%;
    height: 100%;
    position: absolute;
    left: -100%;
    z-index: 140;
    padding-left: 10px;
    padding-top: 10px;
    color: whitesmoke;
    font-size: 1rem;
}

.description5 {
    background: rgba(36, 46, 108, 0.9);
    width: 100%;
    height: 100%;
    position: absolute;
    left: -100%;
    z-index: 120;
    padding-left: 10px;
    padding-top: 10px;
    color: whitesmoke;
    font-size: 1rem;
}

.description6 {
    background: rgba(36, 46, 108, 0.9);
    width: 100%;
    height: 100%;
    position: absolute;
    left: -100%;
    z-index: 100;
    padding-left: 10px;
    padding-top: 10px;
    color: whitesmoke;
    font-size: 1rem;
}

.description1a {
    transform: translateX(100%);
    transition: transform 0.1s;
}

.description2a {
    transform: translateX(100%);
    transition: transform 0.1s;
}

.description3a {
    transform: translateX(100%);
    transition: transform 0.1s;
}

.description4a {
    transform: translateX(100%);
    transition: transform 0.1s;
}

.description5a {
    transform: translateX(100%);
    transition: transform 0.1s;
}

.description6a {
    transform: translateX(100%);
    transition: transform 0.1s;
}

.kontakt {
    width: 100%;
    height: 800px;
    position: relative;
}

.kontakt span {
    display: block;
    font-weight: 800;
    text-align: center;
    color: rgb(216, 25, 25);
    font-size: 2rem;
    margin-bottom: 20px;
    margin-top: 50px;
}

.kontakt a {
    text-decoration: none;
}

.kontakt p {
    text-align: center;
    color: rgb(7, 7, 161);
    font-size: 1rem;
    padding: 3px;
}

.kontaktImage {
    text-align: center;
    margin-top: 2%;
}

#mail {
    background: url(/Image/mail.png) no-repeat;
    width: 50px;
    height: 50px;
    background-size: 100%;
    display: inline-block;
    margin-right: 30px;
}

#linkedin {
    background: url(/Image/linkedin.png) no-repeat;
    width: 100px;
    height: 70px;
    background-size: 100%;
    display: inline-block;
}

fieldset {
    border: none;
}

#my-form {
    width: 100%;
}

#my-form em {
    color: red;
}

#my-form .item {
    position: relative;
    margin: 28px 0;
}

#my-form input,
#my-form textarea {
    display: block;
    padding: 10px 35px;
    width: 90%;
    font-size: 16px;
    background: #efefef;
    border: none;
    box-sizing: border-box;
    border-radius: 20px;
    margin: 0 auto;
}

#my-form label {
    opacity: 0.3;
    position: absolute;
    bottom: 0px;
    left: 11%;
    transition: 1s all;
    font-size: 20px;
    line-height: 40px;
}

#my-form input:focus,
#my-form textarea:focus {
    border: 1px solid #666;
}

#my-form input:focus+label,
#my-form input:valid+label {
    bottom: 35px;
    font-size: 16px;
    opacity: 0.7;
}

#my-form input:valid {
    background-image: url('https://cdn0.iconfinder.com/data/icons/small-n-flat/24/678134-sign-check-128.png');
    background-repeat: no-repeat;
    background-size: 25px;
    background-position: 1% 50%;
    border: 2px solid #16FF84;
}

#my-form textarea+label {
    top: 0;
}

#my-form textarea:focus+label,
#my-form textarea:valid+label {
    top: -32px;
    font-size: 16px;
    opacity: 0.7;
}

#my-form textarea:valid {
    border: 2px solid #16FF84;
}

#my-form input[type="submit"] {
    border: none;
    background-image: none;
    background-color: #228822;
    color: whitesmoke;
}

#my-form input[type="submit"]:hover {
    cursor: pointer;
    background-color: #226622;
}

legend {
    display: none;
}

.footer {
    width: 100vw;
    height: 50px;
    background-color: black;
    color: whitesmoke;
    text-align: center;
    line-height: 50px;
    font-size: 1rem;
}

@media (orientation: landscape) {
    .header nav {
        right: 4%;
        top: 6%;
    }
    .menu {
        margin-top: 50px;
    }
    #exit {
        right: 4%;
        top: 6%;
    }
    .name {
        top: 50%;
        left: 26%;
    }
    .name2 p {
        font-size: 1.4rem;
    }
    .picture {
        background: url(/Image/laptop_landscape.jpg) no-repeat;
        position: absolute;
        left: 50%;
        width: 50%;
        height: 270px;
        top: 20%;
        background-size: 100%;
        z-index: 10;
    }
    .aboutMe {
        position: relative;
        font-size: 1.2rem;
        background: url("image/me2.jpg") no-repeat center;
        background-size: 100%;
        width: 100%;
        height: 650px;
    }
    .okno {
        width: 50%;
        height: 650px;
        margin: 0;
    }
    .aboutMe span {
        margin: 40px 0 0 80px;
    }
    .aboutMe p {
        top: 80px;
        left: 10px;
        font-size: 1rem;
        line-height: 22px;
    }
    .aboutMe #line {
        width: 90%;
        height: 2px;
        background-color: rgb(216, 25, 25);
        top: 80px;
        margin-left: 0px;
        left: 5%;
        margin-bottom: 20px;
    }
    .experience .center {
        display: block;
        text-align: center;
    }
    .experience {
        height: 700px;
    }
    #portfolio2 {
        margin-top: 100px;
    }
    .portfolio .project {
        height: 400px;
        flex-basis: 33.33%;
        flex-grow: 1;
    }
    .portfolio #project1 {
        background-image: url("/Image/mymemory.png");
        background-position: center;
        background-size: cover;
    }
    .portfolio #project2 {
        background-image: url("/Image/weather.png");
        background-position: center;
        background-size: cover;
    }
    .portfolio #project3 {
        background-image: url("/Image/project2_mobile.jpg");
        background-position: center;
        background-size: cover;
    }
    .portfolio #project4 {
        background-image: url("/Image/losowanie.png");
        background-position: center;
        background-size: cover;
    }
    .portfolio #project5 {
        background-image: url("/Image/game.png");
        background-position: center;
        background-size: cover;
    }
    .portfolio #project6 {
        background-image: url("/Image/kolko_i_krzyzyk.png");
        background-position: left;
        background-size: cover;
    }
}

@media( min-width:768px) and (orientation: portrait) {
    .menuMobile p {
        font-size: 1.4rem;
    }
    .name2 p {
        font-size: 3rem;
    }
    #exit {
        font-size: 3.5rem;
    }
    .menu {
        font-size: 3.5rem;
    }
    .header nav {
        font-size: 3.5rem;
    }
    .picture {
        position: absolute;
        background: url(/Image/laptop_portrait2.jpg) no-repeat;
        height: 500px;
        width: 100%;
        top: 45%;
        background-size: 100%;
        z-index: 10;
    }
    .aboutMe {
        position: relative;
        font-size: 1.5rem;
        background: url("Image/me_mobile2.jpg") no-repeat center;
        background-size: 100%;
        width: 100%;
        height: 800px;
    }
    .okno {
        width: 100%;
        height: 800px;
        background-color: rgb(50, 50, 107);
        opacity: 0.8;
    }
    .aboutMe span {
        position: absolute;
        font-size: 1.9rem;
    }
    .aboutMe p {
        top: 80px;
        left: 40px;
        margin-bottom: 20px;
        font-size: 1.4rem;
        line-height: 28px;
    }
    .aboutMe #line {
        width: 90%;
        height: 2px;
        top: 100px;
        margin-left: 0px;
        left: 5%;
        margin-bottom: 50px;
    }
    .experience span {
        font-size: 1.9rem;
    }
    .experience p {
        font-size: 1.4rem;
    }
    #portfolio2 {
        font-size: 1.9rem;
    }
}

@media(min-width: 768px) and (orientation: landscape) {
    .menuMobile p {
        font-size: 1.2rem;
    }
    .name2 p {
        font-size: 1.6rem;
    }
    .aboutMe {
        position: relative;
        background: url("image/me2.jpg") no-repeat center;
        height: 900px;
    }
    .okno {
        height: 900px;
    }
    .aboutMe span {
        font-size: 2rem;
        left: 50px;
    }
    .aboutMe p {
        top: 100px;
        left: 40px;
        margin-bottom: 20px;
        font-size: 1.3rem;
        line-height: 28px;
    }
    .aboutMe #line {
        width: 90%;
        height: 2px;
        top: 100px;
        margin-left: 0px;
        left: 5%;
        margin-bottom: 50px;
    }
    .experience span {
        font-size: 2rem;
    }
    .experience p {
        font-size: 1.3rem;
    }
    #portfolio2 {
        font-size: 2rem;
    }
}

@media(min-width: 1024px) and (orientation: portrait) {
    .menuMobile p {
        font-size: 2rem;
    }
    .name2 p {
        font-size: 3.5rem;
    }
    .picture {
        height: 650px;
        top: 50%;
    }
    #exit {
        font-size: 5rem;
    }
    .menu2 {
        font-size: 4.5rem;
    }
    .header2 nav {
        font-size: 4.5rem;
    }
    .aboutMe {
        height: 1000px;
    }
    .okno {
        height: 1000px;
    }
    .aboutMe span {
        margin-top: 100px;
        font-size: 3.3rem;
    }
    .aboutMe p {
        top: 150px;
        left: 40px;
        margin-bottom: 20px;
        font-size: 2rem;
        line-height: 36px;
    }
    .aboutMe #line {
        width: 90%;
        height: 2px;
        top: 160px;
        margin-left: 0px;
        left: 5%;
        margin-bottom: 50px;
    }
    .experience span {
        font-size: 3.3rem;
    }
    .experience p {
        font-size: 2rem;
    }
    #portfolio2 {
        font-size: 3.3rem;
    }
}


/* Wersja na komputer */

@media(min-width: 1024px) and (orientation: landscape) {
    #navigation {
        display: none;
    }
    nav {
        display: none;
    }
    .menu2 {
        position: absolute;
        font-size: 1rem;
        right: 40px;
        top: 30px;
        display: inherit;
    }
    .menu2 a {
        color: whitesmoke;
        text-decoration: none;
        padding-left: 20px;
    }
    .menu2 #home {
        color: yellowgreen;
    }
    .menu2 a:hover {
        color: gray;
    }
    .menu2 #home:hover {
        color: gray;
    }
    .colorMenu {
        color: yellowgreen;
        font-size: 25px;
    }
    .name {
        top: 40%;
        left: 25%;
    }
    .name p {
        font-size: 2.3rem;
    }
    .picture {
        height: 600px;
    }
    .description1 {
        padding-left: 50px;
        padding-top: 50px;
        font-size: 1.3rem;
    }
    .about {
        font-size: 1rem;
        padding-top: 20px;
    }
    .line {
        width: 95%;
        height: 2px;
        background-color: rgb(216, 25, 25);
        top: 210px;
        left: 2.5%;
        margin-bottom: 20px;
    }
    .button {
        width: 80px;
        height: 50px;
        bottom: 20px;
        border-radius: 25px;
        font-size: 2rem;
        line-height: 50px;
    }
    .description2 {
        padding-left: 50px;
        padding-top: 50px;
        color: whitesmoke;
        font-size: 1.3rem;
    }
    .description3 {
        padding-left: 50px;
        padding-top: 50px;
        color: whitesmoke;
        font-size: 1.3rem;
    }
    .description4 {
        padding-left: 50px;
        padding-top: 50px;
        color: whitesmoke;
        font-size: 1.3rem;
    }
    .description5 {
        padding-left: 50px;
        padding-top: 50px;
        color: whitesmoke;
        font-size: 1.3rem;
    }
    .description6 {
        padding-left: 50px;
        padding-top: 50px;
        color: whitesmoke;
        font-size: 1.3rem;
    }
    .kontakt span {
        margin-bottom: 100px;
        font-size: 2.5rem;
        position: relative;
    }
    .kontakt_name {
        display: inline-block;
        position: absolute;
        left: 50px;
    }
    .kontakt_name p {
        font-size: 1.3rem;
        text-align: left;
    }
    #my-form legend {
        font-size: 24px;
        color: black;
    }
    fieldset {
        left: 35%;
        width: 60%;
        position: absolute;
    }
    .footer {
        font-size: 1rem;
    }
    .kontaktImage {
        margin-top: 7%;
    }
    #mail {
        width: 100px;
        height: 100px;
    }
    #linkedin {
        width: 150px;
        height: 100px;
        margin-top: 50px;
    }
}

@media(min-width: 1280px) {
    .menuMobile p {
        font-size: 1.3rem;
    }
    .menu2 {
        font-size: 1.2rem;
        right: 50px;
        line-height: 30px;
    }
    .picture {
        position: absolute;
        background: url(/Image/laptop_max.jpg) no-repeat;
        height: 700px;
        width: 50%;
        top: 18%;
        background-size: 100%;
        z-index: 10;
    }
    .aboutMe {
        position: relative;
        font-size: 1.5rem;
        background: url("Image/me3.jpg") no-repeat center;
        background-size: 100%;
        width: 100%;
        height: 1200px;
    }
    .okno {
        width: 50%;
        height: 1200px;
        background-color: rgb(50, 50, 107);
        opacity: 0.8;
    }
    .aboutMe span {
        margin: 90px 0 0 120px;
        color: rgb(216, 25, 25);
        font-size: 2.5rem;
    }
    .aboutMe p {
        top: 200px;
        left: 30px;
        font-size: 1.5rem;
        line-height: 30px;
        margin-bottom: 20px;
        font-size: 1.5rem;
        line-height: 36px;
    }
    .aboutMe #line {
        width: 95%;
        height: 2px;
        background-color: rgb(216, 25, 25);
        top: 210px;
        margin-left: 0px;
        left: 2.5%;
        margin-bottom: 50px;
    }
    .experience {
        height: 500px;
    }
    .experience span {
        font-size: 2.5rem;
    }
    .experience p {
        font-size: 1.5rem;
    }
    #portfolio2 {
        font-size: 2.5rem;
    }
}

@media(min-width: 1600px) {}