html {
  font-family: Verdana, Roboto, sans-serif;
  font-size: 8.5pt;
}

body {
  margin: 0px;
  padding: 0px;
  background-color: #FFFFFF;
  color: #000000;
  font-family: inherit;
}

textarea, input, select, button {
  font-family: Verdana, Roboto, sans-serif;
  font-size: 1em;
}

input, select, button {
  padding: 0.3rem;
}

button, input[type=button], input[type=submit], input[type=reset] {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

#ListDisplaySettings p select {
  width: 12em;
}

form#Qsearch, form#Qsearch div {
  display: inline;
}

img.Bullet {
  vertical-align: middle;
  display: inline-block;
}

img.IMDB {
  vertical-align: text-bottom;
}

.BoxTitle img.IMDB {
  vertical-align: text-top;
}

img.CarFlag {
  vertical-align: middle;
}

.BoxTitle img.CarFlag {
  vertical-align: baseline;
}


img#MainPicture /* copied to admin-bs.css */ {
  max-width: 100%;
  height: auto;
  position: relative;
  z-index: 10;
}

div#VehicleLocationFrame /* copied to admin-bs.css */ {
  z-index: 20;
  background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAPAAAACgBAMAAADA9fxWAAAALnRFWHRDcmVhdGlvbiBUaW1lAGRpbS4gMjgganVpbiAyMDA5IDE3OjA4OjA0ICswMTAwI6tNbAAAAAd0SU1FB9kGHA8rDW/3PCkAAAAJcEhZcwAAHsEAAB7BAcNpVFMAAAAEZ0FNQQAAsY8L/GEFAAAACVBMVEUA/wD///8AAABVjYWXAAAAAXRSTlMAQObYZgAAAHVJREFUeNrt3AENACAMA8HhgOEA/IsEF03IvYFLDbQ6VK0TadfKDH7wrEADDAaDwWAwGAwGg8FgMBgMBoPBYDAYDAaDwWAwGAwGg8FgMBgMBoPBYDAYDAaDwWAwGAwGg8FgMBgMBoPBYPAfcOxCKXUalRncfQFtEmipy+s4JwAAAABJRU5ErkJggg==);
  background-size: contain;
  background-repeat: no-repeat;
}

div.img-legend {
  width: fit-content;
}

span.img-tools {
  float: right;
}

span.img-tools * {
  cursor: pointer;
}

#MakesList td {
  width: 16%;
  vertical-align: top;
}

a img {
  border: none;
}

form {
  margin: 0px;
  padding: 0px;
}

table {
  border-collapse: collapse;
}

#Comments table {
  width: 99%;
}

#Comments td, #Comments th, #SearchResults td, #Movies td, #MovieVehicles td {
  padding: 5px;
  vertical-align: top;
  text-align: left;
}

#Comments th {
  font-weight: bold;
}

#Comments th#CommentPage {
  width: 25em;
}

#Comments th#CommentAuthor {
  width: 10em;
}

#Comments th#CommentAuthor2 {
  width: 14em;
}

#Comments th#CommentDate {
  width: 13em;
}

#Comments th#CommentActions {
  width: 75px;
}

#AddComment textarea, #EditComment textarea, #UserProfileEdit textarea, #Login textarea {
  width: 97%;
}

.Gallery {
  clear: both;
}

div.ThumbnailBox {
  width: 202px;
  float: left;
  overflow: hidden;
  position: relative; /* for OverlayIcon's position absolute */
}

@media (min-width: 640px) {
  .Gallery div.ThumbnailBox
  {
    height: 125px;
    padding: 5px 15px 0 0;
  }

  .Gallery div.WithTitle
  {
    height: 150px;
  }
}

#navig-prevnext .ThumbnailBox {
  float: none;
}

#navig-prevnext div.navig-block {
  display: inline-block;
  padding: 0 0 1em 1em;
  vertical-align: top;
}

@media (max-width: 639px) {
  #navig-prevnext div.ThumbnailBox
  {
    width: 100%;
  }

  .Gallery div.ThumbnailBox
  {
    width: calc(50% - 5px);
    aspect-ratio: 202 / 125;
    padding: 5px 5px 0 0;
  }

  .Gallery div.WithTitle
  {
    aspect-ratio: 202 / 150;
  }

  #navig-prevnext div.navig-block {
    width: calc(50% - 1em);
    padding: 1em 0.5em 1em 0.5em;
  }

}

@media (min-width: 1200px) {
  #img-maincontainer {
    display: flex;
  }

  #navig-prevnext {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
  }

  #navig-prevnext h3 {
    display: block;
    padding-right: 15px;
    width: 202px;
  }

  #navig-prevnext div.navig-block {
    display: block;
    width: auto;
    border-left: 1px solid  #efd6a3;
  }
}

.GalleryFooter {
  clear: both;
}

span.Stars {
  white-space: nowrap;
}

.CommentSpoiler Legend {
  cursor: pointer;
}

img.OverlayIcon {
  position: absolute;
  left: 1;
  top: 6;
}

a.VehicleThumb {
  position: relative;  /* for ::after's position absolute */
  display: inline-block;
}

a.VehicleThumb img {
  display: block;
}

a.VehicleThumb::after {
  content: '';
  position: absolute;
  top: 2px;
  right: 2px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

a.VehicleThumb:hover::after {
  opacity: 1;
}

.picpopup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s;
}

.picpopup-overlay.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.picpopup-overlay.visible {
  opacity: 1;
}

.picpopup-header {
  height: 50px;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
}

