/**
 * *************CONTENTS***************
 *
 * BOOTSTRAP ESSENTIALS
 *
 * ORIGINAL CONTENT
 *
 * FRESH CONTENT
 *
 */

/*------------------------------------*\
  #BOOTSTRAP ESSENTIALS
\*------------------------------------*/

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

html {
  font-family: sans-serif;
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  -ms-overflow-style: scrollbar;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

article, aside, figcaption, figure, footer, header, hgroup, main, nav, section {
  display: block;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #212529;
  text-align: left;
  background-color: #fff;
} */

/*------------------------------------*\
  #ORIGINAL CONTENT
\*------------------------------------*/

/* 
body {
  padding: 50px;
  font: 14px "Lucida Grande", Helvetica, Arial, sans-serif;
}

a {
  color: #00B7FF;
} */

/*------------------------------------*\
  #FRESH CONTENT
\*------------------------------------*/

/*=========================================================
=            Style resets (modified Bootstrap)            =
==========================================================*/

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

html {
  font-family: "Segoe UI", "Source Sans Pro", Calibri, Candara, Arial, sans-serif;
  height: 100%;
}

body {
  margin: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

article,
aside,
figcaption,
figure,
footer,
header,
hgroup,
main,
nav,
section {
  display: block;
}

input,
button,
select,
optgroup,
textarea {
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

button:not(:disabled) {
  cursor: pointer;
}

ul {
  margin: 0;
}

a {
  color: #007bff;
  text-decoration: none;
  background-color: transparent;
}

a:hover {
  color: #131516;
  text-decoration: underline;
}

a:not([href]):not([tabindex]) {
  color: inherit;
  text-decoration: none;
}

a:not([href]):not([tabindex]):hover,
a:not([href]):not([tabindex]):focus {
  color: inherit;
  text-decoration: none;
}

a:not([href]):not([tabindex]):focus {
  outline: 0;
}

/*======  End of Style resets (modified Bootstrap)  ======*/

/*==========================================
=            Bootstrap elements            =
==========================================*/

.container {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

/* .pagination {
  display: -ms-flexbox;
  display: flex;
  padding-left: 0;
  list-style: none;
  border-radius: 0.25rem;
} */

/* .page-link {
  position: relative;
  display: block;
  padding: 0.5rem 0.75rem;
  margin-left: -1px;
  line-height: 1.25;
  color: #007bff;
  background-color: #fff;
  border: 1px solid #dee2e6;
}

.page-link:hover {
  z-index: 2;
  color: #0056b3;
  text-decoration: none;
  background-color: #e9ecef;
  border-color: #dee2e6;
}

.page-link:focus {
  z-index: 2;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
} */

/* .page-item:first-child .page-link {
  margin-left: 0;
  border-top-left-radius: 0.25rem;
  border-bottom-left-radius: 0.25rem;
}

.page-item:last-child .page-link {
  border-top-right-radius: 0.25rem;
  border-bottom-right-radius: 0.25rem;
}

.page-item.active .page-link {
  z-index: 1;
  color: #fff;
  background-color: #007bff;
  border-color: #007bff;
}

.page-item.disabled .page-link {
  color: #6c757d;
  pointer-events: none;
  cursor: auto;
  background-color: #fff;
  border-color: #dee2e6;
} */

.form-control {
  display: block;
  width: 100%;
  height: calc(1.5em + 0.75rem + 2px);
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #495057;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control::-ms-expand {
  background-color: transparent;
  border: 0;
}

.form-control:focus {
  color: #495057;
  background-color: #fff;
  border-color: #80bdff;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-control::-webkit-input-placeholder {
  color: #b2c1ce;
  opacity: 1;
}

.form-control::-moz-placeholder {
  color: #b2c1ce;
  opacity: 1;
}

.form-control:-ms-input-placeholder {
  color: #b2c1ce;
  opacity: 1;
}

.form-control::-ms-input-placeholder {
  color: #b2c1ce;
  opacity: 1;
}

.form-control::placeholder {
  color: #b2c1ce;
  opacity: 1;
}

.form-control:disabled,
.form-control[readonly] {
  background-color: #e9ecef;
  opacity: 1;
}

/* select.form-control:focus::-ms-value {
  color: #495057;
  background-color: #fff;
} */

textarea.form-control {
  height: auto;
  resize: none;
}

.btn {
  display: inline-block;
  font-weight: 400;
  color: #212529;
  text-align: center;
  vertical-align: middle;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  background-color: transparent;
  border: 1px solid transparent;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 0.25rem;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }
}

.btn:hover {
  color: #212529;
  text-decoration: none;
}

.btn:focus,
.btn.focus {
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.btn.disabled,
.btn:disabled {
  opacity: 0.65;
}

.btn-primary {
  color: #fff;
  background-color: #007bff;
  border-color: #007bff;
}

.btn-primary:hover {
  color: #fff;
  background-color: #0069d9;
  border-color: #0062cc;
}

.btn-primary:focus,
.btn-primary.focus {
  box-shadow: 0 0 0 0.2rem rgba(38, 143, 255, 0.5);
}

.btn-primary.disabled,
.btn-primary:disabled {
  color: #fff;
  background-color: #007bff;
  border-color: #007bff;
}

.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary:not(:disabled):not(.disabled).active,
.show>.btn-primary.dropdown-toggle {
  color: #fff;
  background-color: #0062cc;
  border-color: #005cbf;
}

.btn-primary:not(:disabled):not(.disabled):active:focus,
.btn-primary:not(:disabled):not(.disabled).active:focus,
.show>.btn-primary.dropdown-toggle:focus {
  box-shadow: 0 0 0 0.2rem rgba(38, 143, 255, 0.5);
}

.btn-primary.dropdown-toggle:focus {
  box-shadow: 0 0 0 0.2rem rgba(38, 143, 255, 0.5);
}

/* .btn-light {
  color: #212529;
  background-color: white;
  border: none;
  border-color: #f8f9fa;
}

.btn-light:hover {
  color: #212529;
  background-color: #e2e6ea;
  border-color: #dae0e5;
}

.btn-light:focus, .btn-light.focus {
  box-shadow: 0 0 0 0.2rem rgba(216, 217, 219, 0.5);
}

.btn-light.disabled, .btn-light:disabled {
  color: #212529;
  background-color: #f8f9fa;
  border-color: #f8f9fa;
}

.btn-light:not(:disabled):not(.disabled):active, .btn-light:not(:disabled):not(.disabled).active, .show>.btn-light.dropdown-toggle {
  color: #212529;
  background-color: #dae0e5;
  border-color: #d3d9df;
}

.btn-light:not(:disabled):not(.disabled):active:focus, .btn-light:not(:disabled):not(.disabled).active:focus, .show>.btn-light.dropdown-toggle:focus {
  box-shadow: 0 0 0 0.2rem rgba(216, 217, 219, 0.5);
} */

.btn-link {
  font-weight: 400;
  color: #007bff;
  text-decoration: none;
  padding: 0;
  border: 0;
}

.btn-link:hover {
  color: #0056b3;
  text-decoration: underline;
}

.btn-link:focus,
.btn-link.focus {
  text-decoration: underline;
  box-shadow: none;
}

.btn-link:disabled,
.btn-link.disabled {
  color: #6c757d;
  pointer-events: none;
}

/* .dropdown-toggle {
  white-space: nowrap;
}

.dropdown-toggle::after {
  display: inline-block;
  margin-left: 0.255em;
  vertical-align: 0.255em;
  content: "";
  border-top: 0.3em solid;
  border-right: 0.3em solid transparent;
  border-bottom: 0;
  border-left: 0.3em solid transparent;
}

.dropdown-toggle:empty::after {
  margin-left: 0;
} */

/*=====  End of Bootstrap elements  ======*/

/*=====================================
=            Custom styles            =
=====================================*/

header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: white;
  padding: 10px;
  z-index: 1;
}

main {
  flex: 1 0 auto;
  margin-top: 120px;
}

footer {
  flex: none;
  margin-top: 15px;
}

#footer-content {
  border-top: 1px solid black;
  padding: 15px 10px;
  text-align: center;
}

#footer-content>* {
  margin-top: 3px;
}

@media (min-width: 576px) {
  #footer-content {
    display: flex;
  }

  #footer-content>:first-child {
    flex: 1;
    text-align: start;
  }

  #footer-content>:last-child {
    flex: 1;
    text-align: end;
  }
}

