/* Ensure responsiveness */
@-webkit-viewport {
    width: device-width;
}

@-moz-viewport {
    width: device-width;
}

@-ms-viewport {
    width: device-width;
}

@-o-viewport {
    width: device-width;
}

@viewport {
    width: device-width;
}

.mt-2 {
    margin-top: 2rem;
}
.flex-center {
    display: flex;align-items: center; justify-content: center;
}


/* Override bootstrap */
.media {
    background: #FFA7F0;
    border: 1px solid #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.075);
    padding: 15px;
}

.media {
    margin-top: 2px;
}

/* for box-shadow */
.media-body .media {
    border: none;
    box-shadow: none;
}

hr {
    margin: 5px 0 5px 0;
}

.navbar-default, .media-top-header {
    background: #FF77E8;
    background: linear-gradient(#FF77E8, #ff3bde);
    background: -webkit-linear-gradient(#FF77E8, #ff3bde);
    box-shadow: 1px 0 3px rgba(0, 0, 0, 0.5);
}

.navbar-default .navbar-nav > li > a {
    color: #fff;
    padding-left: 4px;
    padding-right: 5px;
}

.navbar a {
    color: #fff;
}

.media-body {
    margin-left: 65px;
    word-wrap: break-word;
}

.media-body-message {
    min-height: 64px;
}

h4.media-header {
    margin-top: 5px;
    font-size: 16px;
}

img.media-object {
    cursor: pointer;
    max-width: 48px;
}

.btn.btn-primary {
    background: #FF77E8;
    background: linear-gradient(#FF77E8, #ff3bde);
    background: -webkit-linear-gradient(#FF77E8, #ff3bde);
    border-color: #FF77E8;
}

.progress {
    border: 1px solid #aeaeae;
}

.modal-content {
    background-color: #FFA7F0;
}

#footer ul {
    list-style: none;
}

#footer ul li {
    display: inline-block;
}

.btn-forthumb {
    position: absolute;
    margin-left: 180px;
    margin-top: -45px;
}

.thumbnail .caption {
    height: 125px;
}

/* Extend Bootstrap for our needs  */
.bc-panel-box {
    border: 1px solid #FF77E8;
    padding: 10px;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.075);
    background: #FFA7F0;
}

.bc-panel-title {
    font-size: 150%;
    margin-top: 0;
}

h4.bc-panel-title {
    font-family: chalk;
}

.bc-panel-box.bc-panel-box-grey {
    backgroud: #eee;
}

.bc-spacer-5 {
    margin-top: 5px;
}

.bc-spacer-10 {
    margin-top: 10px;
}

.bc-spacer-15 {
    margin-top: 15px;
}

.bc-spacer-20 {
    margin-top: 20px;
}

.bc-spacer-30 {
    margin-top: 30px;
}

.bc-hspacer {
    margin-left: 150px;
}

.bc-smallavatar {
    max-width: 24px;
}

.bc-no-border {
    border: none;
}

.bc-text-align-center {
    text-align: center;
}

.bc-hidden {
    display: none;
}

.bc-show {
    display: inline-block;
}

.bc-icon-rotate, .bc-rotate {
    -webkit-animation: SpinIt 1s infinite linear;
    -moz-animation: SpinIt 1s infinite linear;
    -ms-animation: SpinIt 1s infinite linear;
    -o-animation: SpinIt 1s infinite linear;
    animation: SpinIt 1s infinite linear;
}

/** Wall picture are aligned to center */
a.fancyme {
    text-align: center;
    width: 100%;
    display: inline-block;
}

.book-image {
    max-width: 100%;
    margin: 0 auto;
}

.bc-account-btn {
    font-size: 18px;
    height: 100px;
    width: 125px;
    color: #888;
}

.bc-account-btn i {
    font-size: 32px;
}

.bc-cursor-pointer {
    cursor: pointer;
}

.bc-rotate-45 {
    transform: rotate(90deg);
}

.bc-blockquote {
    margin-left: 40px;
}

.bc-center {
    text-align: center;
}

.bc-font-extra {
    font-size: 48px;
}

.bc-font-extra-32 {
    font-size: 32px;
}

.bc-toolbar {
    padding-left: 125px;
}

.bc-margin-left-20 {
    margin-left: 20px;
}

.bc-margin-right-10 {
    margin-right: 10px;
}

.bc-align-right {
    text-align: right;
}

.bc-inline {
    display: inline-block;
}

.bc-margin-less {
    margin: 0;
}

.bc-panel-box .media {
    border: 0;
}

/* Fonts */
@font-face {
    font-family: 'TopSecret';
    src: url('../fonts/Top Secret.eot');
    src: local('☺'), url('../fonts/Top Secret.woff') format('woff'), url('../fonts/Top Secret.ttf') format('truetype'), url('../fonts/Top Secret.svg') format('svg');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: chalk;
    src: url("../fonts/Chalkduster.ttf");
}

@font-face {
    font-family: desyrel;
    src: url('../fonts/MyLuckyPenny.ttf');
}

/* Specific */
#logo-header {
    height: 250px;
    width: 1200px;
    background: #FFA7F0 url("../images/sprites.png") no-repeat center center;
    background-position: -630px -66px;
}

