/** FIX BOOTSTRAP ERRORS IN DJANGO TEMPLATE */
* {
  box-sizing: border-box;
}
html {
  -webkit-font-smoothing: antialiased;
}

#content {
    padding: 20px 30px;
}

.deletelink,
.cancel-link {
  height: auto!important;
}
/* fixes incompatibility between Django Admin and Bootstrap collapse */
.collapse {
    display: block;
}

/** OVERWRITE DJANGO COLORS */
.module h2, .module caption, .inline-group h2,
div.breadcrumbs,
.button, input[type=submit], input[type=button], .submit-row input, a.button {
    background: #F6F6F6;
    color:  #222;
}
a.section:link, a.section:visited,
div.breadcrumbs a {
  /* color: #447e9b; */
  color: #222;
}

div.breadcrumbs a:hover,
#user-tools a:hover {
    color: #447e9b;
    border-bottom: 1px solid #447e9b;
}
fieldset .collapse-toggle {
    color: #447e9b!important;
}

/* DJANGO ADMIN OVERWRITES */
a:link, a:visited {
  font-weight: 300;
}
th {
    font-weight: 300;
}
.object-tools a {
    border-radius: 3px;
}

.module caption,
.inline-group h2 {
  text-transform: none;
  font-weight: 400;
}

/* BOOTSTRAP RESET */
body {
  margin: 0;
  vertical-align: baseline;
  font-family: 'Lato', sans-serif!important;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  color: #222;
}
ul,
ul li {
  padding: 0;
  margin: 0;
}
li {
  list-style: none!important;
}


#fanpictor-user-tools {
    margin-top: 5px;
    color: #222;
    font-size: 11px;
    letter-spacing: 0.5px;
}

#fanpictor-user-tools a {
    color: #447e9b;
}

/* DJANGO RESPONSIVENESS: SMALL SIZE */
@media 
only screen and (max-width: 1023px),
(min-device-width: 1024px) and (max-device-width: 1024px)  {

  #content-related #recent-actions-module {
    display: none;
  }
  .object-tools {

    float: none!important;
    clear: both!important;
    margin-top: 0!important;
    margin-left: 0!important;
    margin-right: 5px!important;
    margin-bottom: 40px!important;

  }
  .object-tools + form{

    float: none;
    clear: both;
    margin-top: 50px;
  }
}
/* DJANGO RESPONSIVENESS: SMALLEST SIZE */

@media (max-width:800px){
   
    #container,
    .dashboard #content {
        width: 100%;
        min-width: 100%;
    }
    
    #content-related {
        float: none;
        clear: both;
        width: 100%;
    }
    .change-list .filtered .results,
    .change-list .filtered .paginator,
    .filtered #toolbar,
    .filtered div.xfull {
        margin-right: 0;
    }

    .sidebar-collapsed #page-content-wrapper,
    .sidebar-collapsed .header {
        margin-left: 0!important;
    }
    .sidebar-collapsed .sidebar-wrapper {
        display: none;
    }

    #changelist-filter {
        display: none;
    }

}




/* LOGIN */
/* LOGIN FORM */

.login #page-content-wrapper {
    margin-left: 0!important;
}

.login #container,
.login .content {
    /*border: 1px solid #eaeaea;
    padding: 30px;
    border-radius: 4px;
    */
    overflow: hidden;
    width: 28em;
    min-width: 300px;
    margin: 100px auto;
}

.login #content-main {
    width: 100%;
}
.login #content-main form {

    max-width: 500px;
    margin: 40px auto 40px auto;
}

.login .form-row {
    padding: 4px 0;
    float: left;
    width: 100%;
    border-bottom: none;
}

.login .form-row label {
    padding-right: 0.5em;
    line-height: 2em;
    font-size: 1em;
    clear: both;
    color: #333;
}

.login .form-row #id_username, .login .form-row #id_password {
    clear: both;
    padding: 8px;
    width: 100%;
    -webkit-box-sizing: border-box;
       -moz-box-sizing: border-box;
            box-sizing: border-box;
}

.login span.help {
    font-size: 10px;
    display: block;
}

.login .submit-row {
    clear: both;
    padding: 1em 0 0 9.4em;
    margin: 0;
    border: none;
    background: none;
    text-align: left;
}

.login .password-reset-link {
    text-align: center;
}


/* FORM INPUTS */

#content form#quiz_form input#id_current_action_text_en,
#content form#quiz_form input#id_current_action_text_de,
#content form#quiz_form input#id_countdown_text_en,
#content form#quiz_form input#id_countdown_text_de {
  min-width: 100%;
}
