/**************************************/

/**************** HOME ****************/

/*********** (mobile first) ***********/

#home {
    z-index: 20;
    position: fixed;
    top: 0px;
    left: 0px;
    bottom: 0px;
    right: 0px;
    padding: 1px 0px;
    overflow: auto;
}

#home .header {
    font-size: var(--HD60px);
    font-weight: bold;
    text-transform: uppercase;
    margin-top: -1em;
    margin-bottom: 1em;
    color: var(--background-text-color);
    display: flex;
    justify-content: center;
    text-align: center;
    padding: 0 1em;
    display: none;
}

#home .content {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    grid-gap: 1px;
}

#home a {
    display: flex;
    flex-direction: row;
    /* background: #000; */
    width: 100%;
    height: 45vw;
    /* border-radius: 20px; */
    /* border:solid 2px #360; */
}

#home a.odd {
    flex-direction: row-reverse;
}

#home a .texts {
    width: 50%;
    float: right;
    padding: 6%;
}

#home a.smallbox .texts {
    overflow: hidden;
}

#home a .title {
    display: block;
    /* color: #fff; */
    font-weight: bold;
    font-size: 5vw;
    margin-bottom: 4px;
    text-transform: uppercase;
}

#home a .description, #home a .short-description {
    /* display: none; */
    font-size: 4vw;
    display: none;
}

#home a.bigbox .description {
    /* display: none; */
    display: block;

}

#home a.smallbox .short-description {
    /* display: none; */
    display: block;
}

#home #btn-more .description {
    display: block;
}

#home #btn-more .count {
    display: flex;
    justify-content: center;
    /* flex-direction: row-reverse; */
    width: 200%;
    flex-wrap: wrap;
    position: absolute;
    bottom: var(--HD24px);
}

#home #btn-more .count .themedot {
    display: block;
    width: var(--HD9px);
    height: var(--HD9px);
    background-color: #fff;
    border-radius: 50%;
    margin: var(--HD3px);
    margin-bottom: 0;
    opacity: .3;
}

#home a .image {
    width: 50%;
    background-position: 50% 0%;
    background-size: cover;
    position: relative;
    /* transition:   background-position .3s ease-out; */
}

#home a .image .type {
    display: none;
    position: absolute;
    bottom: 0;
    right: 0;
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    line-height: 1em;
    padding: .3em .5em;
    margin: 0;
    text-shadow: 0px 0px 4px #000, 1px 1px 1px #000;
}



/***********************************/

/************* (TABLET) ************/

@media (min-width: 480px) and (max-width: 899px) {
    #home .content {
        grid-template-columns: repeat(2, 50vw);
        grid-auto-rows: 25vw;
        grid-gap: 1px;
    }
    #home a {
        width: 100%;
        height: 100%;
    }
    #home a.odd {
        /* reset odd */
        flex-direction: row;
    }
    #home a.btn0 {
        grid-area: 1 / 1 / 3 / 2;
        flex-direction: column-reverse;
    }
    #home a:last-child {
        grid-area: 4 / 2 / 6 / 2;
        flex-direction: column-reverse;
    }
    #home a .image {
        height: 100%;
    }
    #home a:first-child .image, #home a:last-child .image {
        width: 100%;
        height: 100%;
    }
    #home a:first-child .texts, #home a:last-child .texts {
        width: 100%;
    }
    #home a .title {
        font-size: 2.5vw;
    }
    #home a .description, #home a .short-description {
        font-size: 2vw;
    }
}

/***************************************/

/********* (DESKTOP LANDSCAPE) *********/

