/* reset rules */

/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	/* margin: 0; */
	padding: 0;
	border: 0;
	font-size: 100%;
	/* font: inherit; */
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}
/**/

* {
    box-sizing: border-box;
}

:root {
    /* CSS HEX */
    --color1: #000000; /* black */
    --color2: #13203d; /* OxfordBlue */
    --color3: #3a3354; /* rgb(58, 51, 84) */
    --color4: #5F5FA5; /* rgb(95, 95, 165) */
    --color5: #C4C4E1;
    --color6: #E6E6F3;
    --color7: #F7F7FB;
}

.strong {
    font-weight: bold;
}

body {
    background-color: var(--color5);
}

main {
    margin: 0px;
    padding: 0px;
    max-width: 100vw;
}

p, label {
    font-family: 'Raleway', Verdana, Geneva, Tahoma, sans-serif;
    font-size: 17px;
}

h1, h2, h3, h4, button {
    font-family: 'DM Sans', Helvetica, Arial, sans-serif;
    margin: 0;
    color: var(--color3);
}

#begOfPage {
    display: flex;
    justify-content: space-between;
    padding: 1vh 1.5vw;
}

h1 {
    font-size: 1.5rem;
    text-align: center;
    /* color: black; */
    color: var(--color3);
}

h2, h3 {
    font-size: 1.2rem;
    color: var(--color4);
}

button {
    width: fit-content;
    background-color: var(--color6);
    color: var(--color3);
    border-color: var(--color4);
    border-radius: 0.375rem;
    font-size: 1.2rem;
    margin: 0.2rem;
}

button:hover {
    box-shadow: 0 0 5px 1px var(--color4);
}

::selection {
    background-color: #5F5FA588;
    color: var(--color2);
}
  
#socials a, #note1 a {
    color: var(--color2);
}

.pairNumber {
    display: flex;
    justify-content: center;
    font-size: 1rem;
    font-variant: small-caps;
}
.pairNumber h3 {
    margin: 0.2rem;
}

#userInputDiv {
    display: flex;
}

.hidden {
    display: none;
}

.betweenMarkers {
    display: flex;

}

.section {
    display: flex
}

.YCselection {
    font-size: 0.8rem;
    margin: 0;
}

.sectionTitle {
    display: flex;
    margin: 0.8rem 0 0 0;
    text-indent: 1.5rem;
}

.section {
    display: flex;
    border-color: var(--color4);
    border-width: 0.15rem;
    border-style: solid;
    margin: 0.15rem;
}

.betweenMarkers {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
}

fieldset { 
    text-align: center;
    border-color: var(--color5);
    border-style: dotted;
    /* margin: 0.1rem 0.01rem 0.1rem 0.2rem; */
    padding: 0.1rem;
    margin: 0.1rem;
    /* background-color: lightslategray; */
}

.leftANDright {
    /* border: 1px solid red; */
    display: flex;
    flex-direction: row-reverse;
    width: fit-content;
}

.pairRight, .pairLeft {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--color6);
    margin: 0 0.1rem;
    /* border-color: blue; */
}

.pairTitle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 2rem;
    margin: 0;
}

.switchBtnDiv {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    padding: 0 0.2rem;
    height: 2rem;
}

/* for toggle MC-CC button */

/* MC-CC switch: */

  /* The switch - the box around the slider */
  
  /* Hide default HTML checkbox */
  .switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  /* The slider */
  .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color6);
    -webkit-transition: .4s;
    transition: .4s;
  }

  .switch {
    position: relative;
    display: inline-block;
    width: 3em;
    height: 1.5em;
    margin: 0 0.5em 0 0.5em;

  }
  .slider:before {
    position: absolute;
    content: "";
    height: 1em;
    width: 1em;
    left: 0.25em;
    bottom: 0.25em;
    background-color: var(--color7); /* 7 -> 5*/
    -webkit-transition: .4s;
    transition: .4s;
  }

  input:checked + .slider, .CCselected + .slider {
    background-color: var(--color4);
  }

  input:focus + .slider {
    box-shadow: 0 0 1px var(--color4);
  }
  input:checked + .slider:before, .CCselected + .slider:before {
    /* -webkit-transform: translateX(1.5em); */
    -ms-transform: translateX(1.5em);
    transform: translateX(1.8em);
  }
  /* Rounded sliders */
  .slider.round {
    border-radius: 2em;
  }
  .slider.round:before {
    border-radius: 50%;
  }

  .disabledSwitch {
    cursor: not-allowed;
  }

  /* output section */

.selectionOutputSection {
    display: block;
}

.eachSectionDiv {
    display: flex;
    border: 1px solid var(--color6);
    justify-content: space-evenly;
}
.pairStitchesDiv {
    display: block;
}

.pairStitchesDiv p {
    display: block;
}

