body, html {
    font-family: "-apple-system", "Helvetica Neue", "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 10pt;
    background-color: white;
    text-align: left;
    color: #404040;
    width: 96%;
}

/* Platform specific class definitions. These are overridden in win32.css and osx.css */

x-win32, .win32, x-ios, .ios, x-osx, .osx {
    display: none;
}

x-hide, .x-hide {
    display: none;
}

/*
Responsive classes, meant for use mainly with images that you want to scale with the browser window size.

Set class="responsive" for an image that will scale to a maximum of its width and height specified in the img element and will shrink if the viewer's browser window becomes smaller than the image's dimensions.

Eg <img class="responsive" width="1280" height="720" src="../../filename.jpg" alt="Alternate Text">
*/

.videopadding {
    padding: 16px;
}

.screenshot {
    max-width: 30em;
    height: auto;
}

video {
    object-fit: contain;
    max-width: 100% !important;
}

#panorama {
    width: 50em;
    height: 50em;
}

.responsive {
    max-width: 100%;
    height: auto;
}

.responsive.ui,
.panel.ui {
    max-width: 50% !important;
}

.responsive.panel {
    max-width: 300px !important;
}

.cropping {
    position: relative;
    max-width: 800px;
    max-height: 577px;
    width: 100%;
    height: 577px;
    font-size: 80%;

}

.cropimage {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    transition: opacity 0.1s ease-in-out;
    opacity: 1;
    max-width: 100%;
    z-index: 901;
}

.cropimage.hidden {
    opacity: 0;
}

.crop {
    display: inline-block;
    z-index: 902;
    position: relative;
    top: 1.2%;
    left: 1.2%;
    color: #666 !important;
}

.crop:hover {
    color: #fff !important;
}

.crop.nohover:hover {
    color: #666 !important;
}

.crop.portrait:original ~ .cropimage.original {
    opacity: 1;
}

.crop.portrait:hover ~ .cropimage.portrait {
    opacity: 1;
}

.crop.rotate:hover ~ .cropimage.rotate {
    opacity: 1;
}

.crop.ratio:hover ~ .cropimage.ratio {
    opacity: 1;
}

.crop.absolute:hover ~ .cropimage.absolute {
    opacity: 1;
}

.crop.print:hover ~ .cropimage.print {
    opacity: 1;
}

.fill {
    width: 100% !important;
}

.clear {
    clear: both;
}


/* html element styling */
a:link, a:visited, a:active {
    text-decoration: none;
    color: #2878D4;
    -webkit-transition: color 0.25s ease-in;
    transition: color 0.25s ease-in;
}

a:hover {
    color: #8BD0F9;
}

h1 {
    padding-bottom: 0.2em;
    border-bottom: #bfbfbf 0.1em solid;
    font-size: 115%;
}

h2 {
    margin-top: 1.5em;
    font-size: 105%;
}

h3 {
    margin-top: 1.5em;
    font-size: 90%;
}

h4 {
    margin-top: 1em;
    font-size: 80%;
}

figure {
    margin-left: 0.75em;
}

figcaption {
    font-size: 80%;
    font-style: italic;
    padding-top: 1em;
}

img {
    border: none;
}

hr {
    border: none;
    height: 0.1em;
    background-color: #e9e9e9;
    margin-top: 1em;
}

hr.center-break {
    width: 20%;
}

ol, ul {
    padding-left: 1.2em;
}

.tools li {
    line-height: 2em;
}

li, p {
    font-size: 90%;
    margin: 0.5em 0em;
    line-height: 138%;
}

li p {
    font-size: 100%;
}

/* Make nested lis the same font size as parent lis */

ol li li {
    font-size: 100%;
}

ul li ul li {
    font-size: 100%;
}

ol li ul li {
    font-size: 100%;
}

ul li ol li {
    font-size: 100%;
}

details {
    margin-top: 1.5em; /* the space around the outside of the box */
    margin-bottom: 1.5em;
    outline: none;
}

details ol, ul {
    margin: 0.5em 0em;
}

details p {
    margin: 0.6em 0em;
}

/* used to add a, b, c, etc to nested ol lists */
ol.alphabetical {
    list-style-type: lower-alpha;
}

/* used to add i, ii, iii etc to nested ol lists */
ol.nested {
    list-style-type: lower-roman;
}

/* this class is used within 'see also' links */
ul.plain {
    list-style: none;
    margin-left: 0;
    padding-left: 0;
}

summary {
    margin-top: 1.3em;
    font-size: 80%;
    font-weight: bold;
}

/* use for the first instance a term is introduced */
.term {
    font-style: italic;
    font-weight: bold;
}

/* highlight formatting when referring to part of the UI
* not to be used when referring to keys on the keyboard
*/
.ui {
    color: #555;
    font-weight: bold;
}

