/**
 * Ludoly
 * https://ludoly.co
 */
@import url(variables.css);
@import url(button.css);
@import url(form.css);
@import url(messages.css);
@import url(tabs.css);

* {
  margin: 0;
  padding: 0;
}

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

body {
  background-color: var(--color-body);
  color: var(--color-text);
  font-family: var(--font-family);
  font-optical-sizing: auto;
  font-style: normal;
  font-weight: normal;
  line-height: 1.5;
}

main {
  background-color: var(--color-main);
}

body:not(.home) .content {
  background-color: var(--color-body);
    border-bottom: 1px solid silver;
  padding: 2rem 1rem;
}

@media only screen and (min-width: 600px) {
  main {
    padding: 1rem;
  }
  body:not(.home) .content {
    border-bottom: var(--border-main);
    border-left: var(--border-main);
    padding: 2rem;
  }
}

h2 {
  margin-bottom: 1rem;
}

h3,
h4 {
  margin: 1rem 0 .5rem;
}

p,
ul {
  margin-bottom: .5rem;
}

ol,
ul {
  padding-left: 1rem;
}

a {
  color: var(--color-link);
  overflow-wrap: break-word;
  text-decoration: none;
  word-break: break-word;
}

img {
  display: block;
  width: 100%;
}

/* Header */

header {
  align-items: center;
  background-color: var(--color-ludoly);
  display: flex;
  justify-content: space-between;
  padding: 1rem;
}

.subheader {
  background-color: var(--color-subheader);
  gap: .5rem;
  margin: .5rem;
  padding: .5rem 1rem;
  text-align: center;
}

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

h1 a {
  color: var(--color-site-title);
}

.site-title {
  color: var(--color-site-title);
  display: flex;
  gap: 1rem;
}

.slogan-datetime {
  border-left: 1px solid;
  display: none;
  font-weight: bold;
  margin: 0;
  padding-left: 1rem;
}

@media only screen and (min-width: 600px) {
  .slogan-datetime {
    display: block;
  }
}

.buttons {
  display: flex;
  gap: .5rem;
}

.user-links {
  align-items: center;
  color: var(--color-text-inverse);
  display: flex;
  gap: 1rem
}

.user-links p {
  margin: 0;
}

/* Skip to main content link */

.skip-to-main-content-link {
  background-color: var(--color-text);
  color: var(--color-text-inverse);
  left: -1000rem;
  opacity: 0;
  padding: 1rem;
  position: absolute;
  z-index: 1000;
}

.skip-to-main-content-link:focus {
  left: 50%;
  opacity: 1;
  transform: translateX(-50%);
}

/* Page title */

.page-title {
  border-bottom: var(--border-page-title);
  border-top: var(--border-page-title);
  margin-bottom: 2rem;
  padding: 2rem 0;
  text-align: center;
}

/* Footer */

footer {
  padding: 1.5rem 1rem;
}

footer ul {
  display: flex;
  gap: .5rem;
  padding-left: 0;
}

footer li {
  list-style: none;
}

footer p:last-child {
  margin: 0;
}

footer a {
  text-decoration: underline;
}

footer a:hover {
  background-color: var(--color-ludoly);
  color: white;
  outline: 3px solid var(--color-ludoly);
}
