body {
  background-color: #F3F4F5 !important;
}

.leaflet-container {  /* all maps */
  height: 300px;
  z-index: 0;
}

.location .leaflet-container {
  height: 350px;
  z-index: 0;
}

#specialbigmap {
  height: 800px;
}

#collapsedmap {
  position: relative;
}

#curtain {
  width: 100%;
  height: 100%;
  background-color: rgba(255,255,255,0.80);
  z-index: 2;
  position: absolute;
  text-align: center;
  padding-top: 50px;
}

#collapsedmap.collapsed {
  max-height: 150px;
  overflow: hidden!important;
  margin-bottom: 10px;
}

#hideMapButton {
  display: none;
  position: absolute;
  right: 15px;
  top: 20px;
  z-index: 5;
}

.location .internal.attached.rail,
.internal.right.rail {
  height: fit-content !important;
}

/* Resize the "display_raw" textbox */
.django-leaflet-raw-textarea {
  width: 100%;
}

#degemer {
  text-align: center;
}

.ui.menu.topbar {
  border-bottom: 0.5rem solid #FBBD08 !important;
}

.xs-screen-block,
.ui.button.hamburger {
  display: none;
}


.full.height {
  min-height: 800px;
}

.full.height>.toc {
  position: fixed;
  z-index: 20;
  width: 300px;
  height: 750px;
  -webkit-box-flex: 0;
  -webkit-flex: 0 0 auto;
  -ms-flex: 0 0 auto;
  flex: 0 0 auto;
  margin-left: 2rem;
  margin-top: 0.5rem;
}

.toc .ui.big.menu {
  width: 100% !important;
}

.toc .ui.big.menu .item {
  padding-left: 0px;
  padding-top: .8em !important;
  padding-bottom: .8em !important;
}

.toc .ui.big.menu .content .item {
  padding-left: 1em;
}

.publicpage {
  -webkit-box-flex: 1;
  -webkit-flex: 1 1 auto;
  -ms-flex: 1 1 auto;
  flex: 1 1 auto;
  min-width: 0px;
  margin-left: 315px;
  margin-top: 120px;
  margin-bottom: 3rem;
}

.public_footer {
  height: 200px;
}

video#bgvid {
  position: fixed;
  right: 0;
  bottom: 0;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: -100;
  background: url(polina.jpg) no-repeat;
  background-size: cover;
}


.introduction {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -75%);
  text-align: center;
}

.ui.pagination.menu .active.item {
  font-weight: bold;
}

.small-margin {
  margin: 2px;
}

a.ui.label.active {
  background-color: #d0d0d0 !important;
  border-color: #d0d0d0 !important;
  background-image: none;
  color: rgba(0, 0, 0, .95) !important;
}

pre {
  font-family: Lato, 'Helvetica Neue', Arial, Helvetica, sans-serif !important;
}

hr {
  border: 0px;
  border-bottom: 1px solid rgba(34, 36, 38, .15);
}

.historiques {
  max-height: 500px;
  overflow: auto;
}


.historiques.expand {
  max-height: fit-content;
}

.definition .pre {
  white-space: pre-wrap;
  max-height: 600px;
  overflow: auto;
}

.definition .pre.expand {
  max-height: fit-content;
}

.grey-text {
  color: rgba(40, 40, 40, .3);
}

/* Tables with clickable rows */
.clickable td {
  padding: 0px !important;
}

.clickable td>a,
.clickable td>a:hover {
  color: inherit;
}

.clickable td>a:first-child {
  display: block;
  z-index: 0;
  padding: .78571429em .78571429em;
}


h1.header a {
  color: black;
}

/*---------------
    Responsive
----------------*/

/* Small mobiles */
@media screen and (max-width: 350px) {
  .ui.menu.topbar {
    height: 70px !important;
  }

  .ui.menu.topbar .hamburger {
    font-size: 1rem !important;
    margin: 5px !important;
  }

  .ui.menu.topbar img {
    width: 2rem !important;
  }

  .ui.menu.topbar a.item {
    padding-left: 5px !important;
  }

  .ui.menu.topbar h1 .content {
    font-size: 1.2rem !important;
  }

  .ui.menu.topbar h1 .sub.header {
    font-size: .9rem !important;
  }

  .publicpage {
    margin-top: 80px !important;
  }
}

