@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');
@import url('./cookie-consent.css');
@import url('./device.css');
@import url('./feature.css');
@import url('./layout.css');
@import url('./library-device.css');
@import url('./login.css');
@import url('./userprofile.css');
@import url('./logos.css');
@import url('./post.css');
@import url('./device-tiles.css');
@import url('./search-parameters.css');

:root {
    --positive-green: rgb(53, 157, 59);
    --negative-red: rgb(177, 76, 78);
    --font: "Inter", sans-serif;
}

html,
body {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}

* {
    box-sizing: border-box;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0 0 10px 0;
    padding: 0;
    color: #000000;
}


h1 {
    padding-bottom: 0.6em;
    padding-top: 0.6em;
    font-size: 1.8rem;
    font-weight: 300;
}

h2 {
    padding-bottom: 1rem;
    margin: 0rem;
    font-size: 0.9rem;
    font-weight: 500;
}

h3 {
    padding-top: 0.5em;
    font-size: 1em;
}

h4 {
    font-size: 0.85em;
    font-weight: 500;
}

h5 {
    font-size: 0.8em;
}

body {
    min-height: 100vh;
    background: #f7f7f7;
    font-size: 0.9rem;
    line-height: 200%;
    font-family: var(--font);
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings:
        "slnt" 0;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-size-adjust: none;
    -moz-text-size-adjust: none;
    -webkit-text-size-adjust: none;
}

p {
    line-height: calc(1ex / 0.32);
    font-size: 0.9rem;
    white-space: normal;
    word-wrap: break-word;
    hyphens: auto;
    overflow: visible;
}

/* Links */
a {
    text-decoration: none;
    font-weight: 500;
    margin: 0;
    /* padding: 0 !important; */
    color: #000000;
    /*ableton blue #0000FF*/
}

a:hover {
    text-decoration: none;
    font-weight: 500;
    color: #000000;
    /* ableton blue #0000FF old site is #0000FF */
}

a img {
    border: 0;
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

a img.border {
    border: 1px solid #000;
}

a:hover img.border {
    /* Fixes IE bug - IE doesn't correctly apply the style on a:hover so need to mask it */
    border: 1px solid #668FA3 !important;
    border: 1px solid #00BEA1;
}

mark {
    background-color: #abf2eb;
    color: #000;
}

/* Notice Message */
.notice {
    width: 85%;
    margin-top: 1.2rem;
    font-style: italic;
}

.notice p {
    font-size: 0.8rem !important;
    word-break: keep-all !important;
}

/* Table Cells */
table {
    font-size: 0.9rem;
    width: 100%;
}

th,
td {
    padding-left: 10px !important;
    padding-right: 10px !important;
    align-items: center;
    align-self: center;
    vertical-align: top;
    font-weight: normal;
    text-align: left;
}

.trbg {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

/* Needed to horizontally pad in a coloured container */
.horzPad h1,
.horzPad h2,
.horzPad h3,
.horzPad h4,
.horzPad h5,
.horzPad p {
    padding-left: 5px;
    padding-right: 5px;
}

/* Images */
.img {
    background-color: #e6e6e6;
    height: min(460px, 100%);
    max-height: 460px;
    width: 100%;
}

img.floatRight {
    margin: 5px 0 10px 10px;
}

img.floatLeft {
    margin: 5px 10px 10px 0;
}

/* Lists */
ul li {
    padding: 0rem;
    list-style: none;
    align-self: center;
}

ol li {
    font-weight: normal;
    color: #000000;
}

ol li span {
    font-weight: normal;
    color: #000;
}

/* Blockquote */
blockquote {
    margin: 0;
    padding: 0 20px;
    background: #eee;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
}

/* Comments */
.comments {
    box-sizing: border-box;
    background-color: #eeeeee;
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: 0.125rem;
    margin-bottom: 0.125rem;
    padding: 0.9rem;
}

.device-comment {
    box-sizing: border-box;
    width: 100%;
    word-break: break-word;
    height: 100%;
    margin-bottom: 0.5rem;
}

.postMeta {
    font-size: 10px;
    background-color: #ececec;
}

.comment-grid {
    display: grid;
    grid-template-columns: 20fr 1fr;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 0.5rem;
}

.delete-comment-button {
    max-width: min(100px, 100%);
}

.delete-comment-button a {
    color: white;
}

/* Navigation section */

.browse-buttons{
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 1.5em;
    margin-top: 1.5em;
    margin-bottom: 1.5em;
    align-items: center;
}

/* Form Elements */
.button-row {
    list-style: none;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: 1.5em;
}

form {
    padding: 0;
    margin: 0;
}

.tdwidth {
    width: 8rem;
}

/* If you're finding the input elements get pushed down, increase the width */
label {
    float: left;
    width: auto;
    vertical-align: top;
    font-size: 0.85rem;
    font-weight: 500;
}

.labels-grid {
    display: grid;
    grid-template-columns: auto auto;
    gap: 0.5rem;
    align-items: center;
    justify-self: center;
}

textarea {
    font-size: 0.9rem;
    resize: none;
    background: #E3E1E1;
    border: none;
    width: 100%;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    white-space: normal;
    padding: 0.41rem 0.9rem;
    font-family: var(--font);
}

#user-description-character-counter {
    font-size: 0.75rem;
    margin-left: 0.41rem;
}

input,
select {
    resize: none;
    font-weight: 400;
    font-size: 0.9em;
    color: #000000;
    background: #bbbbbb;
    border: 1px solid #E3E1E1;
}

input.noBorder,
input:focus.noBorder,
input:hover.noBorder {
    padding: 0;
    border: 0;
}

input.button {
    padding: 0.4rem 1.8rem;
    width: fit-content;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    font-family: var(--font);
    color: #f7f7f7;
    background-color: #0000FF !important;
    border: 1px solid #0000FF;
}

input.radio {
    background: none;
    border: 0px;
}

.errorForm {
    border-style: solid;
    border-width: 2px;
    border-color: rgb(177, 76, 78);
}

.errorButton,
.errorButton:hover {
    padding: 0.4rem 1.8rem;
    font-size: 0.9rem;
    cursor: pointer;
    font-family: var(--font);
    color: #f7f7f7 !important;
    background-color: rgb(177, 76, 78) !important;
    border: 1px solid rgb(177, 76, 78);
}

/* header search form style */
#textInputField input,
select {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
    font-family: var(--font);
    color: #000000;
    background: #E3E1E1;
}

select {
    width: max-content;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline;
    appearance: none !important;
    border: 1px solid #E3E1E1;
    border-radius: inherit;
    border-right-width: 10px !important;
    background: url(../images/menu-downarrow.svg) 100% no-repeat #E3E1E1;
    background-size: 10px 10px;
}

select:focus,
select:hover {
    color: #000000;
    background: #E3E1E1;
    background: url(../images/menu-downarrow.svg) 100% no-repeat #E3E1E1;
    background-size: 10px 10px;
}

#textInputField input.button {
    padding: 0.4rem 1.4rem;
    font-size: 0.9rem;
    cursor: pointer;
    font-family: var(--font);
    color: #f7f7f7;
}

