:root {
    --espaco: 24px;
    --primaria: 220, 0, 0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

@import url("https://fonts.googleapis.com/css2?family=Merriweather:ital@0;1&family=Roboto:wght@500;900&display=swap");

a,
a:active,
a:hover,
a:visited {
    color: inherit;
    text-decoration: none;
}

button {
    background: none;
    color: inherit;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
    outline: inherit;
}

body {
    font-family: sans-serif;
    background-color: #e5e5e5;
    max-width: 100vw;
    max-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

main {
    position: relative;
    overflow-x: hidden;
    scroll-behavior: smooth;
    overflow-y: scroll;
}

#os_main {
    max-width: 720px;
    margin: auto;
    z-index: 0;
    max-height: 100vh;
    scroll-behavior: smooth;
    font-size: 18px;
    padding-bottom: 128px;
}

#os_main img,
#os_main figure {
    max-width: 100%;
    height: auto;
    width: 100%;
    margin: var(--espaco) 0px;
}

figcaption {
    font-size: 0.8em;
    font-style: italic;
}

article {
    background-color: #fff;
    padding: var(--espaco);
    border-radius: 8px;
    box-shadow: 0px 3px 6px 0px #0003;
    margin-bottom: calc(2 * var(--espaco));
    border-top: 4px solid rgb(var(--primaria));
}

article p a{
    color:rgb(var(--primaria));
    text-decoration:underline;
    cursor:pointer;
}
article a:hover{
    color:#f00;
}

article:last-child {
    margin-bottom: 96px;
}

h1 {
    font-size: 3em;
    line-height: 1.25em;
    margin-bottom: var(--espaco);
    font-family: "Roboto", sans-serif;
    font-weight: 900;
}

@media (max-width: 600px) {
    h1 {
        font-size: 2em;
    }
}

h3,
h4 {
    font-size: 1.5em;
    line-height: 1.5em;
    margin: 8px 0 24px 0;
    font-family: "Roboto", sans-serif;
    font-weight: 900;
}

@media (max-width: 600px) {

    h3,
    h4 {
        font-size: 1.25em;
    }
}

h6 {
    color: white;
    font-size: 0.8em;
    padding: 4px 8px;
    border-radius: 4px;
    background-color: rgb(var(--primaria));
    display: inline-block;
    margin-bottom: 8px;
}

p {
    line-height: 2em;
    font-size: 1em;
    margin-bottom: var(--espaco);
    font-family: "Merriweather", serif;
}

/*===== MENU INFERIOR ===== */
nav {
    height: 56px;
    bottom: 0;
    width: 100vw;
    z-index: 1;
    position: fixed;
    color: white;
    background-color: rgb(var(--primaria));
}

nav a,
nav a i,
nav button,
nav button i {
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.nav_menu {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 16px;
    z-index: 1;
    background-color: rgb(var(--primaria));
    position: relative;
    max-width: 720px;
    margin: auto;
}

.progress-bar {
    background-color: rgb(255, 200, 0);
    height: 8px;
    width: 0%;
    margin-top: -8px;
    z-index: 2;
    position: relative;
    transition: all 0.3s;
}

.menu_left {
    position: absolute;
    min-width: 280px;
    max-width: 90%;
    height: 100%;
    background-color: white;
    z-index: 11;
    transition: all 0.3s ease-in-out;
}

#capa {
    display: flex;
    flex-direction: column;
    grid-gap: 12px;
}

#menu_index h3 {
    font-size: 24px;
    padding: var(--espaco);
    padding-bottom: 0;
}

#menu_config h4 {
    margin: auto;
}

#news_list a {
    padding: 12px 24px;
    background-color: rgba(var(--primaria), 0);
    border-right: 8px solid rgba(var(--primaria), 0);
    border-bottom: 1px solid #eee;
    display: block;
    color: #999;
    transition: all 0.3s;
    width: 100%;
    height: fit-content;
    font-size: 0.9em;
    line-height: 1.25em;
}

#news_list a:hover {
    background-color: rgba(var(--primaria), 0.05);
    border-right: 8px solid rgba(var(--primaria), 1);
    color: rgb(var(--primaria));
    transition: all 0.3s;
}

#news_list a.current {
    border-right: 8px solid rgba(var(--primaria), 1);
    color: #000;
}

.menu_left {
    transform: translateX(-120%);
    box-shadow: 10px 0px 16px 0px #0005;
    padding: 16px;
    overflow-y: scroll;
}

.menu_left.active {
    transform: translateX(0%);
    transition: all 1s ease-in-out;
}

#menu_share div {
    display: flex;
    flex-direction: column;
    grid-gap: 24px;
    margin-bottom: 24px;
}

#menu_share h3 {
    font-size: 1em;
    margin: 0;
    border-bottom: 1px solid #ccc;
}

#menu_share a {
    display: flex;
    grid-gap: 12px;
    color: #999;
}