#img-logo-main {
  width: 100%;
  max-width: 385px;
  display: block;
  margin: auto;
}

/* #nav-main {
  margin-top: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#nav-main>* {
  margin-top: 5px;
}

@media (min-width: 1200px) {
  #nav-main {
    flex-direction: row;
  }
  #nav-main>:first-child {
    flex: 1;
  }
  #nav-main>:last-child {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
  }
} */

/* #hits-per-page {
  display: inline-block;
  width: auto;
  margin-left: 5px;
} */

/* #filters-toggle-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
} */

#filters-basic-container,
#filters-advanced-container {
  margin-top: 5px;
  /* border: 1px solid rgba(0, 0, 0, .15); */
  border-radius: .25rem;
  background-color: #bcc9d7;
}

#filters-basic-container {
  display: flex;
  justify-content: flex-end;
  /* align-items: center; */
  padding: 7px;
}

#filter-basic {
  flex: 1;
  min-width: 0;
}

.advanced-filters #filter-basic {
  display: none;
}

.show-filters-advanced,
.show-filters-basic {
  height: calc(1.5em + 0.75rem + 2px);
  flex: none;
}

.show-filters-basic {
  display: none;
}

.advanced-filters #filters-basic-container .show-filters-basic {
  display: block;
}

.show-filters-advanced {
  margin-left: 5px;
}

