/*! HTML5 Boilerplate v8.0.0 | MIT License | https://html5boilerplate.com/ */

/* main.css 2.1.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;900&display=swap');

@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');

@font-face{
 font-family:'digital-clock-font';
 src: url('./digital-7.ttf');
}

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
  font-family: 'Roboto', sans-serif;
}

#clockAlert{
    /* position: absolute; */
    /* top: 0; */
    /* right: 0; */
    color: #a400ff;
    display: block;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

h5 {
    margin: 0px;
    font-size: 64px;
}

footer {
    /* display: none; */
    /* position: absolute; */
    /* top: calc(100vh); */
    padding: 7px 16px;
    /* bottom: 0; */
    z-index: -1;
    font-size: 12px;
    font-family: 'VT323';
    width: 160px;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

.hide{
    display: none;
}

body {
    /* box-sizing: border-box; */
    font-size: 20px;
    color: #463765;
    background-image: url(./img/bg_texture_300.jpg);
    background-repeat: repeat;
}

#clock{
    font-family: 'digital-clock-font';
    text-align: center;
    font-size: 45px;
    position: absolute;
    z-index: 9999;
    right: 11px;
    background: #fff;
    width: 60px;
    border: 1px solid;
    border-radius: 4px;
    line-height: 1;
    padding-top: 4px;
    box-shadow: 4px 4px #46376580;
}

#page {
    /* position: relative; */
    /* box-sizing: border-box; */
    min-height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    overflow-x: hidden;
    box-shadow: inset 0px 0px 80px 7px #fff59d;
    border-radius: 0px;
    background-image: url(/img/bg_texture_300.jpg);
    background-repeat: repeat;
    background: rgb(255 253 232 / 0%);
}

#page.cactusJack{
    background: #5e3623;
    box-shadow: none;
    color: #ffeb3b !important;
    filter: hue-rotate(45deg);
    transition: all ease 0.2s;
}

#page.cactusJack .orderCard {
    color: #e06bf4;
    background-color: #ffeb3b;
}

.elements{
    display: flex;
    flex-direction: column;
    max-width: 360px;
    min-height: 360px;
    padding: 16px 0;
    margin: 0 8px;
    /* position: relative; */
}

.logo {
    position: relative;
    margin-top: 48px;
    /* margin-bottom: 48px; */
    margin-left: auto;
    margin-right: auto;
    width: 158px;
    height: 100px;
    /* margin-left: -26px; */
    background-size: auto;
    background-position: -1600px center;
    background-image: url(./img/logosMcDonalds.png);
    transition: all ease 0.2s;
    box-sizing: border-box;
    border-radius: 8px;
    cursor: grab;
}

.mainMessage{
    left: 108px;
    font-family: 'VT323', monospace;
    z-index: 9999;
    display: none;
    position: absolute;
    background: #fff;
    font-size: 40px;
    top: 170px;
    padding: 8px 16px;
    transform: rotate(343deg);
    text-shadow: 2px 2px 3px white;
    border-radius: 8px;
    text-transform: uppercase;
    border: 2px solid;
    letter-spacing: 4px;
}

.mainMessage.showMessage{
    display: block !important;
}

#successMessage{
    color: green;
    background: #f2fff4;
    box-shadow: 0 0 10px inset;
    text-shadow: 0 0 4px #ffffff;
}

#failureMessage{
    transform: rotate(20deg);
    color: #b71c1c;
    background: #ffebee;
    box-shadow: inset 0 0 8px #b71c1c;
    text-shadow: 0 0 10px white;
    left: 140px;
}

h3{
  display: none;
  margin: 0;
  font-size: 18px;
  text-transform: uppercase;
}

#cardDeck h4{
    margin: 0;
    font-size: 28px;
    text-align: center;
    border: 2px dashed;
    border-style: dashed none;
}

p{
    margin: 0;
    font-size: 0.8em;
}

button{
    cursor: pointer;
    border: 0;
    background: transparent;
    /* min-height: 40px; */
    cursor: pointer;
    padding: 0;
    outline: none !important;
}

.foodControl button{
    display: none;
}

.show {
    display: block !important;
}

#loadingTray{
    transition: all ease 3s;
    transition: height ease 1;
    min-height: 80px;
    background: #ffeb3b;
    /* border: 4px solid #cfd8dc; */
    border-radius: 8px;
    background: repeating-linear-gradient(45deg, #fff7b4, #fff7b4 10px, #e1bee7 10px, #e1bee7 20px);
    margin: 4px 0 4px;
    display: flex;
    /* justify-content: space-evenly; */
    flex-wrap: wrap;
    /* overflow-x: scroll; */
    position: relative;
}

