* {
    -webkit-tap-highlight-color: transparent;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Source Sans Pro', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    background-color: #fff;
    transition: 300ms;
}

#start-container {
    z-index: 2;
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #fff;
}

button {
    box-shadow: 0 3px 0 0 #4f5561;
    transition: border-radius 200ms, background 200ms;
}

button:active {
    transition: 200ms;
    box-shadow: 0 1px 0 0 #333;
    transform: translate(0, 2px);
}

#welcome-message {
    font-weight: 200;
    font-size: 2em;
    margin-bottom: 10px;
    text-align: center;
}

#wm-group-name {
    color: #485;
    font-weight: 400;
    cursor: pointer;
}

#wm-group-name:hover {
    font-weight: 600;
}

.go-button {
    border: none;
    background: #bcb;
    border-radius: 10px;
    color: #4f5561;
    font-weight: 600;
    cursor: pointer;
}

#start-button {
    width: 200px;
    height: 60px;
    font-size: 2em;
}

.go-button:hover {
    background: #cdc;
}

.go-button:active {
    background: #aba;
}

#select-group {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 15px;
    top: 0px;
    left: 0px;
    width: 130px;
    height: 45px;
    background: #e6e6e6;
    color: #456;
    border-radius: 22.5px;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    border: none;
}

#select-group:hover {
    background: #dfe4e4;
}

#select-group:active {
    background: #afb4b4;
}

#settings-button {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 15px;
    top: 0px;
    left: 135px;
    width: 60px;
    height: 45px;
    background: #e6e6e6;
    color: #456;
    border-radius: 22.5px;
    font-size: 0.8em;
    font-weight: 600;
    box-shadow: 0px 3px 0px 0px #333;
    cursor: pointer;
    border: none;
    transition: 200ms;
}

#settings-button:hover {
    background: #dfe4e4;
}

#settings-button:active {
    background: #afb4b4;
    transform: translate(0px, 2px);
    box-shadow: 0px 1px 0px 0px #333;
}

#settings-container {
    position: absolute;
    z-index: 4;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    background: #eee;
}

.close {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 40px;
    background: #955;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px 0px 2px 5px;
    cursor: pointer;
}

.close:hover {
    background: #a66;
}

.setting-button {
    border: none;
    margin: 5px;
    font-size: 0.8em;
    width: 50px;
    height: 50px;
    background: #955;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 600;
    overflow: hidden;
    color: #eee;
    cursor: pointer;
    box-shadow: 0 3px 0 0px #333;
}

#this-month {
    width: 100px;
}

#counter-container {
    font-weight: 400;
    font-size: 1.3em;
    position: absolute;
    top: 0px;
    right: 00px;
    margin: 10px;
    width: 80px;
    height: 80px;
    background: #f3f3f3;
    color: #4f5561;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: inset -1px 1px 2px 1px rgba(0, 0, 0, 0.3);
}

#counter-numerator {
    width: 60%;
    height: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 5%;
    left: 5%;
}

#counter-divider {
    width: 160%;
    height: 4px;
    top: 50%;
    left: calc(-31% - 2px);
    position: absolute;
    background: #fff;
    transform: rotate(-45deg);
    box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.3);
}

#counter-denominator {
    width: 50%;
    height: 60%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    bottom: 5%;
    right: 5%;
}

#image-row {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-top: 100px;
    width: 100%;
    height: calc(100vh - 370px);
    min-height: 150px;
    visibility: hidden;
    display: flex;
    align-items: center;
}

#image-container {
    position: relative;
    display: table;
    width: 100%;
    max-height: 100%;
    height: fit-content;
    border-radius: 10px;
    display: flex;
    align-items: top;
    justify-content: center;
}

#add-image-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: calc(100vh - 370px);
    min-height: 150px;
    overflow-y: auto;
    background-image: linear-gradient(15deg, rgba(0, 0, 0, 0.08) 50%, rgba(0, 0, 0, 0.03) 50%);
    box-shadow: inset 0 0 5px 0 rgba(0, 0, 0, 0.3);
}

/* Hide scrollbar for Chrome, Safari and Opera */
#add-image-container::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
#add-image-container {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.body-image {
    position: relative;
    border-radius: 10px;
    margin-left: 5px;
    margin-right: 5px;
    cursor: pointer;
}

#image-main {
    position: relative;
    height: auto;
    object-fit: unset;
    max-width: 95%;
    max-height: calc(100vh - 370px);
    min-height: 150px;
}

.add-image {
    max-width: min(300px, 45vmin);
    max-height: min(190px, calc(30vmin - 10px));
    margin: 5px;
}

