/* import necolas' normalize.css */

@import "../normalize.css/normalize.css";

/* "extension" starts from here... */

*,
*::before,
*::after {
  padding: 0;
  margin-top: 0;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

/* can easily override the --customProperties or, change them with JS*/
:root {
  --primaryTextColor: #333;
  --primaryBgColor: #fefcfc;
  --accentColor: #286ce9;
  --bodyFont: arial, verdana, Tahoma, sans-serif;
  --headingFont: "Lucida Bright", Georgia, serif;
  line-height: 1.3;
}

body {
  color: var(--primaryTextColor);
  background-color: var(--primaryBgColor);
  font-family: var(--bodyFont);
}

/*headings typography*/
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 1.3rem 0;
  font-family: var(--headingFont);
}

h1 {
  font-size: 2.7rem;
  font-weight: 800;
}

h2 {
  font-size: 2.1rem;
  font-weight: 600;
}

h3 {
  font-size: 1.5rem;
  font-weight: 500;
}

h4 {
  font-size: 1.3rem;
  font-weight: 400;
}


/*setting up some "breathing-space" between lines*/
p,
pre,
kbd {
  font-size: 1rem;
}

p::first-letter {
  text-transform: uppercase;
}

/*the default "purple" color is not so cool*/
a {
  color: var(--accentColor);
}

/*restrict overflow from parent */
img,
video {
  width: 100%;
  height: auto;
}

/*make the "kbd" look like a "keyboard key" */
kbd {
  background-color: grey;
  color: #fff;
  padding: 0.25rem;
  border-radius: 0.25rem;
  -webkit-box-shadow: 0 3px 6px -3px rgba(0, 0, 0, 0.4);
  box-shadow: 0 3px 6px -3px rgba(0, 0, 0, 0.4);
}

/*making the typography consistent for inputFields, buttons, tables*/
input,
button,
table,
select,
textarea {
  font-family: inherit;
}

/*making the "table" look like a "table"*/
table,
th,
tr,
td {
  border: 2px solid var(--primaryTextColor);
  border-collapse: collapse;
}

th,
td {
  padding: 0.5rem 0.75rem;
}

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

/*table styles end here*/

/*making the input, button, and other form fields look neat and easy to grab "focus"*/
input,
select,
textarea {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

input,
textarea,
select {
  border: 1px solid var(--primaryTextColor);
  border-radius: 0.3rem;
}

[type="radio"],
[type="checkbox"] {
  display: inline-block;
}

input:focus,
textarea:focus {
  border: 1px solid var(--accentColor);
}

[type="submit"],
button {
  background-color: var(--accentColor);
  color: var(--primaryBgColor);
  border: none;
  border-radius: 0.3rem;
  padding: 0.5rem 1rem;
  width: -webkit-max-content !important;
  width: -moz-max-content !important;
  width: max-content !important;
  font-size: 1rem;
  display: inline-block;
  cursor: pointer;
  -webkit-transition: -webkit-transform 0.3s ease-in-out, -webkit-box-shadow 0.2s ease-in-out;
  transition: -webkit-transform 0.3s ease-in-out, -webkit-box-shadow 0.2s ease-in-out;
  transition: transform 0.3s ease-in-out, box-shadow 0.2s ease-in-out;
  transition: transform 0.3s ease-in-out, box-shadow 0.2s ease-in-out, -webkit-transform 0.3s ease-in-out, -webkit-box-shadow 0.2s ease-in-out;
}

[type="submit"]:hover,
button:hover,
[type="submit"]:focus,
button:focus {
  -webkit-transform: translateY(-5px);
  transform: translateY(-5px);
  -webkit-box-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
}

[type="submit"]:active,
button:active {
  -webkit-transform: scale(0.9);
  transform: scale(0.9);
}

[type="submit"]:disabled,
button:disabled {
  -webkit-transform: translateY(0);
  transform: translateY(0);
  background-color: grey;
  -webkit-box-shadow: none;
  box-shadow: none;
  cursor: not-allowed;
}

form {
  max-width: 700px;
}

form fieldset {
  border: none;
  margin: 0.5rem 0;
}

fieldset > label {
  margin-bottom: 0.3rem;
  display: inline-block;
}

fieldset > input {
  width: 100%;
}

fieldset [type="radio"],
fieldset [type="checkbox"] {
  width: -webkit-max-content;
  width: -moz-max-content;
  width: max-content;
}

/*form styles end here*/
/*the default style looks too vibrant*/
mark {
  background: none;
  position: relative;
  padding: 2px 5px;
  display: inline-block;
}

mark::after {
  content: "";
  position: absolute;
  z-index: -1;
  bottom: 3px;
  left: 0;
  width: 100%;
  height: 0.5rem;
  background-image: linear-gradient(45deg, rgba(238, 238, 48, 0.6), rgba(255, 208, 0, 0.8));
  -webkit-transform-origin: bottom;
  transform-origin: bottom;
  -webkit-transition: -webkit-transform 0.3s ease-in-out;
  transition: -webkit-transform 0.3s ease-in-out;
  transition: transform 0.3s ease-in-out;
  transition: transform 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;
}

mark:hover::after {
  -webkit-transform: scaleY(2);
  transform: scaleY(2);
}

/*<mark> style ends here*/

/*creating the "breathing-space" between list-items*/
ul,
ol {
  margin: 1rem;
}

ul > li,
ol > li {
  list-style-position: inside;
  margin-bottom: 0.5rem;
}

ul ol,
ol ul {
  margin: 0 0 0 1rem;
}

ul > li:last-child,
ol > li:last-child {
  margin-bottom: 0;
}

dl dt {
  font-size: 1.1rem;
  margin: 1rem 0 0.3rem 0;
}