.advanced-filters .show-filters-advanced {
  display: none;
}

.filter-input {
  border: none;
}

#filters-advanced-container {
  display: none;
  padding: 5px;
}

.advanced-filters #filters-advanced-container {
  display: block;
}

#back-to-top.show {
  display: block;
  opacity: 1;
}

#filters-advanced-container>*>* {
  margin-top: 5px;
  overflow: hidden;
}

#filters-advanced-title {
  display: none;
  align-items: center;
  /* width: 104px; */
}

#filter-title {
  margin-top: 0;
}

#filters-age,
#filters-links {
  display: flex;
  justify-content: space-between;
  padding: 3px;
}

.filter-age,
.filter-link {
  flex: 1;
}

#filters-age>:first-child {
  margin-right: 3px;
}

#filters-age>:last-child,
#filter-link-fran {
  margin-left: 3px;
}

.filter-age,
.filter-link {
  position: relative;
}

.filter-age>input[type="checkbox"],
.filter-link>input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  z-index: -1;
}

.age-custom-checkbox {
  display: block;
  height: 100%;
  border-radius: 0.25rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  cursor: pointer;
}

.filter-age>input[type="checkbox"]:checked+.age-custom-checkbox {
  box-shadow: inset 0px 0px 3px 0px black;
}

.age-custom-checkbox:hover {
  box-shadow: inset 0px 0px 3px 0px black;
}

.filter-age>input[type="checkbox"]:focus+.age-custom-checkbox {
  border-color: #80bdff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.filter-age>input[type="checkbox"]:checked:focus+.age-custom-checkbox {
  box-shadow: inset 0px 0px 3px 0px black, 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

#filters-links-and-clear {
  justify-content: space-between;
}

.link-custom-checkbox {
  display: block;
  height: 100%;
  padding: 2px 5px;
  border-radius: 0.25rem;
  text-align: center;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  cursor: pointer;
  user-select: none;
}

.filter-link>input[type="checkbox"]:checked+.link-custom-checkbox {
  box-shadow: inset 0px 0px 3px 0px black;
}

