

section {
  margin-top: 5em;
  text-align: center;
}
section > div {
  max-width: 870px;
  margin: auto;
}

/***************************** Nav  *****************************/
@media only screen and (min-width: 900px) {
  nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 200;
  }
  nav #menu {
    display: none;
  }
  nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    background: linear-gradient(#303030, #101010);
  }
  nav > ul > li {
    display: inline-block;
  }
  nav > ul > li > a {
    display: block;
    padding-top: 0.25em;
    text-align: center;
    border-bottom: 4px solid #FF8000;
    border-right: 1px solid #000000;
    text-decoration: none;
    transition: border 1s;
    color: #FFFFFF;
    height: 3em;
    width: 4em;
  }
  nav > ul > li > a:first-child {
    border-left: 1px solid #000000;
  }
  nav > ul > li > a > img {
    margin: auto;
    padding-top: 0.25em;
    max-width: 1.5em;
    max-height: 1.5em;
    filter: invert(1);
  }
  nav > ul > li > a > div {
    margin: auto;
    padding-top: 0.25em;
    max-width: 1.5em;
    max-height: 1.5em;
    filter: invert(1);
  }
  nav > ul > li > a > span {
    display: block;
    position: absolute;
    color: #FFFFFF;
    background: linear-gradient(#505050, #101010);
    border: 1px solid #404040;
    margin-top: 0.8em;
    padding: 0.5em 1em 0.5em 1em;
    transform: scale(0,0);
  }
  nav > ul > li > a:hover > span {
    margin-left: -1em;
    transform: scale(1,1);
  	transition: all 0.5s;
    transition-delay: 1s;
  }
  nav > ul > li > a:hover {
    text-decoration: none;
    border-bottom: 4px solid #FFC000;
    background: linear-gradient(#404040, #202020);
    transition: border 1s;
  }
  #loginButton, #logoutButton, #homeButton, #gameButton, #userButton {
    cursor: pointer;
  }
  nav > ul > li > ul {
    position: absolute;
    display: none;
  }
  nav > ul > li:hover ul {
    display: block;
  }
  nav > ul > li:hover ul li a {
    display: block;
    width: 10em;
    padding: 0.5em 1em 0.5em 1em;
    transition: border 1s;
    border-left: 8px solid transparent;
    text-align: left;
  }
  nav > ul > li:hover ul li a img {
    display: inline-block;
    max-height: 1.5em;
    filter: invert(1);
  }
  nav > ul > li:hover ul li a img.userMenu {
    border-radius: 20px;
    border: 0px;
    max-width: 1.5em;
    filter: invert(0) grayscale(100%);
  }
  nav > ul > li:hover ul li a span {
    padding-left: 1em;
    display: inline-block;
  }
  nav > ul > li:hover ul li a:hover {
    text-decoration: none;
    border-left: 8px solid #FFC000;
    background: linear-gradient(#404040, #202020);
    transition: border 1s;

  }
  nav > ul > li:hover ul li a:hover span {
    color: #FFFFFF;
    transition: 1s;
  }
}
@media only screen and (max-width: 900px) {
  nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    text-align: center;
    max-height: 100%;
    z-index: 200;
  }
  nav * {
    overflow: hidden;;
  }
  nav #menu {
    background: linear-gradient(#303030, #101010);
    height: 4em;
    text-align: left;
  }
  nav #menu img {
    padding: 0.25em;
    filter: invert(1);
    height: 3.5em;
    cursor: pointer;
  }
  nav ul {
    display: none;
    list-style-type: none;
    margin: 0;
    padding: 0;
    background: linear-gradient(#303030, #101010);
    overflow-y: auto;
    width: 12em;
    max-height: 100%;
  }
  nav > ul > li {
    display: block;
    text-align: left;
    width: 100%;
  }
  nav > ul > li > a {
    display: inline-block;
    border-bottom: 4px solid transparent;
    text-align: left;
    width: 100%;
  }
  nav > ul > li > a > img {
    display: inline-block;
    max-width: 1.5em;
    max-height: 1.5em;
    filter: invert(1);
    padding: 0.25em 0em 0.25em 1em;
  }
  nav > ul > li > a > span {
    display: inline-block;
    padding: 0.25em 1em 0.25em 1em;
    color: #FFFFFF;
  }
  nav > ul > li > a:hover {
    text-decoration: none;
    border-bottom: 4px solid #FFC000;
    background: linear-gradient(#404040, #202020);
    transition: border 1s;
  }
  #loginButton, #logoutButton, #homeButton, #gameButton, #userButton {
    cursor: pointer;
  }
  nav > ul > li > ul {
    position: absolute;
    margin-left: 10em;
    margin-top: -3em;
  }
  nav > ul > li ul li a {
    display: block;
    width: 10em;
    padding: 0.5em 1em 0.5em 1em;
    transition: border 1s;
    border-left: 8px solid transparent;
    text-align: left;
  }
  nav > ul > li ul li a img {
    display: inline-block;
    max-height: 1.5em;
    filter: invert(1);
  }
  nav > ul > li ul li a img.userMenu {
    border-radius: 20px;
    border: 0px;
    max-width: 1.5em;
    filter: invert(0) grayscale(100%);
  }
  nav > ul > li ul li a span {
    padding-left: 1em;
    display: inline-block;
  }
  nav > ul > li ul li a:hover {
    text-decoration: none;
    border-left: 8px solid #FFC000;
    background: linear-gradient(#404040, #202020);
    transition: border 1s;

  }
  nav > ul > li ul li a:hover span {
    color: #FFFFFF;
    transition: 1s;
  }
}

/***************************** Object *****************************/
div.obj {
  display: block;
  border: 1px solid #c0c0c0;
  border-radius: 5px;
  box-shadow:  5px 5px 10px #888888;
  padding: 1em;
  text-align: center;
  /*max-width: 800px;*/
  background-color: #FFFFFF;
}
@media only screen and (min-width: 900px) {
  div.obj {
    margin: 1em;
  }
}
@media only screen and (max-width: 900px) {
  div.obj {
    margin: 0.75em 0.25em 0.75em 0.25em;
  }
}
div.obj div.innerObj {
  margin: auto;
  /*display: inline-block;*/
  text-align: left;
}

div.outObj div.objMenu {
  float: right;
  margin-top: 0.5em;
  margin-right: 1.5em;
  text-align: right;
}
div.outObj div.objMenu img {
  height: 2em;
}
div.outObj div.objMenu:hover {
  cursor: pointer;
}
div.outObj div.objMenu div.objMenuBack {
  position: absolute;
  margin-left: -7em;
  width: 10em;
  display: none;
  background: linear-gradient(#404040, #202020);
  box-shadow: 5px 5px 10px #888888;
}
div.outObj div.objMenu div.objMenuBack div img {
  display: inline-block;
  height: 1em;
  filter: invert(0.5);
  padding-right: 1em;
}
div.outObj div.objMenu:hover div.objMenuBack {
  display: block;
}
div.outObj div.objMenu div.objMenuBack div {
  text-align: left;
  color: #B0B0B0;
  padding: 0.5em 1em 0.5em 1em;
  border-right: 4px solid transparent;
}
div.outObj div.objMenu div.objMenuBack div:hover {
  display: block;
  background: linear-gradient(#505050, #101010);
  color:#FFFFFF;
  border-right: 4px solid orange;
}
div.outObj div.objMenu div.objMenuBack div:hover img {
  filter: invert(1);
}

div.outObj img.button {
  position: absolute;
  width: 0.8em;
  border: 1px solid #000000;
  border-radius: 5px;
  padding: 5px;
  display: block;
  margin-top: 0.6em;
  cursor: pointer;
  z-index: 100;
  opacity: 0;
}
div.outObj img.button.edit {
  margin-left: 1.5em;
}
div.outObj img.button.delete {
  margin-left: 3.5em;
}
div.outObj img.button:hover {
  opacity: 1;
}
div.objEdit {
  text-align: center;
}
div.objEdit ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}
div.objEdit ul li {
  padding-bottom: 0.25em;
}
div.objEdit ul li span {
  display: inline-block;
  height: 100%;
  width: 10em;
  text-align: left;
}
div.objEdit ul li input {
  width: 21em;
}
div.objEdit ul li input[type=checkbox] {
  width: 22em;
}
div.objEdit ul li input[type=file] {
  width: 22em;
}
div.objEdit ul li textarea {
  width: 20em;
  height: 6em;
}
div.objEdit ul li select {
  width: 22em;
}

/***************************** Survey *****************************/
div.survey {
  text-align: center;
}
div.survey div.choice {
  text-align: left;
}

div.survey div.question {
  font-weight: bold;
  padding-bottom: 0.5em;
}



  progress {
    /* RESETS */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: 1px solid #808080;
    border-radius: 20px;
    background-color: #C0C0C0;
    color: rgb(255, 125, 0);
  }

  /* WEBKIT BROWSERS - CHROME, OPERA AND SAFARI */
  progress::-webkit-progress-bar {
    background-color: #777;
    border-radius: 20px;
  }

  progress::-webkit-progress-value {
    background-color: rgb(20, 240, 221);
    border-radius: 20px;
  }

  /* MOZILLA FIREFOX */
  progress::-moz-progress-bar {
    background-color: rgb(20, 240, 221);
    border-radius: 20px;
  }

  /* WEBKIT BROWSERS - CHROME, OPERA AND SAFARI */
  progress::-webkit-progress-bar {
    background-color: #777;
    border-radius: 20px;
  }

  progress::-webkit-progress-value {
    background-image:
    -webkit-linear-gradient(45deg, transparent 40%, rgba(0, 0, 0, .1) 40%, rgba(0, 0, 0, .1) 70%, transparent 70%),
    -webkit-linear-gradient(top, rgba(255, 255, 255, .25), rgba(0, 0, 0, .25)),
    -webkit-linear-gradient(left, #F07000, #FFB020);
    border-radius: 20px;
  }

  /* MOZILLA FIREFOX */
  progress::-moz-progress-bar {
    background-image:
    -moz-linear-gradient(45deg, transparent 33%, rgba(0, 0, 0, 0.1) 40%, rgba(0, 0, 0, 0.1) 70%, transparent 70%),
    -moz-linear-gradient(top, rgba(255, 255, 255, 0.25), rgba(0, 0, 0, 0.25)),
    -moz-linear-gradient(left, #F07000, #FFB020);
    border-radius: 20px;
  }

  /* MICROSOFT EDGE & IE */
  .custom-progress::-ms-fill {
    border-radius: 18px;
    background: repeating-linear-gradient(45deg, #F07000, #F07000 10px,#FFB020 10px, #FFB020 20px);
  }

  progress.survey {
    width: 6em;
    height: 1em;
    margin: 0.25em 1em 0 0;
  }

  progress.survey + span {
    display: block;
    position: absolute;
    color: #505050;
    margin-top: -1.25em;
    width: 7em;
    text-align: center;
    font-size: 0.9em;
  }




div.survey div.choices {
  padding-bottom: 0.5em;
  display: inline-block;
}
div.survey div.user {
  display: inline;
}
div.survey button {
  margin-top: 0.5em;
  min-width: 8em;
}

/***************************** Citation *****************************/
div.citation {
  text-align: center;
}
div.citation div.label {
  display: inline-block;
  border: 1px solid #909090;
  background-image: url("../img/citation.jpg");
  border-radius: 3px;
  padding: 1em;
  font-weight: bold;
  font-family: 'Shadows Into Light', cursive;
  font-size: 1.5em;
  box-shadow: 5px 5px 10px #888888;
  margin: 0.5em 0 0 0;
}
div.citation div.date {
  text-align: center;
}
div.citation div.user {
  display: inline;
}
div.citation div.stars {
  text-align: center;
  padding-top: 0.5em;
}
div.citation div.stars img {
  border: 1px solid transparent;
  width: 2em;
}
div.citation div.stars img.vote {
  cursor: pointer;
}
div.citation div.stars img.vote:hover {
  border-radius: 1em;
  border: 1px solid orange;
}
div.citation div.stars img + span {
  display: inline-block;
  position: absolute;
  margin-left: -3em;
  margin-top: 2em;
  color: #404040;
	border: 1px solid #A0A0A0;
	border-radius: 4px;
	background: linear-gradient(to bottom, #FFFFFF 0%,#D0D0D0 100%);
	padding: 0.3em;
  transform: rotate(-90deg) scale(0, 0);
}
div.citation div.stars img:hover + span {
  transform: rotate(0deg) scale(1, 1);
  transition: all 0.5s;
}
div.survey div.message,
div.citation div.message {
  text-align: center;
  padding: 0.5em;
  border: 1px solid #800000;
  border-radius: 5px;
  background-color: #FFB0B0;
  margin-bottom: 0.5em;
}
div.survey div.message.ok,
div.citation div.message.ok {
  border: 1px solid #008000;
  background-color: #80DF80;
}
div.citation div.stats {
  text-align: center;
}
div.citation table.notes {
  margin: 1em auto;
  border: 1px solid #E0E0E0;
  border-collapse: collapse;
  width: 100%;
}
div.citation table.notes thead {
  font-weight: bold;
}
div.citation table.notes tbody tr:nth-child(odd) {
  background-color: #F0F0F0;
}
div.citation table.notes td img {
  max-height: 1em;
}
div.citation table.notes td img.delete {
  cursor: pointer;
}
div.citation table.notes td.ip {
  max-width: 9em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
div.obj div.history {
  margin    : 1em;
  padding   : 1em;
  border-top: 1px dotted #808080;
  border-bottom: 1px dotted #808080;
  height    : 6em;
  overflow-y: scroll;
}
div.obj div.history table {
  display   : block;
  text-align: center;
}
div.obj div.history table {
  display   : inline-block;  
}
div.obj div.history table tbody tr:nth-child(odd) {
  background-color: #F0F0F0;
}
div.obj div.history table td {
  font-size: 0.8em;
}

/***************************** Message *****************************/
/*div.message div.user {
    display: inline-block;
    padding-right: 1em;
}
div.message div.label {
  display: inline-block;
  border: 1px solid #c0c0c0;
  border-radius: 5px;
  background: #f0f0f0;
  padding-left: 2em;
  padding-right: 2em;
  padding-top: 1em;
  min-width: 20em;
  font-weight: bold;
}
div.message div.date {
  font-size: 0.8rem;
  font-weight: normal;
  font-style: italic;
  text-align: right;
  padding-top: 1em;
  color: #707070;
}*/
/***************************** Counter *****************************/
div.counter {
  text-align: center;
}
div.counter div.label {
  text-align: center;
}
div.counter div.value div.digit {
  display: inline-block;
  background: #000000;
  color: #FFFFFF;
  font-size: 1.5em;
  font-weight: bold;
  border-radius: 2px;
  padding: 0.2em;
  margin-right: 2px;
}
div.counter div.value div.digit::after {
  border-top: 10px solid #FF0000;
  value:' ';
}

/***************************** Ad *****************************/
div.ad {
  text-align: center;
}
div.ad div.title {
  text-align: center;
  font-size: 1.4em;
  font-weight: bold;
  padding: 1em;
}
div.ad div.subtitle {
  text-align: center;
  padding-bottom: 1em;
}
div.ad div.subtitle div.user {
  display: inline;
}
div.ad div.main {
  margin: auto;
  max-width: 640px;
  max-height: 480px;
}
div.ad img.main {
  margin: auto;
  max-width: 640px;
  max-height: 480px;
  display: block;
  border: 1px solid #000000;
}
div.ad div.sec {
  display: inline-block;
  width: 6em;
  height: 4em;
  overflow: hidden;
  margin-right: 1em;
  margin-top: -5em;
  margin-bottom: 2.5em;
  border: 2px solid #c0c0c0;
  border-radius: 5px;
  opacity: 0.4;
}
div.ad div.sec:hover {
  opacity: 1;
}
div.ad img.sec {
  width: 100%;
  cursor: pointer;
}
div.ad div.price {
  font-weight: bold;
  text-align: left;
  padding-bottom: 1em;
}
div.ad div.price span.price{
  font-weight: bold;
  color: orange;
}
div.ad div.description-title {
  font-weight: bold;
  padding-bottom: 1em;
  text-align: left;
}
div.ad div.description {
  text-align: justify;
  max-width: 600px;
  margin: auto;
}
div.ad div.sold {
  position:absolute;
  background-image: url("../img/vendu.png");
  width: 10em;
  height: 6em;
  margin-left: 50vh; /* poussé de la moitié de hauteur de viewport */
  transform: translateX(-50%); /* tiré de la moitié de sa propre hauteur */

}

/***************************** Likes *****************************/
div.comment {
  margin-bottom: 0.5em;
}
div.comment div {
  display: table-cell;
  text-align: right;
}
div.comment div span {
  display: block;
  padding-right: 1em;
}
div.comment div span.date {
  color: #707070;
  font-size: 0.8em;
  font-style: italic;
}
div.comment div.label {
  min-width: 5em;
  padding: 0.5em;
  text-align: center;
}
div.comments {
  display: inline-block;
  margin-top: 1em;
}
div.comments div.likes {
  padding: 0;
}
div.comments div.dolikes {
  display: inline-block;
  margin-top: 1em;
  background: linear-gradient(to bottom, #707070 0%,#101010 100%);
  border: 1px solid #000000;
  border-radius: 4px;
}
div.comments input {
  margin: 0 0.5em 0 0.5em;
  border: 1px solid #A0A0A0;
  border-radius: 5px;
  height: 2em;
}
div.comments input:focus {
  outline: none;
}
div.comments div.list {
  display: none;
  padding-top: 0.5em;
  padding-bottom: 0.5em;
}
div.buttonsLikes {
  display: inline-block;
  height: 1em;
  width: 1em;
  padding: 12px;
  background-position: center;
  background-repeat: no-repeat;
  cursor: pointer;
}
div.buttonsLikes:hover {
  box-shadow: inset 0 0 0 1000px rgba(0,0,0,0.3 );
}
div.showList {
  background-image: url('../img/icon/comment.png');
  filter: invert(100%);
}
div.showList span {
  position: absolute;
  border-radius: 10px;
  border: 1px solid #FF8000;
  background-color: #FF8000;
  color: white;
  min-width: 1.3em;
  font-size: 0.7em;
  margin-top: 0.2em;
  margin-left: 0.2em;
  filter: invert(100%);
}
div.like {
  background-image: url('../img/icon/like.png');
  filter: invert(100%);
}
div.dislike {
  background-image: url('../img/icon/dislike.png');
  filter: invert(100%);
}
div.noMatter {
  background-image: url('../img/icon/nomatter.png');
  filter: invert(100%);
}
div.deleteLike  {
  background-image: url('../img/icon/del-like.png');
  filter: invert(100%);
}
div.buttonsLikesInfo {
  position: absolute;
  margin-top: 2em;
	margin-left: -2em;
  color: #202020;
	border: 1px solid #A0A0A0;
	border-radius: 4px;
	background: linear-gradient(to bottom, #FFFFFF 0%,#D0D0D0 100%);
	padding: 0.3em;
  transform: rotate(-90deg) scale(0,0);
  min-width: 6em;
  /*filter: invert(100%);*/
}
div.buttonsLikes:hover div.buttonsLikesInfo {
  transform: rotate(0deg) scale(1,1);
	transition: all 0.5s;
}
input.newComment {
  min-width: 20em;
}
/*div.userPseudo {
  display: inline;
}
a.pseudo img.pseudo {
  display: inline;
  height: 2em;
  width: 2em;
  border-radius: 40px;
}*/

/********************* lists ***************************/
div.largeList {
}
div.largeList > div.listItem {
  padding: 1em;
}
div.list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  justify-content:flex-start;
}
div.list > div.listItem {
  flex: none;
  height: 10em;
  border: 2px solid #F0F0F0;
  text-align: center;
  transition: background-color 1s;
  transition: border-color 1s;
  background-color: #FFFFFF;
  margin: 2px;
}
@media only screen and (min-width: 900px) {
  div.list > div.listItem {
    padding: 1em;
    width: 10em;
  }
}
@media only screen and (max-width: 900px) {
  div.list > div.listItem {
    padding: 0.5em;
    width: 10em;
  }
}
div.list div.listItem:hover
{
  border: 2px solid orange;
  cursor: pointer;
  background-color: #FFF0A0;
  transition: background-color 1s;
  transition: border-color 1s;
}
div.listItem a
{
  text-decoration: none;
}

div.list div.listItem img {
  display: block;
  margin: auto;
  padding-bottom: 0.5em;
  max-width: 8em;
  max-height: 6em;
}
div.list div.listItem div.label {
  font-weight: bold;
  height: 2.2em;
  text-overflow: ellipsis;
  overflow:  hidden;
}
div.list div.listItem .user,
div.list div.listItem .date {
  font-size: 0.9em;
}
/*************** alert / confirm ******************/
div.genMessage {
  position: fixed;
  top: 5em;
  left: 0;
  right: 0;
  display: none;
  text-align: center;
}
div.genMessage > div {
  margin: auto;
  display: inline-block;
  text-align: center;
  padding: 1em;
  border: 1px solid #000000;
  border-radius: 5px;
  border-bottom: 4px solid #FF8000;
  background: linear-gradient(to bottom, #303030 0%,#101010 100%);
  box-shadow: 5px 5px 10px #888888;
}
div.genMessage div div {
  padding: 1em;
  color: #c0c0c0;
}
div.genMessage div button {
  min-width: 6em;
}

/*************** collection.menu ******************/
ul.menu {
  list-style-type: none;
  margin: 0 0 1em 0;
  padding: 0;
  border-radius: 4px;
  background: linear-gradient(to bottom, #707070 0%,#101010 100%);
  border: 1px solid #000000;
  z-index: 199;
}
ul.menu li {
  display: inline-block;
  border-color: #FFFFFF;
  text-align: center;
}
ul.menu li span,
ul.menu li a {
  display: inline-block;
  color:#FFFFFF;
  padding: 0.5em;
  text-decoration: none;
  min-width: 8em;
  margin:  0 0.5em 0 0.5em;
}
ul.menu li img {
  max-height: 1em;
  filter: invert(1);
}
ul.menu li a.nav {
  min-width: 1.5em;
}
ul.menu li a.nav.disabled img {
  filter: invert(0.5);
}
ul.menu li a:hover {
  background: linear-gradient(to bottom, #909090 0%,#303030 100%);
  /*color:#FF8000;*/
  /*border-bottom: 2px solid orange;*/
}
ul.menu li:last-child {
  float: right;
}

div.nbComment {
  position: absolute;
  display: inline-block;
  color:#FFFFFF;
  font-size: 0.8em;
  background-color: #FF8000 ;
  margin-left: 4em;
  border-radius: 20px;
  min-width: 1.25em;
}
div.warning {
  position: absolute;
  display: inline-block;
  margin-left: -5.5em;
  min-width: 2em;
  background-image: url("../img/icon/warning.png");
  background-position: left;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  filter: invert(50%) sepia(80%) saturate(6000%) hue-rotate(0deg) brightness(100%) contrast(90%);
}
/*************** button ******************/
input[type=button],
input[type=submit],
a.button,
button {
  display: inline-block;
  cursor: pointer;
  color: #000000;
  border-radius: 5px;
  border: solid 1px #eeb44f;
  background: linear-gradient(180deg, #ffc477 5%, #fb9e25 100%);
  text-shadow: 1px 1px 0px #cc9f52;
  box-shadow: inset 1px 1px 0px 0px #fce2c1;
  text-decoration: none;
  padding: 0.25em 1em 0.25em 1em;
  min-width: 6em;
}
input[type=button]:hover,
input[type=submit]:hover,
a.button:hover,
button:hover {
  background: linear-gradient(180deg, #fb9e25 5%, #ffc477 100%);
}
input[type=button]:disabled,
input[type=submit]:disabled,
a.button:disabled,
button:disabled,
button[disabled] {
  border: solid 1px #808080;
  text-shadow: 1px 1px 0px #cc9f52;
  box-shadow: inset 1px 1px 0px 0px #202020;
  background: linear-gradient(180deg, #E0E0E0 5%, #909090 100%);
}
/*************** picture ******************/
div.picture {
  text-align: center;
}
div.picture img {
  text-align: center;
  max-width: 100%;
}
div.picture .label {
  font-weight: bold;
  padding: 1em;
  text-align: center;
  max-width: 100%;
}
div.picture .user {
  font-style: italic;
  padding: 0.5em;
  text-align: center;
  max-width: 100%;
}
/*************** video ******************/
div.video {
  text-align: center;
}

/*************** user ******************/
div.user {
  max-width: 500px;
  margin: auto;
}
div.user img {
  max-height: 1.5em;
  display: inline;
}
div.user .activity {
  text-align: center;
  padding: 1em;
}
div.user .userLike,
div.user .userDontLike {
  display: inline-block;
  width: 50%;
}
div.user div.userImg {
  float: right;
  display: inline-block;
  padding: 1em;
  border: 1px solid #000000;
  box-shadow: 5px 5px 10px #888888;
}
div.user div.userImg img {
  max-height: 10em;
}
div.list div.listItem > div.user {
  font-size: 1em;
  font-weight: bold;
}
div.list div.listItem > div.user img {
  border-radius: 80px;
  width: 5em;
  height: 5em;
  padding: 0;
  box-shadow: 3px 3px 3px #404040;
  margin-bottom: 1em;
}

/******************** Object creation ***********************/
.createWindow {
  display: inline-block;
  margin-top: 50vh;
  transform: translateY(-50%);
  overflow-y: auto;
  max-height: 100%;
  width: 40em;
}

/******************** Weather ***********************/
div#weather {
  text-align: center;
}
div#weather ul {
  display: inline-block;
  list-style-type: none;
  margin: 0;
  padding: 0;
  margin: auto;
}
div#weather ul li {
  display: flex;
  height: 4em;
  border-bottom: 1px solid #E0E0E0;
}
div#weather ul li:last-child {
  border-bottom: none;
}
div#weather ul li div.day {
  line-height: 4em;
  width: 12em;
  text-align: center;
}
div#weather ul li div.weather {
  height: 3em;
  text-align: center;
  cursor: pointer;
}
div#weather ul li div.temp {
  line-height: 4em;
  width: 3em;
  font-weight: bold;
  text-align: center;
}
div#weather ul li div.temp.cold {
  color: #50A0FF;
}
div#weather ul li div.temp.warm {
  color: #FF0000;
}
div#weather ul li div.tempset {
}
div#weather ul li div.tempset img {
  height: 1.5em;
  cursor: pointer;
}
div#weather ul li div.tempset:hover div.tempplus,
div#weather ul li div.tempset:hover div.tempminus {
  filter: invert(0.5);
  transition-duration: 0.5s;
}
div#weather ul li div.tempplus,
div#weather ul li div.tempminus {
  filter: invert(1);
  transition-duration: 0.5s;
}

/******************** Permission ***********************/

div.modalWindow {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  text-align: center;
}
div.modalWindow div.permissions {
  display: inline-block;
  padding: 1em;
  margin-top: 50vh;
  transform: translateY(-50%);
  background-color: #FFFFFF;
  border: 1px solid #c0c0c0;
  border-radius: 5px;
  box-shadow:  5px 5px 10px #888888;
}
div.modalWindow div h2 img {
  max-height: 2em;
  float:left;
  margin-top: -1em;
}
div.modalWindow div h2 {
  height: 2em;
  text-align: center;
}

div.modalWindow div.permissions select {
  width: 15em;
  margin-right: 1em;
}
div.modalWindow div.permissions a.modalWindowClose {
  margin-top: 1em;
}
div.modalWindow div.permissions div.permissionEntry {
  border-top: 1px solid #C0C0C0;
  padding: 0.25em;
}
div.modalWindow div.permissions div span {
  display: inline-block;
  text-align: left;
  width: 18em;
}
div.modalWindow div.permissions div img {
  max-height: 1.5em;
}
div.modalWindow div.permissions div img.deletePermission {
  max-height: 1.5em;
  text-align: right;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 0.2em;
}
div.modalWindow div.permissions div img.deletePermission:hover {
  border-color: #C0C0C0;
  background-color: #F0F0F0;
}

/******************** User rights ***********************/

div.modalWindow div.userRights {
  display: inline-block;
  padding: 1em;
  margin-top: 50vh;
  transform: translateY(-50%);
  background-color: #FFFFFF;
  border: 1px solid #c0c0c0;
  border-radius: 5px;
  box-shadow:  5px 5px 10px #888888;
}
div.modalWindow div.userRights div.userRight {
  text-align: left;
}
div.modalWindow div.userRights div.userRightBottom {
  margin-top: 1em;
  padding-top: 1em;
  border-top: 1px dotted #707070;
}

/******************** Cookies ***********************/

div#cookies {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	height: 7em;
	background-color: #D07020;
	z-index: 51;
}
div#cookies p {
	color: #FFFFFF;
	padding: 0;
	margin: 0.5em;;
}
div#cookies a {
	display: inline-block;
	color: #FFFFFF;
	border: 1px solid #FFFFFF;
	border-radius: 5px;
	font-weight: bold;
	width: 10em;
	text-align: center;
	text-decoration: none;
	padding: 0.5em;
	cursor: pointer;
}
div#cookies a:hover {
  background-color: #E09020;
}

