.factPage {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 300;
    line-height: 170%;
}

.factPage .contentSectionWrapper {
    position: relative;
}

.contentSectionWrapper.factPageHeader {
    padding: 28px 10px;
    font-weight: 400;
    font-size: 18px;
    line-height: 120%;
    display: flex;
    flex-direction: column-reverse;
}

.factPageHeader > div {
    width: 100%;
    text-align: center;
}

.factPageHeader div {
    hyphens: none;
}

.factHeaderImage img {
    z-index: 11;
    object-fit: contain;
}

.factHeaderText {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-self: center;
}

.factHeaderText h1 {
    font-size: 50px;
    line-height: 100%;
    font-weight: 300;
    text-transform: uppercase;
}

.factPageDescription > div, .historySection .contentSectionWrapper > div,
.healthSection .contentSectionWrapper > div {
    width: 100%;
    flex-grow: 0;
}

.factPage .fact {
    color: var(--primary-text-color);
}

.breedFactsContainer {
    padding: 30px 20px;
    display: flex;
    flex-wrap: wrap;
    border: 3px solid var(--grey);
    border-radius: 10px;
    gap: 40px;
}

.breedFact {
    display: flex;
    justify-content: flex-start;
    gap: 14px;
    font-size: 14px;
}

.breedFact:last-child {
    width: 100%;
}

.breedFactCount {
    color: var(--maincolor);
    font-size: 22px;
    padding-top: 2px;
}

.textHighlight {
    font-weight: 400;
    font-size: 18px;
    color: var(--primary-text-color);
}

.factHighlight {
    font-weight: 600;
}

.contentSection.historySection {
    padding: 20px 10px;
    background-color: var(--black);
    color: var(--white);
}

.contentSection.healthSection {
    padding: 20px 10px;
}

h3.alternateHeader {
    text-align: left;
    color: var(--primary-text-color);
}

.historySection h2, .healthSection h2 {
    color: var(--salmon);
    font-size: 40px;
    font-weight: 400;
    line-height: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 8px;
}

.factPage .tip {
    color: var(--salmon);
    border: 1px solid var(--salmon);
    background-color: transparent;
}

.factPage .tip:hover {
    color: var(--salmon);
    border-color: var(--salmon);
}

.tippy-box {
    font-family: 'Montserrat', sans-serif;
}

.factFullWidthContainer {
    padding: 10px;
    background-color: var(--primary-background-color);
    width: 100%;
    border-radius: 10px;
    position: relative;
    box-sizing: border-box;
}

.voteContainerHeader {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.voteHeader {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.votingBadge {
    background-color: var(--maincolor);
    color: var(--alternate-text-color);
    width: 134px;
    height: 134px;
    border-radius: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: rotate(20deg);
    font-weight: 600;
    filter: drop-shadow(0px 1px 4px rgba(0, 0, 0, 0.15));
    flex-shrink: 0;
    text-align: center;
    align-self: center;
}


.votingContainer, .breedStandardContainer {
    padding: 24px 0;
    font-size: 14px;
    display: flex;
    gap: 20px;
    flex-direction: column;
    flex-wrap: wrap;
}

.votingElement {
    position: relative;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
}

.votingScale {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--grey-variant);
    line-height: 170%;
}

.votingIndicatorContainer {
    position: relative;
    height: 42px;
}

.votingIndicator {
	display: flex;
	justify-content: space-between;
    gap: 5px;
    width: 100%;
}
.voting {
    width: 19%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.voteSelector {
    width: 100%;
    background-color: var(--grey);
    height: 20px;
    border-radius: 10px;
    transition: background-color 0.4s ease;
    display: block;
}

.voteEnabled .voteSelector {
    cursor: pointer;
}

/* reverse direction to select indicators that appear before the hovered one https://css-tricks.com/star-ratings/ */
.votingIndicator {
    flex-direction: row-reverse;
}


.voteEnabled .votingActive .voting:hover .voteSelector,
.voteEnabled .votingActive .voting:hover ~ div .voteSelector,
.voteSelector.selected  {
   background-color: var(--maincolor);
}

.votingStatus {
    color: var(--maincolor);
    pointer-events: none;
    font-size: 20px;
}

.standardItem {
    display: flex;
    justify-content: flex-start;
    gap: 14px;
    font-size: 14px;
    margin-bottom: 20px;
}

.standardIcon {
    color: var(--maincolor);
    font-size: 30px;
    line-height: 35px;
    width: 38px;
}

.clubStandards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.clubStandards > div {
    width: 100%;
}

.clubStandards a {
    display: flex;
    align-items: center;
    gap: 5px;
}

.factPage .contentSectionWrapper.flexBoxContainer {
    gap: 10px;
    justify-content: space-around;
}

.factOtherBreedName {
    font-weight: 400;
    color: var(--maincolor);
    font-size: 20px;
}

.factPage .profileDetails .externalLink {
    position: absolute;
    top: 10px;
    right: 10px;
    color: var(--maincolor);
}

.factPage .flexBoxContainer .itemBox {
    padding: 10px;
}

/* Factpage Slider */

.factPageSlider {
    position: relative;
    font-size: 14px;
}

.factPageSlider .rslides img {
    width: 100%;
    max-height: 600px;
    height: auto;
    object-fit: contain;
}

/* Responsive */
@media only screen and (min-width: 600px) {
    .votingElement .textLabel {
        width: 34%;
    }
    .votingElement {
        flex-direction: row;
        align-items: center;
    }
    .votingResultContainer {
        width: 66%;
    }
}


@media only screen and (min-width: 768px) {
    .clubStandards {
        justify-content: space-between;
        flex-wrap: nowrap;
    }
    .clubStandards > div {
        width: auto;
    }
    .breedFact {
        width: calc(100% / 2 - 20px);
    }
}


@media only screen and (min-width: 980px) {
    .contentSectionWrapper.factPageHeader {
        height: 344px;
        margin-bottom: 60px;
    }
    .factPage .contentSectionWrapper {
        display: flex;
        flex-direction: row;
        gap: 60px;
    }
    .factHeaderImage img {
        position: absolute;
        height: 380px;
    }
    .factPageHeader > div {
        flex-grow: 0;
        width: 50%;
        text-align: left;
    }
    .factPageDescription > div, .historySection .contentSectionWrapper > div,
    .healthSection .contentSectionWrapper > div {
        width: 50%;
        flex-grow: 0;
    }
    .contentSection.historySection {
        padding: 70px 10px 20px 10px;
    }
    .factFullWidthContainer {
        padding: 38px;
    }
    .voteContainerHeader {
        flex-direction: row;
        justify-content: space-between;
        gap: 60px;
    }
    .votingContainer, .breedStandardContainer {
        justify-content: space-between;
        flex-direction: row;
    }
    .votingElement,
    .breedStandardContainer .contentLeft, .breedStandardContainer .contentRight {
        width: 47%;
        margin-right: 0;
    }

}

@media only screen and (min-width: 1024px) {
    .factPageSlider .rslides img {
        object-fit: cover;
    }
}