/* General */
   
.noDecoration {
    list-style: none;
}

.hidden {
    display: none;
}



/* iPad */
@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation:landscape) {
    /* Landscape */
    body {
        max-width: 1024px;
        max-height: 768px;
        overflow: hidden;
        margin: 0px;
        padding: 0px;
        border: 0px;
        touch-action: none;
    }

    .kort {
        position: relative;
        width: 75px;
        height: auto;
        z-index: 5;
    }

    .dropzone {
        position:  relative;
        background-color: khaki;
        touch-action: none;
    }

    .plot {
        display: grid;
        width: 200px;
    }

    #langModal {
        display: none;
        position: fixed;
        top: 0px;
        left: 0px;
        z-index: 2;
        width: 100%;
        height: 100%;
        background-color: white;
        padding: 0px;
        margin: 0px;
    }

    .modal {
        position: fixed;
        background-color: white;
        width: 100%;
        padding-top: 200px;
        height: 100%;
        z-index: 2;
        animation-name: movedown;
        animation-duration: 0.5s;
        text-align: center;
        font-size: 150%;
        border-radius: 5px;

    }

    #howTo {
        padding: 50px;
    }

    .buildButton {
        width: 75px;
        height: 75px;
        font-size: 200%;
        border-radius: 10px;
    }

    .buildButton:hover {
        box-shadow: rgba(0, 0, 0, 0.8) 5px 10px 20px;
        
    } 

    #headerDiv {
        display: none;
    }

    #mobileHeader {
        display: block;
        position: relative;
        background-image: url(img/overskrift.png);
        width: 700px;
        height: 100px;
        left: 162px;
        top: 250px;
    }

    .modal-content {
        width: 1024px;
        height: 768px;
    }

    .flagButton {
        background-repeat: no-repeat;
        width: 110px;
        height: 70px;
        background-size: cover;
        margin-top: 270px;
    }

    #norButton {
        background-image: url(img/nor.png);
    }

    #engButton {
        background-image: url(img/eng.png);
    }

    .house {
        display: grid;
        grid-template-columns: 35px 35px 35px;
        grid-template-rows: 35px 35px 35px;
        grid-gap: 25px;
        background-color: cornflowerblue;
        border: solid 2px black;
        padding: 20px;
    }

    .roof {
        position: relative;
        display: block;
        height: 50px;
    }

    .titleImg {
        position: relative;
        z-index: 1;
        top: -50px;
        left: 80px;
    }

    .roofSVG {
        position: relative;
        z-index: -1;
    }

    #kategori {
        text-align: center;
        font-size: 120%;
        text-transform: uppercase;
    }

    #content {
        display: grid;
        max-width: 1024px;
        max-height: 750px;
        /*overflow: hidden;*/
        grid-template-areas: "dynamicContent" "beskrivelse" "footer";
    }

        #beskrivelse {
            /*p*/
            grid-area: beskrivelse;
            margin: 10px 30px 0px 30px;
            font-size: 150%;
        }

        #dynamicContent {
            /*div wrapper*/
            grid-area: dynamicContent;
            display: grid;
            grid-template-columns: 6fr 2fr;
            padding: 10px 10px 0px 10px;
            
        }

            #houses {
                /*div wrapper*/
                display: grid;
                grid-template-columns: 1fr 1fr 1fr;
                grid-template-rows: 1fr;
                grid-gap: 25px;
                grid-row-gap: 25px;
                border: 2px solid black;
                border-radius: 10px;
                padding: 25px;
            }

            #dataPanel {
                /*div*/
                border: 2px solid black;
                border-radius: 10px;
            }

                #dataPanelHeader {
                    /*span*/
                    padding: 20px;
                }

                #panelList {
                    /*ul*/
                }

                    #kortstokk {
                        /*div*/
                    }

                        #kortstokkSpan {
                            /*span*/
                            padding: 20px;
                        }

                        #kortholder {
                            /*div*/
                        }
                            
                            #trukketKort {
                                /*img*/
                            }

                #drawButton {

                }

                #resetButton {

                }

        #footer {
            grid-area: footer;
        }
}

