input {
    display: none;
}

label {
    font-family: BourgeoisLight;
    display: inline-block;
    margin: -4px -4px -4px -1px;
    padding: 5px 5px;
    text-align: center;
    color: #fff;
    background: #313131;
    border: 1px solid #454545;
    width: 33.4%;
    font-size: 26px;
}

label:hover {
    color: #888;
    cursor: pointer;
}

input:checked+label {
    font-family: BourgeoisLight;
    color: #fff;
    background: #414141;
    border: 1px solid #454545;
    font-size: 36px;
    margin: -1px -4px -5px -1px;
}

#tab1:checked~#content1,
#tab2:checked~#content2,
#tab3:checked~#content3,
#tab4:checked~#content4 {
    display: block;
}

@media screen and (max-width: 650px) {
    label {
        font-size: 0;
    }
    label:before {
        margin: 0;
        font-size: 18px;
    }
}

@media screen and (max-width: 400px) {
    label {
        padding: 15px;
    }
}


.active:after {
    font-family: "Font Awesome 5 Free";
    content: "\f0d8";
}

.tick-container {
    display: block;
    position: relative;
    border: none;
    margin-top: 1px;
    cursor: pointer;
    font-size: 22px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    float: left;
}


/* Hide the browser's default checkbox */

.tick-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}


/* Create a custom checkbox */

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 25px;
    width: 25px;
    border: 1px solid #3D3D3D;
    background-color: #313131;
}

/* On mouse-over, add a grey background color */

.tick-container:hover input~.checkmark {
    border: 1px solid #3D3D3D;
    background-color: #313131;
}


/* When the checkbox is checked, add a blue background */

.tick-container input:checked~.checkmark {
    border: 1px solid #3D3D3D;
    background-color: #313131;
}


/* Create the checkmark/indicator (hidden when not checked) */

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}


/* Show the checkmark when checked */

.tick-container input:checked~.checkmark:after {
    display: block;
}


/* Style the checkmark/indicator */

.tick-container .checkmark:after {
    left: 9px;
    top: 5px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}