body {
  font-family: sans-serif, Arial;
  max-width: 100vw;
}
h2{
    margin-top:5rem;
    margin-left:2rem;
}

/*Nav*/
.nav-wrapper {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 2;

  width: 100vw;
  height: 50px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-flow: row wrap;
  flex-flow: row wrap;
  -ms-flex-pack: distribute;
  justify-content: space-around;

  background: #e41f25;
}

.navlogo {
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  height: 3rem;
  position: absolute;
  left: 10px;
  z-index: 3;
  margin-top: 2px;
}

.nav {
  background: #e41f25;
  color: white;
  position: relative;

  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;

  top: 0;
  margin-bottom: 20px;
  width: 100vw;
  height: 50px;
  -webkit-box-pack: end;
  -ms-flex-pack: end;
  justify-content: flex-end;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.nav > div a {
  color: white;
  font-weight: bold;
  font-size: 1.75rem;
  text-decoration: none;
  margin-right: 2rem;
}

.nav > div a:hover {
  color: #ffcb05;
}

.menu-item {
  position: relative;
  background: #e41f25;
}

@media screen and (max-width: 600px) {
  #toggle-box {
    padding-top: 15px;
    width: 50px;
    height: 35px;
    z-index: 2;
    position: absolute;
    right: 1rem;
  }

  #toggle-box span {
    display: block;
    margin-left: 9px;
    width: 32px;
    height: 4px;
    margin-bottom: 5px;

    background: #ffffff;
    border-radius: 3px;
    z-index: 3;
  }
  #toggle-box:hover {
    background: #ffcb05;
    border-radius: 12px;
  }

  .menu-item {
    display: none;
    position: relative;
    top: 100px;
    left: 111px;
    width: 150px;
    line-height: 50px;
    border: 1px solid white;
    -webkit-transition: visibility 0s, opacity 3s linear;
    transition: visibility 0s, opacity 3s linear;
  }
/*animation flipping classes*/
  .is-shown .menu-item:hover {
    background: #ffcb05;
  }

  .is-shown {
    display: block;
  }

  .shuffle:hover {
    background: #ffcb05;
  }

  .hide-menu-item {
    display: none;
  }
  .menu-item a {
    display: block;
    margin-left: 10px;
    text-align: center;
  }

  nav.nav {
    background-color: transparent;
    width: 100vw;
    max-height: 50px;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
  }
}

/*main container*/
.content p {
  width: 100vw;
  margin: 0 auto;
  margin-top: 50px;
}

/*Make it flex*/
.flex-ul {
  padding: 10px;
  margin: 10px;

  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-flow: row wrap;
  flex-flow: row wrap;
  -ms-flex-pack: distribute;
  justify-content: space-around;

  margin-bottom: 10px;
  margin: 0 auto;
}

/*individual cards containers*/
.flip-container {
  position: relative;
  background-color: transparent;
  width: 350px;
  height: 200px;
  perspective: 900px;
  -webkit-perspective: 900px;
  margin: 10px;
}
/*faces container*/
.card {
  position: absolute;
  width: 350px;
  height: 200px;
  transition: -webkit-transform 1s;
  -webkit-transition: -webkit-transform 1s;
  transition: transform 1s;
  transition: transform 1s, -webkit-transform 1s;
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
  cursor: pointer;
}
/*Each card have two faces: faces common attributes*/
.face {
  backface-visibility: hidden;
	-webkit-transform: scale(1);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  position: absolute;
  z-index: 1;
  color: black;
  width: 350px;
  height: 200px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  border-radius: 12px;
}

/*Front face*/
.face.front {
  background: #2e6eb6;
}

/*Back face*/
.back {
  -webkit-transform: rotateY(180deg);
  transform: rotateY(180deg);
}

.face.back {
  background: #ffcb05;
}

/*Each face has two sides: left-side for the text and img-container on the right*/

/*Left side*/

