/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
/* Document
   ========================================================================== */
/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */
html {
  line-height: 1.15; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
}

/* Sections
     ========================================================================== */
/**
   * Remove the margin in all browsers.
   */
body {
  margin: 0;
}

/**
   * Render the `main` element consistently in IE.
   */
main {
  display: block;
}

/**
   * Correct the font size and margin on `h1` elements within `section` and
   * `article` contexts in Chrome, Firefox, and Safari.
   */
h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

/* Grouping content
     ========================================================================== */
/**
   * 1. Add the correct box sizing in Firefox.
   * 2. Show the overflow in Edge and IE.
   */
hr {
  box-sizing: content-box; /* 1 */
  height: 0; /* 1 */
  overflow: visible; /* 2 */
}

/**
   * 1. Correct the inheritance and scaling of font size in all browsers.
   * 2. Correct the odd `em` font sizing in all browsers.
   */
pre {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/* Text-level semantics
     ========================================================================== */
/**
   * Remove the gray background on active links in IE 10.
   */
a {
  background-color: transparent;
}

/**
   * 1. Remove the bottom border in Chrome 57-
   * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
   */
abbr[title] {
  border-bottom: none; /* 1 */
  text-decoration: underline; /* 2 */
  text-decoration: underline dotted; /* 2 */
}

/**
   * Add the correct font weight in Chrome, Edge, and Safari.
   */
b,
strong {
  font-weight: bolder;
}

/**
   * 1. Correct the inheritance and scaling of font size in all browsers.
   * 2. Correct the odd `em` font sizing in all browsers.
   */
code,
kbd,
samp {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/**
   * Add the correct font size in all browsers.
   */
small {
  font-size: 80%;
}

/**
   * Prevent `sub` and `sup` elements from affecting the line height in
   * all browsers.
   */
sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/* Embedded content
     ========================================================================== */
/**
   * Remove the border on images inside links in IE 10.
   */
img {
  border-style: none;
}

/* Forms
     ========================================================================== */
/**
   * 1. Change the font styles in all browsers.
   * 2. Remove the margin in Firefox and Safari.
   */
button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-size: 100%; /* 1 */
  line-height: 1.15; /* 1 */
  margin: 0; /* 2 */
}

/**
   * Show the overflow in IE.
   * 1. Show the overflow in Edge.
   */
button,
input {
  /* 1 */
  overflow: visible;
}

/**
   * Remove the inheritance of text transform in Edge, Firefox, and IE.
   * 1. Remove the inheritance of text transform in Firefox.
   */
button,
select {
  /* 1 */
  text-transform: none;
}

/**
   * Correct the inability to style clickable types in iOS and Safari.
   */
button,
[type=button],
[type=reset],
[type=submit] {
  -webkit-appearance: button;
}

/**
   * Remove the inner border and padding in Firefox.
   */
button::-moz-focus-inner,
[type=button]::-moz-focus-inner,
[type=reset]::-moz-focus-inner,
[type=submit]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

/**
   * Restore the focus styles unset by the previous rule.
   */
button:-moz-focusring,
[type=button]:-moz-focusring,
[type=reset]:-moz-focusring,
[type=submit]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

/**
   * Correct the padding in Firefox.
   */
fieldset {
  padding: 0.35em 0.75em 0.625em;
}

/**
   * 1. Correct the text wrapping in Edge and IE.
   * 2. Correct the color inheritance from `fieldset` elements in IE.
   * 3. Remove the padding so developers are not caught out when they zero out
   *    `fieldset` elements in all browsers.
   */
legend {
  box-sizing: border-box; /* 1 */
  color: inherit; /* 2 */
  display: table; /* 1 */
  max-width: 100%; /* 1 */
  padding: 0; /* 3 */
  white-space: normal; /* 1 */
}

/**
   * Add the correct vertical alignment in Chrome, Firefox, and Opera.
   */
progress {
  vertical-align: baseline;
}

/**
   * Remove the default vertical scrollbar in IE 10+.
   */
textarea {
  overflow: auto;
}

/**
   * 1. Add the correct box sizing in IE 10.
   * 2. Remove the padding in IE 10.
   */
[type=checkbox],
[type=radio] {
  box-sizing: border-box; /* 1 */
  padding: 0; /* 2 */
}

/**
   * Correct the cursor style of increment and decrement buttons in Chrome.
   */
[type=number]::-webkit-inner-spin-button,
[type=number]::-webkit-outer-spin-button {
  height: auto;
}

/**
   * 1. Correct the odd appearance in Chrome and Safari.
   * 2. Correct the outline style in Safari.
   */
[type=search] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/**
   * Remove the inner padding in Chrome and Safari on macOS.
   */
[type=search]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
   * 1. Correct the inability to style clickable types in iOS and Safari.
   * 2. Change font properties to `inherit` in Safari.
   */
::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/* Interactive
     ========================================================================== */
/*
   * Add the correct display in Edge, IE 10+, and Firefox.
   */
details {
  display: block;
}

/*
   * Add the correct display in all browsers.
   */
summary {
  display: list-item;
}

/* Misc
     ========================================================================== */
/**
   * Add the correct display in IE 10+.
   */
template {
  display: none;
}

/**
   * Add the correct display in IE 10.
   */
[hidden] {
  display: none;
}

header {
  grid-column: span 3;
  padding: 30px;
  text-align: center;
  font-size: 1.4em;
  background-color: rgb(29, 48, 48);
  color: white;
}
header > .site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-around;
  gap: 20px;
  background-color: rgb(29, 48, 48);
  color: #fff;
}
header > .site-header > :nth-child(2) {
  text-align: right;
}
header > .site-header h1,
header > .site-header h3 {
  color: rgb(143, 188, 188);
}
header > .site-header > a.site-logo {
  border-radius: 50%;
  background-color: #fff;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  padding: 20px;
}
main > p {
  text-align: justify;
  text-justify: inter-character;
}
main img {
  max-width: 640px;
}