h1, h2, h3 {
    font-family: chalk;
}

h1.homemessage {
    color: black;
    font-family: sans-serif;
    font-size: 200%;
}

.chalk {
    font-family: chalk;
}

.large-button {
    display: block;
    min-height: 120px;
}

.large-button i {
    display: inline-block;
    min-height: 46px;
}

.large-button-caption {
    font-size: 32px;
    color: #333;
}

.row {
    margin-bottom: 15px;
}

.reduced-image {
    max-width: 100%;
}

.related-image {
    max-width: 24%;
}

#last-comments .book-image, #last-comments img {
    max-width: 100%;
}

#footer {
    padding: 15px;
    margin-top: 20px;
}

#online-visitors, #online-hunters, #visitor-flags {
    margin-left: 15px;
}

#online-visitors, #visitor-flags {
    font-size: 12px;
}

#main {
    background: #FFCFF4;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5), 0 -2px 20px rgba(0, 0, 0, 0.5);
}

#compatibility {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    line-height: 1em;
    padding-top: 1em;
    text-align: center;
}

.wizard #map {
    width: 700px;
    height: 500px;
    margin: 0 auto;
}

.avatar-selected {
    border: 2px solid yellow;
}

.pigsty-block {
    margin-right: 15px;
    padding: 10px;
}

.cleaned {
    background-color: #00b100;
}

#pictures a.fancyme, .pigsty a.fancyme {
    min-height: 230px;
    display: block;
    margin-top: 5px;
}

.thumbnail .image-container {
    height: 165px;
    text-align: center;
    margin: 0 auto;
}

.thumbnail .image-container img {
    max-height: 165px;
}

#book {
    clear: both;
}

.thumbnail.pigsty {
    border: 1px solid #FF77E8;
}

.highlight-search {
    background-color: yellow;
}

h4.disappeared {
    -moz-transform: rotate(-33deg);
    -webkit-transform: rotate(-33deg);
    -o-transform: rotate(-33deg);
    -ms-transform: rotate(-33deg);
    display: inline-block;
    position: absolute;
    color: white;
    margin-top: 100px;
    margin-left: -100px;
    text-shadow: 2px 2px 0 black;
    font-size: 48px;
    font-family: 'TopSecret';
}

#opaque {
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    position: fixed;
    top: 0;
    height: 0;
}

.pending-messages {
    position: absolute;
    margin-top: -20px;
    margin-left: -10px;
    background-color: red;
}

.message-avatar {
    display: inline-block;
}

.message-avatar > img {
    max-width: 24px;
    vertical-align: middle;
    margin-right: 15px;
}

table.messages tr {
    cursor: pointer;
}

#contact ul {
    list-style: none;
}

.media-top-header h4, .green-header h4 {
    padding-top: 5px;
    text-shadow: 1px 1px 0px rgba(255, 255, 255, 0.7);
    font-size: 100%;
}

.media-nav-bar {
    line-height: 2em;
}

.media-top-header, .green-header {
    padding: 0 10px;
}

.media .media, #book .media .media {
    border: 0;
    background-color: #ffc6f0;
    box-shadow: none;
}

#book .media {
    padding-top: 2px;
    background: #ffc6f0;
    border: 1px solid #ff77e8;
    margin-bottom: 10px;
}

#book .media-top-header {
    background: #FFA7F0;
}

#image-block article a.fancyme img {
    margin: 0 auto;
}

.media,
.media-body {
    overflow: visible;
}

.media {
    border-radius: 3px;
}

.media:after,
.media-body:after {
    content: '';
    clear: both;
    display: block;
}

