html{
    scroll-behavior: smooth;
}

body{
    background-color: #f7f7f7;
}

::-webkit-scrollbar{
    width: 12px;
}

::-webkit-scrollbar-track{
    background-color: rgb(220, 220, 220);
    margin-block: .5em;
    -webkit-box-shadow: inset 0 0 1px rgba(0,0,0,0.3);
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
}

::-webkit-scrollbar-thumb{
    background-color: rgb(193, 193, 193);
    -webkit-box-shadow: inset 0 0 1px rgba(0,0,0,0.5);
    border-radius: 5px;
    border: .1em solid rgb(220, 220, 220);
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
}

.sticky{
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    justify-content: left;
    position: -webkit-sticky; /* Safari */
    position: sticky;
    box-shadow: 0 1px 1px rgba(0,0,0,0.12), 
                0 2px 2px rgba(0,0,0,0.12), 
                0 4px 4px rgba(0,0,0,0.12), 
                0 8px 8px rgba(0,0,0,0.12),
                0 16px 16px rgba(0,0,0,0.12);
    top: 0;
    z-index: 1;    
}

div{
    width: 100%;
    height: auto;
    overflow: hidden;
    /*white-space: nowrap;*/
    margin: 0px; /*auto*/
    background-color: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 10px;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    -ms-border-radius: 10px;
    -o-border-radius: 10px;
}

img{
    border: 1px solid #dddddd; /*2*/
    padding: 0px; /*0*/
    margin: 0px; /*5*/
    width: calc(100% - 2px);
    height: 100%; /*auto*/
    object-fit: contain;
    border-radius: 10px;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    -ms-border-radius: 10px;
    -o-border-radius: 10px;
}

.pages{
    background-color: white;
}

.ad{
    width: 96%;
    height: auto;
    align-self: center;
    overflow: hidden;
    white-space: nowrap;
    margin: auto; /*auto*/
    background-color: #dddddd;
    border: 2px solid #ffffff;
    border-radius: 10px;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    -ms-border-radius: 10px;
    -o-border-radius: 10px;
    box-shadow: 0 1px 1px rgba(0,0,0,0.12), 
                0 2px 2px rgba(0,0,0,0.12), 
                0 4px 4px rgba(0,0,0,0.12), 
                0 8px 8px rgba(0,0,0,0.12),
                0 16px 16px rgba(0,0,0,0.12);
}

/* .back2c{
    align-items: right;
    align-self: right;
    text-align: right;
    background-image: url(../../../i/c.png);
} */

.logo{
    width: auto;
    border: 0px;
    margin: 5px;
    padding: 5px;
}

span{
    float: left;
    display: inline;
}

h1{
    margin: 10px;
    color: #333333;
    font-family: Arial, Helvetica, sans-serif;
}

h2{
    margin: 8px 8px 8px 0px;
    color: #333333;
    font-family: Arial, Helvetica, sans-serif;
    /*float: left;*/
}

h3{
    margin: 5px;
    color: #333333;
    font-family: Arial, Helvetica, sans-serif;
    /*float: left;*/
}

h4{
    margin: 0px;
    color: #333333;
    font-family: Arial, Helvetica, sans-serif;
    /*float: left;*/
}

h5{
    margin: 0px;
    color: #333333;
    font-family: Arial, Helvetica, sans-serif;
    /*float: left;*/
}

h6{
    margin: 0px;
    color: #333333;
    font-family: Arial, Helvetica, sans-serif;
    /*float: left;*/
}

@media screen and (min-width: 1400px) {
    div{
        width: 100%;
        height: auto;
        overflow: hidden;
        white-space: nowrap;
        margin: 0px; /*auto*/
        background-color: #ffffff;
        border: 1px solid #dddddd;
        border-radius: 10px;
        -webkit-border-radius: 10px;
        -moz-border-radius: 10px;
        -ms-border-radius: 10px;
        -o-border-radius: 10px;
        text-align: center;
    }
    
    img{
        border: 1px solid #dddddd; /*2*/
        padding: 0px; /*0*/
        margin: 0px; /*5*/
        width: calc(50% - 2px);
        height: 50%; /*auto*/
        white-space: nowrap;
        object-fit: contain;
        border-radius: 10px;
        -webkit-border-radius: 10px;
        -moz-border-radius: 10px;
        -ms-border-radius: 10px;
        -o-border-radius: 10px;
    }

    .ad{
        width: 90%;
    }
}
/*-------------------------------------------------------------------*/

    .before {
        color: blue;
    }
    .within {
        color: green;
    }
    .after {
        color: gray;
    }
