/** headline font https://fonts.google.com/specimen/Rubik+Doodle+Shadow/license?categoryFilters=Appearance:%2FTheme%2FShaded */
@font-face {
  font-family: 'Rubik Doodle Shadow';
  src:
    local('Rubik Doodle Shadow'),
    url('RubikDoodleShadow-Regular.woff') format('woff');
}

/** reset pico.css */
:root {
  --pico-typography-spacing-vertical: 2rem;
  --pico-font-family: 'Arial', sans-serif;
  --pico-form-element-spacing-vertical: .3rem;
  --pico-form-element-spacing-horizontal: .8rem;
  --pico-box-shadow: unset;
  --pico-card-sectioning-background-color: unset;
  --pico-mark-background-color: yellow !important;
  --pico-mark-color: black !important;
  --custom-box-shadow: #015886;
}

body {
  hyphens: auto;
}

/** Headline Styles */
h1 {
  font-family: 'Rubik Doodle Shadow', sans-serif;
  text-transform: uppercase;
  font-size: clamp(3rem, 1.875rem + 2vw, 4.5rem);
  letter-spacing: 0.33rem;
  margin-top: clamp(3rem, 1.875rem + 2vw, 5rem);
  margin-bottom: clamp(5rem, 1.875rem + 2vw, 8rem);
  text-align: center;
}

hgroup>:not(:first-child):last-child {
  --pico-color: var(--pico-color);
}

h2 {
    --pico-typography-spacing-top: 4rem;
}

/** Button Styles */
input[type="submit"], 
button:not([class="secondary"]),
.btn {
    transition: box-shadow 0.3s ease;

    background: var(--pico-primary-background);
    border: solid 1px var(--custom-box-shadow);

    box-shadow: 1px 0px 0px var(--custom-box-shadow),0px 1px 0px var(--custom-box-shadow),
    2px 1px 0px var(--custom-box-shadow),1px 2px 0px var(--custom-box-shadow),
    3px 2px 0px var(--custom-box-shadow),2px 3px 0px var(--custom-box-shadow),
    4px 3px 0px var(--custom-box-shadow),3px 4px 0px var(--custom-box-shadow),
    5px 4px 0px var(--custom-box-shadow),4px 5px 0px var(--custom-box-shadow),
    6px 5px 0px var(--custom-box-shadow),5px 6px 0px var(--custom-box-shadow),
    7px 6px 0px var(--custom-box-shadow),6px 7px 0px var(--custom-box-shadow),
    8px 7px 0px var(--custom-box-shadow),7px 8px 0px var(--custom-box-shadow),
    9px 8px 0px var(--custom-box-shadow),8px 9px 0px var(--custom-box-shadow);
}

input[type="submit"]:focus,
button:not([class="secondary"]):focus {
    outline: 3px solid yellow;
}

/* When the button is clicked */
button:not([class="secondary"]):active,
input[type="submit"]:active {
    transition: box-shadow 0.3s ease;
    box-shadow: 0px 0px 0px var(--pico-primary-hover-background);
}

/** General reusable styles */
.font-headline {
  font-family: 'Rubik Doodle Shadow', sans-serif;
  text-transform: uppercase;
}

.rank {
  font-size: clamp(2rem, 1.875rem + 2vw, 2.5rem);
  margin-right: 1rem;
  color: var(--pico-primary);
  letter-spacing: 0.33rem;
}

.font-lg {
  font-size: 1.3rem;
}

.mb-sm {
   margin-bottom: .5rem;
}

.mb-0 {
  margin-bottom: 0;
}

.mt-1 {
  margin-top: 1rem;
}

.flex {
  display: flex;
  flex-wrap: wrap;
}

.block {
  display: block !important;
}

.msg {
  width: 100%;
  max-width: 40rem;
  text-align: center;
  margin: auto;
}

.small {
  font-size: .8rem;
}

@media (min-width: 768px) {
  .gap-lg {
    grid-gap: 5rem;
  }

  .grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .col-span-2 {
    grid-column: span 2 / span 2;
  }
}

/** custom ol style */
ol.small.flex {
  padding-left: 1rem;
  font-family: 'Courier New', monospace;
}

ol.small.flex>li {
  margin-right: 3rem;
}

/* custom ul style */
ul.iterated {
  padding-left: unset;
}

ul.iterated > li {
  list-style-type: none;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 2px solid var(--pico-color);
  border-radius: 2% 6% 5% 4% / 1% 1% 2% 4%;
  position: relative;
}

ul.iterated > li > * {
  position: relative;
  z-index: 1; /* Bring content forward */
}


ul.iterated > li.no-border {
  border-bottom: 0;
}

ul.iterated > li.no-border::before {
    content: unset;
}

/* Header */
#theme_switcher {
  width: 20px; 
  height: 20px;
  display: inline-block;
}

header a {
	padding: 0.5rem;
	line-height: 1.75;
	font-size: 1.25em;
}



/** Style Blockquote*/
blockquote {
    text-align: center;
    font-size: 1.3rem;
    margin-top: 4rem;
    margin-bottom: 4rem;
    font-family: 'Courier New', monospace;
    border: none;
}

/** Style article*/
article {
    display: inline-block;
    border: 2px solid var(--pico-color);
    border-radius: 2% 6% 5% 4% / 1% 1% 2% 4%;
    position: relative;
    padding: clamp(1rem, 1.875rem + 2vw, 3rem);
    
    &::after {
        content: '';
        border: 1px solid var(--pico-color);
        display: block;
        width: 100%;
        height: 100%;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate3d(-50%, -50%, 0) scale(1.015) rotate(0.5deg);
        border-radius: 1% 1% 2% 4% / 2% 6% 5% 4%;
        z-index: -1;
    }
}

article>header {
  font-family: 'Rubik Doodle Shadow', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.2rem;
  color: var(--pico-primary);
  font-size: 1.8rem;
  text-align: center;
  border: unset;
  background-color: unset;
}

article>footer {
  font-family: 'Courier New', monospace;
  border: unset;
  background-color: unset;
}

/** Funny stuff*/
.easteregg {
  color: var(--pico-background-color);
}
