html{line-height:1.15;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,footer,header,nav,section{display:block}h1{font-size:2em;margin:.67em 0}figcaption,figure,main{display:block}figure{margin:1em 40px}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent;-webkit-text-decoration-skip:objects}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:inherit}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}dfn{font-style:italic}mark{background-color:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}audio,video{display:inline-block}audio:not([controls]){display:none;height:0}img{border-style:none}svg:not(:root){overflow:hidden}button,input,optgroup,select,textarea{font-family:sans-serif;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}button,html [type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{display:inline-block;vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details,menu{display:block}summary{display:list-item}canvas{display:inline-block}template{display:none}[hidden]{display:none}

html { -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box;}

*, *:before, *:after {box-sizing: inherit}

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; border: 0; padding: 0; white-space: nowrap; clip-path: inset(100%); clip: rect(0 0 0 0); overflow: hidden;}

@font-face {
    font-family: 'arcane_nineregular';
    src: url('./assets/font/arcane_nine-webfont.woff2') format('woff2'),
         url('./assets/font/arcane_nine-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

html {
    font-size: 125%;
    font-family: 'arcane_nineregular';
}

body {
    background-image: url(./assets/background.webp);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

h1,
h2,
p {
    margin: 0;
    padding: 0;
}

header { 
    height: 7vh;
    margin: 1vh 0;
    margin-bottom: 25px;
}

h1 {
    font-size: 3.5rem;
    text-align: center;
    color: #deeaea;
}

main {
    height: 87.5vh;
    margin-bottom: 10px;
    position: relative;
}

.wrapper {
    width: 85%;
    max-width: 1400px;
    margin: 0 auto;
}

button {
    height: 100px;
    width: 100px;
    padding: 2%;
    color: #433b43;
    background-color: #deeaea;
    border: #433b43 2px outset;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    font-family: 'arcane_nineregular';
    font-size: 1.2rem;
    position: absolute;
    transition: all ease 0.4s;
}

button:hover,
button:focus {
    color: #deeaea;
    background-color: #433b43;
}

.memory-game-container {
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    perspective: 1000px;
    width: 525px;
    height: 625px;
}

.card {
    width: calc(25% - 10px);
    height: calc(25% - 10px);
    margin: 5px;
    position: relative;
    transform: scale(1);
    transform-style: preserve-3d;
    transition: transform 0.5s;
}

.card:active {
    transform: scale(.95);
    transition: transform 0.2s;
}

.flipCard {
    transform: rotateY(180deg) ;
}

.front-face,
.back-face {
    position: absolute;
    backface-visibility: hidden;
    pointer-events: none;
    height: 100%;
    width: 100%;
    border-radius: 5px;
}

.back-face {
    background-color: rgba(222, 234, 234, 0.5);
    border: #3fb3ac 2px outset;
}

.front-face {
    transform: rotateY(180deg);
    border: #930185 2px outset;
}

footer {
    height: 5.5vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #6E616F;
    margin-top: 25px;
}

footer > p {
    font-size: 1rem;
    color: #deeaea;
}

footer > p > a {
    text-decoration: none;
    color: #deeaea;
    transition: color ease 0.4s;
}

footer > p > a:hover,
footer > p > a:focus {
    color: #3fb3ac;
}

/* Media Queries */
@media (max-width: 850px) {
    button {
        bottom: 150px;
    }

    footer {
        margin-top: 0px;
    }
}

@media (max-width: 600px) {
    header {
        margin: 45px 45px 55px;
    }

    h1 {
        font-size: 2rem;
    }

    main {
        height: 100vh;
    }

    .memory-game-container {
        width: 350px;
        height: 460px;
    }

    .card {
        width: calc(25% - 15px);
        height: calc(25% - 15px);
    }

    button {
        bottom: 15px;
        margin: 15px 0px;
    }

}