/***
    The new CSS reset - version 1.11.2 (last updated 15.11.2023)
    GitHub page: https://github.com/elad2412/the-new-css-reset
***/

*:where(:not(html, iframe, canvas, img, svg, video, audio, input):not(svg *, symbol *)) {
	all: unset;
	display: revert;
}

*, *::before, *::after {
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
          box-sizing: border-box;
  outline: none;
}

html {
	-webkit-text-size-adjust: none;
		 -moz-text-size-adjust: none;
					text-size-adjust: none;
	-moz-tab-size: 4;
			 tab-size: 4;
	overflow-x: hidden;
	scroll-behavior: smooth;
}

body, h1, h2, h3, h4, h5, h6, figure, p, ol, ul {
	margin: 0;
  padding: 0;
}

p {display: block;}

h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: inherit;
}

a, button {
	cursor: revert;
}

a {
	display: inline;
  color: inherit;
  text-decoration: none;
  background-color: transparent;
}

ol, ul, menu, summary {
	list-style: none;
  padding-inline: 0;
}

/* Firefox
picture, figure img {
	display: flex;
	justify-content: center;
	align-items: center;
}
*/
picture * ,
img {
	width: 100%;
	height: auto;
	vertical-align: middle;
	font-style: italic;
	background-repeat: no-repeat;
	background-size: cover;
	shape-margin: .75rem;

	max-inline-size: 100%;
	max-block-size: 100%;
}
/*
https://www.youtube.com/watch?v=345V2MU3E_w
	prev: display: block;
  			max-inline-size: 100%;
*/

hr {
	height: 0; /* 1 */
	color: inherit; /* 2 */
}
address {
  font-style: normal;
}
abbr[title] {
	text-decoration: underline dotted;
}
b,
strong {
  font-weight: 600;
}
code,
kbd,
samp,
pre {
	font-family:
		ui-monospace,
		SFMono-Regular,
		Consolas,
		'Liberation Mono',
		Menlo,
		monospace; /* 1 */
	font-size: 1em; /* 2 */
	font-weight: bold;
}
small,
[small] {
	font-size: .8rem !important;
}
[big] {
	font-size: 1.2rem !important;
}
sub,
sup {
	font-size: .8rem;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}
sub {
	bottom: -0.25em;
}
sup {
	top: -0.5em;
}
table {
	text-indent: 0; /* 1 */
	border-color: inherit; /* 2 */
	border-collapse: collapse;
}
button,
input,
optgroup,
select,
textarea {
	font-family: inherit; /* 1 */
	font-size: 100%; /* 1 */
	line-height: inherit; /* 1 */
	margin: 0; /* 2 */
}
button,
select {
	text-transform: none;
}
button,
[type='button'],
[type='reset'],
[type='submit'] {
	-webkit-appearance: button;
}
::-moz-focus-inner {
	border-style: none;
	padding: 0;
}
:-moz-focusring {
	outline: 1px dotted ButtonText;
}
:-moz-ui-invalid {
	box-shadow: none;
}
legend {
	padding: 0;
}
progress {
	vertical-align: baseline;
}
::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
	height: auto;
}
[type='search'] {
	-webkit-appearance: textfield; /* 1 */
	outline-offset: -2px; /* 2 */
}
::-webkit-search-decoration {
	-webkit-appearance: none;
}
::-webkit-file-upload-button {
	-webkit-appearance: button; /* 1 */
	font: inherit; /* 2 */
}
summary {
	display: list-item;
}

/* Safari - solving issue when using user-select:none on the <body> text input doesn't working */
input, textarea {
	-webkit-user-select: auto;
}

/* revert the 'white-space' property for textarea elements on Safari */
textarea {
	white-space: revert;
}

/* minimum style to allow to style meter element */
meter {
	-webkit-appearance: revert;
	appearance: revert;
}

/* preformatted text - use only for this feature */
:where(pre) {
	all: revert;
	box-sizing: border-box;
}

/* reset default text opacity of input placeholder */
::placeholder {
	color: unset;
}

/* fix the feature of 'hidden' attribute.
 display:revert; revert to element instead of attribute */
:where([hidden]) {
	display: none;
}

/* revert for bug in Chromium browsers
 - fix for the content editable attribute will work properly.
 - webkit-user-select: auto; added for Safari in case of using user-select:none on wrapper element*/
:where([contenteditable]:not([contenteditable="false"])) {
	-moz-user-modify: read-write;
	-webkit-user-modify: read-write;
	overflow-wrap: break-word;
	-webkit-line-break: after-white-space;
	-webkit-user-select: auto;
}

/* apply back the draggable feature - exist only in Chromium and Safari */
:where([draggable="true"]) {
	-webkit-user-drag: element;
}

/* Revert Modal native behavior */
:where(dialog:modal) {
	all: revert;
	box-sizing: border-box;
}

/* Remove details summary webkit styles */
::-webkit-details-marker {
	display: none;
}
