/* 
 * Basics
 */

:root {
  background-color: var(--bg-color-primary);
  background-image: linear-gradient( -20deg, var(--bg-color-primary), var(--bg-color-secondary));
  box-shadow: 2rem 1rem 10rem 1rem var(--bg-color-tertiary) inset;
  color: var(--main-color);
  font-size: 20px;
  line-height: 1.5rem;
  font-family: sans-serif;
  min-width: 100%;
  min-height: 100%;

  color-scheme: light dark;

  /* Light mode colors */
  --main-color: darkslateblue;
  --bg-color-primary: palegoldenrod;
  --bg-color-secondary: peachpuff;
  --bg-color-tertiary: thistle;
  --focus-color: lightsalmon;
}

@media (prefers-color-scheme: dark) {
  :root {
    /* Dark mode colors */
    --main-color: lavender;
    --bg-color-primary: darkslategray;
    --bg-color-secondary: saddlebrown;
    --bg-color-tertiary: darkslateblue;
    --focus-color: mediumslateblue;
  }
}

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

:focus {
  outline: 0;
}

:focus-visible {
  outline: 0.25rem solid var(--focus-color);
}

a {
  color: inherit;
  text-decoration-style: dotted;
  border-radius: 0.25rem;
}

a:hover {
  text-decoration-style: solid;
}

body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* 
 * Content
 */

main {
  flex: 1;
}

.action,
.idea,
.footer {
  width: 100%;
  max-width: 36rem;
  margin: 0 auto;
}

.action,
.idea {
  margin-bottom: 2rem;
}

.randomize-button {
  appearance: none;
  cursor: pointer;
  text-decoration: none;
  color: currentcolor;
  background-color: transparent;
  height: auto;
  margin: 0;
  font: inherit;
  border: 1.5px solid currentcolor;
  box-shadow: 0 0.4rem 0 0 currentcolor;
  padding: 0.75rem 1rem;
  border-radius: 0.25rem;
  font-weight: 400;
  overflow-wrap: break-word;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.randomize-button:hover {
  background-color: var(--focus-color);
}

.randomize-button:active {
  /* Makes it look pressed down */
  transform: translateY(0.125rem);
  box-shadow: 0 calc(0.4rem - 0.125rem) 0 0 currentcolor;
}

.randomize-button svg {
  fill: currentcolor;
  width: 1.5rem;
  height: 1.5rem;
}

.randomize-button label {
  cursor: inherit;
}

.idea {
  padding: 2rem;
  border: 2.5px dotted currentColor;
  border-radius: 1rem;
}

.idea-name {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 auto;
}

.idea-name,
.idea-description {
  overflow-wrap: break-word;
}

.idea-description:not(:empty) {
  margin: 1rem auto 0;
}

.footer {
  font-size: 0.666rem;
}

@media (max-width: 600px) {
  :root {
    font-size: 18px;
  }

  body {
    padding: 1.5rem;
  }
  
  .action,
  .idea {
    margin-bottom: 1.5rem;
  }
}