/******************** Contest ***********************/
div.contestObj {
  text-align: center;
}
div.contest {
  display: inline-block;
  margin: auto;
}
div.contest div.participants {
    max-width: 40em;
    text-align: center;
}
div.contest div.participants div.ranking {
  padding: 1em;
  font-weight: bold;
}
div.contest div.participants ul {
  list-style-type: none;
  margin: 0 auto;
  padding: 0;
  display: inline-block;
}
div.contest div.participants ul li a {
  display: block;
  border: 2px solid transparent;
  text-align: left;
}
div.contest div.participants ul li a:hover {
  border: 2px solid orange;
  background-color: #FFF0A0;
}
div.contest div.participants ul li a div.score {
  display: inline-block;
  padding: 0 1em 0 2em;
  width: 3em;
}
div.contest div.participants ul li a div.pseudo {
  display: inline-block;
  color: orange;
  padding: 0 1em 0 0;
}
div.contest div.participants ul li:first-child a div.score {
  font-weight: bold;
}

div.contest div.questions {
  margin: auto;
  padding-top: 2em;
  text-align: center;
  max-width: 40em;
}
div.contest div.question {
  padding: 1em 0 2em 0;
  text-align: left;
  border-top: 1px solid #E0E0E0;
}
div.contest div.questionLabel {
  display: table-cell;
  width: 100%;
}
div.contest ul.answers {
  list-style-type: none;
  margin: 0 auto;
  padding: 1em 0 0 2em;
}
div.contest ul.answers li {
  background-image: url("");
  padding-left: 2em;
  background-image: url("../img/icon/unchecked.png");
  background-position: left;
  background-repeat: no-repeat;
  background-size: 1em 1.5em;
}
div.contest ul.answers li.selected {
  background-image: url("../img/icon/checked.png");
}
div.contest ul.answers span.ok {
  display: inline-block;
  font-weight: bold;
  padding-right: 2em;
  background-image: url("../img/icon/ok.png");
  background-position: right;
  background-repeat: no-repeat;
  background-size: 1.25em 1.25em;
}
div.contest ul.answers span.selected.ok {
  border: 1px solid #FFC020;
  background-color: #FFE080;
}
@media only screen and (min-width: 600px) {
  div.contest div.option {
    vertical-align: middle;
    display: table-cell;
  }
}
@media only screen and (max-width: 600px) {
  div.contest div.option {
    margin: 1em 0 0 0;
    display: block;
  }
}
div.contest div.option img {
  display: inline-block;
  max-height: 7em;
  min-width: 4em;
  border: 1px solid #000000;
  box-shadow:  5px 5px 10px #888888;
  cursor: pointer;
}
div.contest > div.score {
  padding-top: 3em;
  text-align: center;
}
div.contest > div.footer {
  padding-top: 1em;
  text-align: center;
}
div.showPicture {
  display: inline-block;
  padding: 1em;
  margin-top: 50vh;
  transform: translateY(-50%);
  background-color: #FFFFFF;
  border: 1px solid #c0c0c0;
  border-radius: 5px;
  box-shadow:  5px 5px 10px #888888;
}
div.showPicture img {
  display: block;
  border: 1px solid #000000;
  margin-bottom: 1em;
}

