﻿#grammarbox {
    text-align: justify;
    padding: 2px
}

    #grammarbox p {
        margin-bottom: 24px
    }

    #grammarbox .legend1 {
        margin: 5px
    }

    #grammarbox h1, #grammarbox h2 {
        text-transform: uppercase
    }

    #grammarbox h3 {
        text-transform: initial;
        margin-top: 50px;
        margin-bottom: 20px;
        font-weight: 700;
        font-size: 1.35rem;
        border: 1px solid #000;
        border-radius: 5px;
        padding: 5px;
        cursor: pointer
    }

        #grammarbox h3:before {
            content: '\002B';
            font-weight: 700;
            float: right;
            margin: 0 20px 0 0
        }

        #grammarbox h3.plus::before {
            content: '\002B'; /* Codice Unicode per il simbolo più (+) */
            font-weight: 700;
            float: right;
            margin: 0 20px 0 0;
        }

        #grammarbox h3.minus::before {
            content: '\2212'; /* Codice Unicode per il simbolo meno (−) */
            font-weight: 700;
            float: right;
            margin: 0 20px 0 0;
        }

.legend1 {
    background: #fafbfc url(/images/exampleBackground.png) repeat scroll center top;
    border-left: 5px solid #558abb;
    color: #4d4e53;
    direction: ltr;
    font-family: Consolas,Monaco,"Andale Mono",monospace;
    padding: 7px
}

.tips4 {
    background-color: #fff4cc;
    border-left: 5px solid #ffe070;
    color: #4d4e53;
    direction: ltr;
    font-family: Consolas,Monaco,"Andale Mono",monospace;
    padding: 10px
}

/* Story46 — il convertitore avvolge la lezione in <lesson> (elemento sconosciuto,
   quindi inline per default) ed emette <span class="legend1"> / <span class="tips4">.
   Le regole box di questo foglio erano scritte per div.legend1 e p.tips4. */
lesson {
    display: block
}

span.legend1, span.tips4 {
    display: block;
    margin: 16px 0
}

div.legend1 span {
    color: #000;
    font-weight: 700
}

div.legend1 h4, div.legend2 h4, div.legend3 h4, div.legend4 h4, div.legend5 h4, div.legend6 h4 {
    float: left;
    font-size: 1.17em;
    font-weight: 400;
    left: 11px;
    margin: 0 0 -9px !important;
    padding: 0 1px;
    position: relative;
    top: -5px;
    width: auto;
    color: #cc4747 !important
}

.entry h4 {
    color: #cc4747 !important
}

ul.bullet4 {
    list-style-image: url(/images/li_bullet.png)
}

.tipsy {
    padding: 5px;
    font-size: 10px;
    position: absolute;
    z-index: 100000
}

.tipsy-inner {
    padding: 5px 8px 4px;
    background-color: #000;
    color: #fff;
    max-width: 200px;
    text-align: center;
    border-radius: 3px;
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px
}

.tipsy-arrow {
    position: absolute;
    background: url(/images/tipsy.gif) no-repeat top left;
    width: 9px;
    height: 5px
}

.tipsy-n .tipsy-arrow {
    top: 0;
    left: 50%;
    margin-left: -4px
}

.tipsy-nw .tipsy-arrow {
    top: 0;
    left: 10px
}

.tipsy-ne .tipsy-arrow {
    top: 0;
    right: 10px
}

.tipsy-s .tipsy-arrow {
    bottom: 0;
    left: 50%;
    margin-left: -4px;
    background-position: bottom left
}

.tipsy-sw .tipsy-arrow {
    bottom: 0;
    left: 10px;
    background-position: bottom left
}

.tipsy-se .tipsy-arrow {
    bottom: 0;
    right: 10px;
    background-position: bottom left
}

.tipsy-e .tipsy-arrow {
    top: 50%;
    margin-top: -4px;
    right: 0;
    width: 5px;
    height: 9px;
    background-position: top right
}

.tipsy-w .tipsy-arrow {
    top: 50%;
    margin-top: -4px;
    left: 0;
    width: 5px;
    height: 9px
}

#messageTimeLeft {
    font-style: italic
}

#grammarbox img {
    max-width: 100%;
    display: block;
    height: auto;
    max-width: 340px
}

#grammarbox {
    text-align: justify;
    padding: 2px;
    font-size: 1.1rem
}

    #grammarbox p {
        margin-bottom: 24px
    }

    #grammarbox .legend1 p {
        margin: 5px
    }

    #grammarbox h1, #grammarbox h2 {
        text-transform: uppercase;
        font-weight: 700;
        margin-bottom: 30px
    }

    #grammarbox h3 {
        text-transform: initial
    }

div.legend1, div.legend5, div.legend6 {
    background: #fafbfc url(/images/exampleBackground.png) repeat scroll center top;
    border-left: 5px solid #558abb;
    color: #4d4e53;
    direction: ltr;
    font-family: Consolas,Monaco,"Andale Mono",monospace;
    padding: 7px
}

p.tips4 {
    background-color: #fff4cc;
    border-left: 5px solid #ffe070;
    color: #4d4e53;
    direction: ltr;
    font-family: Consolas,Monaco,"Andale Mono",monospace;
    padding: 10px
}

div.legend1 span {
    color: #000;
    font-weight: 700
}

div.legend1 h4, div.legend2 h4, div.legend3 h4, div.legend4 h4, div.legend5 h4, div.legend6 h4 {
    float: left;
    font-size: 1.17em;
    font-weight: 400;
    left: 11px;
    margin: 0 0 -9px !important;
    padding: 0 1px;
    position: relative;
    top: -5px;
    width: auto;
    color: #cc4747 !important
}

.entry h4 {
    color: #cc4747 !important
}

ul.bullet4 {
    list-style-image: url(/images/li_bullet.png)
}

.tipsy {
    padding: 5px;
    font-size: 10px;
    position: absolute;
    z-index: 100000
}

.tipsy-inner {
    padding: 5px 8px 4px;
    background-color: #000;
    color: #fff;
    max-width: 200px;
    text-align: center;
    border-radius: 3px;
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px
}

.tipsy-arrow {
    position: absolute;
    background: url(/images/tipsy.gif) no-repeat top left;
    width: 9px;
    height: 5px
}

.tipsy-n .tipsy-arrow {
    top: 0;
    left: 50%;
    margin-left: -4px
}

.tipsy-nw .tipsy-arrow {
    top: 0;
    left: 10px
}

.tipsy-ne .tipsy-arrow {
    top: 0;
    right: 10px
}

.tipsy-s .tipsy-arrow {
    bottom: 0;
    left: 50%;
    margin-left: -4px;
    background-position: bottom left
}

.tipsy-sw .tipsy-arrow {
    bottom: 0;
    left: 10px;
    background-position: bottom left
}

.tipsy-se .tipsy-arrow {
    bottom: 0;
    right: 10px;
    background-position: bottom left
}

.tipsy-e .tipsy-arrow {
    top: 50%;
    margin-top: -4px;
    right: 0;
    width: 5px;
    height: 9px;
    background-position: top right
}

.tipsy-w .tipsy-arrow {
    top: 50%;
    margin-top: -4px;
    left: 0;
    width: 5px;
    height: 9px
}

#messageTimeLeft {
    font-style: italic
}

#grammarbox img {
    max-width: 100%;
    display: block;
    height: auto;
    max-width: 340px
}

.translateMobileBtn {
    font-size: 1.5em;
    color: #39c;
    margin-left: 10px
}

@media(max-width:992px) {
    .borderMobile {
        display: none
    }
}
