/***********************************************************
 * Author: Leonard Siu                                     *
 * Date created: 24 August 2021                            *
 ***********************************************************/
:root{
  --cfBlack: #000;
  --cfDarkGrey: #888; /*For copyright text*/
  --cfGreen: #C7FFD8;
  --cfLightBlue: #E4FBFF;
  --cfLightGrey: #EEE;
  --cfRed: #BD4B4B;
  --cfPink: #EFB7B7;
}

*
{
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body{font-family: arial;}

header
{
  background-color: white;
  opacity: 0.95;
  display: flex;
  height: 10vh;
  width: 100vw;
}
footer
{
  background: linear-gradient(0deg, rgba(0,0,0,1) 0%, rgba(231,207,250,1) 100%);
  opacity: 0.95;
  display: flex;
  height: 10vh;
  width: 100vw;
  top:15vh;
  position: relative;
}

header
{
  align-items: center;
  justify-content: space-between;
  padding:1vh 1vw;
  position: fixed;
  z-index: 1;
}

header>div
{
  display:flex;
  align-items: center;
  height: 90%;
  position: relative;
}

input[value="Go to Checkout"]
{
  background-color: var(--cfRed);
  border: 0;
  border-radius: 5px;
  color: var(--cfLightGrey);
  font-size: 1rem;
  width: 100%;
}

main
{
  display: flex;
  min-height: 80vh;
  position: relative;
  top: 10vh;
  width: 100vw;
}

nav
{
  background-color: #333;
  height: 5vh;
  width: 100vw;
  padding: 1vh 1vw;
  display: none;
  position: fixed;
  top: 10vh;
  z-index: 1;
  align-items: center;
  font-weight: bold;
  font-size: 1rem;
}
nav>ul>li
{
  display: inline;
  margin-right: 5vw;
}

nav>ul>li>a{
  color: var(--cfLightGrey);
  text-decoration: none;
}

section
{
  background-color: white;
  width: 100%;
  padding: 1vh 1vw 3vh;
}



#logo
{
  height: 8vh;
  width: auto;
}

.container{min-height:100vh;}

.mobileButtonStyle{
  background-color: black;
  width: 40px;
  height: 40px;
  padding: 5px;
  z-index: 1;
  border-radius:5px;
}

.modal{
  position: fixed;
  padding-top: 10vh;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  visibility: hidden;
  display: flex;
  flex-direction: column;
  opacity: 0; /*Start at 0, then transition to 0.9 opacity*/
  transition: 0.5s;
  z-index: 3;
}

.perfectCenter{
  /*container must be displayed as flex*/
  align-items: center;
  justify-content: center;
}

.purchasesContainer{
  width: 100%;
  height: 100%;
}

.purchasesContainer>h2
{
  text-align: center;
  margin-top: 2vh;
  margin-bottom: 8vh;
}

.purchasesContainer>table{margin: auto;}

.toggler{
  position: absolute;
  z-index: 2;
  cursor: pointer;
  width: 40px;
  height: 40px;
  opacity: 0;
}

.total{font-weight: bold;}

/*For landscape phones where the header height is to small
for the logo to fit.*/
@media (max-width: 850px) and (max-height: 440px)
{
  header
  {
    background-color: white;
    opacity: 0.95;
    height: 15vh;
  }
   footer
  {
   background: linear-gradient(0deg, rgba(0,0,0,1) 0%, rgba(231,207,250,1) 100%);
    opacity: 0.95;
    height: 15vh;
  }
  header{justify-content: center;}

  input[value="Go to Checkout"]
  {
    border: 0;
    width: 100%;
    font-size: 0.75rem;
    background-color: var(--cfRed);
    color: var(--cfLightGrey);
    border-radius: 5px;
  }

  #logo{height: 13vh;}

  nav{
    display: flex;
    top: 15vh;
    height:10vh;
    font-size: 0.75rem;
  }

  main{
    position: relative;
    top: 25vh;
    min-height: 55vh;
  }

  footer{top: 25vh;}

  .mobileMenuContainer{display: none;}
}/* @media (max-width: 850px) and (max-height: 440px) */

/*For tablet portrait*/
@media(min-width: 500px) and (min-height: 710px)
{
  footer
  {
    position: relative;
    top: 15vh;
  }

  input[value="Go to Checkout"]
  {
    border: 0;
    width: 100%;
    font-size: 1rem;
    background-color: var(--cfRed);
    color: var(--cfLightGrey);
    border-radius: 5px;
  }
}/* @media(min-width: 500px) and (min-height: 710px) */

/*For portraits of Surface Duo and Galaxy Fold unfolded*/
@media(min-width: 500px) and (max-height: 720px)
{
  input[value="Go to Checkout"]
  {
    border: 0;
    width: 100%;
    font-size: 0.75rem;
    background-color: var(--cfRed);
    color: var(--cfLightGrey);
    border-radius: 5px;
  }
}/* @media(min-width: 500px) and (max-height: 720px) */

/*For other screen such as desktop monitors*/
@media(min-width: 500px) and (min-height: 441px)
{
  header{justify-content: center;}
  header,footer{opacity: 1;}

  footer{
    background: rgb(0,0,0);
    background: linear-gradient(0deg, rgba(0,0,0,1) 0%, rgba(231,207,250,1) 100%);
    position: relative;
	bottom: 0px;
    top: 15vh;
  }

  main{top: 15vh;}

  nav{
    display: flex;
    top: 10vh;
  }

  section{width: 100vw;}

  .mobileMenuContainer{display: none;}
}/* @media(min-width: 600px) */