/******************** Game ***********************/
div.game {
  text-align: center;
}
div.game .dosbox-container {
  width: 640px;
  height: 480px;
  margin: auto;
}
div.game #gameFullScreen {
  margin: 1em;
}

/******************** Game ***********************/
div.joke {
  text-align: center;
}
div.joke div.title {
  font-weight: bold;
  padding: 1em;
}
div.joke div.story {
  text-align: left;
  margin: auto;
  padding: 1em;
}

/*********************** floating pseudo details ******************************/
#pseudoDetails * {
  all: initial;
  font-family: arial, verdana;
}
#pseudoDetails {
  margin: auto;
  display: inline-block;
  position: absolute;
  margin-top: 1em;
  background: linear-gradient(#303030, #101010);
  border: 1px solid #000000;
  padding: 0.5em;
  z-index: 200;
}
#pseudoDetails > div > div {
  display: inline-block;
}
#pseudoDetails > div > div > div {
  display: block;
  max-width: 15em;
  max-height: 5em;
  text-align: left;
  overflow: hidden;
  font-size: 1em;
  color: #a0a0a0;
  font-weight: normal;
}
#pseudoDetails > div > div > div:first-child {
  padding-right: 1em;
}
#pseudoDetails img {
  all: initial;
  height: 5em;
  border: 0;
}
/****************************** general ****************************************/
.uparrowdiv, .downarrowdiv, .leftarrowdiv, .rightarrowdiv {
   /*width                : 600px;*/
   min-height           : 40px; /* min height of DIV should be set to at least 2x the width of the arrow*/
   background           : linear-gradient(to right, #000000, #404040);
   color                : white;
   padding              : 5px;
   position             : relative;
   word-wrap            : break-word;
   border-radius        : 5px;
}

.leftarrowdiv:after {
   content     : '';
   display     : block;
   position    : absolute;
   top         : 10px;
   left        : -20px; /*should be set to -border-width x 2 */
   width       : 0;
   height      : 0;
   border-color: transparent #000000 transparent transparent; /*border color should be same as div div background color*/
   border-style: solid;
   border-width: 10px;
}
.uparrowdiv:after {
   content     : '';
   display     : block;
   position    : absolute;
   top         : -20px; /*should be set to -border-width x 2 */
   left        : 30px;
   width       : 0;
   height      : 0;
   border-color: transparent transparent #808080 transparent; /*border color should be same as div div background color*/
   border-style: solid;
   border-width: 10px;
}
.downarrowdiv:after {
   content     : '';
   display     : block;
   position    : absolute;
   top         : 100%; /*should be set to 100% */
   left        : 30px;
   width       : 0;
   height      : 0;
   border-color: #808080 transparent transparent transparent; /*border color should be same as div div background color*/
   border-style: solid;
   border-width: 10px;
}
.rightarrowdiv:after {
   content     : '';
   display     : block;
   position    : absolute;
   top         : 10px;
   left        : 100%; /*should be set to 100% */
   width       : 0;
   height      : 0;
   border-color: transparent transparent transparent #A0A0A0; /*border color should be same as div div background color*/
   border-style: solid;
   border-width: 10px;
}