/* section styling */

/* ID - this is a unique element that can only appear once per topic */
#also {
    margin-top: 1.5em; /* the space before the section line */
    border-top: #bfbfbf 0.1em solid;
}

/* used to place UI style formatting on buttons and icons from the toolbars and panels */
img.tool {
    margin-top: -0.3em;
    margin-bottom: -0.3em;
    border: 0.1em solid #494949;
    padding: 0.2em;
    background-color: #434343;
    -webkit-border-radius: 0.3em;
}

/* this corrects the padding when used inline with an h1 element */
img.heading{
    margin-bottom: 0em;
}

/* standard div container */
.box {
    margin-top: 1.5em; /* the space around the outside of the box */
    margin-bottom: 1.5em;
    padding-top: 0.5em; /* internal box padding */
    padding-left: 1em;
    padding-right: 1em;
    padding-bottom: 0.5em;
    width: 85%;
}

/*
 * reduce padding from heading styles used in div box
 */

.box h2 {
    margin-top: 1em;
}

.box h3 {
    margin-top: 0.5em;
}

/* formatting for a div box of links */
.links {
    background-color: #f9f9f9;
    border: #bfbfbf 0.03em solid;
    -webkit-border-radius: 0.2em;
    -webkit-box-shadow: 0 0.1em 0.3em #d0d0d0;
}

/* formatting for a div note box
 */
.note {
    background-color: #eef3ff;
    background-image: url(../../shared/note.png);
    background-repeat: no-repeat;
    background-size: 1em 1em;
    background-position: 0.5em 1em;
    /*
        border: #bfbfbf 0.03em solid;
        -webkit-border-radius: 0.3em;
        -webkit-box-shadow: 0 0.1em 0.3em #d0d0d0;
    */
    padding-left: 2em; /* text padding */
    -webkit-transition: background-color 0.15s ease-in;
    transition: all 0.15s ease-in;
}

.note:hover {
    background-color: #d7e3ff;
    /* 	border: 0.03em solid; */
}

/* formatting for a div tip box */
.tip
{
    background-color: #fdf6e2;
    background-image: url(../../shared/tip.png);
    background-repeat: no-repeat;
    background-size: 1em 1em;
    background-position: 0.5em 1em;
    padding-left: 2em;
    -webkit-transition: background-color 0.15s ease-in;
    transition: all 0.15s ease-in;
}

.tip:hover {
    background-color: #fae7b3;

}

/* formatting for a div warning box */
.warning {
    background-color: #feefef;
    background-image: url(../../shared/warning.png);
    background-repeat: no-repeat;
    background-size: 1em 1em;
    background-position: 0.5em 1em;
    padding-left: 2em; /* text padding */
    -webkit-transition: background-color 0.15s ease-in;
    transition: all 0.15s ease-in;
}

.warning:hover {
    background-color: #fbc1c1;
}

/* formatting for a div prefs box */
.prefs {
    background-color: #f4f5f5;
    background-image: url(../../shared/prefs.png);
    background-repeat: no-repeat;
    background-size: 1em 1em;
    background-position: 0.5em 1em;
    padding-left: 2em; /* text padding */
    -webkit-transition: background-color 0.15s ease-in;
    transition: all 0.15s ease-in;
}

.prefs:hover {
    background-color: #dadddd;

}

/* formatting for a div note box */
.unique_persona {
    background-color: #f5f5ff;
    background-image: url(../../shared/ui/PhotoPersona.png);
    background-repeat: no-repeat;
    background-size: 1.25em 1.25em;
    background-position: 0.35em 0.35em;
    border: #bfbfbf 0.03em solid;
    -webkit-border-radius: 0.3em;
    -webkit-box-shadow: 0 0.1em 0.3em #d0d0d0;
    padding-left: 2em; /* text padding */
    padding-top: 0.3em;
    -webkit-transition: background-color 0.15s ease-in;
    transition: all 0.15s ease-in;
    min-height: 1.8em;
    margin-bottom: 1em;
    margin-top: 1em;
}

.unique_persona:hover {
    background-color: #f1f1f0;
    border: 0.03em solid;
}

.message_photo {
    background-image: url(../../shared/ui/PhotoPersona.png);
}

.message_designer {
    background-image: url(../../shared/ui/drawpersona.png);
}

.task {
    background-color: #f9f9f9;
    border: #bfbfdf 0.03em solid;
    -webkit-border-radius: 0.3em;
    -webkit-box-shadow: 0 0.1em 0.3em #d0d0d0;
}

.script {
    background-color: #f9f9f9;
    border: #bfbfdf 0.03em solid;
    -webkit-border-radius: 0.3em;
    -webkit-box-shadow: 0 0.1em 0.3em #d0d0d0;
}