/* For badges */
.base-badge {
    background: url(../images/sprites.png) no-repeat;
    display: inline-block;
    vertical-align: middle;
    min-height: 70px;
}

/* For emotes */
span.icon {
    background: url(../images/sprites.png) no-repeat;
    display: inline-block;
    vertical-align: middle;
    width: 16px;
    height: 18px;
    margin-right: 4px;
    margin-left: 3px;
}

span.smiley-worried {
    background-position: 0 -68px;
}

span.smiley-wink {
    background-position: -16px -68px;
}

span.smiley-uncertain {
    background-position: -32px -68px;
}

span.smiley-tired {
    background-position: -48px -68px;
}

span.smiley-surprise {
    background-position: -64px -68px;
}

span.smiley-smirk {
    background-position: -80px -68px;
}

span.smiley-smile-big {
    background-position: -96px -68px;
}

span.smiley-smile {
    background-position: -112px -68px;
}

span.smiley-sick {
    background-position: -128px -68px;
}

span.smiley-sad {
    background-position: -144px -68px;
}

span.smiley-raspberry {
    background-position: -160px -68px;
}

span.smiley-plain {
    background-position: -176px -68px;
}

span.smiley-pig {
    background-position: -192px -68px;
}

span.smiley-ninja {
    background-position: -208px -68px;
}

span.smiley-monkey {
    background-position: -224px -68px;
}

span.smiley-laugh {
    background-position: -240px -68px;
}

span.smiley-kiss {
    background-position: -256px -68px;
}

span.smiley-glasses {
    background-position: -272px -68px;
}

span.smiley-embarrassed {
    background-position: -288px -68px;
}

span.smiley-devilish {
    background-position: -304px -68px;
}

span.smiley-crying {
    background-position: -320px -68px;
}

span.smiley-cool {
    background-position: -336px -68px;
}

span.smiley-angry {
    background-position: -352px -68px;
}

span.smiley-angel {
    background-position: -368px -68px;
}

.deco-icon {
    background: url(../images/sprites.png) no-repeat;
    display: inline-block;
    vertical-align: middle;
}

.strawberry {
    background-position: -208px -393px;
    width: 15px;
    height: 16px;
}

.cuberdon {
    background-position: -197px -393px;
    width: 11px;
    height: 16px;
}

#book-badge {
    background-position: -407px 0px;
    width: 64px;
    height: 61px;
}

span.school-icon {
    background-position: -312px 0;
    width: 65px;
    height: 60px;
}

span.vote-icon {
    background-position: -246px 0;
    width: 66px;
    height: 64px;
}

#dirty-badge {
    background-position: -555px -356px;
    width: 56px;
    height: 78px;
}

#hunter-badge {
    background-position: -197px -295px;
    width: 49px;
    height: 94px;
}

span.largecomment-icon {
    background-position: -344px -161px;
    width: 22px;
    height: 22px;
}

#socialnetworks-badge {
    background-position: -386px -286px;
    width: 85px;
    height: 62px;
}

#cleaned-badge {
    background-position: -476px -356px;
    width: 75px;
    height: 59px;
}

#googleplus-badge {
    background-position: -246px -356px;
    width: 70px;
    height: 59px;
}

#facebook-badge {
    background-position: -316px -356px;
    width: 70px;
    height: 59px;
}

#twitter-badge {
    background-position: -386px -356px;
    width: 70px;
    height: 59px;
}

span.bcbook-icon {
    background-position: -407px 0;
    width: 64px;
    height: 61px;
}

.invisible {
    margin: 0;
    padding: 0;
    display: none;
    border: none;
    opacity: 0;
}

.icon-teacher, .icon-townhall, .icon-student, .icon-defaultuser {
    width: 46px;
    height: 46px;
    display: inline-block;
}

.icon-teacher {
    background: url(../images/icon-teacher.png) no-repeat 0 0;
}

.icon-townhall {
    background: url(../images/icon-townhall.png) no-repeat 0 0;
}

.icon-student {
    background: url(../images/icon-student.png) no-repeat 0 0;
}

.icon-defaultuser {
    background: url(../images/icon-defaultuser.png) no-repeat 0 0;
}

#legend .nothing, #legend .pending, #legend .rejected {
    display: inline-block;
    width: 32px;
    border: 1px solid #888;
}

#legend .pending {
    background-color: #BBBB00;
}

