/* GENERAL */
*
{
  color: #FFF;
  box-sizing: border-box;
}

@font-face
{
  font-family: outerspace;
  src: url("../Fonts/OuterspaceMilitia.otf") format("opentype");
  font-display: swap;
}

@font-face
{
  font-family: consolefont, monaco, monospace;
  src: url("../fonts/console.ttf");
  font-display: swap;
}

body
{
	padding: 0;
	margin: 0;
	background-color: #15202a;
}

/* For Desktop */
@media only screen and (min-width: 1200px)
{
    
}

/* UNIVERSAL RULES */
a
{
    text-decoration: none;
}

button:hover, a:hover 
{
    cursor: pointer;
}

h1, h2, p, label
{
    color: black;
}

.smalltext {font-size: 12px;}

.nav-offscreen { top: -70px;}
.nav-onscreen { top: 0px;}

.side-offscreen{ top: -60px;}
.side-onscreen{ top: 80px;}

.icontray-offscreen{ left: -80px;}
.icontray-onscreen{ left: 0px;}

.display-none
{
    display: none !important;
}
.maximize
{
    width: 800px;
    height: 800px;
}

.minimize
{
    width: auto;
    height: auto;
}

.standard-dropdown
{
    color: black;
    padding: 5px;
    width: 200px;
}

.standard-dropdown option
{
    color: black;
    padding: 5px;
}

.tablecell-dropdown
{
    color: black;
    padding: 5px;
    width: 130px;
}

.tablecell-dropdown option
{
    color: black;
    padding: 5px;
}

.table-input
{
    color: black;
    padding: 5px;
    width: 80px;
}

.removeRow
{
    width: 64px;
  height: 64px;
    padding: 10px;
  background-color: #660C0C;
  box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
  border: none;
  color: #FFF;
  font-size: 16px;
  cursor: pointer;
}

.addButton
{
width: 100%;
  height: 30px;
  background-color: #034F0A;
  box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
  color: #FFF;
  border: 0;
  font-size: 24px;
  margin-bottom: 50px;
  cursor: pointer;
}

.standard-input
{
    color: black;
    padding: 5px;
}

.standard-btn
{
    background-color: black;
    color: white;
    padding: 6px;
    border: 0;
}