.inset {
    margin-left: 1em;
}

/* FAQ border box */
.faq {
    border: #bfbfbf 0.1em solid;
    -webkit-border-radius: 0.03em;
    -webkit-box-shadow: 0 0.1em 0.3em #d0d0d0;
}

/* highlight formatting when refering to a key */
.key {
    font-weight: bold;
    white-space: nowrap;
}

/* changes the font weight to normal and encloses text in parentheses */
.small-key {
    font-weight: normal;
    font-size: 75%;
    color: #aaa;
}

.small-key:before {
    content: '(';
}

.small-key:after {
    content: ')';
}

/* Code class for tidier looking code snippets */

code.contained {
    width: 64%;
    display: block;
    background-color: #ddd;
    padding: 0.5%;
}


/* ================ OS dependent function modifiers =============== */

.FN-TAG:after {
    content: "(fn)";
}

.ALT-TAG:after{
    content:"⌥";
}
.CMD-TAG:after{
    content:"⌘";
}
.CTRL-TAG:after{
    content:"⌃(ctrl)";
}
.DEL-TAG:after{
    content:"⌦";
}
.ESC-TAG:after{
    content:"esc";
}
.SHIFT-TAG:after{
    content:"⇧";
}
.TAB-TAG:after{
    content:"⇥";
}
.RETURN-TAG:after{
    content:"↵";
}
.UP-TAG:after{
    content:"↑";
}
.DOWN-TAG:after{
    content:"↓";
}
.LEFT-TAG:after{
    content:"←";
}
.RIGHT-TAG:after{
    content:"→";
}
.BACKSPACE:after {
    /*	content: "⟵"; */
    content: "Backspace";
}
.BACKSPACE-WIN:after {
    content: "Backspace";
}
.BACKSPACE-TAG:after {
    content: "Backspace";
}
.CLICK-TAG:after {
    content:"⌃(ctrl)";
}

.PGUP-TAG:after {
    content:"⇞";
}

.PGDN-TAG:after {
    content:"⇟";
}

.HOME-TAG:after {
    content:"↖︎";
}

.END-TAG:after {
    content: "↘︎";
}

.PLUS-TAG:after {
    content: "";
}

/* Creates a heading style when introducing tables */
h2.table {
    border-bottom: #bfbfbf 0.1em solid;
    padding-bottom: 0.5em;
}

/* table formatting - general */
table {
    width:65%;
    margin: 0;
    padding-right: 0.5em;
    text-align: left;
}

table th {
    font-size: 85%;
    padding-right: 1em;
    text-align: left;
    padding-top: 1em;
    padding-bottom: 1em;
}

table th.section {
    padding-top: 1em;
    padding-bottom: 1em;
    background-color: #fff;
}

table td {
    font-size: 80%;
    vertical-align: top;
    padding-top: 0.1em;
    padding-bottom: 0.1em;
    padding-left: 0.2em;
}

table td:first-child {
    width: 70%;
    padding-right: 0.5em;
}

table td p {
    margin: 0;
}

table td p+p {
    margin-top: 0.3em;
}

table tr {
    -webkit-transition: background-color 0.15s ease-in;
    transition: background-color 0.15s ease-in;
}

table tr:nth-child(even) {
    background-color: #eee;
}

table tr:hover {
    background-color: #ddd;
}

table.uniform tr:nth-child(even) {
    background-color: #fff;
}

table.uniform tr:nth-child(even):hover {
    background-color: #ddd;
}

table td:nth-child(1) {
    width: 60%;
}

/* Add-ons table */

table.addons.link td:first-child { width: 25%; }

table.addons.import td:first-child { width: 12%; }
table.addons.import td:nth-child(2) { width: 30%; }
table.addons.import td:nth-child(3) { width: 8%; }

table.addons.export td:first-child { width: 12%; }
table.addons.export td:nth-child(2) { width: 30%; }

table.addons td {
    padding-top: 0.5em;
    padding-bottom: 0.5em;
    line-height: 1.25em;
}

table.addons li,
table.addons p {
    font-size: 100%;
    line-height: 138%;
}

table.addons ul,
table.addons ol {
    margin-block-start: -1em;
    margin-block-end: 0;
    padding-inline-start: 1.4em;
    margin-top: 0;
    margin-bottom: 0;
}

/* Equal Spacing */

table.equal {
    width:95%;
}

table.equal td:first-child {
    width: auto;
}

table.equal td:nth-child(1) {
    width: auto;
}

/* 75-25 */

table.seventyfive-twentyfive td:first-child {
    width: 75%;
}

table.seventyfive-twentyfive td:nth-child(2) {
    width: 25%;
}

/* 33% three column */

