html{
    scroll-padding-top: 128px;
    scroll-behavior: smooth;
}
body{
    background: #ffffff;
    max-width: 100vw;
}
/* main{
    isolation: isolate;
    transition: filter 0.3s ease;
} */

p, h1, h2, h3, h4, strong, li, .desktop-only, .avoid-wrap, .wrap-hyphen{
    font-family: 'DM Sans', Arial, Helvetica, sans-serif;
    color: #000000;
}
a{
    color: #c2d9ff;
}
h2{
    font-weight: 400;
    font-size: 1.625rem;
    font-family: 'DM Serif Text', 'Times New Roman', Times, serif;
    text-align: center;
}
h3{
    font-size: 1.125rem;
}
strong{
    font-weight: 700;
}
span .avoid-wrap{
    display: inline-block;
}

#medlemsavgifter, #kontakt{
    padding: 2rem 0 2rem 0;
}

.centered{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.centered-text{
    text-align: center;
}

.area-box{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 95vw;
    padding: 1rem;
    margin: 1rem 0 0 0;
    background: 
    linear-gradient(
        to right bottom,
        rgba(255, 248, 241, 0.25),
        rgba(255, 212, 186, 0.25),
        rgba(255, 248, 241, 0.25)
    );
    background-clip: padding-box, border-box;
    background-origin: padding-box, border-box;
    backdrop-filter: saturate(125%);
    -webkit-backdrop-filter: saturate(125%);
    border-radius: 1.5rem;
    box-shadow: 0 0 1rem 0 rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.area-box p{
    width: 100%;
}

.area-box#pitch .centered-text:last-child,
#kontakt .area-box .centered-text:last-child{
    margin-bottom: 0.5rem;
}

.area-box:first-child{
    margin: 0;
}

.column{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}
.row{
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.combo-mark{
    justify-self: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
}

header{
    height: 8rem;
}
header h2{
    text-align: left;
}
header .area-box{
    position: fixed;
    justify-content: space-between;
    width: auto;
    border-radius: 100px;
    padding: 0.75rem;
    gap: 1rem;
    -webkit-backdrop-filter: blur(2rem) saturate(150%);
    backdrop-filter: blur(2rem) saturate(150%);
    background: linear-gradient(to right bottom, rgba(255, 248, 241, 0.5), rgba(255, 212, 186, 0.5), rgba(255, 248, 241, 0.5));
    background-clip: padding-box;
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 2rem 0 rgb(0, 0, 0, 0.15);
    text-align: left;
    z-index: 1000;
}

.logo{
    width: 70px;
    height: 100%;
}

.combo-mark h1{
    margin-top: -5px;
    font-size: 34px;
    font-family: 'DM Serif Text';
    font-weight: 400;
    line-height: 1.25;
}
.combo-mark h2{
    margin-top: -10px;
    font-size: 19px;
    font-weight: 400;
    font-family: 'DM Serif Text';
}
ul{
    display: flex;
    flex-direction: column;
    list-style-type: none;
    margin: 0;
    padding: 0;
    gap: 4px;
}
header ul{
    margin-top: -3px;
}
.line{
    width: 2px;
    height: 60px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.2);
}
ul li a, ul li p{
    font-size: 13px;
    color: rgba(0, 0, 0, 0.75);
    transition: font-weight 0.3s ease;
}

#menu-btn{
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    border-radius: 1.25rem;
    background: linear-gradient(to right bottom, rgba(255, 248, 241, 0.25), rgba(255, 232, 200, 0.25), rgba(255, 248, 241, 0.25));
    border: 2px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.1);
}
#menu-btn.open #hamburger-icon{
    opacity: 0;
}
#hamburger-icon{
    opacity: 0.75;
}
#cross-icon{
    opacity: 0;
}
#menu-btn.open #cross-icon{
    opacity: 0.75;
}
#hamburger-icon, #cross-icon{
    position: absolute;
    width: 1.25rem;
    height: 1.25rem;
    transition: opacity 0.45s ease;
}

#dropdown-menu{
    align-self: flex-end;
    pointer-events: none;
    position: fixed;
    text-align: right;
    top: 130px;
    padding: 0 5vw 0 0;
    z-index: 1000;
}
#dropdown-menu.open{
    pointer-events: auto;
}

#dropdown-menu ul{
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
}
#dropdown-menu ul li a{
    display: block;
    transform: scale(0);
    transform-origin: center;
    border-radius: 1.5rem;
    padding: 0.75rem;
    -webkit-backdrop-filter: blur(1rem) saturate(125%);
    backdrop-filter: blur(1rem) saturate(125%);
    background: linear-gradient(to right bottom, rgba(255, 248, 241, 0.5), rgba(255, 212, 186, 0.5), rgba(255, 248, 241, 0.5));
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 20px 0 rgb(0, 0, 0, 0.15);
    transition: transform 0.3s ease-in;
}
#dropdown-menu.open ul li a{
    transform: scale(1);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
