html{
    width: 100%;
    height: 100%;
}
body{
    width: 100%;
    height: 100%;
    margin: 0px;
    background: url("bild4.jpg") center / cover no-repeat fixed;
}
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100lvh; /* Täcker hela skärmen utan att hoppa när adressfältet på mobilen rör sig */
  background: url("bild4.jpg") center / cover no-repeat;
  z-index: -1;
}
#wrapper{
    width:100%;
    height: 100%;
    display:grid;
    grid-template-columns: 10% 1fr 10%;
    grid-template-rows: 10% 1fr 10%;
    /*background-image:url();
    background-repeat: no-repeat;*/
}


/*===============Navigaton Bar For Mobile Phone=======================*/
    @media (max-width:850px) {
    a{
    text-decoration: none;
    background: white;
    transition: color 0.3s ease;
    }
    a:hover{
        color:tomato
    }

    #menybox
    {
        display: block;
        position: relative;
        top: 50px;
        left: 50px;
        z-index: 1;
        -webkit-user-select: none;
        user-select: none;
    }
    #menybox input
    {
    display: block;
    width: 40px;
    height: 32px;
    position: absolute;
    top: -7px;
    left: -5px;
    cursor: pointer;
    opacity: 0;
    z-index: 2;
    -webkit-touch-callout: none;
    }
    #menybox span{
        display: block;
        width: 33px;
        height: 4px;
        margin-bottom: 5px;
        position: relative;
        background:white;
        border-radius: 3px;
        z-index: 1;
        transform-origin: 4px 0px;
        transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0),background 0.5s cubic-bezier(0.77,0.2,0.05,1.0),opacity 0.55s ease;
    }
    #menybox span:first-child
    {
        transform-origin: 0% 0%;
    }
    #menybox span:nth-last-child(2)
    {
        transform-origin: 0% 100%;
    }
    #menybox input:checked ~ span
    {
        opacity: 1;
        transform: rotate(45deg)translate(-2px,-1px);
        background: white;
    }
    #menybox input:checked ~ span:nth-last-child(3)
    {
        opacity: 0;
        transform: rotate(0deg)scale(0.2,0.2);
    }
    #menybox input:checked ~ span:nth-last-child(2)
    {
        transform: rotate(-45deg)translate(0,-1px);
    }

    #meny
    {

        position: fixed;
        width: 100vw;
        height: 100vh;
        margin: -100px 0 0 -50px;
        padding: 40px;
        padding-top: 125px;
        display: flex;
        flex-direction: column;
        gap: 15px;
        
        backdrop-filter: blur(20px);
        list-style-type: none;
        -webkit-font-smoothing: antialiased;

        transform-origin: 0% 0%;
        transform: translate(-100%,0);
        transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
        
    }
    #meny li
    {
    padding: 0px;
    font-size: 50px;
    font-family: 'Courier New', Courier, monospace;
    color: rgba(249, 248, 249, 0.4);
    }
    #menybox input:checked ~ ul
    {
        transform: none;
    }
    .menybtn1, .menybtn2
    { 
        width: 300px;
        height: 350px;
        background: rgba(0, 0, 0, 0);
        border-radius: 50px;
        cursor: pointer;

    }
    .menybtn1 li,.menybtn2 li
    {
        display: block;
        width: 100%;
        height: 100%;
        line-height: 120px;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    }
    
    /*======================================nav desktop================================*/
    
    @media (min-width:851px){
        nav.rounded-navbar {
                grid-column: 1 / -1;
                height: 90px;
                background: rgba(0, 0, 0, 0.3);
                display: flex;
                align-items: center;
                justify-content: flex-start;
                padding-left: 20px; 
                box-sizing: border-box;
                position: absolute;
                top: 15px;
                left: 10px;
                right: 20px;
                width: 99%;
                padding-top: 20px;
                border-radius: 60px;
                z-index: 100;
            }
            #menybox input, #menybox span{
                display: none ;
            }
            
            #menybox{
                position: static;
                background: transparent;
            }
            #meny{
                position: static;
                width: auto;
                height: auto;
                margin: 0;
                padding: 0;
                display: flex;
                flex-direction: row;
                gap: 60%;
                transform: none;
                backdrop-filter: none;
                list-style-type: none;
            }
            #meny li {
                font-size: 20px;
                font-family: 'Courier New', Courier, monospace;
                color: white;
                white-space: nowrap;
            }
            .menybtn1, .menybtn2{
                width: 200%;
                height: 50px;
                background: rgba(255, 255, 255, 0.05); 
                border: 1px solid rgba(255, 255, 255, 0.15);
                border-radius: 25px;
                cursor: pointer;
                display: flex;
                justify-content: center;
                align-items: center;
                transition: background 0.3s ease, border-color 0.3s ease;
            }
            .menybtn1:hover, .menybtn2:hover {
                background: rgba(255, 255, 255, 0.15);
                border-color: rgba(255, 255, 255, 0.3);
            }
            .menybtn1 li, .menybtn2 li {
                display: inline;
                line-height: normal;
                justify-content: initial;
                align-items: initial;
            }
            #meny a {
                text-decoration: none;
                color: white;
                transition: color 0.3s ease;
                background: transparent;
                width: 210%;
                height: 100%;
                background: rgba(0, 0, 0, 0.0);
                border-radius: 25px;
                display: flex;
                justify-content: center;
                align-items: center;
                cursor: pointer;

            }
            #meny a:hover {
                color: tomato;
            }          
            
        }









