﻿@font-face {
    font-family: 'TBC Sailec Regular';
    src: url('../fonts/TBCSailec-Regular.ttf');
}

@font-face {
    font-family: 'TBC Sailec Medium';
    src: url('../fonts/TBCSailec-Medium.ttf');
}

@font-face {
    font-family: 'TBC Sailec Bold';
    src: url('../fonts/TBCSailec-Bold.ttf');
}

* {
    margin: 0;
    padding: 0;
}

html,
body {
    width: 100%;
    height: 100%;
    /*min-width:970px;*/
}

a {
    text-decoration: none;
}

li {
    list-style-type: none;
}

legend {
    display: none;
}

fieldset {
    border: 0;
}

img {
    border: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: normal;
}

input,
textarea,
button,
select,
a,
div {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

    div,
    input:focus,
    select:focus,
    textarea:focus,
    button:focus {
        outline: none;
    }

section.centralcontent .mainsection,
section.centralcontent {
    position: relative;
    margin: 0 auto;
    padding: 0;
    width: 100%;
}

    section.centralcontent .mainsection {
        width: 94%;
        max-width: 1185px;
        z-index: 1;
    }

        section.centralcontent .mainsection .fullsize {
            padding: 0 40px 50px 40px;
            text-align: center;
            max-width: none;
            overflow: hidden;
            margin: auto;
            background: #fff;
            border-radius: 14px;
            width: 100%;
            box-sizing: border-box;
        }

        section.centralcontent .mainsection img.constructionlogo {
            width: 50%;
            max-width: 256px;
            margin: auto;
            border: 0;
        }

        section.centralcontent .mainsection h3 {
            width: 100%;
            max-width: 586px;
            line-height: 33px;
            text-align: center;
            font-size: 1.3rem;
            font-family: "TBC Sailec Bold";
            -moz-font-feature-settings: 'case';
            -webkit-font-feature-settings: 'case';
            font-feature-settings: 'case'on;
            margin-top: 27px;
            color: #6D6E71;
            margin: 4% auto 3% auto;
        }

            section.centralcontent .mainsection h3 span {
                display: block;
                font-family: 'TBC Sailec Medium';
                -moz-font-feature-settings: normal;
                -webkit-font-feature-settings: normal;
                font-feature-settings: normal;
                font-size: 1.1rem;
            }

        section.centralcontent .mainsection .fullsize {
            text-align: center;
        }

.pagedecor {
    background: url(../images/pagedecor.png) no-repeat bottom right;
    position: absolute;
    bottom: 0;
    right: 0;
    background-size: contain;
    width: 70%;
    max-width: 603px;
    height: 90%;
    max-height: 705px;
}

@media all and (max-width: 1600px) {
    main {
        width: 80% !important;
    }

    section.centralcontent .mainsection h3 span {
        font-size: 1rem !important;
    }
}

@media all and (max-width: 1200px) {
    section.mainsectionwrapper .mainsection {
        max-width: 764px !important;
    }

    main {
        width: 90% !important;
    }
}

@media all and (max-width: 768px) {
    section.mainsectionwrapper .mainsection {
        max-width: 370px;
    }

        section.mainsectionwrapper .mainsection .authform.fullsize {
            max-width: 370px;
        }
}

:root {
    --title-color: #322153;
    --green-color: #34cb79;
    --primary-color: #00adee;
    --primary-hover-color: #00a8e7;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-family: 'Roboto', sans-serif;
}

body {
    /* background: #edf2f8; */
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Ubuntu', sans-serif;
    color: var(--green-color);
}

#page {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

button,
h3,
h4 {
    font-family: "TBC Sailec Bold";
    -moz-font-feature-settings: 'case';
    -webkit-font-feature-settings: 'case';
    font-feature-settings: 'case'on;
    color: #222;
}

h3 {
    font-size: 1.3rem;
}

.text-color-primary {
    color: var(--primary-color);
}

main {
    display: grid;
    grid-template-columns: 1fr 3fr;
    grid-template-rows: 2fr 1fr;
    margin-top: 35px;
    margin-bottom: 35px;
    background-color: white;
    perspective: 1300px;
    border-radius: 10px;
    width: 60%;
    margin: auto;
    padding-bottom: 100px;
}

    main .cards {
        grid-row-start: 1;
        grid-row-end: 3;
        grid-column-start: 2;
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        padding: 0 4%;
        gap: 24px;
    }

*.display-none {
    display: none !important;
}

.mainsectionwrapper {
    padding-bottom: 7%;
}

main .aside1 {
    background-color: #edf2f8;
    border-radius: 8px;
    padding: 32px 24px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    text-align: center;
    margin-right: 0;
    margin-top: 5px;
}

.restart button,
.start button {
    cursor: pointer;
}

main .aside1:not(.started) {
    grid-column-start: 1;
    grid-column-end: 3;
}

.aside1.started .action.start button {
    display: none;
}

main .aside1 h5 {
    color: black;
    text-align: left;
    font-family: "TBC Sailec Regular";
    font-size: 1.1rem;
    line-height: 1.5rem;
    text-align: center;
}

main .aside1 .side-card {
    width: 100%;
    height: 0;
    padding-bottom: 70%;
    border-radius: 10px;
}

main .aside1 > div {
    width: 100%;
}

    main .aside1 > div:last-child {
        width: 260px;
    }

main .aside1 .hide {
    display: none;
    transition: transform .5s;
}

main .aside1 img {
    max-width: 200px;
    max-height: 150px;
}

main .aside2 {
    grid-row-start: 2;
    display: flex;
    flex-direction: column;
    background-color: white;
    padding: 5px;
    margin-right: 0;
    border-radius: 10px;
}

    main .aside2 h4 {
        text-align: center;
    }

main .action {
    display: flex;
    flex-direction: column;
    margin: 10px;
    align-items: center;
    margin-right: 15px;
    padding: 10px;
    justify-content: space-between;
}

    main .action button {
        width: 100%;
        height: 60px;
        background-color: var(--green-color);
        border-radius: 8px;
        color: white;
        font-weight: bold;
        font-size: 16px;
        padding: 0 10px;
        border: 0;
        margin-bottom: 20px;
        transition: background-color 400ms;
    }

        main .action button:disabled {
            background-color: var(--title-color);
            color: white;
            opacity: .5;
            transition: background-color 400ms;
        }

main .aside1 .action {
    margin: 0;
}

    main .aside1 .action button {
        margin: 0;
    }

.memory-card {
    margin: 5px;
    max-height: 200px;
    position: relative;
    transform: scale(1);
    border-radius: 20px;
    transform-style: preserve-3d;
    transition: transform .5s;
    cursor: pointer;
}

.front-face,
.back-face {
    width: 100%;
    height: 100%;
    position: absolute;
    object-fit: contain;
    border-radius: 20px;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.front-face {
    transform: rotateY(180deg);
    padding: 20px;
    background-color: white;
}

.back-face {
    padding: 20px;
    background-color: #00AEEF;
}

.memory-card:active {
    transform: scale(0.95);
    transition: transform .2s;
}

.memory-card.flip {
    transform: rotateY(180deg);
}

@media (max-width: 1080px) {
    #page {
        max-height: 100%;
    }

    body {
        max-height: 100%;
    }

    main .cards {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }

    main {
        display: flex;
        flex-direction: column;
        max-height: fit-content;
    }

    .memory-card {
        height: 150px;
    }

    main .aside1 {
        margin-bottom: 20px;
    }

    #memory-game img {
        height: 80px;
    }

    main .cards {
        gap: 10px;
        padding: 0;
    }

    main .aside1 img {
        max-height: 100px;
    }
}

