/*
 * Les règles globales de l'application : html, body, les titres, les liens, les champs, et les
 * points de rupture.
 *
 * C'est la fin de app/assets/stylesheets/application.scss jusqu'à l'étape 6c de docs/hotwire.md,
 * où elles venaient après le glob qui importait toutes les autres feuilles — donc après elles
 * toutes. Le préfixe zz- leur garde cette place dans l'ordre alphabétique de
 * `stylesheet_link_tag :app` : ces règles arbitrent, elles doivent rester les dernières.
 */

/* `.field` et `.actions` rejoignent la liste : elles portaient `@extend .form-group`, qui les faisait */
/* entrer ici aussi. C'est la seule des règles `.form-group` de l'application qu'elles pouvaient */
/* atteindre — les autres sont sous `#settings-container`, `#subscriber__container`, */
/* `.page--settings` ou `.new_whitelist_address`, où aucun gabarit ne pose ces deux classes (elles */
/* ne vivent que dans le panneau de lettre et dans admin/organizations). */
.form-group, .field, .actions {
  select:focus {
    /*border-color: #F5B44E; */
    box-shadow: none;
  }

  input:focus {
    /*border-color: #F5B44E; */
    box-shadow: none;
  }
}

html {
  height: 100%;
}

body {
  height: 100%;
}

.body--default {
  background-color: var(--color-white);
}

.body--dark {
  background-color: var(--color-dark);
}

.body--purple {
  background-color: var(--color-dark-blue);
}

h1, h2, h3, h4 {
  margin-top: 0px;
  margin-bottom: 0px;
}

h1,h2{
  font-family: var(--font-family-header);
}

h1{
  font-size: 48px;
  line-height: 69px;
}
h2{
  font-size: 24px;
  line-height: 36px;
}
p, a{
  font-size: 16px;
  line-height: 30px;
  font-family: var(--font-family-text);
}

p{
  margin-bottom: 0;
  a{
    font-size: 18px;
    line-height: 30px;
  }
}

span {
  font-weight: bold;
  text-shadow: 0px 0px 0.4px;
}

strong {
  font-weight: 950;
  text-shadow: 0px 0px 0.4px;
}

label, button{
  font-family: var(--font-family-text);
}


.container {
  margin-right: auto;
  margin-left: auto;
  max-width: 970px;
  .img-responsive {
    max-width: 70%;
  }
}

#page__container{
  display: grid;
  grid-template-columns: 239px 1fr;
  grid-gap: 60px;
  padding: 60px 40px 40px 40px;
}
.vertical__menu{
  align-self: start;
}

.page__content {
  margin-top: 40px;
}

#content {
  min-height: 100%;
  padding-bottom: 120px;
}

.explanation {
  font-weight: normal;
}

a {
  color: var(--link-color);
  font-weight: normal;
  font-size: 13px;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  color: var(--link-color);
}

.answer {
  input {
    height: 40px;
    border: 1px solid var(--color-teal);
    border-radius: 0px;
  }

  input:focus {
    border-color: var(--color-amber);
  }

  input[type='submit'] {
    background-color: var(--color-teal);
    color: var(--color-white);
    text-transform: uppercase;
    padding: 2px 5px 2px 5px;
    font-size: 24px;
    line-height:35px;
    margin-top: 15px;
  }
}



input[type='text'], input[type='email'], input[type='password'] {
  font-size: 16px;
}

select {
  font-size: 16px;
}

