﻿/* Joomgallery local Style - wont be overwritten by updates etc.
 * Rename this file to "joom_local.css" to have it included in
 * Joomgallery.
 * You can override any Style Definition of Joomgallery
 * Be sure to place !important behind each definition that could be
 * defined elsewhere. 
 * 
 * A basic sample style is included below. Feel free to edit or 
 * comment to your liking.
 *
 * 
 * Diese Datei wird nicht von Updates o.ä. überschrieben.
 * Benennen Sie diese in "joom_local.css" um, damit sie von der Joomgallery 
 * erkannt und eingebunden wird.
 *
 * Sie können jede Style-Definition 'überschreiben', die von der Joomgallery
 * standardmäßig in den anderen CSS-Dateien vergeben wird.
 *
 * Bitte fügen Sie ein '!important' in jeder Definition ein, die schon an
 * anderer Stelle definiert ist.
 *
 * Ein grundlegendes Beispiel für geänderte Styles finden Sie untenstehend.
 * Sie können diese nach Ihren Vorstellungen ändern.
 * 
 */
 
 
/* Main style / Background of whole gallery */
.gallery {
  background:#fff;
  color:#333;
  padding: 5px;
}

/* Heading of the component */
.gallery .componentheading {
  font:12pt normal Tahoma, Verdana, Arial, Century Gothic;
  text-align:center;
  background-color:#FFF;
  color:#333;
  padding:0.8em 0;
}

.jg_pathway {
  background-color:#F0F0F0;
  color:#000;
  border: #BBB solid 1px !important;
}

/* Links in pathway */
.jg_pathway a,.jg_pathway a:visited, .jg_pathway a:link {
  color:#c64934;
}
.jg_pathway a:hover {
  color:#900;
}
div.gallery .jg-header {
  font-size:1em !important;
  font-weight:bold !important;
  text-align:center !important;
  background-color:#EEE !important;
  background-image:none !important;
  color:#333 !important;
  border: #BBB solid 1px !important;
  padding:0.3em !important;
}

/* box elements in detailed view */
div.jg_details, div.jg_voting, div.jg_send2friend, div.jg_commentsarea{
  border: 1px solid #999;  
}

/* Images displayed in the category overview   */
/* Uncomment below e.g. to align the text left */
.jg_catelem{
  /* text-align:left;   */
}

/* Category elements in gallery overview */
.jg_element_gal {
  /* text-align:center; */ 
}

