@font-face {
    font-family: 'opendyslexic';
    src: url('../fonts/OpenDyslexic-Regular.otf');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'opendyslexicbold';
    src: url('../fonts/OpenDyslexic-Bold.otf');
    font-weight: bold;
    font-style: normal;
}
@font-face {
    font-family: 'opendyslexicitalic';
    src: url('../fonts/OpenDyslexic-Italic.otf');
    font-weight: normal;
    font-style: italic;
}
@font-face {
    font-family: 'opendyslexicbolditalic';
    src: url('../fonts/OpenDyslexic-BoldItalic.otf');
    font-weight: bold;
    font-style: italic;
}

.rsbtn {
    overflow: visible;
    width: auto;
    white-space: nowrap;
}
.rsbtn button {
    min-height: initial !important;
}
#readspeaker_button1 {
    height: 30px;
    margin-bottom: 25px;
}
#readspeaker_button1 > * {
    height: 30px;
}
.rsbtn.rsexpanded .rsbtn_exp .rsbtn_exp_inner {
    height: 28px !important;
}
main article.page-intro .loginoptions {
    display: flex;
    gap: 60px;
}

#dialog-container.modal {
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 9999999;
}
#dialog-container .modal-inner {
    min-width: 28rem;
    max-width: 450px !important;
    min-height: auto !important;
    height: auto;
}
#dialog-container .modal-content {
    padding: 4rem 3rem;
    text-align: center;
    overflow: hidden;
    border-radius: 1.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
#dialog-container #confirmText {
    font-size: 2.2rem;
    line-height: 1.4;
    margin-top: 0;
    margin-bottom: 3rem;
    color: var(--z-color-primary, #333);
    font-weight: normal;
}
#dialog-container .button-holder {
    display: flex;
    justify-content: space-between;
    flex-direction: row-reverse;
    align-items: center;
    gap: var(--z-default-gap, 2rem);
    margin-bottom: 0;
    padding-top: 2rem;
}
#dialog-container .button-holder button {
    margin: 0;
}
/* Stacking context fix to force hexagon pseudo-elements (z-index: -1) to render in front of the white modal background */
#dialog-container .button.hexa-button {
    z-index: 1;
}

