html {
    height: 100%;
}

body {
    height: 100%;
    background-color: black;
    font-family:'Italianno', cursive;
}
 
#wrapper {
    height: 100%;
    display: grid;
    grid-template-columns: 0.5fr 1fr 1fr 1fr 0.5fr; 
    grid-template-rows: auto; 
    grid-gap: 50px; /* grid-gap gör att det blir lite avstånd mellan dina rutor */
}

.rubrik {
    grid-column: 2;
    grid-row: 1;
    align-items: center;
    font-size: 9vw;
    color: white;
    z-index: 2;
    font-family: 'Italianno', cursive;
}

.rubrik2 {
    grid-column: 4;
    grid-row: 1;
    align-items: center;
    font-size: 9vw;
    color: white;
    z-index: 2;
    font-family: 'Italianno', cursive;
    margin-left: 1vw;
}

.Compass {
    grid-column:3;
    grid-row: 1 ;
    width: 60%;
    height: 60%;
    overflow: auto;
    z-index: 2;
    align-self: center;
    margin-left: 20%;
}  
 
.banner {
    grid-column: 1/6;
    grid-row: 1;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

#link {
    grid-column: 1;
    grid-row: 2;
    width:100%;
    height: 15vw;
    z-index: 1;
    position: relative;
    overflow: hidden;
    margin: 0 auto; /* Centrera horisontellt */
    display: block;
}

#PText {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -120%);
    z-index: 2;
    text-align: left;
    width: 100%;
    font-size: 5vw;
}
 
#SquareBild {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2vw;
}
 
#Square{
    grid-column: 2/5;  /* 2/5 gör att rutan sträcker sig över flera columner */
    background-color: grey;
    display: flex;
    justify-content: center;
    border-radius: 2vw;
    max-height: 15vw;
    position: relative;
}

p{
    font-size: 5vw;
    text-align: left;
    color: white;
    margin-left: 5vw;
}
 
.Karta{
    grid-row: 5;
    grid-column: 1/6;
    width: 100%;
}

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

    body {
      background-color: black;
      font-family:'Italianno', cursive;
    }

    #wrapper {
        height: 100%;
        display: grid;
        grid-template-columns: 0.5fr 1fr 1fr 1fr 0.5fr; 
        grid-template-rows: auto; 
        grid-gap: 10px; 
    }

    .rubrik {
        grid-column: 2;
        grid-row: 1;
        font-size: 12vw;
        color: white;
        z-index: 2;
        font-family: 'Italianno', cursive;
        margin-top: 13vw;
    }

    .rubrik2 {
        grid-column: 4;
        grid-row: 1;
        font-size: 12vw;
        color: white;
        z-index: 2;
        font-family: 'Italianno', cursive;
        margin-left: 1vw;
        margin-top: 13vw;
    }

    .Compass {
        grid-column:3;
        grid-row: 1 ;
        width: 20vw;
        height: 20vw;
        overflow: auto;
        z-index: 2;
        align-self: center;
        margin-bottom: 8vw;
        margin-right: 8vw;
    }  

    .banner {
        grid-column: 1/6;
        grid-row: 1;
        overflow: hidden;
        width: 100%;
        height: 80%;
    }

    #link {
        grid-column: 1;
        grid-row: 2;
        width:100%;
        height: 30vw;
        z-index: 1;
        position: relative;
        overflow: hidden;
        margin: 0 auto; 
        display: block;
    }
    
    #PText {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -120%);
        z-index: 2;
        text-align: left;
        width: 100%;
        font-size: 8vw;
    }
     
    #SquareBild {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 2vw;
    }
     
    #Square{
        grid-column: 1/6;
        background-color: grey;
        display: flex;
        justify-content: center;
        border-radius: 2vw;
        max-height: 30vw;
        position: relative;
    }
    
    p{
        font-size: 5vw;
        text-align: left;
        color: white;
        margin-left: 5vw;
    }
     
    .Karta{
        grid-row: 5;
        grid-column: 1/6;
        width: 100%;
        height: 100%;
    }
    
  }