#legend .rejected {
    background-color: #BB0000;
}

/* Account */
.pending .thumbnail {
    background-color: #BBBB00;
}

.rejected .thumbnail {
    background-color: #BB0000;
}

/* Rotation animation */
@-o-keyframes SpinIt {
    from {
        -o-transform: rotate(0deg);
    }
    to {
        -o-transform: rotate(360deg);
    }
}

@-moz-keyframes SpinIt {
    from {
        -moz-transform: rotate(0deg);
    }
    to {
        -moz-transform: rotate(360deg);
    }
}

@-ms-keyframes SpinIt {
    from {
        -ms-transform: rotate(0deg);
    }
    to {
        -ms-transform: rotate(360deg);
    }
}

@-webkit-keyframes SpinIt {
    from {
        -webkit-transform: rotate(0deg);
    }
    to {
        -webkit-transform: rotate(360deg);
    }
}

@-keyframes SpinIt {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}
.media .thumbnail {
    margin-right: 10px;
}

.pigsty-img-container {
    display: block;
    width: 150px;
    height: 150px;
}

.pigsty-img-container img {
    max-width: 125px;
}

#actually {
    text-align: center;
    margin: 10px;
    font-size: 150%;
}

#actually #actually-uncleaned, #actually #actually-cleaned {
    font-size: 1.5em;
    text-align: bottom;
}

#actually #actually-uncleaned {
    color: red;
}

#actually #actually-cleaned {
    color: green;
}

#book-next {
    margin-bottom: 20px;
}

.agree_or_not {
    font-size: 12px;
    margin-top: 5px;
    border: 1px solid #FFA7F0;
    padding: 4px;
}

/* Account */
.pigsty-block {
    cursor: pointer;
}

.pigsty-block.pending {
    background-color: yellow;
}

#mainmap {
    background: url(../images/loadingmap.jpg) no-repeat center center;
}

.tiny-avatar {
    max-width: 20px;
    vertical-align: middle;
}

#sharethis {
    height: 48px;
}

/** Make the video responsive */
.videocontainer {
    position: relative;
    padding-bottom: 56.25%;
    padding-top: 30px;
    height: 0;
    overflow: hidden;
}

.videocontainer iframe,
.videocontainer object,
.videocontainer embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/** Image pour mon-compte */
#show-picture-info img.thumbnail, #edit-picture-info img.thumbnail {
    max-width: 100%;
}

/* Desktop */
@media (min-width: 1981px) {
    body {
        background: transparent url(../images/fond-xxl.jpg) no-repeat center center fixed;
        -webkit-background-size: cover;
        -moz-background-size: cover;
        -o-background-size: cover;
        background-size: cover;
    }
}

@media (min-width: 1200px) {
    body {
        background: transparent url(../images/fond.jpg) no-repeat center 0 fixed;
        -webkit-background-size: cover;
        -moz-background-size: cover;
        -o-background-size: cover;
        background-size: cover;
    }

    #main {
        width: 1200px;
        margin: 0 auto;
    }

    #mainmap, #photomap, #maptown, #modif_map, #editmap {
        height: 500px;
    }

    /* Ribbon effect */
    .ribbon {
        margin-left: -21px;
        margin-right: -21px;
    }

    .ribbon:before {
        content: ' ';
        position: absolute;
        width: 0;
        height: 0;
        left: 0px;
        top: 101%;
        border-width: 5px 10px;
        border-style: solid;
        border-color: #666 #666 transparent transparent;
    }

    .ribbon:after {
        content: ' ';
        position: absolute;
        width: 0;
        height: 0;
        left: 1221px;
        top: 101%;
        border-width: 5px 10px;
        border-style: solid;
        border-color: #666 transparent transparent #666;
    }
}

/* Tablet */
@media (max-width: 1199px) {
    #main {
        width: 100%;
    }

    #mainmap, #photomap, #maptown, #modif_map, #editmap {
        height: 400px;
    }

    .uk-form-label {
        display: block;
    }
}

/* Handheld */
@media (max-width: 480px) {
    #main {
        width: 100%;
    }

    #mainmap, #photomap, #maptown, #modif_map, #editmap {
        height: 250px;
    }

    .media-body a.fancyme img {
        max-width: 100%;
    }

    img.media-object {
        cursor: pointer;
        max-width: 24px;
    }

    .tiny-avatar {
        max-width: 20px;
        vertical-align: middle;
    }
}