@media (min-width: 900px) {
    #home {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    #home .content {
        grid-template-columns: 24vw 24vw 24vw;
        grid-auto-rows: 12vw;
        grid-gap: var(--HD9px);
        /* height: 100%; */
        width: 100%;
        justify-content: center;
        align-content: center;
    }
    /* grid ved to knapper */
    #home .content.num-btns-2 {
        grid-template-columns: 24vw 24vw;
    }
    /* større grid-gap ved få knapper */
    #home .content.num-btns-2, #home .content.num-btns-3 {
        grid-gap: var(--HD15px);
    }
    /* btn 1 */
    #home #btn1 {
        flex-direction: column-reverse;
        grid-area: 1 / 1 / span 2;
    }
    /* btn 2 */
    #home #btn2 {
        flex-direction: row;
        grid-area: 1 / 2
    }
    #home .num-btns-2 #btn2, #home .num-btns-3 #btn2 {
        flex-direction: column-reverse;
        grid-area: 1 / 2 / span 2;
    }
    /* btn 3 */
    #home #btn3 {
        flex-direction: row-reverse;
        grid-area: 2 / 2
    }
    #home .num-btns-3 #btn3 {
        flex-direction: column-reverse;
        grid-area: 1 / 3 / span 2;
    }
    /* btn 4 */
    #home #btn4 {
        flex-direction: row;
        grid-area: 3 / 2
    }
    #home .num-btns-4 #btn4 {
        flex-direction: column-reverse;
        grid-area: 1 / 3 / span 2;
    }
    /* btn 5 */
    #home #btn5 {
        flex-direction: row-reverse;
        grid-area: 2 / 3;
    }
    /* ikke viste */
    #home #btn-out, #home #btn6 {
        grid-area: 3 / 3;
        opacity: 0;
        pointer-events: none;
    }
    /* more knap */
    #home #btn-more {
        width: 50%;
        grid-area: 1 / 3;
        opacity: 0;
        pointer-events: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    #home .num-btns-more #btn-more {
        opacity: 1;
        pointer-events: auto;
    }
    #home #btn-more .icon {
        font-size: var(--HD45px);
        width: 100%;
        text-align: center;
        color: #fff;
    }
    /* store knappers billede - fyld hele bredden */
    #home #btn1 .image, #home .num-btns-2 #btn2 .image, #home .num-btns-3 #btn2 .image, #home .num-btns-3 #btn3 .image, #home .num-btns-4 #btn4 .image {
        width: 100%;
    }
    /* store knappers tekster - fyld hele bredden */
    #home #btn1 .texts, #home .num-btns-2 #btn2 .texts, #home .num-btns-3 #btn2 .texts, #home .num-btns-3 #btn3 .texts, #home .num-btns-4 #btn4 .texts {
        width: 100%;
    }
    /* store knappers skal gemme short desciption */
    /* #home #btn1 .short-description, #home .num-btns-2 #btn2 .short-description, #home .num-btns-3 #btn2 .short-description, #home .num-btns-3 #btn3 .short-description, #home .num-btns-4 #btn4 .short-description {
        display: none;
    } */
    /* store knappers skal vise long desciption */
    /* #home #btn1 .description, #home .num-btns-2 #btn2 .description, #home .num-btns-3 #btn2 .description, #home .num-btns-3 #btn3 .description, #home .num-btns-4 #btn4 .description {
        display: block;
    } */
    /* desktop reset */
    #home a {
        height: 100%;
    }
    #home a .image {
        height: 100%;
    }
    /* texts */
    #home a .title {
        /* font-size: 1.2vw;  */
        font-size: 1.25vw;
    }
    #home a .description, #home a .short-description {
        font-size: 1vw;
    }
}

/***************************************/

/********** (DESKTOP PORTRAIT) *********/

