/**
Send-it core @version 4
*/
@font-face {
    font-family: roboto;
    src: url('roboto-regular.ttf');
}

@font-face {
    font-family: roboto;
    src: url('roboto-bold.ttf');
    font-weight: bold;
}

@font-face {
    font-family: roboto;
    src: url('roboto-italic.ttf');
    font-style: italic;
}

*, ::after, ::before {
    box-sizing: border-box;
}

:root {
    --sendit-primary: #337ab7;
    --sendit-secondary: #b8cbda;
    --sendit-text-primary: #282828;
    --sendit-text-secondary: #ebebeb;
}

body {
    font-family: roboto, sans-serif;
    background: #bbc7ad;
    color: #1a1a1a;
}

html {
    scroll-behavior: smooth;
}

/* Scroll bars */
::-webkit-scrollbar {
    width: 5px;
}
::-webkit-scrollbar-track {
    background: transparent; 
}
::-webkit-scrollbar-thumb {
    background: var(--sendit-primary);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--sendit-secondary);
}

h1, h2, h3, h4, h5, h6 {  
    margin: 5px 0px;
    -webkit-user-select: none; /* Safari */        
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE10+/Edge */
    user-select: none; /* Standard */
}
p { 
    margin: 0px; 
    -webkit-user-select: none; /* Safari */        
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE10+/Edge */
    user-select: none; /* Standard */
}
img { width: 100%; margin: 0px; }
hr { 
    margin: 5px 0px;
    border: solid 1px var(--sendit-text-primary);
    border-top: none;
}
a { 
    color: var(--sendit-primary);
    text-decoration: none;
}
table {
    border-collapse: collapse;
    width: 100%;
    background: #fff;
    color: var(--sendit-text-primary);
}

ul, ol {
    margin-top: 0px;
    margin-bottom: 0px;
}
label { 
    display: block;
    padding: 5px 0px;
}
form {
    padding: 5px;
}
input, textarea, select {
    width: 100%;
    padding: 5px 10px;
    box-sizing: border-box;
    font-size: 1em;
    border: solid 2px var(--sendit-text-primary);
}
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #3a893b;
}
input[type="checkbox"], input[type="radio"] {
    width: auto;
}
input[type="color"] {
    padding: 0px 2px;
    height: 38px;
}
.form-group {
    display: block;
    margin-bottom: 10px;
}

video, audio, iframe {
    width: 100%;
    box-sizing: border-box;
}

/* ARTICLE */

#article {
    display: block;
    position: fixed;
    top: 0px;
    bottom: 10px;
    left: 0px;
    right: 0px;
    width: auto;
    height: auto;
    max-width: 400px;
    max-height: 700px;
    margin: auto;
    background: #eaeaea;
    perspective: 2000px;
    transform-style: preserve-3d;
    box-shadow: 0px 0px 25px rgba(0, 0, 0, 0.6);
    text-align: left;
}

#article section {
    display: block;
    position: absolute;
    top: 0px;
    bottom: 0px;
    left: 0px;
    right: 0px;
    max-width: 700px;
    overflow-y: auto;
    overflow-x: hidden;
    opacity: 0;
    transform-style: preserve-3d;
    scroll-behavior: smooth;
    background: #ffffff;
}

#article .section-next {
    opacity: 1 !important;
}

#article .section-prev {
    opacity: 1 !important;
    z-index: 2;
    transform-origin: left center;
    transform-style: preserve-3d;
}

#article .section-active {
    z-index: 1;
    opacity: 1 !important;
    transform: rotateY(0deg);
    transform-origin: left center;
    transform-style: preserve-3d;
}

/* ARTICLE PROGRESS BAR */

#article-progress-bar-container {
    background: var(--sendit-secondary);
    position: fixed;
    bottom: 0px;
    left: 0px;
    right: 0px;
    height: 10px;
    z-index: -1;
}

#article-progress-bar-container button {
    background: 0px; 
    border: 0px; 
    width: 20%; 
    height: 10px; 
    position: absolute;
}

#article-progress-bar {
    display: block;
    background: var(--sendit-primary);
    height: 10px;

}

#article-progress-bar-container .button-previous {
    left: 0px
}

#article-progress-bar-container .button-next {
    right: 0px;
}

/* TUTORIAL OVERLAY */

#tutorial-overlay {
    position: fixed; /* Sit on top of the page content */
    display: none; /* Hidden by default */
    width: 100%; /* Full width (cover the whole page) */
    height: 100%; /* Full height (cover the whole page) */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8); /* Black background with opacity */
    z-index: 500; /* Specify a stack order in case you're using a different order for other elements */
    cursor: pointer; /* Add a pointer on hover */
}

.tutorial-block {
    color: #000000;
    position: absolute;
    padding: 20px;
}

.tutorial-block.left {
    left: 0px;
    top: 20%;
    text-align: left;
}

.tutorial-block.right {
    right: 0px;
    top: 50%;
    text-align: right;
}

.tutorial-block img {
    width: 90px;
}

.tutorial-block h3 {
    font-weight: bold;
    font-size: 18px;
}

.tutorial-block span {
    display: block;
    text-shadow: 1px 1px #999999;
}

/* LOADING STARTUP */

#loading-startup {
    z-index: 1000;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0px;
    left: 0px;
    right: 0px;
    bottom: 0px;
    background-image: url('loading-startup.gif');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-color: #000000;
    display: none;
}

#loading-startup span {
    display: block;
    position: absolute;
    bottom: 30px;
    left: 0px;
    right: 0px;
    color: #ffffff;
    font-size: 20px;
    text-shadow: 2px 2px #292929;
    padding: 20px;
    text-align: center;
}

