:root {
  --white: #FFFFFF;
  --black: #000000;
  --blue_navy: #2B3F8E;
  --blue_cian: #608DC6;
  --blue_police: #1B1933;
  --white_pearl: #F9F8EF;
  --yellow_fluorescent: #F0E648;
  --yellow_fluorescent_light: #FFF97A;
  --yellow_fluorescent_dark: #C8B800;
  --policia: #192D48;
  --bomberos_pc: #EF8118;
  --ambulancia: #E11617;
  --background: var(--blue_navy);
  --text_on_background: var(--white_pearl);
  --text_b_on_background: var(--blue_navy);
  --button_lsm: var(--blue_cian);
  --button_lsm_hover: var(--blue_police);
  --img_on_button_lsm: brightness(1);
  --scroll: var(--blue_cian);
}

@font-face {
  font-family: 'GothamBlack';
  src: url('../font/gotham.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: 'GothamBlack', Arial, sans-serif;
}

html, body {
  height: 100%;
  margin: 0;
}

body {
  background: var(--background);
  color: var(--text_on_background) !important;
}

.container {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.middle {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.middle::-webkit-scrollbar { width: 1rem; }
.middle::-webkit-scrollbar-track { background: transparent; }
.middle::-webkit-scrollbar-thumb {
  background-color: var(--scroll);
  border-radius: 1rem;
  border: 0.25rem solid transparent;
  background-clip: content-box;
}

#texto {
  width: 100%;
  max-width: 100%;
}

#texto * {
  max-width: 100% !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
  font-size: 1rem !important;
  line-height: 1.5 !important;
  color: var(--text_on_background) !important;
}
#texto img,
#texto table {
  max-width: 100% !important;
  height: auto !important;
}

.contenido-word {
  width: 100%;
  max-width: 100%;
}

#lsm {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: none;
}

.bottom {
  padding: 20px;
}

.button {
  height: 10vh;
  max-height: 15vh;
  width: auto;
  margin: 0 auto;
  max-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--button_lsm);
  border-radius: 20px;
  padding: 10px;
  cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
  .button:hover {
    background-color: var(--button_lsm_hover);
  }
}

.button img {
  height: 100%;
  width: auto;
  max-width: 50%;
  object-fit: contain;
  filter: var(--img_on_button_lsm);
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: var(--blue_police);
    --text_b_on_background: var(--yellow_fluorescent_light);
    --button_lsm: var(--yellow_fluorescent);
    --button_lsm_hover: var(--yellow_fluorescent_dark);
    --img_on_button_lsm: brightness(0);
    --scroll: var(--blue_navy);
  }
}

@media (orientation: portrait) {
  .button {
    height: 15vh;
    max-height: 20vh;
  }
}