#preview-btn
{
    width: 100%;
    height: 40px;
    padding: 5px;
    background-color: #034f0A;
    border: 0;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

.submit-btn
{
    width: 100%;
    height: 40px;
    padding: 5px;
    background-color:black;
    color: white;
    border: 0;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

#finish-btn
{
    position: absolute;
    top: calc(50% + 120px);
    left: 50%;
    width: 240px;
    height: 40px;
    transform: translate(-50%, -50%);
    padding: 5px;
    background-color: #034f0A;
    border: 0;
    border-radius: 5px;
}

/* For Desktop */
@media only screen and (min-width: 1200px)
{
    .nav-offscreen { top: -70px;}
    .nav-onscreen { top: 15px;}

    .side-offscreen{ left: -80px;}
    .side-onscreen{ left: 5px;}

    .icontray-offscreen{ left: -80px;}
    .icontray-onscreen{ left: 65px;}
    
    .maximize
    {
        width: 90% !important;
        height: 800px;
    }

    .minimize
    {
        width: fit-content !important;
        height: auto;
    }
    
    .tablecell-dropdown
    {
        color: black;
        padding: 5px;
        width: 140px;
    }
}

/* ELEMENTS */
.nav-bar {display: none;}
.side-bar {display: none;}
.icon-tray {display: none;}

.m-nav-bar
{
    position: absolute;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: #142d44;
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
    transition: all 0.25s ease-in-out;
    
    display: flex;
    justify-content: space-between;
    align-items: center;
    
    padding: 0px 15px;
    
    z-index: 10;
}

.m-nav-bar select
{
    width: 675px;
    background-color: #142d44;
    padding: 10px;
    border: none;
    font-size: 18px;
}

.m-side-bar
{
    position: absolute;
    left: 0px;
    width: 800px;
    height: 60px;
    background-color: #142d44;
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
    
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding-left: 30px;
    
    transition: all 0.25s ease-in-out;
    
    z-index: 9;
}

.m-icon-tray
{
    position: absolute;
    top: 80px;
    width: 80px;
    height: 400px;
    background-color: #142d44;
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);

    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    z-index: 10;

    transition: all 0.25s ease-in-out;
}

#total-container
{
    text-align: right;
    margin-right: 15px;
}

#total-container h2
{
    font-size: 18px;
}


#cust-details-container
{
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
}

#cust-op-cell
{
    padding: 5px;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
}

#cust-op-cell label
{
    margin: 0 5px;
}

#cust-address-container
{
    max-width: 300px;
}

.address-row
{
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 300px;
}

.address-row input
{
    color: black;
    flex-grow: 3;
    padding: 5px;
    margin: 2px auto;
    max-width: 300px;
}

.address-row input.grow1
{
    flex-grow: 1 !important;
    max-width: 100px;
}

#cust-update-container
{
    padding: 10px;
}

.viewsort-container, .advsort-container
{
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.datatable
{
  border-collapse: collapse;
  width: 100%;
  margin: 25px auto;
  border: 1px solid #ddd;
}

.datatable tr
{
    cursor: pointer;
}

.datatable th
{
  color: black;
  background-color: #6CF199;
  padding: 10px;
}

.datatable td 
{
  color: black;
  padding: 10px;
  border-bottom: 1px solid #ddd;
}

.datatable tr:nth-child(even) {background-color: #f2f2f2;}

.datatable th, .datatable td
{
    
}

/* For Desktop */
@media only screen and (min-width: 1200px)
{
    .m-nav-bar {display: none;}
    .m-side-bar {display: none;}
    .m-icon-tray {display: none;}
    .nav-bar
    {
        position: absolute;
        left: 2.5%;
        width: 95%;
        height: 70px;
        background-color: #142d44;
        box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
        -ms-transform: skewX(5deg); /* IE 9 */
        transform: skewX(5deg);

        display: flex !important;
        justify-content: flex-start;
        align-items: center;
        padding: 0px 10px;

        transition: all 0.25s ease-in-out;
    }

    .nav-links-container
    {
        width: 100%;
        line-height: 70px;
        display: flex;
        justify-content: space-around;
        align-items: center;
    }

    .nav-links-container a
    {
        letter-spacing: 2px;
        height: 68px;
       /* transition: 0.25s ease-in; */
    }

    .nav-link-active
    {
        border-bottom: 1px solid white;
    }

    .side-bar
    {
        position: absolute;
        top: 15px;
        width: 60px;
        height: 500px;
        background-color: #142d44;
        box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
        -ms-transform: skewX(5deg); /* IE 9 */
        transform: skewX(5deg);

        display: flex;
        flex-direction: column;
        justify-content: space-around;
        align-items: center;
        padding-top: 70px;
        z-index: 99;

        transition: all 0.25s ease-in-out;
    }

    .icon-tray
    {
        position: absolute;
        top: 85px;
        width: 60px;
        height: 300px;
        background-color: #142d44;
        box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
        -ms-transform: skewX(5deg); /* IE 9 */
        transform: skewX(5deg);

        display: flex;
        flex-direction: column;
        justify-content: space-around;
        align-items: center;
        z-index: 99;

        transition: all 0.25s ease-in-out;
    }
}
/**************************************/
/* WINDOWS */
/*************************************/
#main-window
{
    position: relative;
}
.content-window
{
    width: 800px;
    max-width: 800px;
    height: 700px;
    position: inline-block;
    background-color: white;
    color: black;
    border-radius: 5px;
    border: 1px solid black;
}

.window-header
{
    width: 100%;
    height: 20px;
    line-height: 20px;
    background-color: #5C5C5C;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    font-size: 14px;
    padding-right: 10px;
}

.window-header p
{
    color: white;
    margin: 0;
    float: left;
}

.header-btn-cntr
{
    height: 20px;
    line-height: 20px;
    display: flex;
    justify-content: flex-end;
    align-content: center;
}

.header-btn-cntr a
{
    margin: 2px 4px;
}

.maximize-window
{
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: green;
    border: 1px solid #5C5C5C;
}

.minimize-window
{
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: yellow;
    border: 1px solid #5C5C5C;
}

.close-window
{
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: red;
    border: 1px solid #5C5C5C;
}

.window-header p
{
    margin-left: 10px;
}

/* For Desktop */
@media only screen and (min-width: 1200px)
{
    .content-window
    {
        width: fit-content;
        max-width: 1500px;
    }
}
/**************************************/
/* FRAMEWORKS */
/*************************************/
.framework-main
{
    color: black !important;
    text-align: left;
    width: 100%;
    height: 95%;
    position: relative;
    overflow-y: scroll;
    overflow-x: hidden;
    padding: 5px;
}

.framework-norm-table
{
    margin-top: 20px;
    width: 100%;
}

.framework-norm-table th
{
    color: black !important;
    text-align: left;
    font-size: 14px;
    font-weight: 200;
}

.framework-norm-table td, .framework-norm-table p
{
    color: black !important;
    text-align: left;
}

.framework-norm-table td p
{
    text-align: center;
}

.framework-overlay
{
    position: absolute;
    left: 1%;
    top: 0;
    width: 98%;
    z-index: 5;
    background-color: white;
    animation: grow-y 0.75s ease-in-out forwards;
    -webkit-animation: grow-y 0.75s ease-in-out forwards;
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
    overflow-x: hidden;
    overflow-y: scroll;
    text-align: center;
}

.close-overlay
{
    position: absolute;
    left: 10px;
    top: 10px;
    border-radius: 50%;
    background-color: grey;
    width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
}

.overlay-title
{
    text-align: center;
    position: absolute;
    left: 50%;
    top: calc(50% - 100px);
    transform: translate(-50%, -50%);
}


.success-check
{
    position: absolute;
    left: calc(50% - 32px);
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    animation: success-anim 1.0s ease-in 0s 1 normal forwards;
    -webkit-animation: success-anim 1.0s ease-in 0s 1 normal forwards;
}

/* LOGIN */
pie.lock1 
{
    width: 2000px;
    height: 2000px;
    display: block;
    border-radius: 50%;
    background-color:white;
    margin: 1em;
    position: absolute;
    left: calc(50% - 1000px);
    top: calc(50% - 1000px);
    transform: translate(-50%, -50%);
    text-align: center;
    transform-origin: center center;
    animation: lds-ring 5s linear infinite;
    background-image:
        linear-gradient(220deg, transparent 50%, white 50%),
        linear-gradient(90deg, #15202a 50%, transparent 50%);
}

pie.lock2 
{
    width: 1500px;
    height: 1500px;
    display: block;
    border-radius: 50%;
    background-color:#15202a;
    margin: 1em;
    position: absolute;
    left: calc(50% - 750px);
    top: calc(50% - 750px);
    transform: translate(-50%, -50%);
    text-align: center;
    transform-origin: center center;
    animation: lds-ring-rev 5s linear infinite;
    background-image:
        linear-gradient(220deg, transparent 50%, #15202a 50%),
        linear-gradient(90deg, white 50%, transparent 50%);
}

.seventyfive {
    background-image:
        linear-gradient(220deg, transparent 50%, white 50%),
        linear-gradient(90deg, #15202a 50%, transparent 50%);
}
/* ANIMATIONS */

#loading-ring-window
{
  position: absolute;
  top: calc(50% - 32px);
  left: calc(50% - 32px);
  width: 64px;
  height: 64px;
  z-index: 9;
  margin: 0;
}

.lds-ring {
  display: inline-block;
  position: relative;
  top: calc(50% - 32px);
  width: 64px;
  height: 64px;
}
.lds-ring div {
  box-sizing: border-box;
  display: block;
  position: absolute;
  width: 51px;
  height: 51px;
  margin: 6px;
  border: 6px solid #000;
  border-radius: 50%;
  animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  border-color: #000 transparent transparent transparent;
}
.lds-ring div:nth-child(1) {
  animation-delay: -0.45s;
}
.lds-ring div:nth-child(2) {
  animation-delay: -0.3s;
}
.lds-ring div:nth-child(3) {
  animation-delay: -0.15s;
}



@keyframes lds-ring {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes lds-ring-rev {
    0% {
      transform: rotate(360deg);
    }
    100% {
      transform: rotate(0deg);
    }
  }

@keyframes grow-y {
    0% {
      height: 0;
    }
    100% {
      height: 99%;
    }
  }

  @keyframes success-anim {
    0% {
      transform: rotate(0deg) scale(0.5,0.5);
    }
    50% {
        transform: rotate(180deg) scale(1.2,1.2);
    }
    100% {
        transform: rotate(360deg) scale(1.0,1.0);
    }
  }