/**  _____           _         ___               ______       _ _     _           
  * /  ___|         | |       / _ \              | ___ \     (_) |   | |          
  * \ `--.  ___ __ _| | ___  / /_\ \_ __  _ __   | |_/ /_   _ _| | __| | ___ _ __ 
  *  `--. \/ __/ _` | |/ _ \ |  _  | '_ \| '_ \  | ___ \ | | | | |/ _` |/ _ \ '__|
  * /\__/ / (_| (_| | |  __/ | | | | |_) | |_) | | |_/ / |_| | | | (_| |  __/ |   
  * \____/ \___\__,_|_|\___| \_| |_/ .__/| .__/  \____/ \__,_|_|_|\__,_|\___|_|   
  *                                | |   | |                                      
  *                                |_|   |_|                                      
  * 
  * Copyright 2019 Advanced Software Production Line, S.L.
  * 
  * Permission is hereby granted, free of charge, to any person
  * obtaining a copy of this software and associated documentation
  * files (the "Software"), to deal in the Software without
  * restriction, including without limitation the rights to use, copy,
  * modify, merge, publish, distribute, sublicense, and/or sell copies
  * of the Software, and to permit persons to whom the Software is
  * furnished to do so, subject to the following conditions:
  * 
  * The above copyright notice and this permission notice shall be
  * included in all copies or substantial portions of the Software.
  * 
  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
  * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
  * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
  * DEALINGS IN THE SOFTWARE.
  */

.sabhidden {
    display: none !important;
}

/* to avoid left: 0 on sticky top menu */
.sticky.fixed.top {
    left: auto !important;   
}

.sabstickyon {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    margin: 0px !important;
    padding: 0px !important;
    z-index: 3000;
}

/* to remove items in responsive mode */
@media only screen and (max-width: 700px) {
    .remove-responsive{
	display: none !important;
    }
    .ui.table:not(.unstackable)>thead.remove-responsive {
	display: none !important;
    }
    .show-only-in-responsive{
	display: block !important;
    }    
}

/* applies when we are NOT in responsive */
@media only screen and (min-width: 700px) {
    .show-only-in-responsive{
	display: none !important;
    }
}


.sab-hover-no-opacity {
    opacity: 0.33;
}

.sab-hover-no-opacity:hover {
    opacity: 1;
}

.sab-on-hover-up {
  position: relative;
  top: 0;
  transition: top ease 0.5s;
}
.sab-on-hover-up:hover {
  top: -10px;
}

.sab-fade-in-section {
  opacity: 0;
  transform: translateY(30vh);
  visibility: hidden;
  transition: opacity 0.6s ease-out, transform 1.2s ease-out;
  will-change: opacity, visibility;
}
.sab-fade-in-section.is-visible {
  opacity: 1;
  transform: none;
  visibility: visible;
}

.sab-fade-in-section-left {
  opacity: 0;
  transform: translateX(30vh);
  visibility: hidden;
  transition: opacity 0.6s ease-out, transform 1.2s ease-out;
  will-change: opacity, visibility;
}
.sab-fade-in-section-left.is-visible {
  opacity: 1;
  transform: none;
  visibility: visible;
}

.sab-fade-in-section-right {
  opacity: 0;
  transform: translateX(-30vh);
  visibility: hidden;
  transition: opacity 0.6s ease-out, transform 1.2s ease-out;
  will-change: opacity, visibility;
}
.sab-fade-in-section-right.is-visible {
  opacity: 1;
  transform: none;
  visibility: visible;
}

.sab-iframe        {position:relative; width: 100%; height: 400px;}
.sab-iframe iframe {position:absolute;top:0;left:0;width:100%; height:100%;}

.sab_din_content img:not(.sab_added_by_editor) {
    width: 100%; /* or any custom size */
    height: 100%;
    /* https://stackoverflow.com/questions/4394309/how-do-i-fit-an-image-img-inside-a-div-and-keep-the-aspect-ratio */
    object-fit: contain;
}

.sab_added_by_editor {
    /* empty class */
}

.button:focus {
    box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.1);
    transform: scale(1.005);
}

.sab_clear_both {
    clear: both;
}

.sab-break-word {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

.bgselected {
    background-color: #c2e8ff;
}

.sab-scroll-to-link h1,h2,h3,h4,h5 {
    margin-bottom: 12px !important;
    margin-top: 12px !important;    
}
