@import url('https://rsms.me/inter/inter.css');
@import url('https://fonts.googleapis.com/css2?family=Archivo:wdth,wght@125,900&display=swap');

* {
    touch-action: manipulation;
}

.c3::-webkit-scrollbar {
    display: none;
}

a {
    text-decoration: none;
}

body {
    background-color: #000;
    color: #fff;
    font-family: 'Inter', -apple-system, system-ui, sans-serif;
    display: grid;
    grid-template-areas: "stats card history";
    grid-template-columns: 1fr 2fr 2fr;
    height: 95vh;
}


.logo {
    position: absolute;
    top: 15px;
    left: 20px;
    font-family: 'Archivo', sans-serif;
    font-size: 1.2em;
    color: #555;
}

.logo span:first-child {
    font-weight: 800;
}



/**** c1 container ****/

.c1 {
    display: grid;
    grid-area: stats;
    align-items: center;
    align-content: center;
    padding: 0 2em;
}

.c1:hover .count-box div:nth-child(2),
.c1:hover #ncards,
.c1:hover #locount,
.c1:hover #midcount,
.c1:hover #hicount,
.c1:hover #loprob,
.c1:hover #midprob,
.c1:hover #hiprob   {
    filter: blur(0px);
    transition: 1s;
}


.box-title {
    text-transform: uppercase;
    color: #777;
    margin-top: 1.5em;
    font-weight: 500;
}

.count-box {
    display: grid;
    grid-template-columns: 2fr 1fr;
    width: -webkit-fill-available;
    background: linear-gradient(180deg, #377B2C 0%, #1D671C 100%);
    padding: 1.5em 1em;
    text-align: center;
    border-radius: 15px;
    color: #093A09;
    font-weight: 600;
    align-items: center;
}

.count-box div:first-child {
    border-right: 1px solid #093A09;
    font-size: 2em;
}

.count-box div:nth-child(2) {
    font-size: 3em;
    filter: blur(10px);
    transition: 1s;
}

.cards-box {
    display: grid;
    grid-template-rows: 1fr 1fr;
    row-gap: 1em;
    background: #222;
    padding: .5em 1em 1em 1em;
    text-align: center;
    border-radius: 15px;
    margin-top: 1em;
    color: #777;
    font-size: 1.1em;
    font-weight: 500;
}

.cards-box-row-1 {
    display: grid;
    grid-template-columns: 2fr 1fr;
    border-bottom: 1px solid #414141;
    align-items: center;
}

.cards-box-row-1 div:first-child {
    font-size: 1.3em;
}

.cards-box-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}

.prob-box {

    background: #222;
    padding: 1em;
    text-align: center;
    border-radius: 15px;
    margin-top: .5em;
    color: #777;
    font-size: 1.1em;
    font-weight: 500;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}


#ncards {
    color: #fff !important;
    font-size: 2.5em !important;
    filter: blur(10px);
    transition: 1s;
}

#locount,
#midcount,
#hicount,
#loprob,
#midprob,
#hiprob {
    margin-top: 5px;
    color: #fff !important;
    font-size: 2em !important;
    filter: blur(10px);
    transition: 1s;
}

#loprob::after,
#midprob::after,
#hiprob::after {
    content: "%";
    color: #777;
}

.settings-box {

    background: #222;
    padding: 1em 0em 1em 1em;
    border-radius: 15px;
    margin-top: .5em;
    color: #777;
    font-size: 1.1em;
    font-weight: 500;
}


.deckselector input {
    background-color: transparent;
    border: none;
    color: #777;
    border-radius: 8px;
    text-align: center;
    font-size: 1em;
    font-weight: 600;
}

.deckselector {
    display: inline-flex;
    width: -webkit-fill-available;
    border-bottom: 1px solid #333;
}

.settings-box > div{
    padding-top: .5em;
    padding-bottom: .5em;
}

.settings-box > div:first-child{
    padding-top: 0;
    padding-bottom: .5em;
}


.settings-box > div:last-child{
    padding-top: .5em;
    padding-bottom: 0;
}
.active{
    text-decoration: underline;
}

/********/
.upright {
    position: absolute;
    top: 15px;
    right: 20px;
    z-index: 1;
}

.upright a {
    color: #777;
    font-size: 24px;
}

.viewcounter {
    display: none;
}

.c2 {
    grid-area: card;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
}

.cardImg {
    cursor: pointer;
    height: 600px;
    filter: blur(0px);
    opacity: 1;
    transition: 1s;
}

.restartAlert {
    position: absolute;
    margin: 0 1em;
    background: linear-gradient(180deg, #377B2C 0%, #1D671C 100%);
    color: #093A09;
    padding: 1.5em;
    border-radius: 20px;
    font-size: 2.5em;
    cursor: pointer;
    visibility: hidden;
    box-shadow: 0px 0px 350px 100px #000;
    opacity: 0;
    font-weight: 600;
}

.fa-repeat {
    margin-left: 10px;
}

.c3 {
    grid-area: history;
    display: grid;
    align-items: center;
    padding-right: 50px;
    overflow-y: scroll;
    scrollbar-width: none;
}

.r {
    display: block;
    background-color: #151515;
    margin-top: 1em;
    padding: 10px 0px 10px 10px;
    border-radius: 10px;
    min-height: 93px;
    transition: 1s;
}

.r img {
    transition: 1s;
    margin: 0 5px 0 0;
    filter: opacity(0.05);
    height: 90px;
}

.c3:hover img {
    transition: 1s;
    filter: opacity(1);
}

.c3:hover .r {
    transition: 1s;
    background-color: #222;
}



@media (max-width:1180px) {

    body {
        height: 90vh;
    }

    .c1{
        padding: 0 .5em;
    }

    .box-title{
        font-size: .8em;
    }
    .count-box {
        font-size: .9em;
    }
    .cards-box{
        font-size: .9em;
    }
    #ncards {
        font-size: 2em !important;
    }
    
    #locount,
    #midcount,
    #hicount,
    #loprob,
    #midprob,
    #hiprob {
        font-size: 1.5em !important;
    }

    .prob-box{
        font-size: .9em;
    }

    .settings-box {

        font-size: 1em;
    }


    .c3 {
        padding-right: 35px;
    }

    .r img {
        cursor: pointer;
    }

    .cardImg {
        cursor: pointer;
        height: 400px;
    }

}

@media (max-width:800px) {

    body {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        grid-template-areas: "card""stats""history";
        height: auto;

    }

    .restartAlert {
        width: -webkit-fill-available;
        font-size: 2.2em;
    }

    .c1{
        margin-top: 2em;
        padding: 0 2em;
    }

    #ncards {
        font-size: 2.5em !important;
    }
    
    #locount,
    #midcount,
    #hicount,
    #loprob,
    #midprob,
    #hiprob {
        font-size: 2em !important;
    }


    .box-title{
        font-size: .9em;
    }
    .count-box {
        font-size: 1em;
    }
    .cards-box{
        font-size: 1em;
    }


    .r img {
        cursor: pointer;
        height: 84px;
    }

    .table-container {
        cursor: pointer;
    }

    .c2 {
        padding-top: 5em;
    }

    .cardImg {
        cursor: pointer;
        height: 400px;
    }

    .c3 {
        padding: 20px 10px;
    }

}