table.thirtythree td:first-child, table.thirtythree td:nth-child(2), table.thirtytree td:nth-child(3) {
    width: 33%;
}

/* 50-25-25 */

table.fifty-twentyfive-twentyfive td:first-child {
    width: 50%;
}

table.fifty-twentyfive-twentyfive td:nth-child(2), table.fifty-twentyfive-twentyfive td:nth-child(3) {
    width: 25%;
}

.comparison, .single {
    position: relative;
    display: inline-block;
    line-height: 0;
}

.comparison img, .single img {
    user-select: none;
    max-width: 60em;
    z-index: 2;
}

.comparison div {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    max-width: 60em;
    z-index: 3;
}

/* .comparison:hover div {
	opacity: 0;
	display: none;
} */

.viewable {
    opacity: 0;
}

.vertical, .vertical img {
    max-width: auto !important;
    max-height: 40em !important;
}

.comparison:before {
    font-size: 95%;
    color: rgb(240,240,240);
    text-shadow: 0.1em 0.1em 0.1em #222;
    position: absolute;
    left: 0;
    right: 0;
    text-align: center;
    bottom: 1em;
    z-index: 99;
}

.comparison:hover:before {
    color: rgb(240,240,240);
    text-shadow: 0.1em 0.1em 0.1em #222;
    position: absolute;
    left: 0;
    right: 0;
    text-align: center;
    bottom: 1em;
}

#spacer {
    display: block;
    width: 100%;
    height: 500px;
    clear: both;
}

.hideme {
    position: absolute;
    opacity: 0;
    width: 90%;
}

#spacer:after {
    content: " ";
}


#anchor_assistant:target {
    background-color: #edeeee;
    border: #bfbfbf 0.1em solid;
    -webkit-border-radius: 0.4em;
    -webkit-box-shadow: 0 0.1em 0.2em #d0d0d0;
    padding-left: 1em;
    -webkit-transition: all 0.5s ease-in-out;
    transition: all 0.5s ease-in-out;
    padding-top: 0.25em;
}

#anchor_assistant:target:before {
    font-size: 80%;
    font-weight: bold;
    content: "Highlighted";
}


/* Tab classes for visual reference */

.tabs input[type=radio] {
    position: absolute;
    top: -500em;
    left: -500em;
}

.tabs {
    width: 100%;
    height: 100%;
    float: left;
    list-style: none;
    position: relative;
    padding: 0;
}

.tabs li {
    float: left;
}

.tabs label {
    display: block;
    padding: 0.5em 1em;
    background: rgba(255,255,255,0.2);
    cursor: pointer;
    position: relative;
    -webkit-transition: all 0.2s ease-in-out;
    -moz-transition: all 0.2s ease-in-out;
    -o-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
}

.tabs label:hover {
    background: rgba(120,120,120,0.5);
}

[id^=tab]:checked + label {
    background: #333;
    color: #fff;
}

[id^=tab]:checked ~ [id^=tab-content] {
    display: block;
}

.tab-content {
    z-index: 2;
    display: none;
    text-align: left;
    width: 100%;
    height: auto;
    color: #000;
    position: absolute;
    margin-top: 0em;
    left: 0;
    float: left;
    box-sizing: border-box;
}

.tab_overlay {
    display: block;
    background: #000;
    width: 100%;
    height: 100%;
    position: relative;
    top: 0;
    left: 0;
    margin-top: 0em;
    box-sizing: border-box;
    z-index: 10;
    opacity: 0;
    transition: all 0.3s ease-in-out;
}

.uitoolbar {
    display: block;
    background: #fff;
    opacity: 0.1;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    transition: all 0.3s ease-in-out;
    z-index: 22;
}

.uitoolbar:hover {
    opacity: 0.55;
}

.uitoolbar:hover ~ .tab_overlay {
    opacity: 0.7;
}

.uitoolbar_message {
    display: block;
    height: auto;
    position: absolute;
    top: 50%;
    left: 30%;
    height: auto;
    box-sizing: border-box;
    z-index: 11;
    transition: all 0.3s ease-in-out;
    color: #fff;
    opacity: 0;
    font-size: 200%;
    line-height: 1.5em;
    transition: all 0.3s ease-in-out;
    background: rgba(128,128,128,0.5);
    padding: 0.6em;
    width: 40%;
    -webkit-filter: drop-shadow(0.4em 0.4em 0.9em black);
    text-align: center;
}

.uitoolbar.persona {
    width: 14.6%;
    height: 5.2%;
    margin-left: 1.4%;
    margin-top: 2.2%;
}

.uitoolbar.persona:hover ~ .uitoolbar_message.persona {
    opacity: 0.9;
}

.uitoolbar.persona.designer {
    width: 8.9% !important;
    margin-top: 2.2%;
    margin-left: 0.5%;
}