.sectionTitle h3 {
    padding: 0.2rem;
    padding-right: 1.5rem;
    border-radius: 0.5rem;
    color: var(--color6);
    background-color: #f2d49c /* default*/
}

.colorCoding h4 {
    font-size: 1.2rem;
    font-variant:small-caps;
}

.colorCoding {
    border-radius: 0.5rem;
    margin: 0.2rem;
    background-color: #f2d49c30 /* default*/
}

.colorCoding0  h3, .colorCoding7 h3 {     
    background-color:#ff006e /* pink */
}
.colorCoding1  h3, .colorCoding8 h3 { 
    background-color: #0000ff; /* blue */
}
.colorCoding2  h3, .colorCoding9 h3 { 
    background-color: #ee9b00 /* orange*/
}
.colorCoding3  h3, .colorCoding10 h3 {
    background-color: #800080; /* purple */
}
.colorCoding4  h3, .colorCoding11 h3 { 
    background-color: #0a9396; /* turquesa */
}
.colorCoding5  h3, .colorCoding12 h3 { 
    background-color: #ce0000; /* red */
}
.colorCoding6  h3, .colorCoding13 h3 { 
    background-color: #6c757d; /* gray */
}

.colorCoding0, .colorCoding7 {     
    background-color:#ff006e30 /* pink */
}
.colorCoding1, .colorCoding8 { 
    background-color: #0000ff30; /* blue */
}
.colorCoding2, .colorCoding9 { 
    background-color: #ee9b0030 /* orange*/
}
.colorCoding3, .colorCoding10 {
    background-color: #80008030; /* purple */
}
.colorCoding4, .colorCoding11 { 
    background-color: #0a939630; /* turquesa */
}
.colorCoding5, .colorCoding12 { 
    background-color: #ce000030; /* red */
}
.colorCoding6, .colorCoding13 { 
    background-color: #6c757d30; /* gray */
}

.setUpRow1paragraph span {
    line-height: 1.3;
}

#setUpRows {
    background-color: var(--color6);
    padding: 0 0.5rem;
    margin: 0 5px;
    max-width: 95vw;
    display: block;
    border-radius: 0.5rem;
}

.outsideBtnsDiv {
    display: flex;
    justify-content: center;
}

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

#svgChartDiv {
    text-align: center;
    margin: 0.5rem 0;
    position: relative;
}

.SVGdiv {
    min-height: 100px;
}

.outOfSync {
    position: absolute;
    top: 10%;
    width: 100%;
    text-align: center;
    display: block;
    background-color: #5f5fa5b1;
    color: #000000;
    min-height: 50px;
    border-radius: 10px;
    background-image: linear-gradient(90deg, #ffffff58,  #5F5FA583, #ffffff58 );
}

.outOfSync p {
    font-size: 1.5rem;
    font-family: 'DM Sans', Helvetica, Arial, sans-serif;
    text-shadow: 0 0 3px var(--color7), 0 0 5px var(--color7);
    color: var(--color2);
    font-weight: bold;
}

/* choosing line colors: */

#colorPickerDiv {
    width: 100%;
    display: flex;
    justify-content:space-around;    
}

#colorSwatches {
    width: 95%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0.5rem 0;
}

.groupedSwatches {
    display: flex;
}

.swatch{
    border: 2px solid var(--color6);
    border-radius: 0.5rem;
    box-shadow: 1em 1em 1em rgba(0, 0, 0, .1);
    display: flex;
    flex-direction: column;
    margin: 0.25rem 1rem;
    padding: 1rem;
    text-align: center;
  }
  
  .swatch .swatchInfo{
    padding: 0.1em;
  }
  
  .swatch h3{
    margin: 0;
    columns: var(--color2);
  }
  
  input[type="color"] {
    appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
    background: none;
    border: 0;
    cursor: pointer;
    height: 5em;
    padding: 0;
    width: 5em;
    border: 1.5px solid var(--color6);
  }
  
  *:focus{
    border-radius: 0;
    outline: none;
  }
  
  ::-webkit-color-swatch-wrapper {
    padding: 0;
  }
  
  ::-webkit-color-swatch{
    border: 0;
    border-radius: 0;
  }
  
  ::-moz-color-swatch,
  ::-moz-focus-inner{
    border: 0;
  }
  
  ::-moz-focus-inner{
    padding: 0;
  }

#SVGnumbers {
    min-height: 18px;
}

.text {
    padding: 1rem;
}
  
  /* Add animation (fade in the popup) */
  @-webkit-keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
  }
  
  @keyframes fadeIn {
    from {opacity: 0;}
    to {opacity:1 ;}
  }


  /* Style the buttons that are used to open and close the accordion panel */
