@import url(temas/temaMargarida.css);
@import url(temas/temaFlamingo.css);
@import url(temas/temaFloresta.css);
@import url(temas/temaMeianoite.css);

:root {
  --temaLavanda-50: #fdfaff;       /* lilás muito claro */
  --temaLavanda-100: #f8f1ff;      /* lavanda suave */
  --temaLavanda-200: #e9caff;      /* lavanda pastel */
  --temaLavanda-300: #dabcf2;      /* lilás pastel */
  --temaLavanda-400: #c59be6;      /* roxo suave */
  --temaLavanda-500: #ae7bd4;      /* roxo lavanda */
  --temaLavanda-600: #8f5db3;      /* roxo médio */
  --temaLavanda-700: #6e4291;      /* roxo escuro */
  --temaLavanda-800: #4b2c66;      /* fundo escuro roxo */
  --temaLavanda-900: #301b40;      /* ainda mais escuro */
  --temaLavanda-950: #1c0e24;      /* fundo profundo */

  --cor-fundo: var(--temaLavanda-100);
  --cor-texto: var(--temaLavanda-800);
  --cor-superficie: var(--temaLavanda-300);
  --cor-destaque: var(--temaLavanda-800);
  --cor-suave: var(--temaLavanda-300);
  --cor-descricao: var(--temaLavanda-500);
}

body {
  --text: var(--cor-texto);
  --bg: var(--cor-fundo);
  color: var(--text);
  background-color: var(--bg);
  font-family: mono;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}

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

header {
  font-size: 2rem;
  margin-bottom: 20px;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: auto;
  max-width: 750px;
  padding: 0 20px;
  overflow: hidden;
}

section, article, details, summary {
  flex-direction: column;
  width: 100%;
  margin: 10px auto;
}

footer {
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--cor-descricao);
  text-align: center;
  width: 100%;
}

p {
  margin: 5px;
}

hr {
  margin-bottom: 10px;
  width: 100%;
  border: 1px dotted var(--cor-descricao);
}

a {
  color: var(--cor-destaque);
}

#modalTema {
	max-width: 220px;
}

form {
	display: flex;
	flex-direction: column;
	align-items: end;
}

.atualizacao,
.descricao {
  color: var(--cor-descricao);
  text-align: center;
}

.destaque {
  color: var(--cor-destaque);
}

.sobre {
  margin-top: 10px;
  cursor: pointer;
}

.temaMargarida, .temaMeianoite, .temaFlamingo, .temaFloresta {
  font-size: x-large;
}

.temaMargarida {
  color: rgb(221, 185, 41);
}

.temaMeianoite {
  color: rgb(58, 26, 153);
}

.temaFlamingo {
  color: rgb(248, 126, 147);
}

.temaFloresta {
  color: rgb(12, 73, 12);
}

details p {
	margin-top: 25px;
}

[contenteditable="true"] {
  border: 2px dashed var(--cor-destaque);
  padding: 1rem;
}

summary {
  font-weight: bold;
  cursor: pointer;
}

details {
  --dt-bg: var(--cor-superficie);
  --dt-text: var(--cor-texto);
  margin-bottom: 20px;
  background-color: var(--dt-bg);
  border: 1px solid var(--dt-text);
  border-radius: 8px;
  padding: 15px;
  width: 90%;
  max-width: 600px;
  color: var(--dt-text);
}

dialog {
  --dl-bg: var(--cor-superficie);
  --dl-text: var(--cor-texto);
  margin: auto;
  background-color: var(--dl-bg);
  color: var(--dl-text);
  border: none;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  width: 90%;
  max-width: 500px;
}

dialog::backdrop {
  background-color: rgba(26, 26, 28, 0.871);
  backdrop-filter: blur(5px);
}

button {
  --bt-text: var(--cor-texto);
  --bt-bg: var(--cor-superficie);
  margin-top: 10px;
  padding: 10px 15px;
  font-size: 1rem;
  border: 1px solid var(--bt-text);
  border-radius: 5px;
  background-color: var(--bt-bg);
  color: var(--bt-text);
  cursor: pointer;
}

button:hover {
  --bt-text-hover: var(--cor-texto);
  --bt-bg-hover: var(--cor-fundo);
  background-color: var(--bt-text-hover);
  color: var(--bt-bg-hover);
}

input[type=radio] {
  display: none;
}

#menuAcoes {
  right: 0;
  top: 0;
  position: absolute;
  margin: 10px;
}