/* */

.uitoolbar.rawinfo {
    width: 82.2%;
    height: 5.2%;
    margin-left: 16.9%;
    margin-top: 2.2%;
}



.uitoolbar.rawinfo:hover ~ .uitoolbar_message.rawinfo {
    opacity: 0.9;
}

/* */

.uitoolbar.phototoolbar {
    width: 79%;
    height: 5.2%;
    margin-left: 19.7%;
    margin-top: 2.2%;
}



.uitoolbar.phototoolbar:hover ~ .uitoolbar_message.phototoolbar {
    opacity: 0.9;
}

/* */

.uitoolbar.drawtoolbar {
    width: 87.5%;
    height: 5.2%;
    margin-left: 11.5%;
    margin-top: 2.2%;
}



.uitoolbar.drawtoolbar:hover ~ .uitoolbar_message.drawtoolbar {
    opacity: 0.9;
}

/* */

.uitoolbar.photocontext {
    width: 67%;
    height: 3.8%;
    margin-left: 0%;
    margin-top: 5.75%;
}

.uitoolbar.photocontext:hover ~ .uitoolbar_message.photocontext {
    opacity: 0.9;
}

/* */

.uitoolbar.drawcontext {
    width: 43%;
    height: 3.8%;
    margin-left: 0%;
    margin-top: 5.75%;
}

.uitoolbar.drawcontext:hover ~ .uitoolbar_message.drawcontext {
    opacity: 0.9;
}

/* */

.uitoolbar.liquifytoolbar {
    width: 65%;
    height: 5.2%;
    margin-left: 34%;
    margin-top: 2.2%;
}



.uitoolbar.liquifytoolbar:hover ~ .uitoolbar_message.liquifytoolbar {
    opacity: 0.9;
}

/* */

.uitoolbar.exporttoolbar {
    width: 16.5%;
    height: 5.2%;
    margin-left: 82.25%;
    margin-top: 2.2%;
}



.uitoolbar.exporttoolbar:hover ~ .uitoolbar_message.exporttoolbar {
    opacity: 0.9;
}

/* */

.uitoolbar.tonemappingtoolbar {
    width: 10%;
    height: 5.2%;
    margin-left: 89.1%;
    margin-top: 2.2%;
}



.uitoolbar.tonemappingtoolbar:hover ~ .uitoolbar_message.tonemappingtoolbar {
    opacity: 0.9;
}

/* */

.uitoolbar.toolsraw {
    width: 3.07%;
    height: 39.5%;
    margin-left: 0%;
    margin-top: 8.25%;
}



.uitoolbar.toolsraw:hover ~ .uitoolbar_message.toolsraw {
    opacity: 0.9;
}

/* */

.uitoolbar.toolsphoto {
    width: 3.1%;
    height: 80.9%;
    margin-left: 0%;
    margin-top: 7.8%;
}


.uitoolbar.toolsphoto:hover ~ .uitoolbar_message.toolsphoto {
    opacity: 0.9;
}

/* */

.uitoolbar.toolsdraw {
    width: 3.1%;
    height: 80%;
    margin-left: 0%;
    margin-top: 8%;
}


.uitoolbar.toolsdraw:hover ~ .uitoolbar_message.toolsdraw {
    opacity: 0.9;
}

/* */

.uitoolbar.toolsliquify {
    width: 3.07%;
    height: 47.4%;
    margin-left: 0%;
    margin-top: 8.25%;
}



.uitoolbar.toolsliquify:hover ~ .uitoolbar_message.toolsliquify {
    opacity: 0.9;
}

/* */

.uitoolbar.toolsexport {
    width: 3.07%;
    height: 18%;
    margin-left: 0%;
    margin-top: 8.25%;
}



.uitoolbar.toolsexport:hover ~ .uitoolbar_message.toolsexport {
    opacity: 0.9;
}

/* */

.uitoolbar.toolstonemapping {
    width: 3.18%;
    height: 22.25%;
    margin-left: 0%;
    margin-top: 8.25%;
}

.uitoolbar.toolstonemapping:hover ~ .uitoolbar_message.toolstonemapping {
    opacity: 0.9;
}

/* */

.uitoolbar.panels {
    width: 20.7%;
    height: 85%;
    margin-left: 79.3%;
    margin-top: 8%;
}



.uitoolbar.panels:hover ~ .uitoolbar_message.panels {
    opacity: 0.9;
}

/* */

.uitoolbar.slices {
    width: 24.5%;
    height: 41.3%;
    margin-left: 19.4%;
    margin-top: 13.7%;
}



.uitoolbar.slices:hover ~ .uitoolbar_message.slices {
    opacity: 0.9;
}