/* Mobile (Default) and tablet */
@media screen and (max-width: 991.98px),
       screen and (max-height: 600px) {

  /* General */
  .no-xs-screen {
    display: none !important;
  }

  .xs-screen-block {
    display: block;
  }

  /* Top bar */
  .ui.menu.topbar {
    height: 90px;
    position: fixed;
    top: 0px;
    display: flex;
    align-items: center !important;
  }

  .ui.menu.topbar .hamburger {
    display: block;
    font-size: 1.3rem;
    margin: 10px;
    margin-right: 0px;
  }

  .ui.menu.topbar img {
    display: inline;
    width: 3.2rem;
  }

  .ui.menu.topbar .container {
    display: grid;
    grid-template-columns: 1fr repeat(3, auto) 1fr;
    justify-items: center;
  }

  .ui.menu.topbar .container>*:first-child {
    margin-right: auto;
  }

  .ui.menu.topbar h1 {
    display: flex;
    align-items: center;
  }

  .ui.menu.topbar h1> :last-child {
    margin-left: 10px;
  }

  .ui.menu.topbar h1 .content {
    font-size: 1.5rem;
    line-height: 100%;
    padding: 0px;
  }

  .ui.menu.topbar h1 .sub.header {
    font-size: 1rem;
  }


  /* Toc */
  .toc {
    display: none;
    background-color: white;
    width: 100% !important;
    height: 100% !important;
    margin-left: 0px !important;
    margin-top: -11px !important;
    padding-top: 10px;
    padding-bottom: 100px !important;
    padding-left: 20px !important;
    overflow: scroll;
  }

  .ui.big.menu {
    width: 100% !important;
  }

  .ui.big.menu .item {
    padding-top: .2em !important;
    padding-bottom: .2em !important;
  }

  #menu_toggle:target~.toc {
    margin-left: 0px !important;
  }

  .publicpage {
    -webkit-box-flex: 1;
    -webkit-flex: 1 1 auto;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    min-width: 0px;
    margin-left: 0px;
    margin-top: 115px;
    margin-bottom: 0px;
  }

  .publicpage>.grid.container>.column {
    padding-right: 0px !important;
    padding-left: 0px !important;
  }

  .ui.grid.container {
    width: 100% !important;
  }

  .segment {
    padding: 1em !important;
  }

  /* KerOfis */
  .kerofis_results td a {
    padding: 0px !important;
  }

  .kerofis_results td,
  .kerofis_results th {
    padding: 4px !important;
    font-size: .8em;
    white-space: normal!important;
    word-break: break-word;
    overflow-wrap: break-word;
  }
}

/* Between 600px and 750px height: denser menu */
@media screen and (min-height: 600px) and (max-height: 700px){
  .full.height>.toc {
    position: fixed;
    z-index: 20;
    width: 300px;
    -webkit-box-flex: 0;
    -webkit-flex: 0 0 auto;
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
    margin-left: 2rem;
    margin-top: 0rem;
  }

  .toc .ui.big.menu {
    width: 100% !important;
  }

  .toc .ui.big.menu .item {
    padding-left: 0px;
    padding-top: .5em !important;
    padding-bottom: .5em !important;
  }

  .toc .ui.big.menu .content,
  .toc .ui.big.menu .title {
    margin: 0px!important;
  }
}

/* Tablet Or Below */
@media screen and (min-width: 768px) and (max-width: 991.98px) {}

/* Small Monitor */
@media only screen and (min-width: 992px) and (max-width: 1199.98px) {
}

/* Large Monitor */
@media screen and (min-width: 1200px) {
}

/*---------------
    Skridaozer
----------------*/
div.ui.left:has(a#toggle-menu) {
  -webkit-transition: -webkit-transform 500ms ease;
  transition: -webkit-transform 500ms ease;
  transition: margin 500ms ease;
  transition: margin 500ms ease, -webkit-transform 500ms ease;
}

/* partials */
.breakwords {
  word-break: break-all;
}