*{
    margin: 0; padding: 0; border: 0; box-sizing: border-box;
}

body { 
    background-color: rgb(245, 255, 255);
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    color: #333;
}

#page-container {
    margin: 24px auto;
    width: 80%; min-height: 100vh;
}

/* ================================================================ */
#header-container {
    width: 100%; height: 35vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url(../images/christmas-border.jpg);
    background-size: cover;
    background-position: bottom;
    background-repeat: no-repeat;
    margin-bottom: 24px;
}

#logo {
    width: 20%; height: 50%;
    margin-right: 8px; 
    padding: 8px;
    color: rgb(255, 253, 253);
    text-align: center;
    text-shadow: 2px 2px 2px #92302F;
    display: flex;
    justify-content: center;
    align-items: center;
    align-self: start;
}

.text-on-header {
    width: 100%; 
    font-size: 36px;
    padding: 32px;
    text-align: center;
    color: rgb(255, 253, 253);
    position: relative;
}

.text-on-header::after {
    content: "";
    width: 100%; height: 100%;
    background-color: rgba(220, 220, 220, 0.2);
    display: none;
    position: absolute; top: 0px; left: 0px;
}

.text-on-header:hover::after {
    display: block;
}

/* ================================================================================= */
#main-container {
    border: 16px solid transparent;
    border-image: url(../images/christmas-border.jpg) 60 round;
    width: 100%; min-height: 65vh;
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    counter-reset: count-paragraphs; /* to count any paragraph added to the main container, can be any name */
}

#wish-list-headline {
    text-decoration: #92302F wavy underline 4px;
    display: block;
    width: 100%; height: 15%;
    padding-top: 16px;
    text-align: center;
    align-self: flex-end;
    color: #214E47;
}

.wish-list-item {
    width: 50%; 
    font-size: 1.3em;
    padding: 16px;
    margin: 16px;
    position: relative; /* to be able to move the pseudo before element */
}

.wish-list-item::before {
    content: counter(count-paragraphs);
    counter-increment: count-paragraphs; /* it will increment the number of paragraphs when counting them */
    position: absolute; left: -2.5em; top: 0.9em;
    background-color: #92302F;
    width: 2.5em; height: 2.5em;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: rgb(255, 253, 253);
}

.qrcode {display: none;}

/* ================================================================ */
@media screen and (max-width: 900px) {

    #header-container {
        flex-flow: row wrap;
    }

    #logo {
        flex-grow: 1;
        flex-shrink: 0;
        flex-basis: 100%;
        justify-content: left;
        padding-left: 16px;
        margin-right: 0px; 
    }

    .text-on-header {
        font-size: 24px;
        padding: 8px;
        flex-grow: 1;
        flex-shrink: 1;
        flex-basis: 100%;
    }

}

@media screen and (max-width: 400px) {
    
    #header-container {
        flex-flow: row nowrap;
        align-items: flex-start;
    }

    #logo {
        text-align: center;
        flex-basis: 50%;
    }

    .text-on-header {
        font-size: 20px;
        flex-basis: 50%; height: 70%;
        align-self: flex-end;
    }

}

/* media print ================================================= */
@media print {

    body { 
        font-family: Verdana, Geneva, Tahoma, sans-serif;
        color: #000;
        min-height: 9.0in;
        font-size: 16pt;
    }

    #header-container {
        width: 100%; height: 25vh;
        margin-bottom: 0px;
    }

    #logo {
        color: #214E47;
        text-shadow: none;
    }

    .text-on-header {
        color: #214E47;
    }

    #main-container {
        position: relative;
    }

    #wish-list-headline {
        font-size: 24pt;
        margin-bottom: 24px;
    }

    .wish-list-item {
        width: 80%; 
        font-size: 16pt;
        padding: 16px;
        margin: 0px;
    
    }

    .wish-list-item::before {
        position: absolute; left: -2em; top: 0.8em;
        width: 2em; height: 2em;
        border: 2px dotted #214E47;
        color: #214E47;
    }

    .qrcode {
        display: block;
        position: absolute; right: 8px; bottom: 8px;
        border: 2px solid black;
        width: 100px; height: 100px;
    }

}