/*
 * You can just delete everything here or keep whatever you like, it's just a
 * quick baseline!
 */
:root {
  --color-foreground: hsl(0, 0%, 7%);
  --color-background: hsl(0, 0%, 100%);
  --color-links: hsl(213, 100%, 52%);
  --color-links-hover: hsl(213, 100%, 43%);
  --color-border: hsl(0, 0%, 82%);
  --font-body: -apple-system, 'Segoe UI', Helvetica Neue, Helvetica, Roboto,
    Arial, sans-serif, system-ui, 'Apple Color Emoji', 'Segoe UI Emoji';
}

html {
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

:-moz-focusring {
  outline: auto;
}

:focus {
  outline: var(--color-links) solid 2px;
  outline-offset: 2px;
}

html,
body {
  padding: 0;
  margin: 0;
  background-color: var(--color-background);
  color: var(--color-foreground);
}

body {
  font-family: var(--font-body);
  line-height: 1.5;
}

/* a {
  color: var(--color-links);
  text-decoration: none;
} */

a:hover {
  color: var(--color-links-hover);
  text-decoration: underline;
}

hr {
  display: block;
  height: 1px;
  border: 0;
  background-color: var(--color-border);
  margin-top: 2rem;
  margin-bottom: 2rem;
}

input:where([type='text']),
input:where([type='search']) {
  display: block;
  border: 1px solid var(--color-border);
  width: 100%;
  font: inherit;
  line-height: 1;
  height: calc(1ch + 1.5em);
  padding-right: 0.5em;
  padding-left: 0.5em;
  background-color: hsl(0 0% 100% / 20%);
  color: var(--color-foreground);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.app-container {
  --gutter: 16px;
  width: 1024px;
  max-width: calc(100% - var(--gutter) * 2);
  margin-right: auto;
  margin-left: auto;
  display: flex;
  justify-content: center;
}

.remix-app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: calc(100vh - env(safe-area-inset-bottom));
}

.remix-app > * {
  width: 100%;
}

.remix-app__header {
  padding-top: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}

.remix-app__header-content {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.remix-app__header-home-link {
  width: 106px;
  height: 30px;
  color: var(--color-foreground);
}

.remix-app__header-nav ul {
  list-style: none;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 1.5em;
}

.remix-app__header-nav li {
  font-weight: bold;
}

.remix-app__main {
  flex: 1 1 100%;
}

.remix-app__footer {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.remix-app__footer-content {
  display: flex;
  justify-content: center;
  align-items: center;
}

:root {
  --blue: #4d86bf;
  --dark-blue: #375e85;
  --red: #9d1c13;
  --dark: #444;
  --green: #47804d;
  --white: #fff;
}

*[tabindex='0']:focus:not(.focus-visible),
button:focus:not(.focus-visible) {
  outline: none;
}

body {
  background-color: var(--blue);
  font-family: sans-serif;
  color: var(--white);
}

h1 {
  margin-bottom: 0;
}

/* h1::before,
h1::after {
  display: inline-block;
  content: '';
  width: 50px;
  height: 30px;
  background-image: url('/holly.png');
  background-size: 40px;
  background-repeat: no-repeat;
}
h1::before {
  transform: scaleX(-1);
  filter: FlipH;
} */

h2 {
  margin-top: 0;
}

a {
  text-decoration: underline;
  color: var(--white);
}

header a {
  text-decoration: none;
}
.close-button {
  position: absolute;
  right: 10px;
  top: 10px;
  border: none;
  background: none;
  font-size: 25px;
}

.App {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: sans-serif;
  text-align: center;
}

.door {
  height: 175px;
  width: 150px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  cursor: default;
  margin: 5px;
  overflow: hidden;
  border-radius: 10px;
  background-color: var(--green);
  transition: 300ms;
}
a.door {
  text-decoration: none;
}

a.door:hover {
  cursor: pointer;
  text-decoration: none;
  outline: var(--color-links) solid 2px;
  outline-offset: 2px;
}

.door.locked img {
  margin-top: 32px;
  height: 70px;
}

button {
  cursor: pointer;
}

.locked-number {
  position: absolute;
  right: 0;
  top: 0;
  margin: 10px;
  opacity: 0.6;
}

button:disabled {
  cursor: not-allowed;
}

.door.unlocked .number {
  font-size: 70px;
  padding-top: 16px;
  color: var(--white);
}

.door .bottom {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 6px 0 0 0;
  border-radius: 0;
  border: none;
  height: 40px;
  font-size: 1.2em;
  color: var(--white);
}

.door.locked .bottom {
  background-color: var(--dark);
}

.door.unlocked .bottom {
  background-color: var(--red);
}

.question {
  padding-bottom: 16px;
}

summary {
  cursor: pointer;
  display: inline-block;
  list-style-type: none;
  background-color: white;
  color: var(--blue);
  padding: 2px 10px;
  border-radius: 3px;
}

details:not([open]) summary::before {
  content: 'Show ';
}

details[open] summary::before {
  content: 'Hide ';
}

.answer {
  padding-top: 16px;
}

.container {
  display: flex;
  max-width: 850px;
  flex-wrap: wrap;
  justify-content: center;
}

.about {
  text-align: center;
  display: flex;
  flex-direction: column;
  max-width: 850px;
  justify-content: center;
}

.about div,
.about p {
  font-size: 1.4em;
}

.about iframe {
  width: 560px;
  height: 315px;
}

.about-button {
  margin: 0;
  border-radius: 5px;
  border: none;
  height: 30px;
  font-size: 0.9em;
  background-color: var(--dark-blue);
  color: var(--white);
}

[data-reach-dialog-content] {
  width: 50vw;
  font-size: 20px;
  display: flex;
  flex-direction: column;
  align-items: left;
  margin: 10vh auto;
  border-radius: 10px;
  background: var(--blue) !important;
  padding: 2rem;
  outline: none;
  position: relative;
}

[data-reach-dialog-content] button.show-answer {
  border: none;
  padding: 10px 20px;
  background-color: var(--red);
  color: var(--white);
  font-size: 1em;
}

@media only screen and (max-device-width: 800px) {
  [data-reach-dialog-content] {
    width: 90vw !important;
  }

  .door {
    zoom: 0.9;
  }
}

@media only screen and (max-device-width: 480px) {
  [data-reach-dialog-content] {
    width: 90vw !important;
    padding: 1rem !important;
  }

  .about iframe {
    width: 364px;
    height: 205px;
  }

  .door {
    zoom: 0.78;
  }
}