@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation:portrait) { 
    /* Portrait */

    

    html, body {
        max-width: 768px;
        max-height: 1024px;
        overflow: hidden;
        margin: 0px;
        padding: 0px;
        border: none;
        touch-action: none;
    }

    .kort {
        max-width: 200px;
        max-height: 300px;
    }

    .dropzone {
        background-color: khaki;
    }

    .grid-container {
        display: grid;
        max-width: 1024px; 
        grid-template-columns: 1fr 1fr 1fr;
        grid-template-rows: 1fr 1fr;
    }

    #headerDiv {
        display: none;
    }


    #mobileHeader {
        display: block;
        position: relative;
        width: 700px;
        height: 100px;
        top: 350px;
        left: 25px;
        background-image: url(img/overskrift.png);
    }

    .plot {
        display: grid;
        justify-content: center;
    }

    .modal {
        position: fixed;
        height: 100%;
        width: 100%;
        z-index: 3;
        background-color: lightgray;
        animation-name: movedown;
        animation-duration: 0.1s;
        padding: 0px;
        margin: 0px;
        text-align: center;
        font-size: 150%;
        border-radius: 5px;
    }

    .buildButton {
        border-radius: 15px;
        background-color: white;
        font-size: 200%;
    
    }

    #howTo {
        font-size: 250%;
        padding-top: 50px;
    }

    #portraitWrapper {
        margin-top: 150px;
        padding-top: 50px;
        text-align: center;
        grid-gap: 20px;
        display: grid;
        grid-template-columns: repeat(2, 100px);
        grid-template-rows: repeat(3, 100px);
        justify-content: center;
    }

    #langModal {
        display: none;
        position: fixed;
        top: 0px;
        left: 0px;
        margin: 0px;
        padding: 0px;
        width: 100%;
        height: 100%;
        background-color: white;
        border-radius: 0px;
    }

    .flagButton {
        background-repeat: no-repeat;
        width: 110px;
        height: 70px;
        background-size: cover;
        margin-top: 400px;
    }

    #norButton {
        background-image: url(img/nor.png);
    }

    #engButton {
        background-image: url(img/eng.png);
    }

    .panelButton {
        height: 50px;
        border-radius: 10px;
        margin-left: 20px;
    }

    #drawButton {
    }

    #resetButton {

    }

    .house {
        display: grid;
        grid-template-columns: 35px 35px 35px;
        grid-template-rows: 35px 35px 35px;
        grid-gap: 25px;
        background-color: cornflowerblue;
        border: solid 2px black;
        padding: 20px;
        margin-left: 25px;
    }

    .roof {
        position: relative;
        display: block;
        max-height: 35px;
        margin-left: 25px;
        z-index: 1;
    }

    .kategori {
        font-size: 150%;
        text-transform: uppercase;
        text-align: center;
    }

    .drag-drop {
        max-width: 200px;
    }

    .titleImg {
        position: relative;
        z-index: 1;
        top: 0px;
        left: -60px;
    }

    .roofSVG {
        position: relative;
        z-index: -1;
    }

    .main-wrapper {
        display: grid;
        /*border: 2px dashed black;*/
    }

    .kort {
        z-index: 2;
    }

    li {
        float: left;
    }

    #content {
        display: grid;
        max-width: 768px;
        max-height: 1000px;
        /*overflow: hidden;*/
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 4fr 1fr;
    }

        #beskrivelse {
            /*p*/
            font-size: 175%;
            padding: 0px 20px 0px 20px;
        }

        #dynamicContent {
            /*div wrapper*/
            display: grid;
            /*border: 2px dashed red;*/
            justify-content: center;

        }

            #houses {
                /*div wrapper*/
                background-color: sandybrown;
                border-radius: 10px;
                padding-top: 20px;
            }

            #dataPanel {
                /*div*/
                border: 1px solid black;
            }

                #dataPanelHeader {
                    /*span*/
                }

                #panelList {
                    /*ul*/
                    
                }

                    #kortstokk {
                        /*div*/
                        max-width: 100px;
                    }

                        #kortstokkSpan {
                            /*span*/
                        }

                        #kortholder {
                            /*div*/
                        }

                            #trukketKort {
                                /*img*/
                                max-width: 100px;
                            }

        #footer {
            display: none;
            border: 2px dashed green;
        }
}

