@font-face 
{
    font-family: "Josefin Sans";
    src: url('../fonts/JosefinSans-Regular(m).woff');
}

:root
{
    --page-width: 1000px;
}

::selection
{
    background-color: rgba(160, 50, 227);
    color: white;
}

*
{
    user-select: none;
    -webkit-user-select: none;
}

p, span, h1, h2, h3, h4, h5, h6, li, a, input, textarea 
{
    -webkit-user-select: text;
    user-select: text;
}

html, body
{
    scroll-behavior: smooth;
}

body
{
    font-family: 'Josefin Sans';
    background-color: white;
    color: black;
    font-size: 100%;
    text-align: center;
    line-height: 18px;
    word-spacing: -1px;
}

header
{
    margin: 0 auto;
    margin-top: 30px;
}

main
{
    margin: 0 auto;
    width: var(--page-width);
}

@media screen and (max-width: 970px)
{
    main
    {
        width: 90%;
    }
}

.gameplay-video
{
  margin: 0 auto;
  width: 90%;
  max-width: 600px;
}

#last-video
{
  margin-bottom: 50px;
}

small
{
    font-size: 70%;
}

.outline-badge
{
  border: 2.5px solid #000;
  border-radius: 12px;
  background-color: white;
  font-weight: bold;
  font-size: 100%;
  height: 44px;
  padding: 0 25px;
  color: black;
  display: inline-flex;
  align-items: center;
  width: 130px;
}

.outline-badge .outline-badge-icon
{
  width: 18px;
  height: 18px;
  display: block;
  margin-right: 8px;
}

#back-to-top-creature
{    
    opacity: 0;
    position: fixed;
    right: 20px;
    bottom: 20px;
    margin: 0;
    z-index: 100;
    pointer-events: none;
}

#back-to-top-creature .animated-creature
{
    transition: transform 250ms;
}

/* I move the animated creature instead of the parent so that it doesn't jitter */
.back-to-top-creature-hover:hover .animated-creature
{
    transform: translateY(-10px);
}

#back-to-top-creature .animated-creature-sclera
{
    transform-origin: 50% 20px;
}

#back-to-top-creature .animated-creature
{
    width: 40px;
}

.fade-in-scroll-to-top-button-animation
{
    animation: fade-in-scroll-to-top-button 0.2s linear forwards;
}

.fade-out-scroll-to-top-button-animation
{
    animation: fade-out-scroll-to-top-button 0.2s linear forwards;
}

.store-badges
{
    display: grid;
    grid-template-columns: repeat(3, auto);
    gap: 20px;
}

.badge
{
    display: flex;
}

.badge img
{
    width: 140px;
}

@media(max-width: 450px)
{
    .store-badges
    {
        grid-template-columns: repeat(2, auto);
    }
}

#contact-section
{
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

#social-icons
{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 5px;
    width: 150px;
}

.social-icon
{
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease-out;
}

.social-icon:hover, .social-icon:active
{
    transform: scale(1.1);
}

#tiktok-icon img
{
    width: 12px;
}

#x-icon img
{
    width: 14px;
}

#discord-icon img
{
    width: 16px;
}

#youtube-icon img
{
    width: 16px;
}

#instagram-icon img
{
    width: 14px;
}

#facebook-icon img
{
    width: 9px;
}

footer .animated-creature
{
    width: 40px;
    margin-top: 40px;
    margin-bottom: 40px;
}

/* So that in privacy policy it doesn't revert to that font */
footer p
{
    font-family: 'Josefin Sans';
    margin-bottom: 0;
}

@keyframes fade-in-scroll-to-top-button
{
    from
    {
        opacity: 0;
    }
    to
    {
        opacity: 1;
    }
}

@keyframes fade-out-scroll-to-top-button
{
    from
    {
        opacity: 1;
    }
    to
    {
        opacity: 0;
    }
}