@media (max-width: 600px) {
    main .cards {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 10px;
    }

    main .aside1 img {
        max-height: 50px;
    }

    .memory-card {
        height: 100px;
    }

    .notification-wrapper .notification a {
        position: relative !important;
        display: block;
        text-align: center;
        margin-bottom: 20px;
        margin-top: 0 !important;
    }

    .notification-wrapper .notification p {
        padding: 20px 0 !important;
        padding-right: 0 !important;
        text-align: center;
    }

    main {
        padding-bottom: 150px !important;
    }
}

.notification-wrapper {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #28D06C;
    -webkit-transform: translate3d(0, 100%, 0);
    transform: translate3d(0, 100%, 0);
    -webkit-transition: all .3s ease-in-out;
    -moz-transition: all .3s ease-in-out;
    -o-transition: all .3s ease-in-out;
    -ms-transition: all .3s ease-in-out;
    transition: all .3s ease-in-out;
}

    .notification-wrapper.active {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }

    .notification-wrapper .notification {
        width: 94%;
        max-width: 1185px;
        margin: auto;
        position: relative;
    }

        .notification-wrapper .notification p {
            width: 100%;
            padding: 30px 0;
            color: #fff;
            font-family: 'TBC Sailec Regular';
            font-size: 0.87em;
            padding-right: 200px;
            box-sizing: border-box;
        }

        .notification-wrapper .notification a {
            position: absolute;
            line-height: 52px;
            right: 0;
            top: 50%;
            margin-top: -26px;
            background: #fff;
            font-family: "TBC Sailec Bold";
            font-size: 14px;
            color: #28D06C;
            border-radius: 4px;
            padding: 0 20px;
        }