#textInputField input.button:disabled {
    --disabled-grey: rgb(172, 172, 172);
    cursor: not-allowed;
    background-color: var(--disabled-grey) !important;
    border: 1px solid var(--disabled-grey);
}


.clearboth {
    clear: both;
}

/**************************************************************
According Help Page
**************************************************************/

.accordion {
    background-color: #eee;
    display: flex;
    color: #000;
    cursor: pointer;
    padding: 18px;
    width: 100%;
    text-align: left;
    border: none;
    outline: none;
    transition: 0.4s;
}

.active,
.accordion:hover {
    background-color: #e3e1e1;
}

.panel {
    padding: 0 18px;
    background-color: #f7f7f7;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
}

.accordion:before {
    content: '\02795';
    /* Unicode character for "plus" sign (+) */
    font-size: 0.6rem;
    align-self: center;
    color: #000;
    float: right;
    margin-left: 5px;
    padding-right: 1rem;
}

.active:before {
    content: "\2796";
    /* Unicode character for "minus" sign (-) */
    padding-right: 1rem;
}

/* Icon Buttons */

.btn-icon,
.btn-icon a {
    color: #000;
    font-size: 14px;
    border: none;
    cursor: pointer;
    background-color: transparent;
}

.btn-icon-alert,
.btn-icon-alert a {
    color: #d04848;
    font-size: 14px;
    border: none;
}


/* Checkbox */

.container {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 35px;
    /* padding-right: 35px; */
    width: auto;
    height: 1.6rem;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    align-self: center;
    top: 0;
    left: 0;
    height: 2rem;
    width: 2rem;
    background-color: #ffffff;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.container:hover input~.checkmark {
    background-color: #ffffff;
}

.container input:checked~.checkmark {
    background-color: #0000FF;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.container input:checked~.checkmark:after {
    display: block;
}

.container .checkmark:after {
    left: 11px;
    top: 8px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}

/* stuff to make Model box for image zooming */
#dumbBoxWrap {
    /* The div that shows/hides. */
    position: fixed;
    top: 0px;
    margin: 0px;
    left: 0px;
    display: none;
    /* starts out hidden */
    z-index: 40001;
    /* High z-index to ensure it appears above all content */
}

.dumbBoxOverlay {
    /* Shades out background when selector is active */
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: black;
    opacity: .7;
    /* Sets opacity so it's partly transparent */
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=70)";
    /* IE transparency */
    filter: alpha(opacity=70);
    /* More IE transparency */
    z-index: 40001;
}

.vertical-offset {
    /* Fixed position to provide the vertical offset */
    position: fixed;
    top: 20px;
    width: 100%;
    z-index: 40002;
    /* ensures box appears above overlay */
}

.dumbBox {
    /* The actual box, centered in the fixed-position div */
    width: 700px;
    /* Whatever width you want the box to be */
    position: relative;
    margin: 0 auto;
    /*Everything below is just visual styling */
    background-color: white;
    padding: 10px;
}

.hackercheck {
    position: absolute;
    left: -5000px;
    z-index: -1;
}

#content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    position: relative;
    height: auto !important;
    height: 100%;
    min-height: 100%;
}

.password-constraints {
    font-size: 0.8rem;
    color: grey;
}

.password-contraint-error {
    color: var(--negative-red)
}

.password-constraint-success {
    color: var(--positive-green)
}

.link-button {
    padding: 0.4rem 1.8rem;
    width: fit-content;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    font-family: var(--font);
    color: #f7f7f7;
    background-color: #0000FF !important;
    border: 1px solid #0000FF;
}

.link-button:hover {
    color: white;
}

#report-spam-device-form {
    margin: 1em 0;
}