/*----------  Colors  ----------*/

:root {
  --dk-color: #F896C8;
  --mid-color: #FFDAED;
  --lt-color: #FFF7FB;
  --dkest-color: #E664AE;
  --shadow: #F896C880;
}

/*----------  Dark Mode  ----------*/

[data-theme='dark'] {
  --dk-color: #6A3E9A;
  --mid-color: #4A227B;
  --lt-color: #17143B;
  --dkest-color: #E7C8E7;
  --shadow: #4A227B80;
}

#theme-toggle {
  position: absolute;
  top: 20px;
  right: 20px;
  transition: all .3s ease;
}

button {
  width: fit-content;
  padding: 5px 10px;
  border: 2px solid var(--dk-color);
  border-radius: 5px;
  background: var(--lt-color);
  box-shadow: 0 2px 2px 1px var(--shadow);
  color: inherit;
  text-align: center;
  font-size: 1rem;
}

button:hover {
  background: var(--lt-color);
  cursor: pointer;
}

.dark-only {
  display: none;
}

[data-theme='dark'] .light-only {
  display: none;
}

[data-theme='dark'] .dark-only {
  display: block;
}

/*----------  General  ----------*/

* { 
  margin:0;
  padding:0;
  box-sizing: border-box;
  scrollbar-color: var(--dkest-color) var(--mid-color);
  scrollbar-width: thin;
}

body {
  background: var(--mid-color) url('/decorations/backgrounds/Background_White_Dots.png');
  font: 1rem sans-serif;
  color: var(--dkest-color);
  line-height: 1.5;
  text-transform: lowercase;
}

main {
  margin: 30px 30px 10px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/*----------  Text  ----------*/

ul {
  margin-left: 20px;
  line-height: 1.5;
  list-style-position: outside;
}

p {
  margin: 10px 0;
  line-height: 1.5;
}

a {
  color: var(--dk-color);
}

a:hover, a:focus {
  text-decoration:none;
}

dl {
  display: grid;
  grid-template-rows: max-content auto;
  gap: 10px 0;
}

dt {
  font-weight: bold;
}

dd {
  margin: 0;
  text-indent: 1.5em;
}

.caps {
  text-transform: uppercase;
}

.highlight-mark {
  padding: 1px 4px;
  border-radius: 3px;
  background-color: var(--mid-color);
  font-weight: 700;
}

.emoticon{
  min-width: 20px;
  min-height: 20px;
  vertical-align: bottom;
  display: inline-block;
  position: relative;
  bottom: 2px;}

/*----------  Header  ----------*/

#intro-container {
  width: 80%;
  max-width: 1000px;
  margin: 25px auto;
  border: 2px solid var(--dk-color);
  border-radius: 5px;
  background: var(--lt-color);
  box-shadow: 0 2px 2px 1px var(--shadow);
  overflow: hidden;
  position: relative;
}

#intro {
  padding: 20px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 20px;
}

#intro h1 {
  margin: 0;
  color: var(--dk-color);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.5;
}

.intro-img {
  width: 100px;
  height: 100px;
  border: 3px solid #fff;
  outline: 2px solid var(--dk-color);
  border-radius: 5px;
  object-fit: cover;
}

/*----------  Nav  ----------*/

nav {
  margin-top: 10px;
  border-top: 2px dashed var(--dk-color); 
  font-size: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

nav a {
  min-width: 100px;
  padding: 5px 10px;
  border-right: 2px dashed var(--dk-color);
  text-align: center;
}

.active {
  background: var(--mid-color);
  background-clip: padding-box;
}

nav a {
  text-decoration: none;
}

nav a:hover {
  text-decoration: underline;
}

/*----------  Lists  ----------*/

section {
  margin-bottom: 20px;
  padding: 15px;
  border: 2px solid var(--dk-color);
  border-radius: 5px;
  background: var(--lt-color);
  box-shadow: 0 2px 2px 1px var(--shadow);
}

h2 {
  padding-bottom: 5px;
  margin-bottom: 10px;
  border-bottom: .5px solid var(--dk-color);
  font-size: 1.1rem;
}

.subtitle {
  font-weight: normal;
}

.list-icon {
  float: right;
  margin: 0 0 5px 10px;
  width:  100px;
  height: 100px;
  border-radius: 5px;
  object-fit: cover;
}

.content {
  max-height: 300px;
  padding: 10px;
  overflow: auto;
}

footer {
  padding: 5px;
  font-size: .9rem;
  text-align: right; 
}

footer p {
  margin: 0;
}

/*----------  Mobile  ----------*/

@media only screen and (max-width: 810px) {
  #intro-container {
    width: 90%;
  }
  
  main {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
}

/*----------  Back to Top  ----------*/

#back-to-top {
  width: fit-content;
  margin: 0 auto 20px;
  padding: 5px 10px;
  border: 2px solid var(--dk-color);
  border-radius: 5px;
  background: var(--lt-color);
  box-shadow: 0 2px 2px 1px var(--shadow);
  font-size: 1rem;
  text-align: center;
}

#back-to-top a {
  text-decoration: none;
}