main {
    margin: 5em auto;
}

main p {
    font-size: 1.5em;
}

body {
    font-family: sans-serif;
    text-align: center;
    margin: 0.5em;
}

.hidden {
    visibility: hidden;
    display: none;
}

input {
    border: none;
    border-bottom: .1em solid #333;
}

button {
    width: 10em;
    border: 0.1em solid #333;
    cursor: pointer;
    padding: 0.2em;
    background-color: #333;
    color: #fff;
    letter-spacing: .1em;
    font-size: 0.8em;
}

button:hover {
    background-color: #ddd;
    color: black;
}

button:last-of-type:hover {
    background-color: #4CAF50;
    color: white;
}

a.goto_inscription {
    background-color: #eee;
    text-align: center;
    border-radius: 0.4em;
    display: inline-block;
    font-size: 0.6em;
    text-decoration:none;
    padding: 0.4em;
}

a.goto_inscription:hover {
   color: #4CAF50;
}

/* Tooltip */
[aria-label] {
    position: relative;
}

[aria-label]:hover:after,
[aria-label]:focus:after {
  content: attr(aria-label);  /* on affiche aria-label */
  position: absolute;
  display: inline-block;
  top: 1em;
  left:0;
  transform: translateX(-110%); /* on centre horizontalement  */
  z-index: 1; /* pour s'afficher au dessus des éléments en position relative */
  white-space: nowrap;  /* on interdit le retour à la ligne*/
  padding: 1em 1em;
  background: #333;
  color: #fff;
  border-radius: .4em;
  font-size: .7rem;
}

/* pas de contour durant le :focus */
[aria-label]:focus {
    outline: none;
}

/* navigation menu */
nav {
    background-color: #333;
    overflow: hidden;
}
nav ul {
    padding: 0;
    margin: 0 auto;
    text-align: center;
    width: 100%;
}

nav li {
    display: inline-block;
    margin: 0;
}
nav a {
    display: block;
    color: #f2f2f2;
    padding: 0.7em 0.9em;
    text-decoration: none;
    font-size: 1.1em;
}
nav a:hover {
    background-color: #ddd;
    color: black;
}
nav .active {
    background-color: #4CAF50;
    color: white;
}

/* Header */
header>p {
    width: 40%;
    margin: 0 auto;
}

header p.alert {
    background-color: #FF4C50;
    color: black;
}

header p.info {
    background-color: #7C80DF;
    color: white;
}


table {
    width: 100%;
    margin: 2em auto;
    border-collapse: collapse;
    max-width: 73em;
    text-align: center;
}

table td, table th {
    border: 0.1em solid #333;
}

table th {
    padding: .7em 1em;
    color: white;
    background-color: #4CAF50;
}

table tr:nth-child(even):not(.ghost) {
    background-color: #eee;
}

table tr:hover:not(.ghost) {
    background-color: #ddd;
}

/* Taille des colonnes en fonction du contenu*/
th.free_text {
    width: 40%;
}
th.name {
    width: 20%;
}
th.date {
    width: 10%;
}
th.number {
    width: 7%;
}
th.icon {
    width: 10px;
}
th.period {
    width: 20%;
}

/* Colonne de séparation */
th.ghost, td.ghost, tr.ghost, tr.ghost:hover{
    width: 1%;
    border: 0em;
    background-color: white;
    color: transparent;
}

td.date, td.date:hover {
    background-color: #ddd;
    
}

th.month{
     background-color: #c9a67d;
     color: black;
     padding: .2em 1em;
}

.tab_options {
    width: 20px;
    padding: 0.1em;
}

td.tab_options input[type="checkbox"] + div > label:first-of-type {
    display: inline;
    float: left;
    width: 100%;
}

td.tab_options input[type="checkbox"] + div > label:last-of-type {
    display: none;
    float: left;
    width: 100%;
}

td.tab_options input[type="checkbox"] + div > button {
    display: none;
    padding: 0;
    margin: auto;
    width: 1em;
    color: black;
    background-color: transparent;
    border: none;
}

td.tab_options input[type="checkbox"]:checked + div > label:first-of-type {
    display: none;
}

td.tab_options input[type="checkbox"]:checked + div > label:last-of-type {
    display: inline;
}

td.tab_options input[type="checkbox"]:checked + div > button {
    display: inline;
}


#edit_task {
    margin: 2em auto;
    padding: 1.6em;
    border-radius: 0.5em;
    background-color: #eee;
    max-width: 70em;
}

#edit_task > h3 {
    text_align: left;
}

#edit_task > div {
    margin: 0.2em;
}

#edit_task > div:after {
    display: table;
    content: "";
    clear: both;
}

#edit_task > div > label {
    margin: 0;
    padding: 0;
    width: 23%;
    float: left;
    display: block;
    text-align: left
}

#edit_task > div > :not(label) {
    float: right;
    width: 73%;
    margin: 0;
    padding: .3em 0;
    display: block;
}

#edit_task > div > label {
    font-weight:bold;
    text-align:right;
}

/* Edit buttons */
#edit_task > div:last-child {
    text-align: right;
}

#edit_task > div > button {
    float: unset;
    display: inline-block;
    width: 13em;
    margin: 0 1em;
}

/* Particular cases */ 
#edit_inline {
    text-align: left;
}
#edit_inline > li {
    display: inline-block;
}
#edit_inline > li > input {
    width: 100px;
}

.checkbox {
    width: 10%; 
    float: left;
}


@media screen and (max-width: 45em) {
    #edit_task > div > * {
        width: 100%!important;
        margin-top: 0;
    }
}


 /* Tooltip container */
.tooltip {
  position: relative;
  display: inline-block;
  border-bottom: 1px dotted black; /* If you want dots under the hoverable text */
}