#load-add-images {
    position: absolute;
    border: none;
    top: 2px;
    right: 2px;
    width: 35px;
    height: 35px;
    border-radius: 20px;
    color: #456;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: #e6e6e6;
    transition: 200ms;
}

#load-add-images:active {
    background: rgba(102, 119, 119, 0.6);
}

#answer-container {
    position: relative;
    background: transparent;
    width: 100%;
    visibility: hidden;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

#free-text-container {
    margin-top: 10px;
    display: none;
}

#free-text-input {
    text-align: center;
    display: inline;
    align-items: center;
    border: none;
    font-size: 25px;
    font-family: 'Source Serif Pro', serif;
    color: #eee;
    background-color: #444;
    height: 30px;
    max-width: calc(100vw - 10px) !important;
    align-self: center;
    border-radius: 50px;
    outline: none !important;
}

#multiple-choice-container {
    margin: 5px 0;
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

div#multiple-choice-container {}

.multiple-choice-answer {
    font-weight: 400;
    font-family: "Alegreya", "Source Serif Pro", "Source Sans Pro", sans-serif;
    position: relative;
    background: #676;
    color: #f3f3f3;
    border: none;
    border-radius: 10px;
    margin: 5px;
    display: flex;
    align-items: top;
    justify-content: center;
    box-shadow: 0px 4px 0px 0px #454a54;
    cursor: pointer;
    font-size: 1.7em;
    text-align: center;
    height: 50px;
    width: auto;
    overflow: hidden;
    padding: 0 30px 40px 30px;
    transition: all .5s ease-in-out;
}

.answer-text {
    white-space: nowrap;
}

.answer-text i {
    position: absolute;
    bottom: 0px;
    width: 100%;
    left: 0;
    white-space: nowrap;
}


.multiple-choice-answer:hover {
    background: #787;
}

.multiple-choice-answer:active {
    background: #565;
    transform: translate(0, 3px);
    box-shadow: 0px 1px 0px 0px #333;
}

.edibility-emoji {
    position: absolute;
    top: 1px;
    right: 1px;
    width: 20px;
    height: 20px;
    border-radius: 15px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;

}

#larger-image-popup {
    position: absolute;
    z-index: 2;
    visibility: hidden;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.7);
    top: 0px;
}

#larger-image {
    position: relative;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.5);
    cursor: pointer;
    max-width: 98%;
    max-height: 98%;
}

#group-choice-container {
    z-index: 3;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f3f3f3;
    visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#simple-group-select {
    border: none;
    width: 200px;
    height: 40px;
    margin: 10px;
    border-radius: 10px;
    box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.2);
    font-weight: 600;
    padding-left: 10px;
}

#assign-group-button {
    width: 100px;
    height: 40px;
    border: none;
    background: #bcb;
    border-radius: 10px;
    font-size: 2em;
    color: #333;
    font-weight: 600;
    box-shadow: 0px 3px 0px 0px #333;
    cursor: pointer;
    transition: 0s;
}

#assign-group-button:hover {
    background: #cdc;
}

#assign-group-button:active {
    background: #aba;
    transform: translate(0px, 2px);
    box-shadow: 0px 1px 0px 0px #333;
}


#d3-sunburst {
    position: relative;
    margin-top: 0px;
    width: min(calc(100vh - 170px), 95vw);
}

#taxonomy-choice {
    position: relative;
    margin-top: 20px;
    border-radius: 10px;
    border: none;
    width: 80px;
    height: 80px;
    border: none;
    border-radius: 100%;
    background: radial-gradient(circle, transparent 30%, #bac 25%, #bac 50%, #cbd 50%);
    font-size: 0.8em;
    color: #333;
    font-weight: 600;
    box-shadow: 0px 0px 0px 0px #333;
    cursor: pointer;
    text-shadow: 1px 0 1px #eee, -1px 0 1px #eee, 0 1px 1px #eee, 0 -1px 1px #eee;
}

#taxonomy-choice:hover {
    background: radial-gradient(circle, transparent 30%, #cbd 25%, #cbd 50%, #d9cfe9 50%);
}

#taxonomy-choice:active {
    transition: background 200ms;
    background: radial-gradient(circle, transparent 50%, #a9b 50%, #a9b 50%, #bac 50%);
    transform: translate(0px, 0px);
    box-shadow: 0px 0px 0px 0px #333;
}

#alternate-selection {
    margin-bottom: 10px;
    background: #f5f5f5;
    min-width: 200px;
    height: 26px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #555;
    font-weight: 600;
    padding: 0px 6px;
    box-shadow: inset 0px -1px 2px 1px rgba(0, 0, 0, 0.15)
}

