/* denne fil er inkluderet på alle sider og styrer overordnet style */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: poppins;
    overflow-x: hidden;
    color: #012249;
    height: 100%;
    width: 100vw;
    display: flex;
    flex-direction: column;
}

/* alders-check modal */
.modal {
    display: none;
    position: fixed; 
    z-index: 101; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    background-color: #000000bf; 


    & > .modal-content {
        display: flex;
        flex-direction: column;
        background-color: #3753BE;
        color: #fab832;
        border: 2px solid #000000;
        margin: 15% auto; 
        padding: 1rem;
        border-radius: 1rem;
        width: 80%; 
        max-width: 50rem;
        max-height: 50rem;
        text-align: center;
    

        & > button {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0 1rem 0 0;
            margin: 1rem;
            cursor: pointer;
            border-radius: 0.75rem;
            box-shadow: rgba(33, 35, 38, 0.1) 0px 10px 10px -10px;
            color: #012249;
            font-size: large;
            font-weight: bold;

            & > img {
                width: 5rem;
                height: 5rem;
            }

            & > img[alt = "ja knap"] {
                margin: 0 0 0 0.25rem;
            }

            &:active {
                transform: scale(0.98);
            }
        }
    }
}
@media only screen and (min-width: 1000px){
    .modal-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
    
        & > h2 {
            grid-row: 1 / 2;
            grid-column: 1 / 3;
        }
    
        & > p {
            grid-row: 2 / 3;
            grid-column: 1 / 3;
        }
    
        & > button {
            grid-row: 3 / 4;
        }    
    }
}   