.justify-around {
    justify-content: space-around;
}

.justify-end {
    justify-content: flex-end;
}

.gradient-bg {
    background: linear-gradient(to right, #E4C396, #F3E6D4, #F9E0C2);
    border: none;
}

.subtitle2::before {
    content: url(../img/subtitle2.svg);
    padding: 0 10px 0 0;
}

.pl-10 {
    padding-left: 10px;
}

.pl-15 {
    padding-left: 15px;
}

.pl-20 {
    padding-left: 20px;
}

.pl-30 {
    padding-left: 30px;
}

.pr-10 {
    padding-right: 10px;
}

.pr-15 {
    padding-right: 15px;
}

.pr-20 {
    padding-right: 20px;
}

.pr-30 {
    padding-right: 30px;
}

.w-33 {
    width: 33%;
}

.w-60 {
    width: 60px;
}

.bg-trans {
    background: transparent;
}

.border-none {
    border: none;
}

@font-face {
    font-family: Roboto;
    src: url(../fonts/Roboto-Medium.ttf);
    font-weight: bold;
}

.d-none {
    display: none;
}

.d-block {
    display: block;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.8);
    height: 100%;
    z-index: 1;
    display: none;
}

.darkgrey-bg {
    background: #1B1B1B;
}

.overflow-y-scroll {
    overflow-y: scroll;
}

.close {
    top: 15px;
    right: 20px;
}

#info .w-400 {
    width: 250px;
}

#info {
    display: none;
}

/* Style the buttons that are used to open the tab content */
.tab button {
    border: none;
    outline: none;
    cursor: pointer;
    transition: 0.3s;
    opacity: 0.5;
    background: transparent;
    color: white;
    text-align: left;
}

/* Change background color of buttons on hover */
.tab button:hover {
    opacity: 1;
}

/* Create an active/current tablink class */
.tab button.active {
    opacity: 1;
}

/* Style the tab content */
.tabcontent {
    display: none;
}

.tablinks.active .almendra {
    background: -webkit-linear-gradient(0deg, #E4C396, #F3E6D4, #F9E0C2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tablinks.active .almendra::after {
    content: url(../img/subtitle2.svg);
    padding: 0 0 0 5px;
}
.card-wrapper {
    height: 121px;
}
.card:hover {
    margin-top: -20px;
    background: url(../img/card-hover.png);
    background-size: cover;
    transition: 0.5s;
}

.card {
    width: 67.5px;
    height: 115px;
    background: url(../img/card.png);
    background-size: cover;
    margin-left: -59px;
    position: relative;
}

.shuffle-btn {
    position: relative;
    width: 115px;
    height: 115px;
    margin-top:3px;
    line-height: 115px;
    background-color: #b0a69a;
    border-radius: 50%;
    text-align: center;
    border: none;
    color: #333;
    font-family: 'Almendra';
    text-transform: uppercase;
    font-size: 16px;
    opacity: 1 !important;
    cursor: default;
    opacity: 0.9;
}

.shuffle-btn:hover {
    cursor: default;
    opacity: 0.9;
}

button.shuffle-btn-actived {
    background-color: #e5c297;
    cursor: pointer !important;
    opacity: 1 !important;
}

.shuffle-btn:before {
    position: absolute;
    content: "";
    width: 103px;
    height: 103px;
    left: 4px;
    top: 4px;
    border-radius: 50%;
    border: solid 2px #333;
}

#all-cards div:hover {
    cursor: pointer;
    opacity: 0.8;
    transition: 0.5s;
}

.black {
    color: black;
}

.d-table-cell {
    display: table-cell;
}

.nude-bg {
    background: #E4C397;
}

.border-radius-5 {
    border-radius: 5px;
}

.tooltip {
    width: 0;
	height: 0;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-top: 10px solid #E4C397;
}

.flex-column {
    flex-direction: column;
}

.table b {
    margin: 1em 0;
    display: inline-block;
}

.card-preserve {
    width: 147px;
}