.picpopup-header button {
  background: none;
  border: none;
  color: white;
  font-size: x-large;
  cursor: pointer;
  padding: 8px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
  border-radius: 4px;
}

.picpopup-header button:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.picpopup-title {
  color: white;
  font-size: larger;
  text-align: center;
  flex: 1;
  margin: 0 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.picpopup-footer {
  height: 45px;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
}

.picpopup-footer label {
  color: white;
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.picpopup-footer input[type="checkbox"] {
  margin-right: 8px;
  cursor: pointer;
  width: 16px;
  height: 16px;
}

.picpopup-image-wrapper {
  position: relative;
  overflow: auto;
  background-color: #000;
}

.picpopup-content {
  position: relative;
  display: flex;
  flex-direction: column;
  max-width: 95vw;
  max-height: 95vh;
}

.picpopup-content img {
  max-width: 100%;
  max-height: calc(95vh - 95px);
  display: block;
  cursor: pointer;
  transition: transform 0.3s;
}

@media (min-width: 864px) {
  .picpopup-content {
    max-width: 90vw;
    max-height: 90vh;
  }
  .picpopup-content img {
    max-height: calc(90vh - 95px);
  }
}

#FilterType {
  margin-bottom: 1.2em;
}

#FilterType ul {
  list-style-type: none;
  margin-top: 0;
}

.LgInline {
  margin: 0 0.6em 1.2em 0.6em;
}

fieldset .LgInline {
  margin: 0.6em;
}

.LgInline > div {
  margin: 0 0.6em 0.6em 0;
}

.LgInline br {
  margin-bottom: 0.6em;
}

@media (min-width: 640px) {
  .LgInline {
    margin-bottom: 0.9em;
  }

  .LgInline > div {
    display: inline-block;
    margin-bottom: 0;
  }

  .LgAlignLabel > div:first-child {
    width: 13em;
  }

  #FilterType ul
  {
    columns: 3;
  }
}

@media (min-width: 863px) {
  #FilterType ul
  {
    columns: 5;
    max-width: 1080px;
  }
}

ul.ellipsed-list li:nth-child(n+3) { /* only show 2 first titles */
  display: none;
}

ul.ellipsed-list li:last-child {
  display: list-item;
}

/*
img.flag {
	border: 1px #333333 solid;
}
*/

img.AlignText {
  vertical-align: text-bottom;
}

.sprico-home {
    width: 16px; height: 16px;
    background: url('../res/sprite-icons.png?v=5') -19px -69px;
}
.sprico-imdb {
    width: 27px; height: 15px;
    background: url('../res/sprite-icons.png?v=5') -35px -35px;
}
.sprico-clock {
    width: 16px; height: 16px;
    background: url('../res/sprite-icons.png?v=5') -69px -1px;
}
.sprico-brightness {
    width: 16px; height: 16px;
    background: url('../res/sprite-icons.png?v=5') -47px -87px;
}
.sprico-pencil {
    width: 16px; height: 16px;
    background: url('../res/sprite-icons.png?v=5') -87px -19px;
}
.sprico-delete {
    width: 16px; height: 16px;
    background: url('../res/sprite-icons.png?v=5') -69px -19px;
}
.sprico-quote {
    width: 16px; height: 16px;
    background: url('../res/sprite-icons.png?v=5') -55px -69px;
}
.sprico-edit {
    width: 16px; height: 16px;
    background: url('../res/sprite-icons.png?v=5') -69px -37px;
}
.sprico-tick {
  width: 16px; height: 16px;
  background: url('../res/sprite-icons.png?v=5') -87px -37px;
}
.sprico-help {
    width: 16px; height: 16px;
    background: url('../res/sprite-icons.png?v=5') -1px -69px;
}
.sprico-info {
    width: 16px; height: 16px;
    background: url('../res/sprite-icons.png?v=5') -37px -69px;
}
.sprico-warning {
    width: 16px; height: 16px;
    background: url('../res/sprite-icons.png?v=5') -87px -1px;
}
.sprico-lng-de {
    width: 21px; height: 12px;
    background: url('../res/sprite-icons.png?v=5') -35px -52px;
}
.sprico-lng-fr {
    width: 21px; height: 12px;
    background: url('../res/sprite-icons.png?v=5') -1px -87px;
}
.sprico-lng-uk {
    width: 21px; height: 12px;
    background: url('../res/sprite-icons.png?v=5') -24px -87px;
}
.sprico-pencil24 {
    width: 32px; height: 32px;
    background: url('../res/sprite-icons.png?v=5') -1px -1px;
}
.sprico-unlock24 {
    width: 32px; height: 32px;
    background: url('../res/sprite-icons.png?v=5') -35px -1px;
}
.sprico-editpic24 {
    width: 32px; height: 32px;
    background: url('../res/sprite-icons.png?v=5') -1px -35px;
}
.sprico-editpicloc24 {
  width: 32px; height: 32px;
  background: url('../res/sprite-icons.png?v=5') -72px -55px;
}
.OverlayZoom::after {
  width: 24px; height: 24px;
  background: url('../res/sprite-icons.png?v=5') -104px -1px;
}
.OverlayLink::after {
  width: 24px; height: 24px;
  background: url('../res/sprite-icons.png?v=5') -104px -25px;
}

.sprlnk-impdb {
    width: 88px; height: 31px;
    background: url('../res/sprite-links.png') -1px -1px;
}
.sprlnk-igcd {
    width: 88px; height: 31px;
    background: url('../res/sprite-links.png') -91px -1px;
}