@media (min-width: 900px) and (orientation: portrait) {
    /* Default grid */
    #home .content {
        grid-template-columns: 12vh 12vh 12vh 12vh;
        grid-auto-rows: 12vh;
    }
    /* reset */
    #home .content.num-btns-2 {
        grid-template-columns: 12vh 12vh 12vh 12vh;
    }
    /* btn 1 - PORTRAIT */
    #home #btn1 {
        flex-direction: row;
        grid-area: 1 / 2 / span 1/ span 2;
    }
    #home .num-btns-2 #btn1, #home .num-btns-3 #btn1, #home .num-btns-4 #btn1 {
        flex-direction: column-reverse;
        grid-area: 1 / 2 / span 2 / span 2;
    }
    /* btn 2 - PORTRAIT */
    #home #btn2 {
        flex-direction: column-reverse;
        grid-area: 2 / 1 / span 2 / span 2;
    }
    #home .num-btns-2 #btn2, #home .num-btns-3 #btn2 {
        flex-direction: column-reverse;
        grid-area: 3 / 2 / span 2 / span 2;
    }
    #home .num-btns-4 #btn2 {
        flex-direction: row;
        grid-area: 3 / 2 / span 1 / span 2;
    }
    /* btn 3 - PORTRAIT */
    #home #btn3 {
        flex-direction: row;
        grid-area: 2 / 3 / span 1 / span 2;
    }
    #home .num-btns-3 #btn3 {
        flex-direction: column-reverse;
        grid-area: 5 / 2 / span 2 / span 2;
    }
    #home .num-btns-4 #btn3 {
        flex-direction: row-reverse;
        grid-area: 4 / 2 / span 1 / span 2;
    }
    /* btn 4 - PORTRAIT */
    #home #btn4 {
        flex-direction: row;
        grid-area: 4 / 1 / span 1 / span 2;
    }
    #home .num-btns-4 #btn4 {
        flex-direction: row;
        grid-area: 5 / 2 / span 1 / span 2;
    }
    #home .num-btns-5 #btn4 {
        flex-direction: column-reverse;
        grid-area: 4 / 2 / span 2 / span 1;
    }
    /* btn 5 - PORTRAIT */
    #home #btn5 {
        flex-direction: column-reverse;
        grid-area: 3 / 3 / span 2 / span 2;
    }
    /*  btn 6 (portrait only) */
    #home #btn6 {
        flex-direction: row;
        grid-area: 5 / 2 / span 1 / span 2;
        opacity: 1;
        pointer-events: initial;
    }
    /* btn more */
    #home #btn-more {
        grid-area: 6 / 3;
        width: 100%;
    }
    /* HØJFORMAT store knappers billeder - fyld hele bredden */
    #home #btn2 .image, #home #btn5 .image, #home .num-btns-5 #btn4 .texts {
        width: 100%;
    }
    /* HØJFORMAT store knappers tekster - fyld hele bredden */
    #home #btn2 .texts, #home #btn5 .texts, #home .num-btns-5 #btn4 .image {
        width: 100%;
    }
    /* reset til små knapper */
    #home .num-btns-5 #btn1 .texts, #home .num-btns-more #btn1 .texts, #home .num-btns-4 #btn2 .texts, #home .num-btns-4 #btn3 .texts, #home .num-btns-4 #btn4 .texts {
        width: 50%;
    }
    #home .num-btns-5 #btn1 .image, #home .num-btns-more #btn1 .image, #home .num-btns-4 #btn2 .image, #home .num-btns-4 #btn3 .image, #home .num-btns-4 #btn4 .image {
        width: 50%;
    }
    /* store knappers skal gemme short desciption */
    /* #home #btn2 .short-description, #home #btn5 .short-description, #home .num-btns-5 #btn4 .short-description  {
        display: none;
    } */
    /* store knappers skal vise long desciption */
    /* #home #btn2 .description, #home #btn5 .description, #home .num-btns-5 #btn4 .description  {
        display: block;
    } */
    /* store knappers skal vise long desciption */
    /* #home #btn1 .description, #home .num-btns-2 #btn2 .description, #home .num-btns-3 #btn2 .description, #home .num-btns-3 #btn3 .description, #home .num-btns-4 #btn4 .description {
        display: block;
    } */
    /* opretstående knap */
    #home .num-btns-5 #btn4 .image {
        height: 50%;
    }
    #home .num-btns-5 #btn4 .texts {
        height: 50%;
        padding: 12%;
    }
    /* home font sizes */
    #home a .title {
        font-size: 1.25vh;
    }
    #home a .description, #home a .short-description {
        font-size: 1vh;
    }
}