.left-side {
  position: relative;
  width: 50%;
  height: 80%;
  background-color: white;
  border-radius: 12px 0 0 12px;
  font-size: 32px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -ms-flex-line-pack: center;
  align-content: center;
}
.left-side p {
  text-align: center;
  line-height: 59.5px;
}
/*right side image container*/

.img-container {
  width: 132px;
  height: 160px;
  border-radius: 0 12px 12px 0;
  background-color: white;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

.img-container img {
  max-width: 132px;
  max-height: 160px;
  border-radius: 0 12px 12px 0;
  background-color: white;
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
}

/*Rules for the full face cards*/

.full-face {
  position: relative;
  width: 90%;
  height: 80%;
  background-color: white;
  border-radius: 12px;
  font-size: 32px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -ms-flex-line-pack: center;
  align-content: center;
}

/*Full face text*/
.full-face p {
  text-align: center;
  line-height: 59.5px;
}

/*Full face images*/
.full-face img {
  width: 132px;
  height: 160px;
  border-radius: 12px;
  background-color: white;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

/*Big capital letters*/
p.big {
  font-size: 300%;
  line-height: 70px;
}

/*First letter on the back face of the 'images' cards*/
p.emphase-letter::first-letter {
  font-size: 250%;
  color: #2e6eb6;
}

/*JS add this class to the .card div onClick*/

.card.isflipped {
  -webkit-transform: rotateY(180deg);
  transform: rotateY(180deg);
}
/*Get a new card*/
button.shuffle {
  border-radius: 12px;
  padding: 5px;
  background: #e41f25;
  color: white;
  font-weight: bold;
  font-size: 1.75rem;
  text-decoration: none;
  -ms-flex-line-pack: center;
  align-content: center;
  margin-left: 50%;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
}
.footer__text{
    margin:2rem;
}
/*NORMALIZE*/

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
   ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */

html {
  line-height: 1.15; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
}

/* Sections
   ========================================================================== */

/**
 * Remove the margin in all browsers.
 */

body {
  margin: 0;
}

/**
 * Render the `main` element consistently in IE.
 */

main {
  display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */

h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

/* Grouping content
   ========================================================================== */

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */

hr {
  box-sizing: content-box; /* 1 */
  height: 0; /* 1 */
  overflow: visible; /* 2 */
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

pre {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/* Text-level semantics
   ========================================================================== */

/**
 * Remove the gray background on active links in IE 10.
 */

a {
  background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */

abbr[title] {
  border-bottom: none; /* 1 */
  text-decoration: underline; /* 2 */
  text-decoration: underline dotted; /* 2 */
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */

b,
strong {
  font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

code,
kbd,
samp {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/**
 * Add the correct font size in all browsers.
 */

small {
  font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/* Embedded content
   ========================================================================== */

/**
 * Remove the border on images inside links in IE 10.
 */

img {
  border-style: none;
}

/* Forms
   ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */

button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-size: 100%; /* 1 */
  line-height: 1.15; /* 1 */
  margin: 0; /* 2 */
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */

button,
input {
  /* 1 */
  overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */

button,
select {
  /* 1 */
  text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */

button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */

fieldset {
  padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *    `fieldset` elements in all browsers.
 */

legend {
  box-sizing: border-box; /* 1 */
  color: inherit; /* 2 */
  display: table; /* 1 */
  max-width: 100%; /* 1 */
  padding: 0; /* 3 */
  white-space: normal; /* 1 */
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */

progress {
  vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */

textarea {
  overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */

[type="checkbox"],
[type="radio"] {
  box-sizing: border-box; /* 1 */
  padding: 0; /* 2 */
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */

[type="search"] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */

[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */

::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/* Interactive
   ========================================================================== */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */

details {
  display: block;
}

/*
 * Add the correct display in all browsers.
 */

summary {
  display: list-item;
}

/* Misc
   ========================================================================== */

/**
 * Add the correct display in IE 10+.
 */

template {
  display: none;
}

/**
 * Add the correct display in IE 10.
 */

[hidden] {
  display: none;
}
