body {
    text-align: center;
    background-color: #bbbbbb;
}
h1 {
    font-size: 200%;
    clear: both;
    margin-top: 2vh;
}
b {
    color: #b21021;
}

#container {
    position: absolute;
    top: 50%;
    left: 50%;
    overflow: hidden;
    background-color: #FFFFFF;
    padding: 15px;
    max-width: 80%;
    transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%); /* IE 9 */
    -webkit-transform: translate(-50%, -50%); /* Chrome, Safari, Opera */
}
#portadaLlibre_small {
    display: none;
}   
#portadaLlibre, #notesLlibre {
    float: right;
}
#portadaLlibre, #portadaLlibre_small {
    width: 33%;
}
#notesLlibre {
    width: 65%;
    margin-left: 2%;
}
#portadaLlibre img, #portadaLlibre_small img {
    width: 100%;
}


.notes_list {
    position: relative;
    margin-top: 5vh;
    width: 80%;
    left: 50%;
    transform: translate(-50%, 0);
    -ms-transform: translate(-50%, 0); /* IE 9 */
    -webkit-transform: translate(-50%, 0); /* Chrome, Safari, Opera */
}
.notaLlibre {
    padding: 5px 5px; 
    background-color: #efefef;
    border-radius: 3px;
    display: inline-block;
    margin-right: 4px;
    width: 20px;
    text-align: center;
    margin-top: 4px;
    border: 1px solid #aaa;
}
.notaLlibre:hover {
    border-color: transparent;
    color: #FFFFFF;
    background-color: #b21021;
}

.campanya {
    margin-top: 20px;
}

@media all and (orientation:portrait) {
    body {
        margin: 0px;
        background-color: #FFFFFF;
    }
    h1 {
        font-size: 300%;
    }
    #container {
        overflow: hidden;
        max-width: 100%;
        width: 100%;
        position: relative;
        padding: 0px;

        top: 0%;
        left: 0%;
        transform: none;
        -ms-transform: none; /* IE 9 */
        -webkit-transform: none; /* Chrome, Safari, Opera */
    }
    #notesLlibre, #portadaLlibre, #portadaLlibre_small {
        float: none;
        overflow: hidden;
        position: relative;
        top: 0%;
        left: 50%;
        transform: translate(-50%, 0);
        -ms-transform: translate(-50%, 0); /* IE 9 */
        -webkit-transform: translate(-50%, 0); /* Chrome, Safari, Opera */
    }
    #portadaLlibre {
        margin-top: 2vh;
        margin-bottom: 2vh;
    }
    .notes_list {
        margin-top: 1vh;
    }
    .notaLlibre {
        padding: 1vw 1vw; 
        width: 3vw;
        font-size: 130%;
    }

    @media only screen and (max-width: 600px) {
        #portadaLlibre_small {
            margin-top: 2vh;
            display: block;
        }
        #portadaLlibre {
            display: none;
        }
        #notesLlibre {
            width: 100%;
            float: none;
            overflow: hidden;
            position: relative;
            top: 0%;
            left: 0%;
            transform: none;
            -ms-transform: none; /* IE 9 */
            -webkit-transform: none; /* Chrome, Safari, Opera */
            margin-bottom: 2vh;
        }
        h1 {
            width: 95%;
            text-align: center;
            font-size: 200%;
        }
        .notes_list {
            position: relative;
            width: 100%;
            left: 0%;
            transform: none;
            -ms-transform: none; /* IE 9 */
            -webkit-transform: none; /* Chrome, Safari, Opera */
        }
        .notaLlibre {
            padding: 2vw 2vw; 
            width: 90vw;
            font-size: 130%;
            display: block;
        }

    } 
}