.card-preserve .card-img {
    position: relative;
    width: 147px;
    height: 256px;
    transition: transform 0.4s;
    transform-style: preserve-3d;
}
.card-preserve .card-img .picked-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 147px;
    height: 256px;
    border-radius: 15px;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: rotateY(180deg);
}
.card-preserve .card-img .card-question {
    position: absolute;
    left: 0;
    top: 0;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.input-container {
    position: relative;
}
.validation-msg {
    position: absolute;
    top: 65px;
    left: 76px;
    font-size: 12px;
    color: #f14f1b;
    display: none;
}
.login-msg {
    left: 40px;
}
form input {
    color: #fff;
}
.your-reading-search {
    color: #fff;
}
.home-selector {
    color: #bbb;
}
.w-700 {
    width: 700px;
}
.hovered-cards-div {
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 684px;
}
.hovered-card {
    width: 128px;
    height: 221px;
    margin: 4px;
}
.hovered-card:hover {
    background: rgb(0, 0, 0, 0.5);
}

.hovered-card span {
    visibility: hidden;
    background: black;
    top: 50%;
    left: 50%;
    transform: translate(-50%);
    border-radius: 5px;
    text-wrap: nowrap;
}

.hovered-card:hover span {
    visibility: visible;
}

.h-100 {
    height: 100%;
}

.flex-wrap {
    flex-wrap: wrap;
}

/* Style for the slideshow container */
.slideshow-container {
    position: relative;
}

/* Style for the slides */
.mySlides {
    display: none;
}

/* Style for the thumbnail images */
.thumbnail {
    cursor: pointer;
}

/* Style for the active thumbnail */
.thumbnail.active {
    border-style: solid;
    border-image-slice: 1;
    border-image-source: linear-gradient(to right, #E4C396, #F3E6D4, #F9E0C2);
}

.thumbnail {
    opacity: 0.5;
    width: 11%;
}

.prev:hover, .next:hover, .thumbnail:hover, .thumbnail.active {
    cursor: pointer;
    opacity: 1;
    transition: 0.5s;
}

.w-75 {
    width: 75%;
}

.prev, .next {
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.5;
}

.next {
    right: 0;
}

.prev {
    left: 0;
    z-index: 1;
}

@media screen and (max-width: 1200px) {
    .darkgrey-bg.w-75 {
        width: 95%;
    }
}

@media screen and (max-width: 992px) {
    .overlay form .d-flex.mb-30 {
        display: block;
    }

    .overlay form .d-flex .pr-20 {
        padding-right: 0;
    }

    .overlay form .d-flex .pl-20 {
        padding-left: 0;
    }

    .card {
        width: 45px;
        height: 80px;
        margin-left: -39px;
    }

    .mt-80 {
        margin-top: 40px;
    }
    
    .card-wrapper {
        height: 110px;
    }

    .shuffle-btn {
        width: 80px;
        height: 80px;
        margin-top: 16px;
        line-height: 80px;
        font-size: 14px;
    }

    .shuffle-btn:before {
        width: 74px;
        height: 74px;
        left: 2px;
        top: 2px;
        border: solid 1px #333;
    }
}

@media screen and (max-width: 767px) {
    .d-sm-none {
        display: none;
    }

    .d-sm-inline-block {
        display: inline-block;
    }

    .footer-links {
        display: block;
        text-align: center;
    }

    #all-cards .max-width-150 {
        width: 90%;
    }

    .d-sm-block {
        display: block;
    }

    .tab {
        display: none;
        justify-content: space-evenly;
        margin: 0 0 20px;
    }
    
    .mt-80 {
        margin-top: 40px;
    }

    .card {
        width: 32px;
        height: 54px;
        margin-left: -26px;
    }

    .card-wrapper {
        height: 56px;
    }

    .shuffle-btn {
        width: 54px;
        height: 54px;
        margin-top: 1px;
        font-size: 9px;
        line-height: 50px;
    }

    .shuffle-btn:before {
        width: 48px;
        height: 48px;
        left: 2px;
        top: 2px;
        border: solid 1px #333;
    }

    .w-200 {
        width: 120px;
    }

    .w-60 {
        width: 40px;
    }
    .w-700 {
        width: 450px;
    }

    .hovered-card {
        width: 80px;
        height: 139px;
    }
    
    .hovered-cards-div {
        width: 441px;
    }

    .hovered-cards-div {
        top: 3px;
    }
    
    .overlay .w-50 {
        width: 100%;
    }

    .overlay .w-50.pr-30 {
        padding-right: 0;
    }

    .overlay .w-50 ul {
        padding: 0 0 0 15px;
    }

    .overlay .p-30 {
        padding: 15px;
    }
    
    .related-articles {
        flex-direction: column;
    }
    .related-articles .w-33 {
        width: 100%;
        padding: 0;
    }
    .related-articles a {
        margin: 0 0 20px;
    }
    .article-content-mb {
        padding: 0 15px;    
    }
}

@media screen and (max-width: 480px) {
    .deck-cards>div {
        width: 33.33%;
    }

    .deck-cards img {
        width: 80%;
    }

    .w-400 {
        width: 100%;
        min-width: 180px;
    }

    .w-50 {
        width: 100%;
    }

    .about .d-flex.container {
        display: block;
    }

    .about .pl-30 {
        padding-left: 0;
    }

    .about .pr-30 {
        padding-right: 0;
    }

    .text-shadow {
        text-shadow: 3px 3px black;
    }

    footer .pr-20 {
        padding-right: 5px;
    }

    footer .pl-20 {
        padding-left: 5px;
    }

    .d-xs-none {
        display: none;
    }

    .d-xs-block {
        display: block;
    }

    #top-menu {
        position: absolute;
        top: 0;
        height: 100%;
        background: #1B1B1B;
        width: 100%;
        left: 0;
        z-index: 1;
        flex-direction: column;
        padding: 50px 0 0;
    }

    #top-menu a {
        display: block;
        padding: 10px;
    }

    #info .w-400 {
        width: 100%;
    }

    #all-cards .max-width-150 {
        width: 60px;
    }

    .tablinks .d-flex {
        align-items: center;
    }

    .max-width-50 {
        max-width: 30px;
    }

    .tabcontent {
        flex-direction: column;
        padding: 0 20px;
        align-items: center;
    }

    .tabcontent .max-width-150.pr-30.pl-30 {
        padding: 0;
        margin: 0 0 20px;
    }

    .w-200 {
        width: 200px;
    }

    .table .d-flex {
        display: block;
    }

    .table .d-flex.d-xs-none {
        display: none;
    }

    .w-40,
    .w-60p {
        width: 100%;
    }

    .table .p-15 {
        padding: 0;
    }

    .card-preserve .card-img {
        width: 93px;
        height: 163px;
        margin-left: 12px;
    }
    .card-preserve .card-img .picked-card,
    .card-preserve .card-img .card-question {
        width: 93px;
        height: 163px;
    }
    .validation-msg {
        top: 55px;
        left: 113px;
    }
    .w-700 {
        width: 280px;
    }

    .hovered-card {
        width: 51px;
        height: 88px;
        margin: 2px;
    }

    .hovered-cards-div {
        top: 1px;
    }

    .hovered-cards-div {
        width: 277px;
    }
    .article {
        flex-direction: column;
        padding: 0 15px;
    }
    .article img {
        margin: 0 0 30px;
    }
    .em1-3 {
        font-size: 1em;
    }
}

@media screen and (max-width: 300px) {
    .w-400 {
        min-width: auto;
    }

    #all-cards p {
        font-size: 0.5em;
    }

    .tablinks p {
        font-size: 0.6em;
    }

    .tablinks.active .almendra::after {
        content: '';
        padding: 0;
    }

    .w-200 {
        width: 170px;
    }
    .w-700 {
        width: 250px;
    }

    .hovered-card {
        width: 45px;
        height: 78px;
    }

    .hovered-cards-div {
        left: 52%;
    }

    .hovered-cards-div {
        width: 245px;
    }
}