/* setup styles */
article, aside, details, figcaption, figure, footer, header, hgroup, nav, section, summary {
  display: block; }

audio, canvas, video {
  display: inline-block; }

audio:not([controls]) {
  display: none;
  height: 0; }

[hidden] {
  display: none; }

html {
  font-family: sans-serif;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%; }

a:focus {
  outline: thin dotted; }

a:active, a:hover {
  outline: 0; }

h1 {
  font-size: 2em; }

abbr[title] {
  border-bottom: 1px dotted; }

b, strong {
  font-weight: 700; }

dfn {
  font-style: italic; }

mark {
  background: #ff0;
  color: #000; }

code, kbd, pre, samp {
  font-family: monospace, serif;
  font-size: 1em; }

pre {
  white-space: pre-wrap;
  word-wrap: break-word; }

q {
  quotes: \201C \201D \2018 \2019; }

small {
  font-size: 80%; }

sub, sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline; }

sup {
  top: -.5em; }

sub {
  bottom: -.25em; }

img {
  border: 0; }

svg:not(:root) {
  overflow: hidden; }

fieldset {
  border: 1px solid silver;
  margin: 0 2px;
  padding: .35em .625em .75em; }

button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  margin: 0; }

button, input {
  line-height: normal; }

button, html input[type=button], input[type=reset], input[type=submit] {
  -webkit-appearance: button;
  cursor: pointer; }

button[disabled], input[disabled] {
  cursor: default; }

input[type=checkbox], input[type=radio] {
  box-sizing: border-box;
  padding: 0; }

input[type=search] {
  -webkit-appearance: textfield;
  -moz-box-sizing: content-box;
  -webkit-box-sizing: content-box;
  box-sizing: content-box; }

input[type=search]::-webkit-search-cancel-button, input[type=search]::-webkit-search-decoration {
  -webkit-appearance: none; }

textarea {
  overflow: auto;
  vertical-align: top; }

table {
  border-collapse: collapse;
  border-spacing: 0; }

body, figure {
  margin: 0; }

legend, button::-moz-focus-inner, input::-moz-focus-inner {
  border: 0;
  padding: 0; }

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

* {
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box; }

/* Global styles */
html {
  font-family: "Roboto", sans-serif;
  background: #1a191a;
  display: flex;
  justify-content: center; }

body {
  width: 100%;
  max-width: 1200px; }

