/*@import url(http://fonts.googleapis.com/css?family=Bubblegum+Sans|Permanent+Marker|Ubuntu|Lobster|Indie+Flower|Changa+One|Rock+Salt);*/

@font-face {
    font-family: Bubblegum Sans;
    src: url(../fonts/Bubblegum_Sans/BubblegumSans-Regular.ttf);
}
@font-face {
    font-family: Changa One;
    src: url(../fonts/Changa_One/ChangaOne-Regular.ttf);
}
@font-face {
    font-family: Indie Flower;
    src: url(../fonts/Indie_Flower/IndieFlower.ttf);
}
@font-face {
    font-family: Lobster;
    src: url(../fonts/Lobster/Lobster-Regular.ttf);
}
@font-face {
    font-family: Permanent Marker;
    src: url(../fonts/Permanent_Marker/PermanentMarker.ttf);
}
@font-face {
    font-family: Rock Salt;
    src: url(../fonts/Rock_Salt/RockSalt.ttf);
}
@font-face {
    font-family: Ubuntu;
    src: url(../fonts/Ubuntu/Ubuntu-Regular.ttf);
}

body
{
    margin:0;
    padding:0px;
    background-color: rgb(234, 213, 172);
    background-attachment: fixed;
    font-size: 18pt;
    overflow: auto;
    font-family: sans-serif;
    width: 100%;
}

div.maincontainer {
    display: flex;
    flex-direction : column;
}

div.topline {
/*    position: relative;
    width: 100%;
    min-height: 100%;
    max-height: 100%;*/
}

div.flexcontainer {
    /*display: flex; Denne må legges til via jQuery for at det skal tegnes opp riktig i Chrome 13*/
    flex-flow : wrap;
    justify-content: center;
    align-items: stretch;
    flex-grow: 1;
    padding: 5px;
}

div.flexcell {
    box-shadow: 0px 20px 40px -20px black;
    border: 10px solid whitesmoke;
    border-radius: 20px;
    margin: 10px;
    padding: 10px;
    flex-basis: 240px;
    flex-flow: column wrap;
    justify-content: space-between;
    max-width: 40%;
    min-width: 19%;
    text-align: center;
    display: flex;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    cursor: pointer;
    position: relative;

    flex-grow: 1;
}

.flexcell .imgTrash {
    position: absolute;
    right: -25px;
    display: inline-block;
    top: -30px;
    width: 50px;
    z-index: 10;
}

div.heading {
    font-size: .9em;
    text-transform: uppercase;
    background: rgba(255,255,255 ,.6);
    border-radius: 10px;
    padding: 5px;
    margin: 15px;
    box-shadow: 0px 0px 10px 10px rgba(255,255,255,.6);
}

div.ingress {
    font-size: .7em;
    bottom: 10px;
    background: rgba(255,255,255 ,.6);
    border-radius: 10px;
    padding: 5px;
    margin: 15px;
    box-shadow: 0px 0px 10px 10px rgba(255,255,255,.6);
}

div.editbar {
    font-size: .35cm;
    background: rgba(255,100,100,.8);
    text-align: center;
    padding: 5px;
    position: absolute;
    width: 100%;
    z-index: 12;
}

.cellOverlay {
    display: inline-flex;
}

.cellOverlay img, .cellOverlay span {
    margin: auto;
    width: 70px;
    padding: 10px;
    font-size: 4em;
}

video.fullscreen {
    position: fixed;
    left:0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    z-index: 100;
    background: black;
    background-size: cover;
}

div.fullscreen {
    position: absolute;
    top: 0px;
    left: 0px;
    background: whitesmoke;
    margin: 50px 20%;
    padding: 50px;
    border-radius: 10px;
    box-shadow: 0px 0px 10px 10px rgba(255,255,255,.5);
    overflow: hidden;
    min-width: 800px;
}

div.fullscreen .heading {
    text-align: center;
    font-size: 1.5em;
    font-family: 'Myriad Pro', 'Myriad', helvetica, arial, sans-serif;
    text-shadow: 2px 3px 3px #292929;
}

div.divpdf {
    right: 0px;
    bottom: 0px;
    margin: 20px auto !important;
    width: 30cm !important;
}

div.divhtml {
    right: 0px;
    bottom: 0px;
    margin: 20px auto !important;
    width: 90% !important;
}

div#editForm {
    overflow-x: auto;
    margin: 0px 30px;
}

div#editForm ul {
    list-style-type:none;
    list-style-position:outside;
    margin:0px;
    padding:0px;
    white-space: nowrap;
}

div#editForm li{
    padding:12px; 
    border-bottom:1px solid #eee;
    position:relative;
}

div#editForm li.liOverskrift{
    padding-top:0px; 
}

div#editForm label {
    width:110px;
    margin-top: 3px;
    display:inline-block;
    padding:3px;
}

div#editForm li>label:first-child {
    font-size: 1.1em;
    vertical-align: top;
}

/* Separat klasse for labels på toppen (språkene) */
label.lbSprak {
    width: 418px !important;
    font-size: 1.5em;
}

div#editForm input[type='text'] {
    height:20px; 
    width:400px; 
    padding:5px 8px;
    margin-right: 8px;
}

div#editForm textarea {
    height:200px; 
    width:400px; 
    padding:5px 8px;
    margin-right: 8px;
}