.trayMessage{
    position: absolute;
    box-sizing: border-box;
    font-size: 14px;
    /* z-index: 1; */
    background: #fff7b4;
    width: calc(100% - 180px);
    left: 90px;
    top: 19px;
    border-radius: 4px;
    text-align: center;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #e1bee7;
    border: 2px solid;
    padding: 10px 0;
}

.btn-start{
    margin: 8px auto;
    background: #ffc300;
    color: #244c28;
    font-size: 21px;
    width: 80%;
    border: 1px solid;
    border-radius: 5px;
    box-shadow: 2px 2px rgb(36 76 40 / 59%);
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: 8px;
    position: absolute;
    z-index: 9999;
    left: 35px;
    top: 10px;
    padding: 10px;
}

.btn-start:hover{
    left: 37px;
    top: 12px;
    box-shadow: none;
}


.btn-bag {
    /* display: none; */
    cursor: none;
    transition: all ease 0.25s;
    filter: saturate(1.5);
    opacity: 0.;
    margin: 8px auto;
    background: url('img/bag_bg.jpg');
    background: #ffeb3b;
    color: #000000;
    text-shadow: 0px 0px 20px #fdfdfd;
    font-size: 14px;
    width: 120px;
    /* height: 80px; */
    border: 1px solid;
    border-radius: 5px;
    box-shadow: 4px 4px #00000087;
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: 4px;
    position: relative;
    padding: 4px;
    /* filter: saturate(4); */
    padding: 10px 10px;
    border-radius: 16px;
    position: fixed;
    bottom: 16px;
    right: 16px;
    cursor: pointer;
}

.btn-bag.hover{
    /* left: 4px; */
    /* top: 4px; */
    box-shadow: none;
    background: #8bc34a;
}

.bag{
    display: none;
    width: 120px;
    height: auto;
    position: relative;
    bottom: 25px;
    left: -32px;
    /* z-index: 999; */
}

.foodControlArea{
    display: flex;
    flex-flow: wrap;
    justify-content: space-between;
    transition: all 3s;
    position: relative;
}

.foodControlArea *{
    transition: all 3s;
}

.foodControl{
    background: white;
    box-sizing: border-box;
    text-align: center;
    box-sizing: border-box;
    width: calc(33% - 6px);
    border: 1px solid transparent;
    margin: 4px 2px 0 2px;
    border-radius: 8px;
    padding: 4px;
    /* display: flex; */
    /* flex-direction: column; */
    background: hsl(42deg 100% 50% / 20%);
    display: -webkit-flex;
    /* display: flex; */
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-align-content: space-evenly;
    align-content: space-evenly;
    -webkit-flex-flow: row wrap;
    flex-flow: row wrap;
    /* border: 1px solid #ffb202; */
    transition: all ease 1s;
}

.newOption::after{
    content: 'New';
    text-transform: uppercase;
    font-weight: 900;
    font-size: 12px;
    position: absolute;
    left: -5px;
    top: -8px;
    background: #ff0000;
    color: #fff;
    box-shadow: 1px 1px #b71c1c;
    border-radius: 4px 0;
    transform: rotate(343deg);
    padding: 4px;
}

#burgerControl .newOption::after{
    top: 4px;
}

#drinksControl .newOption::after{
    left: -18px;
}

#nuggetsControl .newOption::after{
    left: -12px;
    font-size: 10px;
    padding: 2px;
    top: 0;
}

.oldOption.newOption::after{
    content: none;
}


#page button img {
    position: relative;
    align-content: center;
    vertical-align: middle;
    margin: 0 !important;
    /* display: flex; */
    /* align-items: center; */
    /* justify-content: center; */
    /* background: #9e9e9e; */
    filter: drop-shadow(3px 3px 1px #9e9e9e);
}

.foodControl > * {
    margin-bottom: 8px;
}

.foodControl button.hover img {
    filter: brightness(1.25) !important;
}

.foodControl button img{
    width: 100px;
}

#cardDeck{
    height: 300px;
    position: relative;
    /* -webkit-transform: scale(0.8); */
    -ms-transform: scale(0.8);
    /* transform: scale(0.8); */
    transition: all 3s 1s;
}

#orderNumber-1 {
    transition: all 1s 1s;
    animation: slide-up 1s ease;
}