/* Subcategory elements in category view */
.jg_element_cat {
  /* text-align:left;   */
}

  @font-face {
    font-family: "Als Ekibastuz Heavy";
    src: url('https://pos.gosuslugi.ru/bin/banner/als_ekibastuz_heavy-webfont.woff2')
        format("woff2"),
      url('https://pos.gosuslugi.ru/bin/banner/als_ekibastuz_heavy-webfont.woff')
        format("woff");
    font-weight: normal;
    font-style: normal;
  }
  :root {
    --pos-banner-width: 100%;
    --pos-banner-height: 100%;
    --pos-banner-padding: 10px;
    --pos-banner-title-size: 24px;
    --pos-banner-title-align: center;
    --pos-banner-bg-size: 70%;
    --pos-banner-bg-pos-x: left;
  }
  #pos-container-width {
    width: 100%;
    max-width: 400px;
    min-width: 200px;
    min-height: 300px;
    display: block;
    background-color: transparent;
  }
  #pos-container-height {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: calc(600px - 100%);
    display: block;
    background-color: transparent;
  }
  #pos-banner {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: var(--pos-banner-width);
    height: var(--pos-banner-height);
    min-height: 300px;
    background-image: url('https://pos.gosuslugi.ru/bin/banner/pos-bg-min.png');
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-left: var(--pos-banner-padding);
    padding-right: var(--pos-banner-padding);
    padding-bottom: 25px;
    box-sizing: border-box;
    background-color: #e3e8ec !important;
    background-size: var(--pos-banner-bg-size);
    background-position-x: var(--pos-banner-bg-pos-x);
  }
  #pos-banner-icon {
    background-image: url('https://pos.gosuslugi.ru/bin/banner/pos-gos-logo.png');
    width: 130px;
    height: 130px;
    background-repeat: no-repeat;
    background-position: center;
    align-self: flex-end;
    background-color: transparent;
  }
  .pos-banner-btn {
    font-family: "Arial", sans-serif;
    padding: 10px;
    width: 100%;
    max-width: 290px;
    text-align: center;
    background: #0063b0 !important;
    color: white !important;
    border-radius: 4px;
    margin-top: 20px;
    align-self: center;
    box-sizing: border-box;
    cursor: pointer;
    user-select: none;
    font-size: 15px !important;
    font-weight: normal !important;
    line-height: 1.2 !important;
  }
  #pos-banner-title {
    font-family: "Als Ekibastuz Heavy", sans-serif;
    color: #0063b0 !important;
    font-style: normal;
    font-weight: bold;
    text-align: var(--pos-banner-title-align);
    font-size: var(--pos-banner-title-size) !important;
    background-color: transparent;
    line-height: 1.2 !important;
  }
  .pos-banner-title-item {
    display: inline-block;
    background-color: transparent !important;
    font-size: var(--pos-banner-title-size) !important;
    font-weight: bold !important;
    line-height: 1.2 !important;
  }
  #pos-banner-hint-icon {
    font-family: "Arial", sans-serif;
    background-color: white !important;
    width: 22px;
    height: 22px;
    border: 1px solid grey;
    border-radius: 50%;
    text-align: center;
    padding: -2px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    cursor: pointer;
    position: absolute;
    right: 10px;
    top: 20px;
    font-size: 12px !important;
    align-items: center;
    font-weight: bold;
    color: black !important;
  }
  #pos-banner-hint-icon-item {
    background-color: transparent;
    font-weight: normal;
    font-size: 14px;
  }
  #pos-banner-hint-message {
    font-family: "Arial", sans-serif;
    font-size: 11px !important;
    font-weight: normal !important;
    display: none;
    position: absolute;
    right: 5px;
    top: 55px;
    background-color: white;
    width: 85%;
    padding: 10px;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.2);
    color: black !important;
    line-height: 1.2;
  }
  #pos-banner-hint-message::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    background: #ffffff;
    border-radius: 1px;
    transform: matrix(-0.7, -0.8, 0.63, -0.7, 0, 0);
    top: -5px;
    right: 10px;
  }
  #pos-banner-hint-icon:hover ~ #pos-banner-hint-message {
    display: block;
    animation: fadeInFromNone 0.5s ease-out;
  }
  @keyframes fadeInFromNone {
    0% {
      display: none;
      opacity: 0;
    }
    1% {
      display: block;
      opacity: 0;
    }
    100% {
      display: block;
      opacity: 1;
    }
  }
  let root = document.documentElement;
  let banner = document.getElementById("pos-banner");
  function displayWindowSize() {
    let width = banner.offsetWidth;
    if (width = 220) {
      root.style.setProperty("--pos-banner-padding", "10px");
      root.style.setProperty("--pos-banner-title-size", "22px");
      root.style.setProperty("--pos-banner-title-align", "left");
      root.style.setProperty("--pos-banner-bg-size", "180%");
      root.style.setProperty("--pos-banner-bg-pos-x", "center");
    }
    if (220  width && width  310 && width  360) {
      root.style.setProperty("--pos-banner-padding", "15px");
      root.style.setProperty("--pos-banner-title-size", "24px");
      root.style.setProperty("--pos-banner-title-align", "center");
      root.style.setProperty("--pos-banner-bg-size", "70%");
      root.style.setProperty("--pos-banner-bg-pos-x", "left");
    }
  }
  window.addEventListener("resize", displayWindowSize);
  displayWindowSize();