.link-custom-checkbox:hover {
  box-shadow: inset 0px 0px 3px 0px black;
}

.filter-link>input[type="checkbox"]:focus+.link-custom-checkbox {
  border-color: #80bdff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.filter-link>input[type="checkbox"]:checked:focus+.link-custom-checkbox {
  box-shadow: inset 0px 0px 3px 0px black, 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

#filter-clear {
  width: 100%;
  cursor: pointer;
}

#clear-big,
#filter-clear-basic,
#link-termania-custom-checkbox-short,
#link-fran-custom-checkbox-short {
  display: none;
}

#clear-big,
#filter-clear-basic {
  /* color: #eab16e; */
  font-size: 3rem;
  line-height: 0;
  vertical-align: -8px;
}

@media (min-width: 768px) {

  /* #filters-toggle-btn {
    display: none;
  } */
  /* .advanced-filters #filters-basic-container .show-filters-basic {
    display: none;
  } */
  .advanced-filters #filters-basic-container {
    display: none;
  }

  .advanced-filters #filters-advanced-container .show-filters-basic,
  #filter-clear-basic {
    display: block;
  }

  #filters-basic-container {
    justify-content: flex-start;
  }

  #filter-basic {
    max-width: calc(82% - 3.72px);
  }

  .show-filters-advanced,
  .show-filters-basic {
    margin-left: auto;
  }

  #filters-cover {
    width: 50%;
  }

  #filters-domains {
    width: 16%;
  }

  #filters-languages {
    width: 16%;
  }

  #filters-links-and-clear {
    width: 18%;
  }

  .advanced-filters #filters-advanced-container,
  #filters-advanced-container>* {
    display: flex;
  }

  #filters-advanced-container>* {
    padding: 2px 5px;
    overflow: hidden;
  }

  #filters-advanced-container>*>* {
    margin-top: 0;
  }

  #filters-age {
    width: 104px;
  }

  #filters-advanced-title {
    display: flex;
  }

  .filter-input {
    flex: 1;
  }

  #filter-clear,
  #filter-clear-basic {
    width: 38px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  #link-termania-custom-checkbox {
    background-color: #fb6f28;
    color: white;
  }

  #link-fran-custom-checkbox {
    background-color: #009ed8;
    color: white;
  }

  #clear-small,
  #link-termania-custom-checkbox-long,
  #link-fran-custom-checkbox-long {
    display: none;
  }

  #clear-big,
  #filter-clear-basic>*,
  #link-termania-custom-checkbox-short,
  #link-fran-custom-checkbox-short {
    display: inline;
    font-weight: 600;
  }

  #clear-big,
  #filter-clear-basic>* {
    position: relative;
    bottom: 5.7px;
  }

  #filters-cover>:not(:first-child),
  #filter-clear-basic {
    margin-left: 10px;
  }

  #filters-links {
    width: auto;
    flex-grow: 1;
  }
}

@media (min-width: 1200px) {
  .filter-link {
    flex: auto;
  }

  #link-termania-custom-checkbox,
  #link-fran-custom-checkbox {
    background-color: transparent;
    color: #495057;
  }

  #link-termania-custom-checkbox-long,
  #link-fran-custom-checkbox-long {
    display: inline;
  }

  #link-termania-custom-checkbox-short,
  #link-fran-custom-checkbox-short {
    display: none;
  }
}

#dictionaries {
  margin-top: 30px;
  border-top: 1px solid #e9e9e9;
}

.dictionary-title,
.dictionary-author,
.dictionary-domains,
.dictionary-languages,
.dictionary-links {
  overflow: hidden;
  text-overflow: ellipsis;
}

.dictionary {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid #e9e9e9;
}

.dictionary.hidden {
  display: none;
}

.dictionary>* {
  padding: 2px 5px;
}

.dictionary-cover {
  width: 100%;
}

.dictionary-domains {
  width: 33%;
}

.dictionary-languages {
  width: 33%;
}