#dropdown-menu ul li a{
    font-size: 1rem;
}

#blur-backdrop{
    position: fixed;
    inset: 0;
    -webkit-backdrop-filter: blur(0.5rem);
    backdrop-filter: blur(0.5rem);
    z-index: 100;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}
#blur-backdrop.open{
    opacity: 1;
}

.text{
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
    font-size: 1rem;
    gap: 0.75rem;
    max-width: 90vw;
}
.area-box .text{
    font-size: 1rem;
}
#introduktion{
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
}
#intro-text{
    font-size: 1.125rem;
    margin: 0;
}

.bg-img{
    position: absolute;
    pointer-events: none;
    z-index: -10;
    max-height: 100%;
}

#introduktion .bg-img{
    bottom: 0;
}

#introduktion .bg-img.left{
    height: 12rem;
    left: 0;
    transform: translateX(-18%);
    max-width: none;
}

#introduktion .bg-img.right{
    height: 11rem;
    right: 0;
    transform: translateX(10%);
    max-width: none;
}

#information-wrapper{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0 13rem 0;
    z-index: 1;
}
/* #information-wrapper .area-box{
    padding: 0.75rem;
} */
/* #information-wrapper .right .area-box{
    position: relative;
    isolation: isolate;
}
#information-wrapper .right .area-box::after{
    content: "";
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 300px;
    background: url(images/squash-racket2.png) center/contain no-repeat;
    z-index: -10;
} */

.right .column .row{
    flex-direction: column;
}

.text-box{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    border-radius: 1rem;
    text-align: center;
    line-height: 1.5;
    border: 2px solid rgba(255, 180, 140, 0.5);
    overflow-wrap: break-word;
    word-break: keep-all;
    background: linear-gradient(
        to right bottom,
        rgba(190, 70, 40, 0.75),
        rgba(200, 50, 40, 0.75),
        rgba(190, 70, 40, 0.75)
    );
    background-clip: padding-box, border-box;
    background-origin: padding-box, border-box;
    box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.1);
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.6s ease, background-color 0.6s ease;
    will-change: transform, background-color, border-color;
}

.text-box p, .text-box h3, .text-box strong, .text-box span{
    color: #FFFFFF;
}
.text-box p, .text-box strong, .text-box span{
    font-size: 0.875rem;
}

#medlemsavgifter{
    width: 100%;
    background: #FFF6E0;
    background-image: linear-gradient(
        to right bottom,
        #ffd3ae,
        #ffe0c2,
        #fff1db,
        #ffe0c2,
        #ffd3ae
    );
    box-shadow: 0 0 2rem 0 rgba(0, 0, 0, 0.2);
    border-top: 2px solid rgba(255, 255, 255, 0.75);
    border-bottom: 2px solid rgba(255, 255, 255, 0.75);
}

.split{
    /* display: flex;
    flex-direction: column; */
}

.images{
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    align-items: center;
    width: 95vw;
    gap: 0.5rem;
    margin: 1rem 0 0 0;
}
.images img{
    border-radius: 0.5rem;
    border: 2px solid rgba(255, 255, 255, 0.5);
    /* box-shadow: 0 0 3px 0 rgba(0, 0, 0, 0.1); */
    /* min-width: 0; */
}
.images img:first-child{
    grid-column: 1 / -1;
}

#medlemsavgifter .area-box, #kontakt .area-box{
    max-width: 840px;
    z-index: 10;
}

/* #medlemsavgifter img{
    max-width: 90vw;
    border-radius: 0.5rem;
} */

#pitch .text-box{
    align-items: flex-start;
    text-align: left;
}

#pitch.area-box .column .row, #kontakt .area-box .column .row{
    flex-direction: column;
}

.stretch{
    width: 100%;
    align-items: stretch;
    align-content: stretch;
}

#kontakt p:not(:last-child){
    margin: 0 0 0.25rem 0;
}
#kontakt a{
    font-weight: 900;
}
#kontakt .facebook-link{
    display: inline-block;
    margin-top: 4px;
    padding: 7px 7px 7px 32px;
    background-color: #FFF8F1;
    color: #0866FF;
    font-weight: 400;
    text-decoration: none;
    border-radius: 14px;
    background-image: url(images/messenger-icon.png);
    background-repeat: no-repeat;
    background-size: 20px 20px;
    background-position: left 7px center;
}

