@font-face { 
    font-family: 'Single Day'; 
    font-style: normal;  
    font-weight: 400;
    src: local('Single Day'), 
             url('./fonts/SingleDay-Regular.ttf') format('woff'); 
}

*{
  outline: none;
  box-sizing: border-box;
}
html,body {
  margin:0;padding:0;
  font-family: 'Dosis', sans-serif;
}
header {
  background: url(./images/knitting/knitting-bg.jpg) no-repeat;
  background-size: cover;
  background-position: 50%;
  height: 350px;
  width:100%;
  display: flex;
  justify-content: center;
}
h1 {  
  font-family: 'Bad Script', cursive;  
  margin: auto;
  font-size: 7em;
}

#App {
  margin:auto;
}
.wrapper {
  width: 90%;
  margin: auto;
}
#containerAll {
  display:flex;
  margin:auto;
  flex-flow:column wrap;
  justify-content:center;
}
header,
.details {
  text-align: center;
}
.yarnGrid {
  width:80%;
  margin-top: 6px;
}
.topContent {
  display:flex;
  flex-flow: column wrap;
  justify-content: space-around;
  align-items: stretch;
  margin:0 auto 4%;
} 
.details {
  width: 70%;
  text-align: left;
  margin: auto;
}
.additionaldetails {
  width: 70%;
  display: flex;
  flex-flow: row wrap;
  justify-content: space-evenly;
  margin: auto;
}
.key {
  border: 10px solid #878880;
  background: rgba(163, 166, 149, .4);
  border-radius: 4px;
  padding: .935em;
  order: 2;
  margin: 2% 0;
  width: 100%;
}
.keycode {
  display:flex;
  flex-flow:row wrap;
}
.key h3 {
  margin: 0 0 8px 0;
}
.keycode p {
  flex-basis: 50%;
  margin: 3px 0;
}
.updatedContent{
  display: flex;
  flex-flow:row nowrap;
}
.updatedContent h2 {margin:0;}
.rowsStitchesContainer {
  display: flex;
  flex-flow:row nowrap;
  width:35%;
}
#rows,
#stitches, 
#stitchesStitched {
  display:flex;
  flex-flow:column;
  justify-content:flex-start;
  width: 222px;
  text-align: right;
  margin: 0 auto;
}

#rows p.flex, #stitches p.flex,
#stitchesStitched p.flex {
  margin: 1% auto;
}
#rows input, #stitches input,
#stitchesStitched input {
  margin: 1%;
}
.rows, 
.stitches {
  display:flex;
  height: 21px;
  justify-content:flex-end;
}
span.row,
span.stitch {
  font-size:1.4rem;
  margin:auto;
}
.inputContainer {
  display:flex;
  justify-content: justify;
  margin: 4px 0 10px 0;
}
input,
button {
  border-radius:0px;
  margin:0px;
  height:29px;
  width: 50%;
  background-image: none!important;
}
.remove,
.update {width:21%;height: auto;}
.update {width:16%;}
.remove img,
.update img {
  width: 100%;

}
.add {
  background: #353131;
  color: white;
  font-weight:bold;
}
button {
  border:1px solid transparent;
}
button:hover {
  border: 1px solid #e3e3e3;
}
.knitPattern { 
  padding:0;
}
#container-wrapper {
  display: flex;
  flex-flow:column wrap;
  width: 100%;
}
.castOnContainer,
.container,
.stitchContainer {
			border-radius: 8px;
			display:grid;
			margin: 0;
			width: 100%;
			height: 100%;
      height: 20px;
			flex-flow: row wrap;
			justify-content: center;
		}

.grid {
  margin:0;padding:0;height: 100%;width:100%;
  z-index:1000;
}
.grid input {
      width:50%;
      border:1px solid #ccc;
      padding: 0;
      margin: 0;
      width: 100%;
      height: 100%;
  }
.grid input:focus { border: green 1px solid; }
.grid p {
  border:1px solid #ccc;
  font-family: 'Single Day', cursive;
  margin: auto;
  padding: 0;
  display: flex;  
  width: auto;
  height: 100%;
  font-size: 1.2rem;
  text-align: center;
  z-index:0;
}

.knitting-info {
  border: 10px solid #878880;
  background: rgba(163, 166, 149, .4);;
  padding:10px;
}
.knitting-info button { 
  height: 27px;
  width:auto;
}
.mainColorContainer, .altColorContainer {
  display:flex;
  flex-flow: row nowrap;
}