.accordion {
    background-color: var(--color6);
    color: var(--color4);
    cursor: pointer;
    padding: 18px;
    width: 100%;
    text-align: left;
    border: none;
    border-radius: 0.5rem;
    outline: none;
    transition: 0.4s;
    margin: 0px;
}

/* Add a background color to the button if it is clicked on (add the .active class with JS), and when you move the mouse over it (hover) */
.accordion:hover {
    box-shadow: 0 0 5px 5px var(--color4);
    font-weight: bold;
}

/* Style the accordion panel. Note: hidden by default */

#specials a:link {
    color: var(--color2);
    font-weight: 600;
    text-decoration: underline var(--color4) solid 0.05rem;
}

#specials a:visited {
    color: var(--color4);
    font-weight: 500;
    text-decoration: underline var(--color3) solid 0.05rem;
}

.biggerFont {
    font-size: 1.3rem;
}

#socials{
    color: var(--color3);
    /* padding: 1rem; */
    margin-bottom: 0.5rem;
    margin: 1rem auto;
    font-size: 1.15rem;
    text-align: center;
    border-radius: 0.5rem;
    background-color: var(--color6);
    padding: 0 18px;
    max-height: 0;
    /* overflow: hidden; */

    transition: max-height 0.2s ease-out;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
} 

.panel {
    margin: 0.5rem auto;
    padding: 0 0.25rem;
    background-color: var(--color5);
    max-height: 0;
    overflow: auto;
    transition: max-height 0.2s ease-out;
    /* display: flex;
    flex-direction: row-reverse; */
    /* align-items: flex-start; */
    display: block;
}

/* add a plus sign before and a minus sign after expansion */
  
.accordion:after {
    content: '\002B';
    color: var(--color4);
    font-weight: bold;
    float: right;
    margin-left: 5px;
}

.active:after {
    content: "\2212";
    color: var(--color4);
}

.cls-1 {
    fill: var(--color3);
}

.logo {
    min-width: 100px;
    text-align: end;
}

#logo {
    width: auto;
    color: var(--color3);
}

#pageTitle {
    display: flex;
    margin: 0 auto;
    align-items: center;
}

.social-icons-div {
    display: flex;
    justify-content: center;
    align-items: center;

}

.social-icons {
    fill: var(--color4);
    display: inline;
}

.cls-1{fill:url(#linear-gradient);}
.cls-2{opacity:0.5;}
.cls-3{fill:#fff;}


.link_noUnderline{
    text-decoration: none;
    font-weight: bold;
}

.link_noUnderline span{
    text-decoration: underline;
    font-weight: lighter;
}

#inputs {
    border: 1px dashed var(--color4);
    border-radius: 1rem;
    padding: 1rem;
}

input[type=number], #numOftotalDE {
    border: 2px solid var(--color4);
    border-radius: 4px;
    background-color: var(--color6);
    height: 25px;
    width: 25vw;
    padding: 5px;
}

.disabledBtn, input[type=number]:disabled {
 background-color: rgb(193, 189, 194);
 border: 2px solid grey;
 cursor: not-allowed;
}

.grid-container {
    height: 100%;
    display: grid;
}

.placematPicturesDiv {
    text-align: center;
    /* border: 2px solid yellow; */
    width: fit-content;
    min-width: 40%;
}

.placematPicture {
    max-width: 50%; /*95%*/
    max-height: 100%;
    margin: 0.25rem;
    border-radius: 10px;
    /* border: 2px solid var(--color6); */
    float: right;
    width: 250px;
    min-width: 30%;
    margin-top: 1rem;
    margin-left: 0.5rem;
}

.panelText {
    min-height: max-content;
    display: inline-block;
    margin: 0.25rem auto;
    padding: 0.25rem;
}

.panel p {
    /* margin: 0.25rem auto; */
    margin: 1rem auto;
    padding: 0.25rem;
}

/* .panelText p {
    margin: 1rem 0;
} */
.panel p:last-child {
    margin-bottom: 0;
}

.individualPlacemats {
    width: 40vw;
    height: auto;
}

#placematA { grid-area: A; }
#placematB { grid-area: B; }
#placematC { grid-area: C; }
#placematD { grid-area: D; }
#allPlacematsText { grid-area: E;}

.allPlacemats {
    height: 100%;
    display: grid;
    grid-template-areas:
    'A B'
    'C D'
    'E E';
    gap: 10px;
    justify-items: center;
}

    /* Responsive Design: */

@media screen and (max-width: 500px) { /* Smartphone */
    #userInputDiv {
        flex-direction: column;
        margin: 0 1rem;
    }
    .selectionOutputSection {
        display: block;
    }
    .selectionOutputSection h4, .selectionOutputSection h3 {
        padding: 0.5rem 0 0.2rem 0;
        text-indent: 1rem;
    }
    .eachSectionDiv {
        display: block;
        padding: 0.5rem;
    }
    .pairStitchesDiv {
        display: block;
    }
    .pairStitchesDiv p {
        display: block;
    }
    .buttonsDiv {
        justify-content: center;
    }
    #SVGnumbers text {
        font-size: 0.6rem;
    }
    .outOfSync p {
        font-size: 1rem;
        height: min-content;
        margin: 0;
        padding: 0;
    }
    .panel {
        flex-wrap: nowrap;
        /* flex-direction: column; */
    }
}