footer .area-box{
    background-color: rgb(0, 0, 0, 0);
    background-image: none;
    box-shadow: 0 0 0 0 rgb(0, 0, 0, 0);
    border: none;
    backdrop-filter: none;
}
footer ul{
    gap: 14px;
    text-align: center;
}
footer ul li a{
    color: #0043ae;
}
/* .ad-logo{
    display: inline;
    height: 1em;
    object-fit: contain;
    vertical-align: middle;
} */

@media only screen and (min-width: 768px){
    html{
        scroll-padding-top: 144px;
    }
    .row{
        width: auto;
    }
    .equalize>div {
        flex: none;
    }
    .area-box{
        width: auto;
        padding: 1rem;
        margin: 2rem 0 0 0;
        text-align: center;
    }
    header{
        height: 9rem;
    }
    header .area-box{
        justify-content: flex-start;
        width: 420px;
        padding: 1rem;
    }
    ul li a.active{
        font-weight: 600;
        color: #000000;
    }
    #intro-text{
        max-width: 70vw;
    }
    #information-wrapper{
        margin: 2rem 0 3rem 0;
        gap: 2rem;
    }
    #introduktion .bg-img.left{
        height: 65%;
        left: auto;
        right: 50%;
        transform: none;
    }
    #introduktion .bg-img.right{
        height: 57%;
        right: auto;
        left: 52%;
        transform: none;
    }
    .area-box{
        -webkit-backdrop-filter: blur(1rem) saturate(125%);
        backdrop-filter: blur(1rem) saturate(125%);
    }
    .left .area-box{
        max-width: 350px;
        justify-content: flex-end;
    }
    .right .area-box{
        max-width: 455px;
        justify-content: flex-start;
    }
    .right .column .row{
        flex-direction: row;
    }
    #medlemsavgifter, #kontakt{
        padding: 3rem;
    }
    #medlemsavgifter{
        border-radius: 0;
        box-shadow: 0 0 1rem 0 rgba(0, 0, 0, 0.1);
    }

    .images{
        grid-template-columns: 1fr 2fr 1fr;
        grid-template-rows: auto;
        justify-items: center;
        gap: 1rem;
        perspective: 322px;
        position: relative;
        max-width: 100%;
        margin: 2rem 0 0 0;
    }
    .images img{
        object-fit: cover;
    }
    .images img:first-child{
        grid-column: 2;
        grid-row: 1;
    }
    .images img:nth-child(2){
        grid-column: 1;
        grid-row: 1;
        transform: rotateY(-3deg);        
    }
    .images img:last-child{
        grid-column: 3;
        grid-row: 1;
        transform: rotateY(3deg);
    }

    #pitch.area-box .column .row, #kontakt .area-box .column .row{
        flex-direction: row;
    }

    @media (min-width: 890px){
        #information-wrapper{
            flex-direction: row;
        }
        .bg-img{
            display: none;
        }
        /* #information-wrapper .area-box{
            -webkit-backdrop-filter: saturate(125%);
            backdrop-filter: saturate(125%);
        } */
    }

    @media (min-width: 1200px){
        #intro-text{
            max-width: 45vw;
        }
        .bg-img{
            display: block;
        }
        #introduktion .bg-img.left{
            height: 100%;
            left: auto;
            right: 64%;
            transform: none;
        }
        #introduktion .bg-img.right{
            height: 88%;
            right: auto;
            left: 66%;
            transform: none;
        }
    }

    @media (min-width: 1700px){
        #introduktion .bg-img.left{
            right: 66%;
        }
        #introduktion .bg-img.right{
            left: 70%;
        }
    }
}

@media only screen and (pointer: fine) and (hover: hover){
    ul li a:hover{
        font-weight: 600;
        color: #000000;
    }
    .text-box:hover{
        transform: scale(1.05);
        background-color: rgb(180, 180, 180);
        background-clip: padding-box, border-box;
        background-origin: padding-box, border-box;
        border-color: rgb(255, 180, 154);
        z-index: 100;
    }
}

@media only screen and (max-height: 500px) and (orientation: landscape){
    .area-box{
        margin: 1rem 0 0 0;
    }    
    #medlemsavgifter .area-box, #kontakt .area-box, #information-wrapper{
        max-width: 90vw;
    }
    header .area-box{
        position: relative;
    }
    #information-wrapper{
        flex-direction: row;
        margin: 1.5rem 0 2rem 0;
        gap: 1rem;
    }
    #medlemsavgifter, #kontakt{
        padding: 2rem 0 2rem 0;
    }
}