nav {
  padding: 5px 0;
}
nav ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}
nav ul li {
  background-color: rgb(29, 48, 48);
}
nav li {
  padding: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}
nav li a {
  color: rgb(143, 188, 188);
  text-decoration: none;
  display: block;
}
nav li:hover {
  opacity: 0.4;
}

aside {
  padding: 20px;
  background-color: rgb(143, 188, 188);
}

footer {
  grid-column: span 3;
  padding: 30px;
  text-align: center;
  font-size: 1.4em;
  background-color: rgb(29, 48, 48);
  color: white;
}

.form {
  padding: 5px;
  background-color: #a5b9d2;
}
.form section {
  display: flex;
  flex-direction: column;
  padding: 4px;
}
.form__header {
  border-radius: 8px 8px 0 0;
  background-color: rgb(29, 48, 48);
  color: #bfbfbf;
  text-align: center;
  padding: 0 2rem;
}
.form__fields {
  display: grid;
  grid-template-columns: 200px 1fr;
  align-items: center;
  gap: 14px;
  padding: 1rem;
}
.form__field {
  display: flex;
  flex-direction: column;
  width: 100%;
}
.form__field-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  padding: 0.2rem 0;
}
@media screen and (max-width: 480px) {
  .form__field-row {
    flex-direction: column;
  }
}
.form__field-checkbox {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 5px;
  padding: 0.2rem 0;
  min-width: 120px;
}
@media screen and (max-width: 480px) {
  .form__field-checkbox {
    flex-direction: column;
  }
}