/* The container */
.container-checkbox {
  position: absolute;
  margin-top: 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 */
.container-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

/* Create a custom checkbox */
.checkmark {
  position: absolute;
  top: 0;
  left: -7px;
  height: 25px;
  width: 25px;
  background-color: #eeeeee;
}

/* On mouse-over, add a grey background color */
.container-checkbox:hover input ~ .checkmark {
  background-color: #cccccc;
}

/* When the checkbox is checked, add a blue background */
.container-checkbox input:checked ~ .checkmark {
  background-color: var(--color-turquoise);
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

/* Show the checkmark when checked */
.container-checkbox input:checked ~ .checkmark:after {
  display: block;
}

/* Style the checkmark/indicator */
.container-checkbox .checkmark:after {
  left: 9px;
  top: 5px;
  width: 5px;
  height: 10px;
  border: solid var(--color-white);
  border-width: 0 2px 2px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}


/* disable auto-zoom on iphone input field focus */
@media screen and (-webkit-min-device-pixel-ratio:0) {
  select:focus,
  textarea:focus,
  input:focus {
  }
}


#error_explanation {
  ul {
    margin: 0 0 0 0;
    -webkit-padding-start: 0px;
    list-style-type: none;
  }
  h2 {
    display: none;
  }
}

.primary {
  background-color: var(--background-color);
}

.nav {
  li {
    text-align: left; /* ce que portait `@extend .text-left`, sa seule déclaration */
    list-style: none;
  }
}

a.helpnav {
  text-align: center; /* ce que portait `@extend .text-center`, sa seule déclaration */
  font-family: var(--font-family-text);
  color: var(--color-white);
  font-size: 12px;
  display: block;
  text-decoration: underline;
}

@media (max-width: 767px) {

  .page__content {
    margin-top: 0;
  }

  .container {
    margin-right: auto;
    margin-left: auto;
    max-width: 970px;
      .img-responsive {
      max-width: 30%;
    }
  }
  #avatar-form {
    margin-bottom: 25px;
    margin-top: 15px;
    max-width: 150px;
  }

  a.ok {
    margin-top: 15px;
  }

  .explanation {
    font-size: 20px;
    line-height: 1.4;
    padding: 3%;
  }

  .col-xs-1, .col-sm-1, .col-md-1, .col-lg-1, .col-xs-2, .col-sm-2, .col-md-2, .col-lg-2, .col-xs-3, .col-sm-3, .col-md-3, .col-lg-3, .col-xs-4, .col-sm-4, .col-md-4, .col-lg-4, .col-xs-5, .col-sm-5, .col-md-5, .col-lg-5, .col-xs-6, .col-sm-6, .col-md-6, .col-lg-6, .col-xs-7, .col-sm-7, .col-md-7, .col-lg-7, .col-xs-8, .col-sm-8, .col-md-8, .col-lg-8, .col-xs-9, .col-sm-9, .col-md-9, .col-lg-9, .col-xs-10, .col-sm-10, .col-md-10, .col-lg-10, .col-xs-11, .col-sm-11, .col-md-11, .col-lg-11, .col-xs-12, .col-sm-12, .col-md-12, .col-lg-12 {
    position: relative; min-height: 1px; padding-left: 15px; padding-right: 15px;
  }
}

@media (max-width: 600px) {

  h1{
    font-size: 24px;
    line-height: 36px;
  }
  h2{
    font-size: 17px;
    line-height: 25px;
  }
  p, a{
    font-size: 16px;
    line-height: 28px;
    width: fit-content;
  }

  p{
    a{
      font-size: 16px;
      line-height: 28px;
    }
  }
  .my_school_bots_home .bot_details{
    margin-right: auto;
    margin-left: auto;
    }
  .my_school_bots_home{
    max-width: 100%;
  }
  #page__container{
    grid-template-columns: revert;
    padding: 15px;
    display: revert;
  }
}


@media (min-width: 768px) {

  #avatar-form {
    margin-bottom: 25px;
    margin-top: 15px;
    max-width: 160px;
  }

  a.ok {
    margin-top: 15px;
  }

  .explanation {
    font-size: 18px;
    line-height: 1.4;
    padding: 3%;
  }

  .col-xs-1, .col-sm-1, .col-md-1, .col-lg-1, .col-xs-2, .col-sm-2, .col-md-2, .col-lg-2, .col-xs-3, .col-sm-3, .col-md-3, .col-lg-3, .col-xs-4, .col-sm-4, .col-md-4, .col-lg-4, .col-xs-5, .col-sm-5, .col-md-5, .col-lg-5, .col-xs-6, .col-sm-6, .col-md-6, .col-lg-6, .col-xs-7, .col-sm-7, .col-md-7, .col-lg-7, .col-xs-8, .col-sm-8, .col-md-8, .col-lg-8, .col-xs-9, .col-sm-9, .col-md-9, .col-lg-9, .col-xs-10, .col-sm-10, .col-md-10, .col-lg-10, .col-xs-11, .col-sm-11, .col-md-11, .col-lg-11, .col-xs-12, .col-sm-12, .col-md-12, .col-lg-12 {
    position: relative; min-height: 1px; padding-left: 15px; padding-right: 15px;
  }
}