.uitoolbar.slices.designer {
    width: 16.5% !important;
    height:  26.5% !important;
    margin-left: 37.8% !important;
    margin-top: 11.7% !important;
}

.uitoolbar.slices2.designer {
    width: 49% !important;
    height:  44.25% !important;
    margin-left: 20.7% !important;
    margin-top: 24% !important;
}

/* */

.uitoolbar.slices2 {
    width: 18.7%;
    height: 61.1%;
    margin-left: 45.1%;
    margin-top: 13.7%;
}

.uitoolbar.slices2:hover ~ .uitoolbar_message.slices2 {
    opacity: 0.9;
}

.height_500 {
    max-width: auto;
    max-height: 500px;
}

.height_400 {
    max-width: auto;
    max-height: 400px;
}

.clear:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
}

* html .clear {
    zoom: 1;
}

*:first-child+html .clear {
    zoom: 1;
}

/* Gesture styling */

.gestureimage {
    position: absolute;
    width: 200px;
    height: 200px;
    left: 1em;
    top: 1em;
}

.gesturetext {
    position: absolute;
    left: 2.5em;
    top: 17em;
}

.gesture {
    opacity: 0;
    transition: all 0.25s ease-in-out;
}

.active {
    opacity: 1;
}

.contentpad {
    padding: 0;
}

.subhovers {
    list-bullet-type: none;
    margin: 0;
    padding: 0;
    font-size: 117%;
}

.gesturelink {
    position: absolute;
    left: 16em;
}

.subhovers li {
    display: block;
    float: left;
    clear: both;
    margin: 1em;
}

.first {
}

.first.active {
    opacity: 0;
}

/* Media queries */

@media screen and (max-width: 72em) {
    .comparison img, .comparison, .comparison div, .single, .single img {
        max-width: 42em;
    }

    table {
        width: 90%;
        padding-right: 1%;
    }

    code.contained {
        width: 90%;
    }
}

@media screen and (max-width: 40em) {
    body {
        font-size: 100%;
    }

    .comparison img, .comparison, .comparison div, .single, .single img {
        max-width: 100%;
    }

    details summary {
        font-size: 90%;
    }

    .tab-content {
        margin-top: 3.5em;
    }

    .tab-gesture {
        margin-top: 1em;
    }

    #spacer {
        height: 410px;
    }

    table {
        width: 99%;
        padding-right: 1%;
    }

    code.contained {
        width: 99%;
    }

    .gesturetext {
        top: 13.5em;
        left: 0;
    }

    .subhovers li {
        display: inline;
        margin: 0.2em;
    }

    .gestureimage {
        top: 0;
        left: 0;
    }

    .gesturelink {
        position: relative;
        left: 14em;
        font-size: 90%;
    }
}

@media screen and (max-width: 28em) {
    .gesturelink {
        left: 0;
        top: 18em;
    }

    .gestureimage {
        top: 3em;
    }

    .gesturetext {
        top: 0;
        left: 0.45em;
        font-size: 80%;
    }
}

@media print {
    body {
        width: 100% !important;
        height: auto !important;
        padding-top: 0 !important;
        padding-left: 0 !important;
        margin: 0 auto !important;
        overflow: scroll !important;
    }
}

/* tabbedImage styles */

.tabbedImage {
    clear: both;
    overflow: hidden;
    margin-top: 1.4em;
    margin-bottom: 1.4em;
}

.tabbedImage > .view {
    position: relative;
    left: 0;
    clear: both;
}

.tabbedImage > .view > img.responsive {
    max-width: auto;
    max-height: 500px;
}

.tabbedImage.sidebar > .view > img.responsive {
    /* This is taken into account by tabbedImages.js in calculation of accompanying menu's vertical start position */
    padding-top: 20px;
    padding-bottom: 20px;
}

.tabStrip {
    min-height: 32px;
}

.tabbedImage.interactive {
    min-width: 550px;
    max-width: 800px;
}

.tabStrip > .tab {
    background-color: white;
    color: black;
    cursor: pointer;
    float: left;
    height: inherit;
    padding-left: 1em;
    padding-right: 1em;
    padding-top: 2px;
    padding-bottom: 2px;
}

.tabStrip > .tab:hover {
    background-color: grey;
    color: black;
}

.tabStrip > .tab.selected {
    background-color: black;
    color: white;
}

/* for tabs whose label is preceded by an icon, like in interface.html */
.tab > p > img {
    width: 18px;
    height: 18px;
    vertical-align: middle;
    margin-right: 8px;
}

.overlays,
.overlay-group,
.overlay-pair,
.overlay-pair > .hotspot,
.overlay-pair > .anno,
.menu,
.menu-item,
.menu-item > .label,
.menu-item > .caption {
    position: absolute;
    width: auto;
    height: auto;
}

