﻿/*BACKGROUND*/
body {
    background-image: url('/images/background_gray.png');
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

/*UPLOAD FILE BUTTON*/
.custom-file-upload {
    border: 1px solid black;
    display: inline-block;
    padding: 6px 14px;
    border-radius: 4px;
    font-weight: bold;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-item > i {
    max-width: 10px !important;
    margin-right: 15px !important;
    text-align: center !important;
}

.versionInfo {
    font-size: .8em;
}

/* Language selector */
.ls {
    width: 100%;
    height: 40px;
    border: 1px solid black;
    -ms-border-radius: 5px;
    border-radius: 5px;
    padding-left: 0;
}

.ls-image {
    height: 35px;
    padding: 5px;
    cursor: pointer;
}

.ls-image-selected {
    border: 2px solid green;
}


/**** For showing which item has just been updated ****/
@-webkit-keyframes lastedited {
    from { background-color: green; }
    to { background-color: inherit; }
}

@-moz-keyframes lastedited {
    from { background-color: green; }
    to { background-color: inherit; }
}

@-o-keyframes lastedited {
    from { background-color: green; }
    to { background-color: inherit; }
}

@keyframes lastedited {
    from { background-color: green; }
    to { background-color: inherit; }
}

.lastedited {
    -webkit-animation: lastedited 3s; /* Safari 4+ */
    -moz-animation:    lastedited 3s; /* Fx 5+ */
    -o-animation:      lastedited 3s; /* Opera 12+ */
    animation:         lastedited 3s; /* IE 10+ */
}

/**** Scrollable table header on articles ****/
.articles-table-body:before {
    content: "@";
    display: block;
    line-height: 70px !important;
    text-indent: -99999px;
}


/**** Checkmark CSS ****/
/* Customize the label (the container) */
.check-container {
    display: block;
    position: relative;
    padding-left: 35px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 22px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Hide the browser's default checkbox */
.check-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Create a custom checkbox */
.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 25px;
    width: 25px;
    background-color: #eee;
    margin-left: 1em;
}

/* On mouse-over, add a grey background color */
.check-container:hover input ~ .checkmark {
    background-color: #ccc;
}

/* When the checkbox is checked, add a blue background */
.check-container input:checked ~ .checkmark {
    background-color: #2196F3;
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

/* Show the checkmark when checked */
.check-container input:checked ~ .checkmark:after {
    display: block;
}

/* Style the checkmark/indicator */
.check-container .checkmark:after {
    left: 9px;
    top: 5px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}


/**** Toggle switches ****/
/* The switch - the box around the slider */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

/* Hide default HTML checkbox */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked + .slider {
    background-color: #2196F3;
}

input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.center-item {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

/* Choose language flag styling (global) */
.flag-border {
    border: solid 5px rgba(255, 255, 255, 0.00);
}

.flag-border:hover {
    border: solid 7px green;
    cursor: pointer;
}

.flag-border img {  
    width: 100%;
}
    
.view-password {
    cursor: pointer;
    font-style: italic;
    font-weight: bold;
    text-underline: black;
}

/* NoScript styling */
.noscript {
    border: 3px solid black;
    background-color: #ffffff;
    font-weight: bold;
    max-width: 50%;
    width: 50%;
    text-align: center;
    margin: auto;
}

.noscript p {
    color: red !important;
}

/**** Spinner styling ****/
.spinner {
    width: 75px;
    height: 75px;
    display: grid;
}
.spinner::before,
.spinner::after {
    content:"";
    grid-area: 1/1;
    --c: radial-gradient(farthest-side,#25b09b 92%,#0000);
    background:
            var(--c) 50%  0,
            var(--c) 50%  100%,
            var(--c) 100% 50%,
            var(--c) 0    50%;
    background-size: 12px 12px;
    background-repeat: no-repeat;
    animation: s2 1s infinite;
}
.spinner::before {
    margin:4px;
    filter:hue-rotate(45deg);
    background-size: 8px 8px;
    animation-timing-function: linear
}

@keyframes s2 {
    100%{transform: rotate(.5turn)}
}


/**** Padding ****/
.pus {
    margin-top: 1em;
}

.pum {
    margin-top: 2em;
}

.noSelect {
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -o-user-select: none;
    user-select: none;
}

/**** Only for very small devices (phones) ****/
@media only screen and (max-width: 768px) {
    .small-hidden {
        display: none;
    }
    
    /* Show alternative text boxes (if any) */
    .alt-labels {
        display: block;
    }
    
    .alt-labels-flex {
        display: flex;
    }
}

@media only screen and (min-width: 576px) {
    /* Show alternative text boxes (if any) */
    .alt-labels {
        display: none;
    }

    .alt-labels-flex {
        display: none;
    }
}

/**** Images ****/
.thumb {
    display: inline-block;
    width: 70px;
    height: 70px;
    margin: 5px;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}


/**** Colors for using in conditional classes ****/
.color-green {
    color: #008000;
}

.color-red {
    color: red;
}

.font-bold {
    font-weight: bold;
}

.mt-label {
    margin-top: 2em;
}