/* Used in index.php */


* {
    /*--color-border: darkgray;*/
    /*--color-input: gray;*/
    /*--color-fill-1: whitesmoke;*/
    /*--color-fill-2: white;*/
    --color-border: #7288ba;
    --color-input: #557ca1;
    --color-fill-1: #cde0e0;
    --color-fill-2: #d6dfea;
    --title-size: 43px;
    --border-radius: 16px;
}


form {
    margin: 0 auto 0 auto;
    height: 95vh;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.center-items {
    margin: 0 35% 0 35%; /* TODO: may remove or change, need to upload the changes too*/
    align-self: center;
    width: 30%;
    min-width: 370px;
}


h1 {
    margin: 5% auto 0 auto;
    padding: 10px 50px 10px 50px;

    font-size: var(--title-size, xx-large);
    color: var(--color-input, darkgray);

    border-radius: var(--border-radius, 16px);
    border: medium solid var(--color-border, darkgray);

    width: min-content;
    white-space: nowrap;
}

.price_info > * {
    display: flex;
    flex-direction: column;
    color: var(--color-input, darkgray);
    font-size: 2.4vh;
    line-height: 2vh;
    padding: 10px;

    /* For testing the div sizes */
    /* border: 4px solid red; */

}

.price_info {
  border: medium solid var(--color-border, darkgray);
  border-radius: 16px 16px 16px 16px;
}

input[id="amountOfSnacks"] {
    border: medium solid var(--color-border, darkgray);
    border-radius: var(--border-radius, 16px) var(--border-radius, 16px) 0 0;
    -moz-appearance: textfield;
    -webkit-appearance: textfield;

    text-align: center;
    color: var(--color-input, gray);

    height: 10vh;
    font-size: 6vh;
}

button[id="minus"], button[id="plus"] {
    background-color: var(--color-fill-1, whitesmoke);
    border: medium solid var(--color-border, darkgray);
    border-top: none;
    height: 7vh;
    font-size: 5vh;
    padding: 0;
    color: var(--color-input, gray);
    width: 50%;
    min-width: min-content;
}

button[id="minus"] {
    border-right: thin solid var(--color-border, darkgray);
    border-radius: 0 0 0 var(--border-radius, 16px);
}

button[id="plus"] {
    border-left: thin solid var(--color-border, darkgray);;
    border-radius: 0 0 var(--border-radius, 16px) 0;
}

label.phone {
    text-align: center;
    color: var(--color-input, darkgray);
    font-size: 2.4vh;
    line-height: 4vh;
}

input[id="phone"] {
    border: medium solid var(--color-border, darkgray);
    border-radius: var(--border-radius, 16px);
    padding: 5px;
    font-size: 18px;

    width: 50vw;
}

button[type="submit"] {
    color: var(--color-input, gray);
    background-color: var(--color-fill-2, white);

    border: medium solid var(--color-border, darkgray);
    border-radius: var(--border-radius, 16px);

    margin: 0 auto 0 auto;
    width: 23vw;
    height: 10vh;
    font-size: 5vh;
    min-width: min-content;
}

button[id="purchaseButton"] {

    color: var(--color-input, gray);
    background-color: var(--color-fill-2, white);

    border: medium solid var(--color-border, darkgray);
    border-radius: var(--border-radius, 16px);

    margin: 0 auto 0 auto;
    width: 23vw;
    height: 10vh;
    font-size: 3vh;
    min-width: min-content;
}

.info {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    white-space: nowrap;
}

.info>* {
    color: var(--color-input, gray);
    background-color: var(--color-fill-2, white);

    border: medium solid var(--color-border, darkgray);
    border-radius: var(--border-radius, 16px);

    min-width: min-content;
}

.cost-div {
  /* margin: 20px; */
  height: 40px;
  width: 100%;
}


/* Mobile formatting */
/* TODO: need to update mobile to include the none styling on $ divs */
@media only screen and (max-width: 600px) {


  .price_info {
    margin-top: 10px;
    margin-bottom: 10px;
  }

  #testDiv {
    margin-top: 10px;
    margin-bottom: 10px;
    width: 100%;
  }

  #amountDiv {
    margin-top: 10px;
    margin-bottom: 10px;
  }

  #extraInfo {
    margin-top: 10px;
  }

  #purchaseButton {
    margin-top: 10px;
  }

  form {
    width = 500px;
  }

  #paymentDiv {
    width = 100%;
  }

  .center-items {
    align-self: unset;
    min-width: 100%;
    width: 100%;
  }

  h1 {
    width: 100%;
    text-align: center;
    padding: 0;
  }
}