#menu_shadow {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #0009;
    z-index: -1;
    opacity: 0;
    transition: all 0.3s ease-in-out;
}

#menu_shadow.active {
    opacity: 1;
    z-index: 10;
    transition: all 1s ease-in-out;
}

.font-size {
    display: flex;
    grid-gap: 8px;
    margin: 12px 0;
}

.font-size a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 4px;
    border: 1px solid #ccc;
    cursor: pointer;
}

.font-size a:hover {
    border-color: rgb(var(--primaria));
}

#main_loading {
    width: 100vw;
    height: 100vh;
    z-index: 999;
    background: rgb(100, 0, 0);
    background: linear-gradient(0deg,
            rgba(100, 0, 0, 1) 0%,
            rgba(220, 0, 0, 1) 100%);
    position: fixed;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    grid-gap: 48px;
}

#main_loading img {
    max-width: 128px;
    height: auto;
}

#loading_msg {
    min-height: 32px;
    font-size: 12px;
    text-transform: uppercase;
    font-family: sans-serif;
}

#article-alert {
    padding: 8px 32px;
    border-radius: 4px;
    color: rgb(var(--primaria));
    text-align: center;
    opacity: 0;
    transform: translateY(0%) translateX(-50%);
    transition: all 1s ease-in-out;
    z-index: 0;
    background-color: white;
    font-weight: bold;
    position: absolute;
    width: 100%;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    grid-gap: 4px;
    box-shadow: 0 -2px 32px 0 #0009;
    max-width: 680px;
}

#article-alert.active {
    opacity: 1;
    transform: translateY(-120%) translateX(-50%);
    transition: all 1s ease-in-out;
}

.article-header {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    padding-bottom: 4px;
    border-bottom: 1px solid #aaa;
    color: #aaa;
    margin-bottom: 24px;
}

.social-buttons {
    margin: var(--espaco) auto;
    display: flex;
    grid-gap: 6px;
}

.btn_zap,
.btn_telegram {
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-buttons a:visited,
.social-buttons a:active,
.social-buttons a:hover {
    color: white;
}

.btn_zap {
    background-color: #009900;
}

.btn_telegram {
    background-color: #37AFE2;
}

/*==============================\\
  ||                              ||
  ||          AUDIO PLAYER        ||
  ||                              ||
  \\==============================*/
.audio_player {
    width: 100%;
    max-width: 720px;
    position: absolute;
    display: flex;
    top: 0;
    left: 50%;
    transition: all .5s ease-in-out;
    margin: auto;
    transform: scale(0.8) translate(-60%, -125%);
    opacity: 0;
    z-index: -999;
}

.audio_player.active {
    transform: scale(1) translate(-50%, -100%);
    opacity: 1;
    z-index: 999;
    transition: all .5s ease-in-out;
}

.audio_player .container {
    width: 100%;
    margin: 12px;
    width: 100%;
    justify-content: space-between;
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: initial;
    box-shadow: 0 6px 24px 6px #000a;
}

.audio_header {
    background: linear-gradient(135deg, rgba(150, 0, 0, 1) 0%, rgba(220, 0, 0, 1) 100%);
    display: flex;
    flex-direction: column;
    padding: 16px;
    font-size: 10px;
    position: relative;
}

.audio_header h3 {
    font-size: 1.8em;
    margin-bottom: 0px;
}

.audio_header p {
    font-size: 1em;
    margin-bottom: 0;
    opacity: 0.7;
}

.audio_progressbar {
    background-color: rgba(var(--primaria), 0.1);
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    grid-gap: 12px;
    font-size: 10px;
    color: #999;
    padding: 16px;
}

.progressbar {
    height: 8px;
    background-color: white;
    border-radius: 4px;
    width: 100%;
    position: relative;
}

.progressbar .controler {
    width: 16px;
    height: 16px;
    border-radius: 8px;
    border: 1px solid #caa;
    background-color: white;
    box-shadow: 0 0 6px 0 #0005;
    position: absolute;
    top: 50%;
    left: 0%;
    z-index: 1;
    transform: translate(-50%, -50%);
    transition: scale .3 ease-in-out;
}

.progressbar .controler:hover {
    width: 24px;
    height: 24px;
    border-radius: 12px;
    transition: scale .3 ease-in-out;
}

.progressbar .current {
    height: 8px;
    width: 0%;
    border-radius: 4px;
    background-color: rgb(var(--primaria));
}

.audio_controler {
    padding: 24px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-gap: 36px;
    align-items: center;
    justify-content: center;
    position: relative;
}

.audio_controler div {
    display: flex;
    grid-gap: 24px;
    align-items: center;
    justify-content: center;
}

.audio_controler .material-icons {
    font-size: 32px;
    color: #333;
}

#play_button .material-icons,
#pause_button .material-icons {
    color: #fff;
}

