/* RESET (by piccalil.li) */

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

html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

body, h1, h2, h3, h4, p,
figure, blockquote, dl, dd {
  margin-block-end: 0;
}

ul[role='list'],
ol[role='list'] {
  list-style: none;
}

body {
  min-height: 100vh;
  line-height: 1.5;
}

h1, h2, h3, h4,
button, input, label {
  line-height: 1.1;
}

h1, h2,
h3, h4 {
  text-wrap: balance;
}

a:not([class]) {
  text-decoration-skip-ink: auto;
  color: currentColor;
}

img,
picture {
  max-width: 100%;
  display: block;
}

input, button,
textarea, select {
  font-family: inherit;
  font-size: inherit;
}

textarea:not([rows]) {
  min-height: 10em;
}

:target {
  scroll-margin-block: 5ex;
}

/* REAL CSS */

@font-face {
	font-family: "PR 2019";
	font-weight: 400;
	src: url("assets/Power Rangers 2019.ttf");
}

@font-face {
	font-family: "Ruda";
	font-weight: 400;
	src: url("assets/Ruda-VariableFont_wght.ttf");
}

body {
	background: url("assets/bg_header.gif");
	font-family: "Ruda", sans-serif;
}

header {
	font-family: "PR 2019", sans-serif;
}

header h1 {
	font-size: 4em;
	letter-spacing: 3px;
}

header img {
	width: 20%;
	margin: auto auto -5em auto;
}

.wrapper {
	margin: 1em auto;
	display: block;
	background: white;
	width: calc(40% - 1em);
	padding: 1em;
	text-align: center;
	border-radius: 10px;
	border: 1.5px solid lightyellow;
}

article#text {
	text-align: justify;
}

p:first-child {
	margin: 0;
}

a:link, a:link:active, a:visited, a:visited:active {
	text-underline-offset: 3px;
	text-decoration-thickness: 1.5px;
	color: #ea535d;
}

a:not(:is(:hover, :focus)) {
  text-decoration-color: 
    color-mix(in srgb, currentColor, transparent 50%);
}

::selection {
	background: #ffdc01;
	color: black;
}

/* tympanus.net button animation */

.button--pandora {
	margin-top: 1rem;
	background: lightyellow;
	color: white;
	font-weight: 700;
	padding: 0;
	border-radius: 10px;
	border-color: #ec656e;
	border-width: 1px;
}

.button--pandora:active {
	transform: scale(95%);
}

.button--pandora span {
	display: block;
	background: #ec656e;
	padding: 1rem 2rem;
	border: 1px solid lightyellow;
	border-radius: 10px;
	transform: translate3d(-4px, -4px, 0);
	transition: transform 0.3s cubic-bezier(0.7, 0, 0.2, 1);
}

.button--pandora:hover span {
	transform: translate3d(-8px, -8px, 0);
}

@supports (-webkit-text-stroke: 1.5px lightyellow) {
  header h1 {
    -webkit-text-stroke: 1.5px lightyellow;
    -webkit-text-fill-color: #ea535d;
  }
}