/*Leaves a max of 5 cards on the table*/
#cardDeck div:nth-child(n+6) {
    opacity: 0;
    -webkit-transition: all 1s ease-out;  /* Chrome 1-25, Safari 3.2+ */
     -moz-transition: all 1s ease-out;  /* Firefox 4-15 */
       -o-transition: all 1s ease-out;  /* Opera 10.50–12.00 */
          transition: all 1s ease-out;  /* Chrome 26, Firefox 16+, IE 10+, Opera */
}

#orderNumber-0{
    opacity: 1 !important;
}


.orderCard {
    text-align: left;
    /* display: none; */
    box-sizing: border-box;
    padding: 4px;
    font-family: 'VT323', monospace;
    font-size: 12p;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 20px;
    line-height: 1;
    background: rgb(249 249 249 / 96%);
    background-image: url('./img/logosReceipt.png');
    background-repeat: no-repeat;
    background-size: 60px;
    background-position: top;
    box-shadow: 1px 1px 4px 1px hsl(0deg 0% 0% / 25%);
    margin: -8px 0 0 -10px;
    position: relative;
    width: 200px;
    min-height: 300px;
    animation: slide-up 1s ease;
    transition: all 2s ease-in;
    margin-top: -20px;
    padding-top: 55px;
    padding-bottom: 8px;
}

#burgerControl.foodControl button img{
    margin-top: -50px;
    margin-left: -27px;
}

#friesControl.foodControl button img{
    margin-top: 0px;
    margin-left: -27px;
}

#drinksControl.foodControl, #nuggetsControl.foodControl {
    width: calc(15% - 6px);
}

#drinksControl.foodControl button img{
    margin-top: -5px;
    margin-left: -30px;
    width: 40px;
}

.foodControl button img{
    /* filter: drop-shadow(1px 1px 4px yellow); */
}

.foodControl button:active img{
}


#burger_4, #burger_5{
    height: 115px;
}

#burger_4 img, #burger_5 img{
    margin-top: -24px;
}

#burger_6 {
    height: 80px;
}

#burger_6 img{
    width: 101px;
    margin-top: -22px;
    margin-left: -19px;
}

 #burger_5,#burger_6,#burger_7, #burger_8{
    
}

#fries_2 img{
    width: 75px;
    margin-left: -15px !important;
}

#fries_1{
    height: 71px !important;
}

#fries_1 img{
    margin-top: -49px !important;
    width: 60px;
}

#instructions {
    filter: hue-rotate(73deg);
    /* text-align: center; */
    padding-left: 16px;
    padding-right: 16px;
    /* position: absolute; */
    width: 380px;
    top: 32px;
    opacity: 1 !important;
    min-height: 275px;
}

.cursor{
    font-family: 'VT323', monospace;
    box-sizing: border-box;
    height: 40px;
    width: 60px;
    transform: rotate(15deg);
    position: absolute;
    top: 34px;
    left: -20px;
    z-index: 9999;
    background: url('./img/cursor.png');
    background-size: cover;
    padding-top: 7px;
    color: #813a69;
    text-align: left;
    padding-left: 14px;
    font-size: 28px;
}

.instructionSnippet {
    opacity: 0;
    transition: all ease 1s;
    margin-top: 4px;
    margin-bottom: 4px;
    font-size: 11px;
    text-align: center;
    font-weight: 900;
    letter-spacing: 1px;
    text-shadow: 0px 0px 12px hsl(42deg 100% 50% / 40%);
}

.instructionSnippet.add {}

.instructionSnippet.add{
    /* margin-bottom: -2px; */
    /* text-shadow: 0px 0px 20px #4caf50; */
}

.instructionSnippet.remove{
}

.foodControl button{
    /* background: #ffb202; */
    font-size: 8px;
    box-sizing: initial;
    position: relative;
    text-align: center;
    width: 100px;
    height: 80px;
    overflow: visible;
    margin-bottom: 15px;
    /* border: 1px solid #bdbdbd; */
    /* border-radius: 8px; */
    /* box-shadow: 2px 3px #bdbdbd; */
}

#friesControl button{
    height: 137px;
}

.sauces{display: flex;flex-flow: wrap;flex-direction: initial;flex-wrap: wrap;justify-content: space-between;}

#friesControl.foodControl .sauces button img{
    width: 44px;
}

#friesControl.foodControl .sauces button{
    width: 46px;
    margin: 0;
    height: 60px;
}

#drinksControl button{
    height: 70px;
    width: 100%;
}

#drinksControl.foodControl #drink_5 img{
    width: 29px;
}

#nuggetsControl button {
    height: 48px;
}

#nuggetsControl button img{
    width: 33px;
}

#nuggetsControl button#nugget_4 img,
#nuggetsControl button#nugget_5 img,
#nuggetsControl button#nugget_6 img,
#nuggetsControl button#nugget_7 img,
#nuggetsControl button#nugget_8 img{
    transform: rotate(163deg);
}