h1, h2, h3, h4, h5, h6 {
  font-family: "Roboto", sans-serif;
  font-weight: 300;
  color: #fcc71b; }

h1 {
  margin-top: 50px; }

h3 {
  color: #f4f2ed; }

header, footer, button {
  background: rgba(26, 25, 26, 0.884);
  color: #fcc71b; }

.instructions {
  padding: 5% 10%; }
  .instructions p {
    color: #e1dbcd;
    line-height: 1.5; }

button, .backToTop {
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 10px;
  padding: 5px 10px;
  border: 2px solid rgba(153, 152, 153, 0.884); }
  button:hover, button:focus, .backToTop:hover, .backToTop:focus {
    transition: .5s;
    color: #f4f2ed;
    border-color: #f4f2ed; }

span.buttonTextSpan, .modalButtons span {
  margin-left: 5px; }

a {
  color: #fcc71b; }
  a:hover, a:focus {
    transition: .5s;
    color: #f4f2ed;
    border-color: #f4f2ed; }

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

.flexColumn {
  display: flex;
  flex-direction: column; }

footer {
  padding: 20px;
  text-align: center;
  justify-content: baseline; }

.backToTop, .addButton {
  position: fixed;
  right: calc(50% - 72px);
  background: rgba(26, 25, 26, 0.884);
  border-radius: 10px;
  border: 2px solid rgba(153, 152, 153, 0.884); }

.backToTop {
  bottom: 20px; }

.addButton {
  top: 20px;
  right: calc(50% - 85px); }

.errorMessage {
  color: #f41e1e; }

/* Header styles */
header {
  align-items: baseline;
  width: 100%;
  margin: 0;
  padding: 30px 20px 40px 20px; }
  header button.addButton {
    color: #f4f2ed;
    padding: 10px 20px; }
    header button.addButton:hover {
      transition: .5s;
      background: #fcc71b;
      color: #1a191a;
      border-color: #f4f2ed; }

/* Exercise Form styles */
form.modal {
  padding: 0;
  justify-content: space-around;
  align-items: center;
  z-index: 1; }
  form.modal label, form.modal h4 {
    margin: 4px 10px;
    padding-bottom: 2px;
    color: #f4f2ed; }
  form.modal h4 {
    margin-top: 10px; }
  form.modal .primaryLabel {
    font-size: 1.5rem;
    color: #fcc71b; }
  form.modal section {
    width: 615px;
    flex-wrap: wrap; }
  form.modal > h3 {
    position: absolute;
    top: 6vh;
    left: 36%; }

.modal {
  background: rgba(3, 3, 3, 0.92);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh; }

.modalButtons {
  margin-top: 20px;
  width: 100%; }
  .modalButtons button {
    color: #f4f2ed;
    border: 2px solid #f4f2ed;
    height: 2.5rem;
    width: 10rem; }
    .modalButtons button:hover {
      transition: .5s;
      color: #fcc71b;
      border-color: #fcc71b; }

.radio, .repsInput {
  margin: 20px; }

.radioInput {
  width: 100%;
  display: flex; }

input[type='radio']:after {
  content: '';
  width: 16px;
  height: 16px;
  position: relative;
  top: -2px;
  left: -4px;
  background-color: #f4f2ed;
  display: inline-block;
  visibility: visible;
  border: 2px solid #f4f2ed;
  border-radius: 50%; }

input[type='radio']:checked:after {
  content: '';
  width: 16px;
  height: 16px;
  position: relative;
  top: -1px;
  left: -3px;
  background-color: #fcc71b;
  display: inline-block;
  visibility: visible;
  border: 2px solid #fcc71b;
  border-radius: 15px; }

.exerciseForm {
  align-self: flex-start;
  margin-top: 100px; }

input#currentOther {
  width: 50px; }

/* Workout styles */
.workoutsByDate {
  margin: 0;
  padding: 0;
  background: #1a191a; }

.workouts h2 {
  background: linear-gradient(#fcc71b, 5%, #f4f2ed, 65%, #fcc71b);
  color: #1a191a; }

.workout {
  margin-bottom: 50px;
  list-style-type: none;
  flex-wrap: wrap;
  background: #1a191a;
  padding: 0; }

.exerciseItem {
  margin: 10px;
  width: calc(50% - 20px);
  background: linear-gradient(rgba(153, 152, 153, 0.884), rgba(26, 25, 26, 0.884));
  padding: 10px; }
  .exerciseItem h4 {
    text-transform: capitalize;
    font-size: 1.1rem;
    letter-spacing: 1.5pt;
    margin: 5px; }
    .exerciseItem h4.exerciseName {
      color: #f4f2ed;
      text-transform: uppercase; }
  .exerciseItem span.repsSpan {
    font-family: "Roboto", sans-serif;
    font-weight: 700;
    text-align: right;
    border-radius: 50%;
    padding: 0 .45rem;
    background: radial-gradient(#f4f2ed, #fcc71b);
    color: #1a191a;
    margin-right: 10px;
    border: 2px solid rgba(26, 25, 26, 0.884); }
    .exerciseItem span.repsSpan.otherReps {
      border-radius: 5px; }

.allWorkouts h2 {
  margin: 0;
  padding: 20px;
  font-size: 1.5rem; }

/* Media query styles */
@media (max-width: 1060px) {
  .exerciseItem {
    flex-wrap: wrap; }
    .exerciseItem h4 {
      width: 80%;
      text-align: center; }
    .exerciseItem h4.exerciseName {
      text-align: left; }
  span.buttonTextSpan {
    display: none; }
    span.buttonTextSpan:hover, span.buttonTextSpan:focus {
      position: absolute;
      display: block; } }

@media (max-width: 900px) {
  header h6, h5 {
    position: absolute;
    top: 10px;
    left: 57%; }
  .exerciseItem {
    width: 100%;
    flex-wrap: nowrap; }
  span.buttonTextSpan {
    display: none; }
    span.buttonTextSpan:hover, span.buttonTextSpan:focus {
      position: absolute;
      display: block; }
  a > i, button {
    border-radius: 50%;
    padding: 5px 7px;
    border: 2px solid #fcc71b;
    margin-left: 5px; }
  button.addButton, .modalButtons > button, .instructionsButtons {
    border-radius: 10px; }
  button.addButton {
    right: calc(50% - 28px); }
  .backToTop {
    padding: 6px 4px 8px 0px;
    right: calc(50% - 20px); } }

@media (max-width: 700px) {
  .modal .exerciseForm {
    width: 100%;
    padding: 100px 50px;
    margin: 0px; }
    .modal .exerciseForm h4 {
      margin-bottom: 30px; }
  form.modal > h3 {
    top: 10px; }
  .textInputs {
    margin-top: 50px; } }

@media (max-width: 625px) {
  header {
    flex-wrap: wrap; }
    header h6 {
      left: 62%; }
    header h1 {
      margin-right: 60px; }
  input#currentDescription {
    margin: 11px;
    font-size: 1rem; }
  footer {
    flex-direction: column;
    padding: 0 0 80px 0; }
    footer p {
      margin: 10px; }
  form.modal > h3 {
    left: 30px; } }

@media (max-width: 470px) {
  .exerciseItem {
    flex-wrap: wrap; }
    .exerciseItem h4 {
      width: 80%;
      text-align: center; }
    .exerciseItem h4.exerciseName {
      text-align: left; }
  .modal .exerciseForm {
    padding: 75px 25px; }
  .textInputs {
    margin-top: 20px; }
  .modalButtons {
    flex-wrap: wrap; }
    .modalButtons > button {
      margin: 0 20px 20px 0; } }

@media (max-width: 400px) {
  .modalButtons {
    flex-direction: column; }
  form.modal label.primaryLabel {
    font-size: 1.19rem; }
  input#currentOther {
    position: absolute;
    right: 44px; }
  header h1 {
    margin-right: 20px; } }

@media (max-height: 500px) {
  .modal {
    height: 100vh;
    padding: 10px; }
    .modal .exerciseForm {
      margin: 20px;
      padding: 50px 0; }
      .modal .exerciseForm .exerciseInput, .modal .exerciseForm .repsSection {
        width: 20%; }
      .modal .exerciseForm .textInputs {
        width: 60%;
        margin-top: 0; }
      .modal .exerciseForm .modalButtons {
        width: 50%;
        position: absolute;
        right: 10px;
        bottom: 10px; }
      .modal .exerciseForm input#currentDescription {
        margin: 11px; }
  form.modal > h3 {
    left: 10px;
    top: 10px; } }