/* LOADING ANIMATION */

#loading-animation {
    display: none;
    z-index: 2000;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0px;
    left: 0px;
    right: 0px;
    bottom: 0px;
    text-align: center;
    text-shadow: 1px 2px 5px #8f8f8f;
    padding-top: 200px;
    font-size: 2em;
    background-color: rgba(255, 255, 255, 0.85);
}

#loading-animation img {
    width: auto;
    height: 25px;
}

/* MODAL */

.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

.show {
    display: block !important;
}

.hide {
    display: none !important;
}

@keyframes animateModal {
  from {top: -300px; opacity: 0}
  to {top: 0; opacity: 1}
}

.modal-content {
  position: relative;
  background-color: #fefefe;
  margin: 15% auto;
  padding: 0;
  border: 1px solid #343a40;
  width: 94%;
  box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
  animation-name: animateModal;
  animation-duration: 0.4s
}

@media only screen and (min-width: 768px) {
    .modal-content {
        max-width: 380px;
    }
}

.modal-header {
  padding: 2px 16px;
  background-color: #343a40;
  color: white;
}

.modal-header h2 { margin: 10px 0px; }

.modal-body { padding: 0px; }

.modal-footer {
  padding: 5px 10px;
  background-color: #343a40;
  color: white;
}

.close {
    color: #e5e5e5;
    float: right;
    font-size: 2.5em;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Cookie notice */

#cookie-notice {
    display: none;
    position: fixed;
    bottom: 10px;
    left: 0;
    right: 0;
    background: #ffffff;
    color: #323232;
}

#cookie-notice h2 {
    font-size: 1.2em;
    margin: 5px;
}

#cookie-notice p {
    padding: 5px;
    margin: 5px 0px
}

#cookie-notice .footer {
    text-align: right;
    padding: 10px;
}

/* Shield */

#shield-modal {
    position: fixed;
    z-index: 1000; /* Raise importance */
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    display: none;
}

#shield-modal form {
    background: #ffffff;
    border-radius: 5px;
    width: 80%;
    margin: 20% auto;
    padding: 10px;
}

#shield-modal-failure {
    background-color: #ffbaba;
    border-radius: 2px;
    padding: 5px;
    display: none;
}

@media only screen and (min-width: 768px) {
    #shield-modal form {
        max-width: 500px;
    }
}

#shield-modal .shield-title {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 10px;
}

.shield-title .close {
    
}

/* Nav Buttons container */
#article-navigation-buttons-container {
    display: none;
    z-index: 1000;
    position: fixed;
    bottom: 20px;
    left: 0px;
    right: 0px;
    padding: 0px 10px;
}

.article-nav-button {
    background: var(--sendit-primary);
    color: var(--sendit-text-secondary);
    border: none;
    padding: 5px 15px;
    font-size: 1.2em;
}

.article-nav-button.next {
    float: right;
}

.article-nav-button:hover {
    background: var(--sendit-secondary);
    color: var(--sendit-text-primary);
}

/* Swipe down */
#swipe-down-button {
    display: none;
    z-index: 500;
    position: fixed;
    bottom: 0px;
    left: 0;
    right: 0;
    text-align: center;
    background: transparent;
    background: linear-gradient(0deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
}

#swipe-down-button img {
    width: auto;
    height: 50px;
}

/* Desktop navigator */

#desktop-navigator-buttons {
    position: absolute;
    z-index: 2000;
    margin-top: 70%;
    width: 100%;
}

#desktop-navigator-buttons button {
    background: transparent;
    border: none;
    position: absolute;
    display: none;
}

#desktop-navigator-buttons button.button-previous {
    left: -80px;
}

#desktop-navigator-buttons button.button-next {
    right: -80px;
}

#desktop-navigator-buttons button img {
    width: 50px;
    height: auto;
}

#desktop-navigator-buttons button.show {
    display: inline-block;
}

#backpack {
    display: none;
}

.atomic-flex-row {
    display: flex;
    flex-direction: row;
}

.atomic-flex-column {
    flex-grow: 1;
}

.atomic-element {
    display: block;
    position: relative;
}

.atomic-element-anchor-container {
    position: relative;
    display: block;    
}

/* Radio List */
.atomic-element.elem-radio-list {
    user-select: none;
}

.atomic-element-radio-list-item {
    padding-left: 5px;
    padding-right: 5px;
}
.atomic-element-radio-list-item.template-autoflow {
    display: inline-block;
}
.atomic-element-radio-list-item.template-row {
    display: block;
}
.atomic-element-radio-list-item.template-column {
    display: inline-block;
    width: 50%;
}

/* Checklist */
.atomic-element.elem-checklist {
    user-select: none;
}

.atomic-element-checklist-item {
    padding-left: 5px;
    padding-right: 5px;
}
.atomic-element-checklist-item.template-autoflow {
    display: inline-block;
}
.atomic-element-checklist-item.template-row {
    display: block;
}
.atomic-element-checklist-item.template-column {
    display: inline-block;
    width: 50%;
}

/* Rating Element */

.atomic-element.elem-rating .elem-rating-options {
    display: flex;
    padding-top: 10px;
    padding-bottom: 10px;
}

.atomic-element.elem-rating .elem-rating-option {
    flex-grow: 1;
    text-align: center;
}

/* Table Element */
.atomic-element.elem-table {
    display: table;
    user-select: none;
}

/* FIXES */
.elem-image {
    display: block;
}

.elem-input-box label, .elem-text-box label, .elem-dropdown-box label {
    user-select: none;
}