#loadingTray > div{
}

.orderElement{
    font-size: 0;
}

.orderElement img{
    transition: all 3;
    animation: slide-left ease-out 0.5s;
    height: 80px;
    position: relative;
    /* flex-basis: 50px; */
    top: -20px;
    /* flex-shrink: 5; */
    cursor: pointer;
}

.orderElement.remove{
    animation: slide-right ease-in 1s;
    transform: translateX(4000px);
    max-width: 0;
}



.orderElement img[src*="drink"],
.orderElement img[src*="f_"],
.orderElement img[src*="h_"],
#nuggetOrderCount{
    /* display: none; */
}

.orderElement img[src*="f_fries"] {
    height: 120px;
    top: -62px;
}

.orderElement img[src*="f_small"] {
    height: 60px;
    top: -17px;
}

.orderElement img[src*="f_medium"] {
    height: 90px;
    top: -32px;
    margin-right: -20px;
}

.orderElement img[src*="big-mac"] {
    height: 120px;
}

.orderElement img[src*="burger"] {
    height: 60px;
    top: -16px;
}

#nuggetOrderCount{
    font-size: 31px;
    font-weight: 900;
    color: #673ab7;
    text-shadow: 0px 0px 20px #ffeb3b;
    margin-top: -42px;
}

#nuggetOrderCount img{/* filter: drop-shadow(2px -2px 1px #673ab7); */height: 100px;/* margin-right: -20px; */top: 30px;z-index: 1;}

#nuggetOrderCount span{
    z-index: 2;
    background: #f1c85b;
    border-radius: 50%;
    padding: 3px 8px;
    border: 2px solid;
    display: inline-block;
    margin-left: -20px;
    cursor: pointer;
}

.speakOrder{
    width: 30px;
    height: 23px;
    background-image: url('./img/speaker.png');
    background-repeat: no-repeat;
    background-size: cover;
    margin-left: auto;
    bottom: 4px;
    right: 2px;
    cursor: pointer;
    opacity: 1 !important;
    position: absolute;
}

@keyframes slide-up {
    0% {
        transform: translateY(-1000px);
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes slide-left {
    0% {
        opacity: 0;
        transform: translateX(4000px);
        max-height: 0;
    }
    100% {
        opacity: 1;
        transform: translateX(0);
        max-height: 80px;
    }
}

@keyframes slide-right {
    0% {
        opacity: 1;
        transform: translateX(0);
        max-width: 100px;
        max-height: 80px;
    }
    100% {
        opacity: 0;
        transform: translateX(4000px);
        max-width: 0;
        max-height: 0px;
    }
}


@keyframes wiggle {
    0% { transform: rotate(0deg); }
   25% { transform: rotate(0deg);
        margin-left: 1px;}
   50% { transform: rotate(1deg); }
   75% { transform: rotate(-1deg); }
  100% { transform: rotate(0deg);
    margin-left: 0;}
}

@keyframes short-wiggle {
    0% { transform: rotate(0deg);}
   50% { transform: rotate(0.5deg);}
  100% { transform: rotate(0deg);}
}

@keyframes order-wiggle {
    0% { transform: rotate(0deg);}
   50% { transform: rotate(-10deg);
        margin-top: -1px;}
  100% { transform: rotate(0deg);
        margin-top: 0px;}
}

.cursor {
  animation: wiggle 1s infinite;
}

 #start {
  animation: short-wiggle 1s infinite;
}

.foodControl .newOption::after {
  animation: order-wiggle 1s infinite;  
}

.foodControl .newOption {
    
}

.foodControl .newOption.oldOption{
    animation: none;
}


/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {
    #clock, #bagIt{
        right: calc(100vw/2 - 180px);
    }
    
    #bagIt{
    bottom: auto;
    top: 350px;
    right: calc(100vw/2 + 200px);
    }
}




































/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.sr-only {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .sr-only class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.sr-only.focusable:active,
.sr-only.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to a<div class="orderCard" id="orderNumber-5" style="position: absolute; top: 0px; right: 110px; transform: rotate(-2deg); z-index: 5;">----- Mc Donalds ----- <br><h4>Order N#3</h4><br>1 x Hamburger<br>1 x Small Fries<br>3 x Chicken McNuggets</div>ppear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: " ";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  /*
   * Printing Tables:
   * https://web.archive.org/web/20180815150934/http://css-discuss.incutio.com/wiki/Printing_Tables
   */
  thead {
    display: table-header-group;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}

