@font-face {
  font-family: "Water Guy";
  src: url("WaterGuy-Regular.woff2") format("woff2"),
    url("WaterGuy-Regular.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* START CSSRESET */

a,
abbr,
acronym,
address,
applet,
article,
aside,
audio,
b,
big,
blockquote,
body,
canvas,
caption,
center,
cite,
code,
dd,
del,
details,
dfn,
div,
dl,
dt,
em,
embed,
fieldset,
figcaption,
figure,
footer,
form,
h1,
h2,
h3,
h4,
h5,
h6,
header,
hgroup,
html,
i,
iframe,
img,
ins,
kbd,
label,
legend,
li,
mark,
menu,
nav,
object,
ol,
output,
p,
pre,
q,
ruby,
s,
samp,
section,
small,
span,
strike,
strong,
sub,
summary,
sup,
table,
tbody,
td,
tfoot,
th,
thead,
time,
tr,
tt,
u,
ul,
var,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}

body {
  line-height: 1;
}

blockquote,
q {
  quotes: none;
}

blockquote:after,
blockquote:before,
q:after,
q:before {
  content: "";
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

button,
input[type="submit"] {
  padding: 0;
  border: none;
  outline: none;
  font: inherit;
  color: inherit;
  background: none;
  cursor: pointer;
  -webkit-appearance: none;
  -webkit-border-radius: none;
  border-radius: none;
}

* {
  box-sizing: border-box;
}

body,
html {
  scroll-behavior: smooth;
}

body {
  color: black;
  font-family: "Water Guy", "ChildsPlayAgeTenOT";
  overflow-x: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: #f0ede8;
  color: black;
  min-height: 100vh;
}

h1,
h2 {
  margin: calc(0.25em + 1vw) 0;
  font-size: calc(1.5em + 2vw);
  font-weight: 400;
}

main,
iframe {
  max-width: 100%;
}

main {
  padding: 0.25em;
}

img {
  max-width: 90%;
  transform: rotate(-2deg);
}

iframe {
  margin-top: 1em;
}

.postcard {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.player {
  position: absolute;
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.vol {
  position: absolute;
  bottom: 0;
  transform: translateY(150%);
  display: none;
}

.vol > span {
  pointer-events: none;
  position: absolute;
  top: 50%;
  transform: translate(-100%, -50%);
  font-size: 1.5em;
}

.playing .vol {
  display: block;
}

#preview {
  color: white;
  font-size: calc(2em + 1vw);
  cursor: pointer;
}

#preview::selection {
  background: transparent;
}