/*==========Refers Back To Aboute Me Page From The Other HTMLS================*/

        #namn 
        {
            position: absolute;
            top: 30px;
            right: 40px; 
            font-family: Arial, sans-serif;
            z-index: 101;
        }
        .avatar
        {
            width: 60px;
            height: 60px;
            background-color: rgba(0, 0, 0, 0.1);
            border: 2px solid #ffffff;
            border-radius: 50%;
            box-shadow: 0 1px 5px rgba(249, 248, 249, 0.4);
            display: flex;
            justify-content: center;
            align-items: center;
            color: white;
            font-size: 20px;
            cursor: pointer;
            
        }
        
        .namnknapp
        {
            width: 60px;
            height: 60px;
            background: rgba(0, 0, 0, 0.1);
            border: 2px;
            border-radius: 50%;
            cursor: pointer;
        }
        .namnknapp a,.namnknapp2 a
        {
            text-decoration: none;
        }
        #namn2 
        {
            position: absolute;
            top: 62px;
            transform: translateY(-50%);
            right: 100px; 
            font-family: Arial, sans-serif;
            z-index: 101;
        }     

        .avatar2
        {
            color: rgb(210, 210, 210);
            font-size: 20px;
            cursor: pointer;
        }
        .namnknapp2
        {
            width: 130px;
            height: 60px;
            background-color: rgba(0, 0, 0, 0.0);
            border: 2px solid rgba(0, 0, 0, 0.0);
            border-radius: 0%;
            cursor: pointer;
        }
/*================Aboute me==============*/
    #aboutme
    {
        font-size: 25px;
        color: rgb(141, 141, 141);
        font-weight: bold;
        grid-column: 2/3;
        grid-row: 2/3;
        
    }
    .rubrik
    {
        backdrop-filter: blur(100px);
        text-decoration: 2px underline;
        border-radius: 12px;
        padding: 20px;
        display: flex;
        justify-content: center;
    }
    .paragraph1
    {
        backdrop-filter: blur(100px);
        border-radius: 12px;
        padding: 35px;
    }
    #skillslista
    {
        font-size: 30px;
        backdrop-filter: blur(100px);
        border-radius: 12px;
        padding: 5px;
        display: flex;
        align-items: center;
        flex-direction: column;
    }
    footer
    {
        font-size: small;
        display: flex;
        justify-content: center;
        padding-top: 20%;
        padding-bottom: 20%;
        color: rgb(141, 141, 141);
    }


    