/* Widescreen HD*/
@media (min-width: 1050px) { /*HD*/
    .grid-container {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        grid-template-rows: 1fr;
        grid-gap: 20px;
        grid-row-gap: 50px;
        border: 2px solid black;
        border-radius: 5px;
        padding: 20px;
    }

    .main-wrapper {
        display: grid;
        grid-template-columns: 5fr 1fr;
        /*border: 2px dashed black;*/
    }

    #header {
        height: 100px;
        width: 700px;
        margin: 0px;
        padding-right: 50%;
        font-size: 100px;
        background-image: url(img/overskrift.png);
        background-size: 700px 100px; /*FIX ME!*/
        background-repeat: no-repeat;
        background-position-x: center;
        text-transform: uppercase;
    }

    #dataPanelHeader {
        text-align: center;
        font-size: 200%;
    }

    .dataPanel {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: minmax(100px, max-content);
        border: 2px solid black;
        border-radius: 5px;
    }

    .plot {
        display: grid;
        grid-template-columns: 400px;
        grid-template-rows: 100px 400px 100px;
    }

    /*.house {
        display: grid;
        grid-template-columns: repeat(3, 70px);
        grid-template-rows: repeat(3, 70px);
        grid-gap: 50px;
        background-color: cornflowerblue;
        border: solid 2px black;
        padding: 40px;
    }*/

    .grid-element {
        background-color: lightblue;
        border: dashed 2px black;
    }

    .dropzone {
        background-color: khaki;
    }

    .kategori {
        text-align: center;
        font-family: Calibri;
        text-transform: uppercase;
        padding-top: 10px;
        font-size: 150%;
    }

    .kortstokk {
        width: auto;
        min-width: 250px;
        height: 250px;
        vertical-align: middle;
        margin-right: 50px;
        text-align: center;
        box-shadow: rgba(0, 0, 0, 0.8) 5px 10px 20px;
        margin-bottom: 20px;
        background-color: paleturquoise;
        border-radius: 15px;
    }

    .kort {
        max-width: 200px;
        max-height: 200px;
        border: 1px solid black;
        padding: 10px;
        border-radius: 15px;
        margin-left: 20%;
    }

    .panelButton {
        width: 85%;
        padding-top: 15px;
        padding-bottom: 20px;
        padding-left: 40px;
        font-size: 200%;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        border-radius: 15px;
        text-align: center;
    }

    .drag-drop {
        width: 100px;
        height: 100px;
    }

    #beskrivelse {
        font-size: 200%;
        padding-top: 0px;
    }

    .roof {
        position: relative;
        display: block;
    }

    .titleImg {
        position: relative;
        z-index: 1;
        top: -100px;
        left: 160px;
    }

    .roofSVG {
        position: relative;
        z-index: -1;
    }

    #kortstokkSpan {
        font-size: 150%;
    }

    #drawButton {
        background-image: url('img/card.png');
        z-index: 1;
        background-size: 100px;
        background-repeat: no-repeat;
    }

    #resetButton {
        background-image: url('img/reset.png');
        z-index: 1;
        background-repeat: no-repeat;
        background-size: 75px;
    }

    .flagButton {
        background-repeat: no-repeat;
        width: 550px;
        height: 350px;
        background-size: cover;
        margin-top: 15%;
    }

    #norButton {
        background-image: url(img/nor.png);
    }

    #engButton {
        background-image: url(img/eng.png);
    }

    #kortholder:hover {
        cursor: pointer;
    }

    .button:hover {
        cursor: pointer;
        box-shadow: rgba(0,0,0,.8) 0px 5px 15px;
    }

    .hidden {
        display: none;
    }

    /* MODAL! */
    .modal {
        position: relative;
        z-index: 1;
        background-color: lightgray;
        animation-name: movedown;
        animation-duration: 0.5s;
        padding: 5px;
        margin: 10px;
        text-align: center;
        font-size: 150%;
        border-radius: 5px;
    }

    #houseSelect {
        display: none;
    }

    #langModal {
        display: none;
        position: fixed;
        top: 0px;
        left: 0px;
        z-index: 2;
        width: 100%;
        height: 100%;
        background-color: grey;
        padding: 0px;
        margin: 0px;
    }

    .modal-content {
        width: 100%;
        height: 100%;
    }

    @keyframes movedown {
        from {
            height: 0;
            opacity: 0
        }

        to {
            height: 100%;
            opacity: 1
        }
    }

    @keyframes moveup {
        from {
            height: 100%;
            opacity: 1
        }

        to {
            height: 0;
            opacity: 0
        }
    }

    .noFancy {
        text-decoration: none;
    }

        .noFancy:active, .noFancy:visited, .noFancy:link {
            color: black;
        }

        .noFancy:hover {
            font-size: 110%;
        }
}