/* Validation error alert styles */
.validation-error-alert {
    background-color: #fff5f5;
    border-left: 5px solid var(--z-error-color, #ee0000);
    color: #9c0006;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    font-size: 1.6rem;
}
.validation-error-alert ul {
    margin: 1rem 0 0 1.5rem;
    padding: 0;
}
.validation-error-alert li {
    margin-bottom: 0.5rem;
}
.error-alert-header {
    font-size: 1.7rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: bold;
}
.error-alert-header i {
    color: var(--z-error-color, #ee0000);
    font-size: 2rem;
}


main article.page-intro .loginoptions {
    display: flex;
    gap: 60px;
}
div.scalelabels {
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: space-between;
}
div.scalelabels > label {
    display: block;
    width 50%;
    text-align: right;
}
div.scalelabels > label:first-of-type {
    text-align: left;
}
div#markers label,
div.marker label,
div.scalelabels label:not(:has(input)), 
div.scalelabels .label:not(:has(input)) {
    padding-left: initial;
}
div#markers label + label {
    margin-top: 0;
}
div#markers,
div.ranger {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    position: relative;
}
div.ranger:before {
    display: block;
    content: '';
    position: absolute;
    height: 8px;
    border: 1px solid grey;
    border-radius: 100px;
    top: 16px;
    width: 100%;
    background-color: #efefef;
    z-index: 0;
}
div#markers > label,
div.ranger div.marker {
    width: 24px;
    height: 40px;
    display: block;
    z-index: 1;
    overflow: hidden;
    text-align: center;
    cursor: pointer;
}
div.ranger div.marker input[type=radio] {
    position: absolute;
    top: -50000px;
}
div.ranger div.marker label {
    display: block;
    width: 24px;
    height: 40px;
    border: 1px solid rgba(0,0,0,0);
    border-radius: 100px;
    cursor: pointer;
    margin: 0;
}
div.ranger div.marker label .mark {
    display: block;
    content: '';
    width: 2px;
    background-color: #e6e6e6;
    height: 20px;
    margin: 10px 11px;
    border-radius: 100px;
    padding: 0;
}
div.ranger div.marker input:checked ~ label .mark {
    width: 8px;
    height: 32px;
    margin: 4px 8px;
    background-color: var(--z-btn-bg);
    border-radius: 100px;
}
label:has(input[type="checkbox"]) input[type="text"],
label:has(input[type="radio"]) input[type="text"] {
    width: 40%;
    min-width: 200px;
    opacity: 1;
    min-height: 30px;
    padding: 0.5rem 1.5rem;
    font-size: 1.6rem;
    height: fit-content;
}
input[type="number"] {
    width: 140px;
}

table.matrix {
    margin-right: 80px;
    border-collapse: collapse;
}
table.matrix th,
table.matrix td {
    padding: 0;
}
table.matrix tr td {
    border-right: 1px solid #3D3D3D;
    border-bottom: 1px solid #3D3D3D;
    text-align: center;
}
table.matrix tr td label {
    min-width: initial;
    max-width: initial;
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    margin-bottom: 0;
    align-items: center;
}
table.matrix tr td label:after,
table.matrix tr td label:before {
    display: none;
}
table.matrix tbody tr:first-of-type td {
    border-top: 1px solid #3D3D3D;
}
table.matrix tr td:first-of-type {
    min-width: 240px;
    padding: 10px;
    text-align: left;
    font-size: 1.6rem;
}
table.matrix tr:nth-of-type(odd) td {
    background-color: #F0F3F2;
}
table.matrix input[type=radio] {
    width: initial;
    opacity: 1;
}
th.diagonal {
    /* Something you can count on */
    height: 146px;
    white-space: nowrap;
    width: 30px;
}
th.diagonal > div {
    transform:
    translate(26px, 44px)
    rotate(315deg);
    width: 45px;
}
th.diagonal > div > span {
    /* border-bottom: 1px solid #3D3D3D; */
    padding: 5px 10px;
    display: inline-flex;
    height: 40px;
    flex-direction: column;
    justify-content: center;
}
th.diagonal > div > span:after {
    display: block;
    content: '';
    height: 1px;
    width: 120px;
    position: absolute;
    left: 0;
    bottom: 0;
    background: rgb(0,0,0);
    background: linear-gradient(90deg, rgba(0,0,0,0.8) 40%, rgba(0,0,0,0) 100%);
}

fieldset.statements {
    margin-bottom: 30px;
}

article.page-summary {
    padding: 5rem 5rem;
}
article.page-summary > * {
    grid-column: inherit;
}
article.page-summary section ul {
    list-style-type: none;
    padding: 0;
    margin-bottom: 2rem;
    gap: 0rem;
}
article.page-summary section ul h3 {
    margin-top: 0;
    font-weight: 600;
}
article.page-summary section ul li {
    padding-left: 0;
    font-size: 1.8rem;
}

article.page-summary section ul li span {
    padding-left: 32px;
    position: relative;
    display: block;
}
article.page-summary section ul li span > * {
    left: 0px;
    position: absolute;
    display: block;
    top: 4px;
}
article.page-summary section ul li span > p {
    position: relative;
    margin-top: 0;
    margin-bottom: 0;
}
article.page-summary section ul li span img {
    margin-right: 0px !important;
}

body.summary > header nav {
    justify-content: flex-start;
}

label:has(input[type="checkbox"]) input[type=checkbox], label:has(input[type="radio"]) input[type=radio] {
    margin: 0;
    position: absolute;
}
.rsbtn {
    overflow: visible;
    width: auto;
    white-space: nowrap;
}
.rsbtn button {
    min-height: initial !important;
}
.page-advice table {
    border: 0;
}
.page-advice table td {
    vertical-align: top;
    border: 0;
}
.page-advice table td > p:first-of-type {
    margin-top: 0;
}
.page-advice ul,
.page-advice ol {
    margin-left: 0.7rem;
}
main article.page-login-alt, main article.page-intro {
    grid-template-rows: min-content;
}

.youtube-embed {
    display: flex;
    justify-content: center;
}

.youtube-embed iframe {
    aspect-ratio: 16 / 9;
    width: 100% !important;
}

#dialog-container.modal {
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 9999999;
}
#dialog-container .modal-inner {
    min-width: 28rem;
    max-width: 450px !important;
    min-height: auto !important;
    height: auto;
}
#dialog-container .modal-content {
    padding: 4rem 3rem;
    text-align: center;
    overflow: hidden;
    border-radius: 1.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
#dialog-container #confirmText {
    font-size: 2.2rem;
    line-height: 1.4;
    margin-top: 0;
    margin-bottom: 3rem;
    color: var(--z-color-primary, #333);
    font-weight: normal;
}
#dialog-container .button-holder {
    display: flex;
    justify-content: space-between;
    flex-direction: row-reverse;
    align-items: center;
    gap: var(--z-default-gap, 2rem);
    margin-bottom: 0;
    padding-top: 2rem;
}
#dialog-container .button-holder button {
    margin: 0;
}
/* Stacking context fix to force hexagon pseudo-elements (z-index: -1) to render in front of the white modal background */
#dialog-container .button.hexa-button {
    z-index: 1;
}

/* Validation error alert styles */
.validation-error-alert {
    background-color: #fff5f5;
    border-left: 5px solid var(--z-error-color, #ee0000);
    color: #9c0006;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    font-size: 1.6rem;
}
.alert {
    color: #9c0006;
}
.validation-error-alert ul {
    margin: 1rem 0 0 1.5rem;
    padding: 0;
}
.validation-error-alert li {
    margin-bottom: 0.5rem;
}
.error-alert-header {
    font-size: 1.7rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: bold;
}
.error-alert-header i {
    color: var(--z-error-color, #ee0000);
    font-size: 2rem;
}

.iphemoji {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 20px;
}
.iphemoji img {
    width: 10%;
    max-width: 35px;
}
.branding img {
    max-height: 100%;
}
#dyslexic {
    display: inline-block;
    padding: 8px 12px;
    background-color: #FFF;
    border-radius: 3px;
    text-decoration: none;
    font-family: 'opendyslexicbold';
    position: relative;
    color: #000;
}
#dyslexic .dysclose {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: #000;
    color: #FFF;
    border-radius: 100px;
    width: 20px;
    height: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}
#menu-footer li {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.singlefeedback img {
    width: unset;
}
