// vim: tabstop=2 shiftwidth=2 expandtab

@import url('fonts.css');
@import 'params';

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

html {
  background-color: $bg_color;
}

body {
  font-family:Open Sans,Arial;
  color:#555;
  font-size:16px;
  line-height:1.4;
  text-align:justify;
  margin: 0;
  padding: 0;

  @media (max-width: $resp_tiny) {
    font-size:14px;
    line-height:1.3;
  }
}

header {
  background-color: $head_bg_color;
  display: flex;
  flex-flow: row wrap;
  justify-content: space-between;
  align-items: center;
  column-gap: 30px;
  margin: 0;
  margin-bottom: 20px;
  padding: 30px 60px;
  color: $bg_color;

  @media (max-width: $resp_vsmall) {
    padding: 20px;
  }

  .title, .whoami {
    font-size: 1.4em;
    font-weight: bold;
  }

  a, a:visited {
    color: $bg_color;
  }
}

#messages {
  display: flex;
  justify-content: space-between;

  .message {
    max-width: $main_width;
    flex-basis: $main_width;

    border: 2px solid black;
    border-radius: 8px;
    padding: 5px 15px;
    margin: 5px auto;

    &.success {
      background-color: #e1ffef;
      border-color: #159953;
    }
  }
}

#content {
  display: flex;
  justify-content: space-between;

  @media (max-width: $resp_vsmall) {
    flex-wrap: wrap;
  }

  main {
    margin: 10px auto;
    padding: 0 30px;
    max-width: $main_width;
    flex-basis: $main_width;

    @media (max-width: $resp_tiny) {
      padding: 0 20px;
    }
  }
}

.items {
  display: grid;
  grid-template-columns: 100px auto;

  .head {
    grid-column: 1/span 1;
    font-weight: bold;
  }
}

.phdtitle {
  font-size: 1.1em;
  text-align: center;
  font-weight: bold;
}

a, a:visited {
  color: $link_color;
  text-decoration:none;
}

.fa {
  color:#555
}

h1 {
  margin-left:-10px;
}
h2 {
  margin-top: 30px;
  margin-left:20px;

  .fa {
    margin-right: 10px;
  }
}

#whoami {
  text-align: right;
  font-size: 1.2em;
  font-style: italic;
}

ul.docsline {
  list-style: none;
  text-align: center;
  margin-top: 30px;
  font-size: 1.1em;

  li {
    display: inline-block;

    a {
      display: inline-block;
      padding: 0 15px;
    }
  }
}

dl {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 3fr;
  align-items: center;

  dt {
    grid-column: 1 / span 1;
    justify-self: end;
    text-align: right;
    margin-right: 20px;
    font-weight: bold;
    line-height: 1;
  }
  dd {
    margin-left: 20px;
    justify-self: start;
    text-align: left;
  }

  dt, dd {
    padding: 5px 0;
  }
}

.antispam {
  unicode-bidi: bidi-override;
  direction: rtl;
}

.tag_ligne {
  display: inline;
  width: 23px;
  height: auto;
  position: relative;
  top: 5px;
}

input:focus {
  outline: none;
}

form {
  p.already_replied {
    color: red;
  }

  div {
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-items: center;
    column-gap: 15px;
    margin: 5px 0;

    input[type=text] {
      width: 100%;
      padding: 5px;
      border: 2px solid #ccc;
      border-radius: 5px;

      &:focus {
        border-color: $active_color;
        background-color: $active_color_bg;
      }
    }
  }

  input[type=submit] {
    margin-top: 10px;
    padding: 5px 15px;
    background: #ccc;
    border: 0 none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    font-size: 1.1em;

    &:focus, &:hover {
      background-color: $active_color;
    }
    &:active {
      background-color: darken($active_color, 15%);
    }
  }
}

a.button {
  padding: 10px;
  background: #ccc;
  border: 0 none;
  border-radius: 10px;
  cursor: pointer;
  width: 100%;
  line-height: 25px;
  font-size: 18px;
  color: black;
  margin: 10px 0;
  display: block;
  text-align: center;

  &:focus, &:hover {
    background-color: $active_color;
  }
  &:active {
    background-color: darken($active_color, 15%);
  }
}

.collapsible {
  margin: 10px 0;
  border-radius: 10px;
  background-color: #eee;
  width: 100%;

  .collapsible-toggle {
    padding: 10px;
    background-color: #ccc;
    font-size: 18px;
    line-height: 25px;

    cursor: pointer;
    width: 100%;
    border: none;
    text-align: center;
    outline: none;

    border-radius: 10px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: center;

    &>span {
      display: block;
      width: 100%;
      flex-basis: 100%;
    }

    &:hover {
      background-color: $active_color;
    }
    &:after {
      content: "\2795";

      //float: right;
      font-size: 13px;
    }

    &.active {
      border-radius: 10px 10px 0 0;
      &:after {
        content: "\2796";
      }
    }

  }
  .collapsible-content {
    padding: 10px 20px;
    display: none;
  }
}