#play_button,
#pause_button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: white;
    background-color: rgba(var(--primaria), 1);
    outline: 0 solid rgba(var(--primaria), 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s;
}

#play_button:hover,
#pause_button:hover {
    background-color: rgba(var(--primaria), 1);
    outline: 2px solid rgba(var(--primaria), 0.5);
    transition: all .3s;
}

#play_button:active,
#pause_button:active {
    background-color: rgba(var(--primaria), 1);
    outline: 6px solid rgba(var(--primaria), 0.5);
    transition: all .1s;
}

#pause_button {
    display: none;
}

.audio_speed {
    color: #999;
    border-radius: 24px;
    font-size: 16px;
    background-color: #eee;
    padding: 4px 8px;
    cursor: pointer;
}

.audio_speed.inactive {
    display: none;
}

.autoScroll {
    color: #999;
    border-radius: 24px;
    font-size: 16px;
    background-color: #eee;
    padding: 4px 8px;
    cursor: pointer;
}

input:checked~.autoScroll {
    background-color: rgb(var(--primaria));
    color: #fff;
}

.btn_audioAvaliable {
    height: 32px;
    display: flex;
    grid-gap: 8px;
    align-items: center;
    border-radius: 16px;
    background-color: #e5e5e5;
    color: #555;
    padding: 0 16px;
    cursor: pointer;
    font-size: 14px;
}

/*==============================\\
  ||                              ||
  ||          TEMA ESCURO         ||
  ||                              ||
  \\==============================*/

body.dark {
    background-color: black;
    color: white;
}

body.dark article {
    background-color: #222;
}

body.dark nav {
    background-color: black;
}

body.dark .menu_left {
    background-color: #222;
    color: white;
}

body.dark #news_list a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-right: 8px solid rgba(var(--primaria), 1);
    color: #fff;
    transition: all 0.3s;
}

body.dark #news_list a.current {
    color: white;
}

body.dark .article-header {
    color: #fff6;
    border-color: #fff6;
}

body.dark #article-alert {
    box-shadow: 0 -2px 32px 0 #5009;
    background-color: rgb(30, 0, 0);
    color: white;
    border: 1px solid rgb(var(--primaria));
}

body.dark .nav_menu {
    background-color: #000;
}

body.dark .progress-bar {
    background-color: rgb(var(--primaria));
}

.whatsapp_box {
    display: flex;
    grid-gap: 12px;
    background-color: #275152;
    color: white;
    border-radius: 12px;
    margin: 0 12px 48px 12px;
    font-size: 12px;
}

.whatsapp_box div {
    padding: 12px;
    display: Flex;
    grid-gap: 8px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.whatsapp_box img {
    width: 64px;
    height: auto;
}

.whatsapp_box h2,
.whatsapp_box p,
p.whatsapp {
    margin: 0;
}

.whatsapp_box a {
    background-color: #090;
    padding: 8px 24px;
    border-radius: 24px;
    color: #fff;
    cursor: pointer;
    display: inline-block;
}

.download_pdf {
    background-color: #eee;
    border-radius: 8px;
    color: #888;
    padding: 8px 32px;
    margin: auto;
    display: flex;
    align-items: center;
    grid-gap: 12px;
}

/***

    EVALUTION BOX

***/

.evaluation-box{
  padding: 16px;
  border-radius: 8px;
  background-color: #0001;
}

.evaluation-box h3{
    margin:0;
    font-size:18px;
}
.evaluation-box p{
    margin-bottom: 0;
}
.evaluation-box .star-list{
    display:flex;
    grid-gap:8px;
}
.evaluation-box .line{
    display: flex;
    align-items: center;
    justify-content: space-between;
}

@media (max-width: 600px) {
    .line {
        flex-direction:column;
    }
}
.evaluation-box input[type="radio"]{
    display:none;
}

.evaluation-box i.material-icons{
    font-size:40px;
    cursor:pointer;
}
.evaluation-box i.material-icons.not-checked{
    color:#0004;
    display:block;
}
.evaluation-box i.material-icons.checked{
    color:#f90;
    display:none;
}

.evaluation-box label.active i.material-icons.not-checked{
    display:none;
}
.evaluation-box label.active i.material-icons.checked{
    display:block;
}

.evaluation-box .comment-container{
    margin: 16px 0;
    width:100%;
}

.comment-container{
    display:none;
    flex-direction: column;
    gap: 8px;
    border-top: 1px solid #999;
    padding-top: 16px;
}

.evaluation-box .btn{
      outline: 0;
      border: 0;
      background-color: rgb(var(--primaria));
      color: #fff;
      display: block;
      margin: 16px 0 0 auto;
      padding: 8px 16px;
      border-radius: 4px;
      cursor: pointer;
}
textarea {
  resize: none;
  width: 100%;
  overflow: scroll;
  border-radius: 4px;
  padding: 8px;
  border:1px solid;
}