.overlays {
    z-index: 5;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.overlay-pair > .hotspot {
    background-color: rgba(224,224,224, 0.2);
}

.overlay-pair > .hotspot,
.menu-item > .label {
    z-index: 10;
}

/* hide notes and captions by default */
.overlay-pair > .anno,
.menu-item:not(.selected) > .caption {
    opacity: 0;
}

.overlay-pair > .hotspot:hover,
.overlay-pair > .hotspot:hover > p {
    cursor: default;
}

.overlay-pair > .anno {
    pointer-events: none;
}

.overlay-pair > .hotspot:hover + .anno,
.overlay-pair > .hotspot:active + .anno,
.menu-item > .caption {
    opacity: 1;
}

.overlay-pair > .hotspot:hover {
    background-color: rgba(255,255,255,0.55);
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

.overlay-group,
.menu {
    opacity: 0;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* reveal overlay corresponding to selected tab (if there is one) */
.overlay-group.selected,
.menu.selected {
    opacity: 1;
}

/* default appearance for hotspots and sidebar menu items */
.overlay-pair > .anno,
.menu-item > .caption {
    height: auto;
    box-sizing: border-box;
    transition: all 0.3s ease-in-out;
    -webkit-transition: all 0.3s ease-in-out;
    color: #fff;
    font-size: 200%;
    line-height: 1.5em;
    background: rgba(128,128,128,0.95);
    padding: 0.6em;
    text-align: center;
    z-index: 15;
}

.overlay-pair > .anno {
    pointer-events: none;
    -webkit-filter: drop-shadow(0.4em 0.4em 0.9em black);
}

.overlay-pair > .anno > h2 {
    font-size: 0.75em;
    padding: 0;
    margin-top: 0.3em;
    margin-bottom: 0;
}

.overlay-pair > .anno > h4 {
    font-size: 0.6em;
    padding: 0;
    margin-top: 0.4em;
    margin-bottom: 0.8em;
    line-height: 1.4em;
}

.menu-item > .caption {
    color: #000;
    font-size: 1em;
    background: white;
    padding: 0;
    text-align: left;
}

.menu-item {
    position: absolute;
    width: 100%;
    height: 100%;
}

.menu-item > .label {
    min-width: 160px;
    height: auto;
}

.menu-item > .label:hover { cursor: pointer; }

.menu-item.selected { font-weight: bold; }

.menu-item.selected > .label > p:hover { cursor: default; }

.menu-item.selected > .caption { opacity: 1; }

.caption-container > ul,

.caption-container > p { font-weight: normal; } // overrides inheritance from .menu-item.selected above

                                                       /* when hovering over a hotspot, this reveals its corresponding annotation */
                                                   .overlay-pair > .hotspot:hover + .anno {
                                                       opacity: 1;
                                                   }

.overlay-pair,
.overlay-pair > hotspot,
.overlay-pair > anno {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.menu-item > .label {
    font-size: 1.1em;
}

.menu-item > .caption {
    min-width: 200px;
    height: auto;
    background-color: rgba(255,255,255,0); /* avoids background colour obscuring into underlying image's pixels */
}

.menu-item > .caption > p {
    height: auto;
    font-size: 1.1em;
    font-weight: normal;
}

.menu-item > .label > p {
    color: rgb(40, 120, 212) !important; // to match hyperlink colour
}

.menu.invertCaptions > .menu-item > .caption,
.menu  > .menu-item > .caption.invert {
    background-color: black;
    color: white;
    padding-left: 1em;
    padding-right: 1em;
}

/* Used by collapsible categorised lists, e.g. in Affinity Photo's filters_applying.html topic.  */

/* Table widths, margins and borders */
.categorisedList,
.categorisedList.withDescriptions {
    min-width: 380px;
    margin-top: 0.3em;
    margin-bottom: 1em;
}

.categorisedList { max-width: 460px; }
.categorisedList.withDescriptions { max-width: 700px; }

/* Column widths */
.categorisedList td:nth-child(1) { width: auto; }
.categorisedList.withDescriptions td:nth-child(1) { width: 20%; }

/* Column widths */
.categorisedList td:nth-child(1) { width: auto; }
.categorisedList.withDescriptions td:nth-child(1) { min-width: 18%; }

.categorisedList:not(.withDescriptions) td:nth-child(2),
.categorisedList:not(.withDescriptions) td:nth-child(3) { width: 30%; }

.categorisedList.widthDescriptions td:nth-child(2) { width: auto; }
.categorisedList.withDescriptions td:nth-child(3),
.categorisedList.withDescriptions td:nth-child(4) { width: 14%; }

/* Column header */
.categorisedList thead tr:first-child,
.withDescriptions thead tr:first-child {
    font-weight: bold;
}

/* Row height for improved spacing */
.categorisedList td,
.categorisedList.withDescriptions td {
    padding-top: 0.3em;
    padding-bottom: 0.3em;
}

/* Padding before first column's cells and after last column's cells */
.categorisedList:not(.withDescriptions) td:nth-child(1) {
    padding-left: 0.3em;
}

/* Alignment with summary element's text content */
.categorisedList { padding-left: 0.5em; }
.categorisedList.withDescriptions { padding-left: 0; }

.smallCheck {
    width: 12px;
    height: 12px;
}

details.tighten {
    margin-top: 1em;
    margin-bottom: 1em;
}

/* For exportSettings.html */

/* Show/hide format-specific settings at bottom of page based on which one has the data-selected attribute applied and set to true. */
table[data-format][data-selected="true"],
div[data-format][data-selected="true"] {
    display: table;
}

table[data-format]:not([data-selected="true"]),
div[data-format]:not([data-selected="true"]) {
    display: none;
}

/* Format settings tables */

/* Header and footer styling and behaviour. */
.formatSettings thead tr,
.formatSettings tfoot td {
    background-color: white;
}

/* Localised cell formatting */

/* Icons in header and footer */
.formatSettings thead th {
    padding-top: 0;
    padding-bottom: 0;
    padding-left: 4px;
    padding-right: 4px;
}

.formatSettings.multi th:nth-child(n+2),
.formatSettings.multi td:nth-child(n+2) {
    width: 22px;
}

.formatSettings .formatIcon {
    margin-top: 4px;
    width: 22px;
}

.formatSettings td:nth-child(1) {
    width: auto;
    min-width: 200px;
}

/* Media query to deal with narrow viewport */
@media screen and (max-width: 730px) {

    /* Icons in header and footer */
    .formatSettings.multi th:nth-child(n+2),
    .formatSettings.multi td:nth-child(n+2) {
        width: 12px;
    }

    .formatSettings.multi .formatIcon {
        margin-top: 4px;
        width: 14px;
    }

    .formatSettings.multi img.smallCheck {
        width: 10px;
        height: 10px;
    }

    .formatSettings.multi thead th {
        padding-left: 1px;
        padding-right: 1px;
    }

    .formatSettings td:nth-child(1) {
        min-width: 130px;
    }

}

.formatSettings td {
    font-size: 90%;
    padding-left: 5px;
    height: 22px;
}

.formatSettings.general th:nth-child(n+2),
.formatSettings.general td:nth-child(n+2) {
    width: 70px;
    text-align: center;
    vertical-align: top;
}

.formatSettings tr td:nth-child(1) {
    padding-top: 4px;
}

.formatSettings td > *:last-child {
    padding-bottom: 4px;
}

/* Interactivity. */
.formatSettings summary:focus {
    outline: 0;
}

.formatSettings summary {
    cursor: pointer;
    text-indent: -1.05em;
    padding-left: 1em;
}

/* Correction for text sizes within open details elements. */
.formatSettings details,
.formatSettings summary {
    margin: 0;
    font-size: 100% !important;
}

.formatSettings p,
.formatSettings ul li {
    font-size: 100%;
}

/* Export format icons in table header and check marks in rows */
.formatSettings td:nth-child(n+2) {
    text-align: center;
    padding-left: 2px;
}

/* Check marks in comparison table. */
.formatSettings.general img.smallCheck,
.formatSettings.multi img.smallCheck {
    margin-top: 5px;
}

.formatSettings.multi tfoot .formatIcon {
    padding-bottom: 2px;
}

.formatSettings.multi th.windowsOnly,
.formatSettings.multi td.windowsOnly {
    display: none;
}

/* Recolour tables  – necessary to override global style due to inclusion of thead and tfoot elements. */
.formatSettings.general tr:nth-child(n) td,
.formatSettings.multi tbody tr:nth-child(n) td,
.formatSettings.unique tr:nth-child(n) td {
    background-color: rgb(238,238,238);
}

.formatSettings.general tr:nth-child(2n) td,
.formatSettings.multi tbody tr:nth-child(2n) td,
.formatSettings.unique tr:nth-child(2n) td {
    background-color: rgb(224,224,224);
}

.formatSettings.multi thead th:nth-child(n+2),
.formatSettings.multi tfoot td:nth-child(n+2) {
    background-color: rgb(255,255,255);
}

/* UX improvement to allow pop-up menu near bottom of page to scroll further into view. */
#also + #spacer { height: 40vh; }

/* For shortcuts.html */
div[data-category][data-selected="true"] {
    display: block;
}

div[data-category]:not([data-selected="true"]) {
    display: none;
}

div[data-category] {
    width: 100%;
}