*{
	box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html{
    min-height: 100vh;
    font-size: 14px;
}

body{
    min-height: 100vh;
    background: #ffffff;
    margin: 0;
    padding: 0;
    font-family: Tahoma, Arial;
    color: #000;
    font-size: 14px;
}

a{
    text-decoration: none;
    outline: none;
}

img{
    border: 0;
    max-width: 100%;
    height: auto;
}

/* Modal */
.tech_modal{
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    box-sizing: border-box;
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    overflow-y: scroll;
    z-index: 7;
    border-radius: 8px;
    box-shadow: 0 0.46875rem 2.1875rem rgba(90,97,105,.1), 0 0.9375rem 1.40625rem rgba(90,97,105,.1), 0 0.25rem 0.53125rem rgba(90,97,105,.12), 0 0.125rem 0.1875rem rgba(90,97,105,.1);
}

.tech_modal_hat{
    background: #f9fafb;
    padding: 17px 21px;
    position: relative;
    display: flex;
    border-radius: 8px 8px 0 0;
    border-bottom: 1px solid #ccc;
    flex-shrink: 0;
}

.tech_modal_header{
    margin: 0;
    font-weight: 700;
    font-size: 20px;
    color: rgba(0, 0, 0, 0.8);
    flex-grow: 1;
}

.tech_modal_content{
    padding: 17px 21px;
    flex-grow: 1;
}

.tech_modal_footer{
    background: #f9fafb;
    padding: 17px 21px;
    border-radius: 0 0 8px 8px;
    border-top: 1px solid #ccc;
    flex-shrink: 0;
}

.tech_modal_close{
    display: block;
    color: #fff;
    cursor: pointer;
    text-align: center;
    font-weight: 700;
    padding: 10px 20px;
    font-size: 18px;
    background: red;
}


/* Common */
.wrapper{
    height: 100vh;
    position: relative;
}

.first_screen{
    display: none;
    height: 100vh;
}

/* First screen */
.first_screen.active{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.start_game{
    min-width: 150px;
    text-align: center;
    cursor: pointer;
    padding: 20px 40px;
    border: 2px solid #000;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 10vh;
}

.settings{
    min-width: 150px;
    text-align: center;
    cursor: pointer;
    padding: 10px 20px;
    border: 1px solid #000;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 2vh;
    font-size: 13px;
}

.rules{
    min-width: 150px;
    text-align: center;
    cursor: pointer;
    padding: 10px 20px;
    border: 1px solid #000;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 13px;
}

.rules_text{
    display: none;
}

/* Second screen */
.second_screen{
    display: none;
    height: 100vh;
}

.second_screen.active{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.game_container{
    flex-grow: 1;
    overflow-y: auto;
    width: 100%;
}

.game_container_rules{
    padding: 20px;
}

.game_container_rules.hide{
    display: none;
}

.selected_cards_container{
    display: none;
}

.selected_cards_container.active{
    display: flex;
    flex-wrap: wrap;
}

.selected_card_one{
    width: calc(33.33% - 4px);
    margin: 2px;
    font-size: 0;
}

.cards_container{
    width: 100%;
    flex-shrink: 0;
    padding: 3px;
    background: #d6d1db;
    display: flex;
    justify-content: center;
}

.card_one{
    display: none;
    height: 100%;
    width: 25%;
    margin: 0 2px;
    cursor: pointer;
    font-size: 0;
}

.card_one img{
    height: 100%;
    width: auto;
}

.card_one:nth-child(1),
.card_one:nth-child(2),
.card_one:nth-child(3),
.card_one:nth-child(4){
    display: block;
}


/* Card modal */
.card_modal{
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.card_modal_big_card{
    text-align: center;
    flex-grow: 1;
    font-size: 0;
}

.card_modal_big_card img{
    height: 100%;
    width: auto;
}

.card_modal_misc{
    flex-shrink: 0;
    padding: 3px;
    background: #d6d1db;
    display: flex;
}

.card_modal_ok{
    width: 20%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: green;
    color: #fff;
    cursor: pointer;
    flex-shrink: 0;
    font-size: 48px;
}

.card_modal_small_cards{
    width: 60%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.small_card_one{
    width: 33.33%;
    margin: 0 2px;
    cursor: pointer;
    font-size: 0;
}

.card_modal_close{
    width: 20%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: red;
    color: #fff;
    cursor: pointer;
    flex-shrink: 0;
    font-size: 48px;
}

.to_menu{
    text-transform: uppercase;
    font-size: 40px;
    text-align: center;
    width: 100%;
}