/*==================================project=======================================*/
    
    #projektlista{
        grid-row: 2;
        grid-column: 2;
        width: 100%;
        height: 100%;
        display:grid;
        grid-template-columns: 1fr;
        grid-template-rows: 5px 1fr 1fr 1fr 1fr 1fr 1fr;
        justify-items: center;
        align-items: center;
        gap: 40px;
    }
        /*=====================================PROJECT 1===================================*/
            .project1
            {
                grid-row: 2;
                display: grid;
                grid-template-columns: 100%; 
                grid-template-rows: 100%;
                border-radius: 15px;
                text-decoration: none;
            }            
            .project1 img
            {
                grid-column: 1/1;
                grid-row: 1/1;
                width: 100%;
                height: 100%;
                object-fit: cover;
                border-radius: 15px;
            }
            .projectinfo1
            {
                grid-column: 1/1;
                grid-row: 1/1;
                align-self: stretch;
                justify-self: stretch;
                align-content: center;
                justify-items: center;
                object-fit: cover;
                font-size: 25px;
                color: white;
                background-color: rgba(0, 0, 0, 0.5);
                backdrop-filter: blur(0px);
                padding: 35px;
                border-radius: 15px;
                border: 4px solid #585757;
            }

            #firstidea{
                grid-row: 2;
                grid-column: 2;
                width: 100%;
                height: 100%;
                display:grid;
                grid-template-columns: 1fr;
                grid-template-rows: 15px 0.5fr 0.7fr 1fr;
                gap: 10px;
                justify-items: center;
                align-items: center;
            }
            .phoneidea
            {
                grid-row: 4;
                display: grid;
                grid-template-columns: 100%; 
                grid-template-rows: 100%;
                border-radius: 15px;
            }
            .phoneidea img
            {
                grid-column: 1/1;
                grid-row: 1/1;
                width: 100%;
                height: 100%;
                object-fit: cover;
                border-radius: 15px;
            }
            .phoneidea1
            {
                grid-column: 1/1;
                grid-row: 1/1;
                align-self: stretch;
                justify-self: stretch;
                align-content: center;
                object-fit: cover;
                font-size: 25px;
                color: rgb(149, 146, 146);
                backdrop-filter: blur(15px);
                background-color: rgba(0, 0, 0, 0.1);
                font-size: 60px;
                padding: 35px;
                border-radius: 15px;
                text-decoration: underline rgb(149, 146, 146);
            }


            .ipadidea
            {
                grid-row: 3;
                display: grid;
                grid-template-columns: 100%; 
                grid-template-rows: 100%;
                border-radius: 15px;
            }
            .ipadidea img
            {
                grid-column: 1/1;
                grid-row: 1/1;
                width: 100%;
                height: 100%;
                object-fit: cover;
                border-radius: 15px;
            }
            .ipadidea1
            {
                grid-column: 1/1;
                grid-row: 1/1;
                align-self: stretch;
                justify-self: stretch;
                align-content: center;
                object-fit: cover;
                font-size: 25px;
                color: rgb(149, 146, 146);
                backdrop-filter: blur(15px);
                background-color: rgba(0, 0, 0, 0.1);
                font-size: 60px;
                padding: 35px;
                border-radius: 15px;
                text-decoration: underline rgb(149, 146, 146);
            }


            
            .desktopidea
            {
                grid-row: 2;
                display: grid;
                grid-template-columns: 100%; 
                grid-template-rows: 100%;
                border-radius: 15px;
            }
            .desktopidea img
            {
                grid-column: 1/1;
                grid-row: 1/1;
                width: 100%;
                height: 100%;
                object-fit: cover;
                border-radius: 15px;
            }
            .desktopidea1
            {
                grid-column: 1/1;
                grid-row: 1/1;
                align-self: stretch;
                justify-self: stretch;
                align-content: center;
                object-fit: cover;
                font-size: 25px;
                color: rgb(149, 146, 146);
                backdrop-filter: blur(15px);
                background-color: rgba(0, 0, 0, 0.1);
                font-size: 60px;
                padding: 35px;
                border-radius: 15px;
                text-decoration: underline rgb(149, 146, 146);
            }
        /*=========ANDRA PROJEKTER==========*/
            /*.project2,.project3,.project4,.project5,.project6
            {
                grid-row: 2;
                width:  350px;
                height: 200px;
                background: rgba(0, 0, 0, 0.5);
                border-radius: 12px;
                cursor: pointer;   
            }

            .p2,.p3,.p4,.p5,.p6
            {
                width: 100%;
                height: 100%;
                border-radius: 12px;
            }*/
    


    /*========================Contacts=====================*/
    @media (max-width:450px){
        .contactwrapper
    {
        grid-column: 2;
        grid-row: 2;
        align-self: center;
        justify-self: center;
        width: 100%;
        height: 100%;
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr 1fr;        
    }
    
    .link-card
    {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 15px;
        padding: 15px;
        border-radius: 14px;
        transition: transform 0.1s ease;
        -webkit-tap-highlight-color: transparent;
    }
    .link-card:active
    {
        transform: scale(0.97);
    }
    .link-card img
    {
        width: 50px;
        height: 50px;
        object-fit: contain;
        flex-shrink: 0;
    }
    .btn-email
    {
        font-size: 13px;
        background: rgba(0, 0, 0, 0.3);
        color: #ffffff;
        width: 100%;
        height: 100%;
    }
    .btn-instagram
    {
        font-size: 20px;
        background: rgba(0, 0, 0, 0.3);
        color: #ffffff;
        border: 1px solid #111111;
        width: 100%;
        height: 100%;
    }
    .contactwrapper1
    {
        color: antiquewhite;
        background: rgba(0, 0, 0, 0.3);
        backdrop-filter: blur(15px);
        border-radius: 14px;
        display: grid;
        justify-items: center;
        align-items: center;
        align-self: center;
        justify-self: center;
        justify-content: center;
        width: 80%;
        height: 60%;
        padding-left: 10%;
        padding-right: 10%;
        font-size: 20px;
    }

    .contactwrapper2,.contactwrapper3
    {
        display: grid;
        justify-items: center;
        align-self: center;
        justify-self: center;
        width: 100%;
        height: 100%;
    }
    .mail
    {
        display: grid;
        justify-items: center;
        align-self: center;
        justify-self: center;
        width: 80%;
        height: 60%;
    }
    .insta
    {
        display: grid;
        justify-items: center;
        align-self: center;
        justify-self: center;
        width: 80%;
        height: 60%;
    }
    }

    @media (min-width:450px){
        .contactwrapper
    {
        grid-column: 2;
        grid-row: 2;
        align-self: center;
        justify-self: center;
        width: 100%;
        height: 100%;
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr 1fr;        
    }
    
    .link-card
    {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 15px;
        padding: 15px;
        border-radius: 14px;
        transition: transform 0.1s ease;
        -webkit-tap-highlight-color: transparent;
    }
    .link-card:active
    {
        transform: scale(0.97);
    }
    .link-card img
    {
        width: 50px;
        height: 50px;
        object-fit: contain;
        flex-shrink: 0;
    }
    .btn-email
    {
        font-size: 19px;
        background-color: rgba(0, 0, 0, 0.3);;
        color: #ffffff;
        width: 100%;
        height: 100%;
        justify-content: center;
    }
    .btn-instagram
    {
        font-size: 20px;
        background: rgba(0, 0, 0, 0.3);;
        color: #ffffff;
        border: 1px solid #111111;
        width: 100%;
        height: 100%;
        justify-content: center;
    }
    .contactwrapper1
    {
        color: antiquewhite;
        background: rgba(0, 0, 0, 0.3);
        backdrop-filter: blur(15px);
        border-radius: 14px;
        display: grid;
        justify-items: center;
        align-items: center;
        align-self: center;
        justify-self: center;
        justify-content: center;
        width: 80%;
        height: 60%;
        padding-left: 10%;
        padding-right: 10%;
        font-size: 20px;
    }

    .contactwrapper2,.contactwrapper3
    {
        display: grid;
        justify-items: center;
        align-self: center;
        justify-self: center;
        width: 100%;
        height: 100%;
    }
    .mail
    {
        display: grid;
        justify-items: center;
        align-self: center;
        justify-self: center;
        width: 80%;
        height: 60%;
    }
    .insta
    {
        display: grid;
        justify-items: center;
        align-self: center;
        justify-self: center;
        width: 80%;
        height: 60%;
    }
 }