.form-select {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.form-select::after {
  content: "";
  width: 0.8em;
  height: 0.5em;
  background-color: #4b5544;
  clip-path: polygon(100% 0%, 0 0%, 50% 100%);
  justify-self: end;
}

.form-input,
.form-select {
  line-height: 1.1;
  background-color: #f3f3f3;
  padding: 0.5rem;
  border-radius: 0.5rem;
  border: 2px solid #4b5544;
  font-family: inherit;
  transition: 180ms box-shadow ease-in-out;
}

.form-input:focus,
.form-select:focus {
  border-color: #4b5544;
  box-shadow: 0 0 0 2px rgba(75, 85, 68, 0.8);
  outline: 3px solid transparent;
}

.form-input:hover,
.form-select:hover {
  opacity: 0.8;
  box-shadow: 0 3px 5px rgba(75, 85, 68, 0.8);
  background-color: #bec6b8;
}

.form-label {
  font-weight: 300;
  display: block;
  font-size: 1.2rem;
  color: #4b5544;
}

input,
textarea {
  font-size: max(16px, 1rem);
  font-weight: 400;
}

select {
  appearance: none;
  position: relative;
  border: none;
  margin: 0;
  width: 100%;
  cursor: pointer;
  z-index: 1;
  background-color: transparent;
  outline: none;
  font-size: max(16px, 1rem);
  font-weight: 400;
}

select,
.form-select:after {
  grid-area: select;
}

textarea {
  grid-column: 1/-1;
  resize: vertical;
}

input[type=checkbox] {
  display: grid;
  place-content: center;
  appearance: none;
  background-color: #f3f3f3;
  margin: 0;
  font: inherit;
  color: currentColor;
  width: 1.7em;
  height: 1.7em;
  border: 0.15em solid currentColor;
  border-radius: 0.15em;
  transform: translateY(-0.075em);
}

input[type=checkbox]::before {
  content: "";
  width: 0.65em;
  height: 0.65em;
  transform: scale(0);
  transition: 120ms transform ease-in-out;
  box-shadow: inset 1em 1em red;
  transform-origin: bottom left;
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

input[type=checkbox]:checked::before {
  transform: scale(1.4);
}

input[type=checkbox] :focus {
  outline: max(2px, 0.15em) solid currentColor;
  outline-offset: max(2px, 0.15em);
}

input[type=checkbox]:disabled {
  color: #959495;
  cursor: not-allowed;
}

.checkbox--disabled {
  color: #959495;
  cursor: not-allowed;
}

.sous_habitat {
  min-width: 220px;
}

.accessible_raison {
  width: 90%;
}

.photo-preview {
  background-color: #222529;
  padding: 1rem;
}
.photo-preview > *, .photo-preview a:visited {
  color: #8b8d90;
}
.photo-preview .link {
  color: #8b8d90;
}
.photo-preview img {
  padding: 0.25rem;
  background-color: #fff;
  border: 1px solid #fff;
  border-radius: 0.375rem;
  max-width: 256px;
}

.centered {
  text-align: center;
}

.p-2 {
  padding: 0.5rem;
}

.px-2 {
  padding: 0 0.5rem;
}

.py-2 {
  padding: 0.5rem 0;
}

.action-table {
  border-collapse: collapse;
  border-radius: 0.375rem;
  margin: 25px 0;
  font-size: 0.9em;
  font-family: sans-serif;
  min-width: 400px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
}
.action-table caption {
  background-color: rgba(29, 48, 48, 0.8);
  color: #fff;
  border-top-left-radius: 0.375rem;
  border-top-right-radius: 0.375rem;
}
.action-table thead tr {
  background-color: rgb(95, 169, 169);
  color: #ffffff;
  text-align: left;
}
.action-table th,
.action-table td {
  padding: 12px 15px;
}
.action-table tbody tr {
  border-bottom: 1px solid #dddddd;
}
.action-table tbody tr:nth-of-type(even) {
  background-color: #f3f3f3;
}
.action-table tbody tr:hover {
  background-color: rgba(95, 169, 169, 0.6);
  color: #fff;
}

body {
  font-family: arial;
  line-height: 1.5rem;
}

.container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.menu-hide {
  display: none;
}

/*menu switch*/
#menu-switch {
  display: inline-block;
  color: yellow;
  cursor: pointer;
}

.bar1,
.bar2,
.bar3 {
  width: 35px;
  height: 5px;
  background-color: rgb(143, 188, 188);
  margin: 6px 0;
  transition: 0.4s;
}

.change .bar1 {
  transform: translate(0, 11px) rotate(-45deg);
}
.change .bar2 {
  opacity: 0;
}
.change .bar3 {
  transform: translate(0, -11px) rotate(45deg);
}

@media (min-width: 960px) {
  .container {
    display: grid;
    grid-template-columns: 300px 1fr 300px;
    grid-template-rows: auto 1fr auto;
  }
  .nav-search {
    order: 1;
  }
  main {
    order: 2;
  }
  aside {
    order: 3;
  }
  #menu-switch {
    display: none;
  }
  .menu-hide {
    display: block;
  }
}
@media (max-width: 576px) {
  main img {
    max-width: 350px;
  }
}
@media (min-width: 576px) {
  main img {
    max-width: 560px;
  }
}
@media (min-width: 768px) {
  main img {
    max-width: 640px;
  }
}
@media (min-width: 1200px) {
  main img {
    max-width: 920px;
  }
}
.nav-search {
  background-color: rgb(143, 188, 188);
  padding: 0 0.4rem;
}

@media (min-width: 960px) {
  .headlines {
    gap: 1rem;
  }
}
h1 {
  margin-bottom: 1em;
  font-size: calc(1.375rem + 1.5vw);
  font-weight: bold;
}

h3 {
  font-size: calc(1.3rem + 0.6vw);
}

.widgets {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  background-color: black;
  width: 100%;
  gap: 1rem;
  padding: 1rem;
}

.widget {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: antiquewhite;
  width: 350px;
  height: 350px;
  border-radius: 12px;
}

.btn {
  font-family: inherit;
  font-size: 1.5rem;
  background-color: green;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #f3f3f3;
  border-radius: 4px;
  box-shadow: 0 3px 5px rgba(75, 85, 68, 0.8);
  padding: 0.5em 1em;
  min-width: 15ch;
  min-height: 24px;
  transition: 220ms all ease-in-out;
  line-height: 1.1rem;
  text-decoration: none;
  margin: 0.5rem;
}
.btn-delete {
  background: url("/static/icons/icon-deletelink.svg") 7px 7px no-repeat;
  background-size: 2rem;
  min-width: fit-content;
  background-color: #404040;
}
.btn-add {
  background: url("/static/icons/icon-addlink.svg") 7px 7px no-repeat;
  background-size: 2rem;
  min-width: fit-content;
  background-color: #404040;
}
.btn-edit {
  background: url("/static/icons/icon-changelink.svg") 7px 7px no-repeat;
  background-size: 2rem;
  min-width: fit-content;
  background-color: #404040;
}
.btn-back {
  background: url("/static/icons/icon-backlink.svg") 7px 7px no-repeat;
  background-size: 2rem;
  min-width: fit-content;
  background-color: #404040;
}

.wrapped {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.wrapped.center {
  justify-content: center;
}

.wrapped > * {
  flex: 0 0 25%;
}