@media screen and (min-width: 501px) and (max-width: 775px) { /* small Tablet */
    #userInputDiv {
    flex-wrap: wrap;
    }
    .betweenMarkers {
        flex-wrap: wrap;
    }
    .selectionOutputSection {
        display: block;
        padding: 0.25rem;
    }
    
    .eachSectionDiv {
        display: flex;
        flex-wrap: wrap;
    }
    
    .eachPairDiv {
        margin: 0.25rem;
        min-width: max-content;
    }
    
    .pairStitchesDiv {
        display: block;
    }
    
    .pairStitchesDiv p {
        display: block;
    }

    #SVGnumbers text {
        font-size: 0.85rem;
    }
}

@media screen and (min-width: 776px) and (max-width: 976px) { /* BIG Tablet */
    #userInputDiv {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-evenly;
    }
    .section {
        flex-wrap: wrap;
        flex-direction: column;        
        margin-top: 0.25rem;
    }

    .selectionOutputSection {
        display: block;
        margin: 0.5rem 0 0.2rem 0;
    }
    .eachSectionDiv {
        display: flex;
        flex-wrap: wrap;

    }
   .eachPairDiv {
       margin: 0.2rem;
       min-width: max-content;
   }
   
   .pairStitchesDiv {
       display: block;
       font-size: 0.8rem;
   }

   .pairStitchesDiv p {
        font-size: 1rem;
    }
   .pairStitchesDiv p {
       display: block;
   }
}

@media screen and (min-width: 977px) and (max-width: 1028px)  { /* Desktop */
    #userInputDiv {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-evenly;
    }
    .section {
        flex-wrap: nowrap;
        margin-top: 0.25rem;
    }

    .selectionOutputSection {
        display: block;
    }
    .eachSectionDiv {
        display: flex;
        flex-wrap: wrap;
        border-style: none;
    }

    .selectionOutputSection h3 {
        margin: 0.6rem 0 0.2rem 0;
        text-indent: 1.5rem;
    }
   .eachPairDiv {
       border: 1px solid var(--color6);
       margin: 0.15rem;
       padding: 0.25rem;
       min-width: max-content;
   }
   .pairStitchesDiv {
       display: block;
       font-size: 0.8rem;
   }
}

@media screen and (min-width: 1029px) and (max-width: 1800px) { /* Big screen */

    #userInputDiv {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-evenly;
    }
    .section {
        flex-wrap: nowrap;
        margin-top: 0.25rem;
    }
      .selectionOutputSection h3 {
        font-size: 1.5rem;
        text-indent: 2rem;
      }
      h4 {
        font-size: 1.3rem;

      }
      .YCselection {
        font-size: 1rem;
      }

      .selectionOutputSection {
        display: block;
    }
    .selectionOutputSection h3, .selectionOutputSection h4 {
        margin: 1rem 0 0.5rem 0;
    }
    .eachSectionDiv {
        display: flex;
        flex-wrap: wrap;
    }
   .eachPairDiv {
       margin: 0.15rem;
       padding: 0.25rem;
       min-width: max-content;
   }
   .pairStitchesDiv {
       display: block;
       font-size: 0.8rem;
   }
   .buttonsDiv {
    max-width: max-content;
   }
   #SVGnumbers text {
        font-size: 1.2rem;
        font-weight: bold;
    }
}
/*  */

@media screen and (max-device-width: 650px) {
    #placematA, #placematC {
        justify-self: flex-end;
    }
    #placematB, #placematD {
        justify-self: flex-start;
    }    
    /* .panel {
        flex-direction: column-reverse;
        flex-direction: row-reverse;
    } */
    .placematPicturesDiv {
        width: 100%;
        max-width: 100vw;
        text-align: center;
    }
}

@media screen and (min-device-width: 650px) {
    .allPlacemats {
        grid-template-areas:
        'A B C D'
        'E E E E';
        gap: 10px;
        justify-items: center;
        padding: 0 1.5rem;
    }
    .individualPlacemats {
        width: 22vw;
        height: auto;
    }
    /* .panel {
        flex-direction: row-reverse;
    } */
    .placematPicturesDiv {
        max-width: 40%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-end;
    }
} 

 @media screen and (min-width: 1000px) {
    .placematPicturesDiv {
        min-height: 100%;
        height: 450px;
        min-width: 30%;
        max-height: 50vh;
    }
} 

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