@media (min-width: 992px) {

  .page__content {
    margin-top: 0;
  }

  #avatar-form {
    margin-bottom: -35px;
    margin-top: -10px;
    max-width: 175px;
  }

  .answer {
    margin-top: 30px;
  }

  a.ok {
    margin-top: -8px;
  }

  .explanation {
    line-height : 1.6;
    font-size:25px;
    padding: 0;
  }

  .col-xs-1, .col-sm-1, .col-md-1, .col-lg-1, .col-xs-2, .col-sm-2, .col-md-2, .col-lg-2, .col-xs-3, .col-sm-3, .col-md-3, .col-lg-3, .col-xs-4, .col-sm-4, .col-md-4, .col-lg-4, .col-xs-5, .col-sm-5, .col-md-5, .col-lg-5, .col-xs-6, .col-sm-6, .col-md-6, .col-lg-6, .col-xs-7, .col-sm-7, .col-md-7, .col-lg-7, .col-xs-8, .col-sm-8, .col-md-8, .col-lg-8, .col-xs-9, .col-sm-9, .col-md-9, .col-lg-9, .col-xs-10, .col-sm-10, .col-md-10, .col-lg-10, .col-xs-11, .col-sm-11, .col-md-11, .col-lg-11, .col-xs-12, .col-sm-12, .col-md-12, .col-lg-12 {
    position: relative; min-height: 1px; padding-left: 15px; padding-right: 15px;
  }
  .float-initial{
    float: initial;
  }
  .margin-center{
    margin-left: auto;
    margin-right: auto;
  }
}


@media only screen
and (min-device-width : 768px)
and (max-device-width : 1024px)
and (orientation : landscape) {
  #nav-main{
    margin-top: 50px;
    .nav > li > a{
      padding: 0;
    }
    a.changeoffer_header_button{
      text-align: center;
      margin-top: 10px;
      margin-bottom: 10px;
    }
  }
  #page__container{
    grid-template-columns: revert;
    padding: 20px 40px 40px 40px;
    display: revert;
  }
  .page__content {
    margin-top: 0;
  }
}

@media only screen
and (min-device-width : 768px)
and (max-device-width : 1024px)
and (orientation : portrait) {

  .training #page__container{
    grid-template-columns: revert;
    padding: 20px 0px 40px 0px;
  }
  #page__container{
    grid-template-columns: revert;
    padding: 20px 15px 40px 15px;
    display: revert;
  }

  .page__content {
    margin-top: 0;
  }
  .botheader__nav a{
    font-size: 15px;
  }
  .page--bots{
    margin: 10px 0 auto 20px;
  }
  #nav-main{
    margin-top: 50px;
    .nav > li > a{
      padding: 10px 0;
    }
  }
}

@media screen and (min-width: 1600px) {
  #page__container{
    grid-template-columns: 280px 1fr;
    max-width: 1700px;
  }
}

@media only screen
  and (min-device-width : 1024px)
  and (max-device-width : 1366px)
  and (orientation: portrait)
  and (-webkit-min-device-pixel-ratio: 1.5) {

  .navbar-default .navbar-nav {
    margin: 0;
  }
  #page__container{
    grid-template-columns: revert;
    display: revert;
  }
}

@media only screen
  and (min-device-width : 1024px)
  and (max-device-width : 1366px)
  and (orientation: landscape)
  and (-webkit-min-device-pixel-ratio: 1.5) {

  #page__container{
    display: grid;
    grid-template-columns: 239px 1fr;
    grid-gap: 60px;
    padding: 60px 40px 40px 40px;
  }
}