div#editForm .liUpload {
    display: flex;
    align-items : center;
}

div#editForm .liInputlink input {
    cursor: pointer;
}

.uiBtn{
    min-width : 100px;
}

span.backButton {
    background: rgba(0,0,0,.5);
    color: white;
    border-radius: 5px;
    position: fixed;
    z-index : 101;
    top: 10px;
    right: 10px;
    padding:10px;
    font-size: .8em;
    cursor: pointer;
}

span.copyright {
    background: rgba(0,0,0,.5);
    color: white;
    border-radius: 5px;
    position: fixed;
    z-index : 101;
    top: 10px;
    left: 10px;
    padding:10px;
    font-size: .8em;
    display: none;
}

div.logos {
    position: relative;
    float: left;
    padding: 15px 0px 0px 15px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

div.logos img {
    height: 64px;
    padding: 0px 10px;
}

div.logos p{
    padding: 10px;
    font-size: 1.1em;
    font-weight: bold;
    margin: 0px;
}

div.sprakvelger {
    position: relative;
    float: right;
    margin-right: 20px;
}

div.sprakvelger img {
    cursor: pointer;
    height: 80px;
}

#undertekst_edit {
    height: 33px;
    width: 200px;
    font-size: .92em;
}

div.editsubs {
    display: inline-block;
    vertical-align: top;
    margin: 10px;
    padding: 10px;
    border: 3px solid #555;
    border-radius: 5px;
    height: 400px;
    width: auto;
    flex-shrink: 0;
}

div.substable {
    display: inline-block;
    vertical-align: top;
    margin: 10px;
    padding: 10px;
    border: 3px solid #555;
    border-radius: 5px;
    height: 400px;
    width: auto;
    flex-shrink: 1;
}

#captionText {
    width: 100%;
}

#captionTools, #captionTrigger {
    min-height: 50px;
}

#video_container {
    height: 350px;
}

#video_container video {
    height: 350px;
    width: 460px;
    object-fit: contain;
}

#captionTools button {
    width: 150px;
}

div.substable {
    overflow: scroll;
    min-width: 820px;
}

div.substable .index {
    width: 40px;
    text-align: right;
    padding: 1px 3px;
}

div.substable .start, div.substable .stopp {
    width: 90px;
    text-align: right;
    padding: 1px 3px;
}

div.substable .subsInput {
    width: 98%;
}

div#divArkiverte td {
    padding: 1px 4px;
}

.teksteditor {
    background: white;
    height: 85%;
    font-size: 18pt;
}

p.pCredit {
    font-size: .7em;
    position: relative;
    bottom: 32px;
    margin-top: 0;
    z-index: 2;
    padding: 3px;
    background-color: #ffffff69;
    line-height: 100%;
    text-align: center;
}

@-webkit-keyframes shake
{
    0%   {-webkit-transform: rotate(0deg);}
    30%  {-webkit-transform: rotate(-5deg);}
    35%  {-webkit-transform: rotate(5deg);}
    40%  {-webkit-transform: rotate(-7deg);}
    45%  {-webkit-transform: rotate(8deg);}
    50%  {-webkit-transform: rotate(-8deg);}
    55%  {-webkit-transform: rotate(8deg);}
    60%  {-webkit-transform: rotate(-7deg);}
    65%  {-webkit-transform: rotate(5deg);}
    70%  {-webkit-transform: rotate(-5deg);}
    100% {-webkit-transform: rotate(0deg);}
}

div#divSprak {
    font-size: 1.1em;
    text-align: center;
}

div#divSprak button {
    width: 100px;
    height: 80%;
    border-radius: 5px;
    color: white;
    background: rgb(41, 117, 41);
}

div#divSprak button.inaktiv{
    color:rgb(54,54,54);
    background:rgb(202,64,64);
}

div#divSprak table {
    width: 100%;
    padding-top: 20px;
}

div#divSprak thead{
    font-weight: bold;  
}

div#divSprak thead td{
    border-bottom: 1px solid black;
    padding-right: 10px;
}

div#divSprak img{
    height: 50px;
}

input.admOverskrift, input.admEier{
    width:250px;
}

#admEdit input{
    width: 150px;
}

#admEdit button{
    width: 153px;
}

textarea.admCopyright{
    width: 500px;
    height: 50px;
}

.froala-box {
    height: 100%;
}

.froala-popup {
    z-index: 201;
}

.oldTV {
    background: rgba(29,33,48,1);
}

input.extra-styling{
    height: 30px; 
    line-height: 30px; 
    overflow: hidden; 
    position: relative; 
    text-align: center; 
    width: 100px;
}

div.div_button_lookalike{
    height: 30px; 
    line-height: 30px; 
    overflow: hidden; 
    position: relative; 
    text-align: center; 
    width: 100px;
    cursor: pointer;
}

#divDialog button{
    width: 170px;
    margin: 4px;
}

@media only screen and (max-width: 920px) {
    div.fullscreen {
        margin: 0;
        padding: 1em;
        box-sizing: border-box;
        width: 100%;
    }
    
    div.flexcell {
        max-width: 80%;
    }
}

@media only screen and (max-width: 1200px) {
    div.fullscreen {
        min-width: auto;
    }
}