/* Reset */

* {
    margin: 0;
    z-index: 1;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Fonts */

@font-face {
    font-family: "Celias-Bold";
    src: url('webFonts/CeliasBold/font.woff2') format('woff2'), url('webFonts/CeliasBold/font.woff') format('woff');
  }
  @font-face {
    font-family: "Celias-Regular";
    src: url('webFonts/CeliasRegular/font.woff2') format('woff2'), url('webFonts/CeliasRegular/font.woff') format('woff');
  }
  
  @font-face {
    font-family: "Celias-Medium";
    src: url('webFonts/CeliasMedium/font.woff2') format('woff2'), url('webFonts/CeliasMedium/font.woff') format('woff');
  }
  
  @font-face {
      font-family: "GT-Walsheim";
      src: url('webFonts/GT-Walsheim-LC-Bold.woff2') format('woff2'), url('webFonts/GT-Walsheim-LC-Bold.woff') format('woff');
    }
  
  :root {
      --light-blue-400: #EFF3FE;
      --light-blue-300:rgba(239, 243, 254, 0.90);
      --light-blue-200:rgba(239, 243, 254, 0.48);
      --aubergine-50: rgba(39, 33, 66, 0.12);
      --aubergine-200: rgba(39, 33, 66, 0.48);
      --aubergine-400: #272142;
      --sea-green-400: #06B67E;
      --sea-green-500: #00A16F;
      --shadow: 0 1rem 2rem rgba(0,0,0,0.16);
  }

body {
    font-family: Celias-Regular, Roboto, sans-serif;
    color: var(--aubergine-400);
    text-align: center;
}

h1, h2 {
    font-family: GT-Walsheim;
}

p {
    line-height: 1.7;
}

.stack {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stack > * {
    margin-top: 2em;
    box-sizing: border-box;
}

@media(max-width: 768px) {
.container {
    width: 90%;
    margin: 0 auto;
}
}

.button {
    font-size: 1rem;
    line-height: 1em;
    font-family: GT-Walsheim;
    letter-spacing: .02em;
    background: var(--sea-green-400);
    transition: background 0.5s cubic-bezier(.4,0,.2,1);
    padding: 1rem 2rem;
    display: block;
    max-width: 20rem;
    border-radius: 10px;
    color: #ffffff;
}

.button:hover {
    background: var(--sea-green-500);
    cursor: pointer;
}

.logo {
    max-width: 20rem;
    margin: 4rem auto 1rem;
}

@media(max-width: 1024px) {
    .logo {
    margin-top: 8rem;
    }
}


@media(max-width: 768px) {
    .logo {
    margin-top: 8rem;
    }
}


@media(max-width: 400px) {
    .logo {
    margin-top: 12rem;
    }
}

/* Shapes */

.shape {
    position: absolute;
    z-index: -9999;
    max-width: 25rem;
}

.bottom-left {
    position: inherit;
    display: block;
    margin-top: -5rem;
}


.top-right {
    top: 0;
    right: 0;
}

@media(min-width: 768px) {
.bottom-left {
    position: absolute;
    bottom: 0;
    left: 0;
}
}


@media(max-width: 480px) {
    .shape {
        max-width: 10rem;
    }
    
}

@media(max-width: 1024px) {
    .shape {
        max-width: 20rem;
    }
    
}
/* Topics */

.topics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media(min-width: 1024px) {
    .topics {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

.topics a {
    box-shadow: var(--shadow);
    background: #ffffff;
    padding: 3rem 3rem;
    border-radius: 0.5rem;
    transition: transform 0.5s cubic-bezier(.4,0,.2,1);
}

@media(max-width: 400px) {
    .topics a {
        padding: 1rem 1rem;
    }
}

@media(min-width: 1024px) {
.topics a:hover {
    transform:translateY(-0.5rem);
    cursor: pointer;
}
}

.gametechnique {
    box-shadow: var(--shadow);
    background: #ffffff;
    padding: 2rem;
    width: 100%;
    max-width: 40rem;
}

.gametechnique h3 {
    font-size: 1.5rem;
    margin-bottom: 1em;
    font-family: GT-Walsheim;
}

.gametechnique .meta {
    color: var(--aubergine-200);
    margin-bottom: 0.5em;
}

@media(max-width: 600px) {

    iframe {
        width: 100%;
        height: auto
    }
}

.spacer {
    height: 10rem;
}