@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300..700;1,300..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');
@import "https://www.nerdfonts.com/assets/css/webfont.css";

:root{
  --theme-text: #f5f4e9;
  --theme-bg: #282729;
  --theme-fg: #4e4d50;
  --theme-shadow: #1d1c20;
}

.writer-text{
  font-family: "Cormorant Garamond", serif;
  font-weight: 400;
  font-style: normal;
}

*{
  font-family: "Playfair Display", serif;
  font-weight: 400;
  font-style: normal;
  color: var(--theme-text);
}

body{
  margin: 0;
  padding: 0;
  background-color: var(--theme-bg);
  display: grid;
  grid-template-rows: 5vh 90vh 5vh;
}


#dark-bg{
  z-index: 2;
  background-color: #00000050;
  position: absolute;
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
  backdrop-filter: blur(2px);
}
#fg-window{
  z-index: 3;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: transparent;
  *{
    pointer-events: all;
  }
}
#md-helper{
  background-color: var(--theme-bg);
  border-radius: 1rem;
  width: 30rem;
  height: 90vh;
  overflow-y: scroll;
  padding: 0rem 2rem;
}
#md-helper-grid{
  display: grid;
  grid-template-columns: auto auto;
  column-gap: 1rem;
}
.separator{
  grid-column: 1 / -1;
  background-color: var(--theme-text);
  height: 0.1rem;
}

#top-bar{
  grid-row: 1;
  display: grid;
  grid-template-columns: 2rem 1fr 2rem 1fr 2rem;
}
#statistics{
  grid-column: 2;
  display: flex;
  *{
    padding: 0 1rem;
  }
}
#buttons{
  grid-column: 4;
  display: flex;
  *{
    padding: 0 1rem;
  }
}
.button{
  text-shadow: 2px 2px 0px black;
  cursor:pointer;
  border-radius: 0.3rem;
  transition: text-shadow;
  transition-duration: 250ms;
}
.button:hover{
  text-shadow: 0px 0px 0px black;
}
#stat-time{
  justify-self: end;
  cursor: pointer;
}

.hidden-text{
  color:transparent;
}

#writer-container{
  grid-row: 2;
  display: grid;
  grid-template-columns: 2rem 1fr 2rem 1fr 2rem;
  height: 90vh;
}
#writer{
  grid-column: 2;
  outline: none;
  border: none;
  font-size: 1.3rem;
  background-color: transparent;
  resize: none;
  color: var(--theme-text);
  box-shadow: inset 0px 0px 3px var(--theme-fg);
  padding: 0.5rem 1rem;
  border-radius: 1rem;
  text-shadow: 2px 2px 2px var(--theme-shadow);
}
#md-preview{
  grid-column: 4;
  background-color: transparent;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  overflow-y: scroll;
}
#bottom-bar{
  grid-row: 3;
}

a:link {
    color: #916edb;
    border-bottom: #916edb;
}
a:visited {
    color: purple;
    border-bottom: purple;
}
a:hover {
    color: #e3a4e8;
    border-bottom: #e3a4e8;
}
a:active {
    color: skyblue;
}

.discord-bold {
    font-weight: bold;
}

.discord-italic {
    font-style: italic;
}

.discord-underline {
    text-decoration: underline;
}

.discord-strikethrough {
    text-decoration: line-through;
}

.discord-inline-code, .discord-code-block {
    background-color: rgba(255, 255, 255, 0.1);
    font-family: monospace;
    padding: 2px 4px;
    border-radius: 4px;
}
/* Headings */
.discord-heading {
    display: block;
    font-weight: bold;
}
.discord-h1 { font-size: 1.5rem; margin: 0.5rem 0; }
.discord-h2 { font-size: 1.3rem; margin: 0.4rem 0; }
.discord-h3 { font-size: 1.1rem; margin: 0.3rem 0; }

/* Subtext */
.discord-subtext {
    font-size: 0.8rem;
    color: #a0a0a0;
}

/* Blockquotes */
.discord-block-quote {
    display: block;
    border-left: 4px solid #4f545c;
    padding-left: 8px;
    margin: 4px 0;
    color: #dcddde;
}

/* Spoilers (Click to reveal effect) */
.discord-spoiler {
    background-color: #202225;
    color: transparent;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.2s;
}
.discord-spoiler:hover, .discord-spoiler.revealed {
    background-color: #4f545c;
    color: #fff;
}

.hidden{
  display: none !important;
}
.col1{
  grid-column: 1;
}
.col2{
  grid-column: 2;
}