#randomness-slider {
    -webkit-appearance: none;
    background: #fff;
    width: 140px;
    height: 8px;
    border-radius: 8px;
    box-shadow: inset 0px 1px 2px 0 rgba(0, 0, 0, 0.3);
}

#randomness-label {
    font-weight: 600;
    color: #456;
    font-size: 0.9em;
}

#randomness-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: #789;
    border-radius: 20px;
    cursor: pointer;
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.1);
}

.slider-container {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: #456;
    margin-top: 0px;
    margin-bottom: 10px;
}

.switch {
    display: flex;
    align-items: center;
    justify-content: left;
    font-weight: 600;
    color: #456;
    font-size: 0.9em;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
    display: none;
}

.switch-slider {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 24px;
    margin: 10px;
    border-radius: 50px;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #fff;
    box-shadow: inset 0px 1px 2px 0 rgb(0 0 0 / 30%);
    transition: background .4s;
}

.switch-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: #789;
    transition: transform .4s;
    border-radius: 50%;
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.1);
}

input:checked+.switch-slider {
    background-color: #ded;
}

input:checked+.switch-slider:before {
    -webkit-transform: translateX(66px);
    -ms-transform: translateX(16px);
    transform: translateX(16px);
}

#no-species-warning {
    z-index: 2;
    position: absolute;
    top: 90px;
    font-size: 2em;
    text-align: center;
    font-weight: 200;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#refresh {
    margin-top: 15px;
    width: 100px;
    height: 40px;
}

#nbn-add-settings {
    margin-left: 10px;
    padding: 5px;
    font-weight: 600;
    color: #eee;
    font-size: 0.9em;
    border-radius: 5px;
    background: #456;
}

#ll-container {
    position: relative;
}

#ll-container input {
    margin-bottom: 5px;
    background: #fff;
    border: none;
    border-radius: 5px;
    box-shadow: inset 0px 1px 2px 0 rgb(0 0 0 / 30%);
    font-weight: 400;
    color: #456;
    font-size: 1em;
    width: 75px;
}

#nbn-get-button {
    background: #ded;
    border: none;
    width: 80px;
    height: 30px;
    border-radius: 10px;
    margin-top: 10px;
    font-weight: 600;
    color: #456;
    font-size: 0.9em;
    cursor: pointer;
}

.flex-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

#species-included {
    margin-top: 8px;
}

#occ-info {
    position: absolute;
    width: 300px;
    height: 60px;
    background: transparent;
    top: 5px;
    border-bottom: solid 2px #aaa;
}

@media only screen and (max-width: 1050px) {

    #load-add-images:hover {
        width: 35px;
    }
}

@media only screen and (max-width: 1050px) and (orientation: portrait) {

    #occ-info {
        top: auto;
        bottom: 24px;
    }

    #image-row {
        max-height: calc(100vh - 465px);
        min-height: 150px;
    }

    #add-image-container {
        max-height: calc(100vh - 465px);
    }

    #image-main {
        max-height: calc(100vh - 465px);
    }

    .multiple-choice-answer {
        height: 35px;
        font-size: 22px;
    }

}

#geolocate {
    position: absolute;
    top: 0;
    right: 0;
    margin: 2px;
    width: 10px;
    height: 10px;
    border: solid 3px #fff;
    border-radius: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

#geolocate:hover {
    background: rgba(255, 255, 255, 0.2);
}


#geolocate:before {
    width: 3px;
    height: 19px;
    border-radius: 3px;
    background: #fff;
    content: "";
    position: absolute;
}

#geolocate:after {
    width: 19px;
    height: 3px;
    border-radius: 3px;
    background: #fff;
    content: "";
    position: absolute;
}

#image-credit {
    position: absolute;
    bottom: 0;
    right: 0;
    background: rgba(30, 35, 30, 0.9);
    padding: 5px;
    border-radius: 5px 0 0px 0;
    color: #cccccc;
}

#image-credit .jsa {
    color: #eeeeee;
    font-style: italic;
    font-weight: 600;
    cursor: pointer;
}

.tooltip {
    cursor: none;
}

#cover-all-color {
    inset: 0;
    position: absolute;
}

#nbn-add-settings .dropdown {
    border: none;
    pointer-events: auto;
    background: #fff;
    border: none;
    border-radius: 5px;
    box-shadow: inset 0px 1px 2px 0 rgb(0 0 0 / 30%);
    font-weight: 400;
    color: #456;
    font-size: 1em;
    width: 100px;
    display: inline-block;
    margin: auto;
}