.dictionary-links {
  width: 34%;
}

@media (min-width: 576px) {
  .dictionary-cover {
    width: 50%;
  }

  .dictionary-domains {
    width: 16%;
  }

  .dictionary-languages {
    width: 16%;
  }

  .dictionary-links {
    width: 18%;
  }
}

.dictionary-link-invalid {
  color: grey;
}

.dictionary-title {
  color: #007ca8;
  font-weight: 600;
  text-align: left;
  line-height: normal;
  vertical-align: top;
}

.dictionary-author {
  font-style: italic;
}

.dictionary-age-1,
#age-1-custom-checkbox {
  background-color: #fce6e6;
}

.dictionary-age-2,
#age-2-custom-checkbox {
  background-color: #fdf1f1;
}

.dictionary-age-3,
#age-3-custom-checkbox {
  background-color: #fefafa;
}

#hits-total {
  text-align: center;
  margin-top: 15px;
}

/* .modal-open {
  overflow: hidden;
} */

.modal.show {
  display: block;
}

#notification-modal.modal.show {
  display: flex;
}

.modal {
  display: none;
  position: fixed;
  z-index: 2;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4)
}

.modal-content {
  margin: 0.5rem;
  background-color: white;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 0.3rem;
  margin: 0.5rem;
  transition: transform 0.3s ease-out;
  transform: translate(0, -50px);
}

.modal.show .modal-content {
  transform: none;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid #dee2e6;
  border-top-left-radius: 0.3rem;
  border-top-right-radius: 0.3rem;
}

.modal-subheader {
  padding: 1rem;
  border-bottom: 1px solid #dee2e6;
}

.modal-body {
  padding: 1rem;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  padding: 1rem;
  border-top: 1px solid #dee2e6;
  border-bottom-right-radius: 0.3rem;
  border-bottom-left-radius: 0.3rem;
}

.modal-body>p:first-child {
  margin-top: 0;
}

.modal-body>p:last-child {
  margin-bottom: 0;
}

.modal-footer> :not(:first-child) {
  margin-left: .25rem;
}

.modal-footer> :not(:last-child) {
  margin-right: .25rem;
}

.modal-title {
  margin: 0;
  line-height: 1.5;
  font-size: 1.25rem;
  font-weight: 500;
}

.close {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  opacity: 0.5;
  border: 0;
  padding: 1rem;
  margin: -1rem -1rem -1rem auto;
  height: 100%;
  background-color: transparent;
}

.close:hover {
  opacity: 0.75;
}

.about-dictionary h6 {
  margin: 20px 0 0 0;
  font-size: 14px;
  color: #007ca8;
  line-height: 1.5;
  font-weight: 500;
}

.about-dictionary h6:first-of-type {
  margin-top: 0;
}

.about-dictionary p,
.modal-subheader p {
  margin: 0;
}

#footer-content .modal {
  text-align: left;
}

#notification-modal {
  justify-content: center;
  align-items: center;
}

#notification-modal .modal-content {
  flex-basis: 500px;
}

@media (min-width: 576px) {
  .modal-content {
    max-width: 500px;
    margin: 1.75rem auto;
  }

  #new-dictionary>p,
  #comment>p {
    display: flex;
    justify-content: space-between;
  }

  #new-dictionary>p>:last-child,
  #comment>p>:last-child {
    width: 70%;
  }

  #new-dictionary>p>label,
  #comment>p>label {
    padding-top: 7px;
  }
}

#back-to-top {
  display: none;
  opacity: 0;
  transition: opacity 0.5s;
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

#up-arrow {
  width: 25px;
  height: 25px;
  border-left: 7px solid white;
  border-top: 7px solid white;
  transform: rotate(45deg) scale(0.6);
  position: relative;
  top: 3px;
}

#new-dictionary-modal .modal-footer p,
#comment-modal .modal-footer p {
  position: absolute;
  top: -9999px;
  left: -9999px;
}

/*=====  End of Custom styles  ======*/