/* LAYOUT */
.circle-button {
    background-color: white;
    display: inline-block;
    width: 40px;
    height: 40px;
    border-radius: 20px;
    margin: 0 10px;
    padding: 7px;
    border: 1px solid #e9e9e9;
    cursor: pointer;
}

    .circle-button:not(.active):not(:active):hover {
        background-color: #fff8f1;
        border-color: #dfb998;
    }

    .circle-button.active, .circle-button:active {
        background-color: #ffdbbb !important;
        border-color: #c5620a !important;
    }

    .circle-button img {
        width: 24px;
        height: 24px;
    }
    
    .circle-button.small {
        width: 32px;
        height: 32px;
        padding: 4px;
        border-radius: 16px;
    }

        .circle-button.small img {
            width: 22px;
            height: 22px;
        }

    .circle-button.contrast {
        border-color: black;
    }
    
        .circle-button.contrast:not(.active):not(:active):hover {
            background-color: #ffddba;
            border-color: black;
        }

        .circle-button.contrast.active, .circle-button.contrast:active {
            background-color: #ffb370 !important;
            border-color: black !important;
        }

.form-control:focus {
    border-color: #ffe9c9;
    box-shadow: 0 0 0 0.2rem rgb(213 147 49 / 25%);
}

.clickable {
    cursor: pointer;
}

/* HEADER */
.header {
    position: fixed;
    width: 100%;
    z-index: 1;
    background-color: white;
    top: 0;
    padding-bottom: 14px;
    border-bottom: 1px solid #dfdfdf;
    box-shadow: 1px 1px 7px 1px #ccc;
}

body.is-search-visible .header {
    padding-bottom: 18px;
}

.main-menu, .sets-menu {
    list-style-type: none;
    display: inline-block;
    margin: 0;
    padding: 0;
}

    .main-menu li, .sets-menu li {
        float: left;
        cursor: pointer;
    }

.sets-menu li {
    text-transform: lowercase;
    font-size: 0.75em;
    padding: 2px;
    margin: 2px 6px;
}

    .sets-menu li.active {
        color: #db7012;
        font-weight: bold;
    }

.sets-divider {
    margin-right: 13px !important;
    margin-left: 13px !important;
}

.lenses-search {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    padding: 0 15px;
}

    .lenses-search .form-control {
        border-radius: 15px;
        height: 25px;
        font-size: 11px;
        padding: 0 15px;
    }

    .lenses-search button {
        display: none;
        position: absolute;
        right: 5px;
        top: 0px;
        font-size: 13px;
        border: none;
        background: none;
        width: 33px;
        padding: 2px 2px 4px;
    }

    .lenses-search:hover button,
    .lenses-search .form-control:focus + button {
        display: block;
    }

/* CONTENT */
.content {
    margin-top: 174px;
    margin-bottom: 50px;
}

body.is-search-visible .content {
    margin-top: 226px;
}

.lense {
    background-color: #fff7ef;
    cursor: pointer;
}

    .lense:hover  {
        border-color: #8b4d0d;
        background-color: #ffe8d0;
    }

.lense-number {
    font-size: 1.7em;
    color: #db7012;
    font-weight: 900;
    line-height: 0;
}

.lense-title {
    font-weight: 600;
    margin-left: 13px;
    top: 2px;
}

.lense-image {
    margin: 0 auto;
    width: 100%;
    max-width: 250px;
}

.lense-image img {
    border: 1px solid #f9e0ce;
}

.lense-image-illustrator {
    display: inline-block;
    font-size: 0.7em;
    margin: 2px;
    font-style: italic;
}

.lense-modal {
    max-width: 700px;
    margin-top: 15%;
    margin-bottom: 15%;
}

.lense-favorite-button {
    position: absolute;
    right: 3px;
    top: 11px;
}

.lense-description {
    font-size: 0.9em;
}

    .lense-description .questions {
        list-style: none;
        font-size: 0.89em;
        background-color: #f6fbff;
        padding: 7px 7px 7px 30px;
    }

        .lense-description .questions li {
            margin: 7px 0;
        }

            .lense-description .questions li::before {
                content: "■";
                color: #284fa7;
                font-size: 0.8em;
                position: absolute;
                margin-top: 3px;
                margin-left: -19px;
            }

    .lense-description .citation {
        text-align: center;
        margin-bottom: 30px;
    }

        .lense-description .citation i {
            position: relative;
        }

        .lense-description .citation small {
            font-style: normal;
            position: absolute;
            right: -24px;
            bottom: -18px;
        }

.lense-ref {
    color: #242493;
}

.lense-page {
    font-size: 0.75em;
    font-style: italic;
}

.random-lense {
    border-color: #f5e1cb;
    box-shadow: 0px 0px 6px 0px #fbd0a5;
}

.lense-card {
    background-color: transparent;
    height: 350px;
    perspective: 1000px;
}

    .lense-card .card, .lense-card .card-body {
        width: 100%;
        height: 100%;
    }

    .lense-card .card-title {
        height: 45px;
    }

.lense-card-body {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
}

.lense-card:not(.flipped) .lense-card-front {
    z-index: 0;
}

.lense-card:not(.flipped) .lense-card-body {
    transform: rotateY(180deg);
    z-index: 1;
}

.lense-card-front, .lense-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.lense-card-back {
    border-radius: 5px;
    background-color: #db7012;
    color: white;
    transform: rotateY(180deg);
}

    .lense-card-back img {
        position: relative;
        width: 100px;
        height: 100px;
        top: calc(50% - 50px);
    }

@media (max-width: 375px) {
    .content {
        margin-top: 200px;
    }
}

@media (min-width: 576px) and (max-width: 767px) {
    .lense-col {
        -ms-flex: 0 0 50%;
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .lense-card {
        height: 300px;
    }
}

@media (max-width: 767px) {

    .lense-card .card-title {
        margin-bottom: 0px;
    }

    .lense-card .lense-image {
        margin-top: 0.5rem !important;
    }
}
