html, body
{
  background-image: url('../images/bg.svg');
  background-repeat: repeat;
  background-size: 7vh;
  font-family: Elms Sans;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

.page
{
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  justify-content: flex-start;
}

.topbar
{
  width: 100%;
  height: 15vh;
  max-height: 100px;
  min-height:90px;
  display: flex;
  align-items: center;
}

.topbarcontrols
{
  height: 30%;
  position: left;
  display: inline;
  margin-left: auto;
  margin-right: 30px;
}

.logo
{
  margin-left: 30px;
  height: 50%;
  display: inline;
}

.btn-topbar
{
  margin-left: 10px;
  height: 100%;
  display: inline;
}

.btn-donate
{
  display: inline-block;
  width: 100px;
  height: 50px;
  font-size: 16pt;
  background-color:#98c8fc;
  border-width: 1px;
  border-color: #002A56;
  border-radius: 3px;
  box-sizing: border-box;
  cursor: pointer;
  transition: background-color 0.4s ease;
  animation: pulse 3s infinite;
}

.btn-donate:hover
{
  background-color:#1285ff33;
  animation: none;
}

@keyframes pulse {
  0%   { background-color: #1285ff33; }
  50%  { background-color: #98c8fc; } /* lighter shade */
  100% { background-color: #1285ff33; }
}


.mainpanel
{
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  flex: 1;
  min-height: 0;
}

.footer
{
  padding: 0px;
  background: #6FB5FF;
  color: white;
  text-align: center;
  border-top: 1px solid;
  border-color: #002A56;
}

.footer-text
{
  width: 100%;
  display: block;
  box-sizing: border-box;
  padding-left: 10px;
  padding-right: 10px;
  font-size: 12pt;
  color: #002A55;
}

.col
{
  border-style: solid;
  border-width: 1px;
  border-color: #002A55;
  box-sizing: border-box;
  /*flex: 1 1 450px;*/
  min-width:450px;

}

.col-panel
{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;

  max-width: 100%;
    flex: 1 1 100%;
}

.tab-bar
{
  display: flex;
  width: 100%;
  height: 25vh;
  max-height:50px;
  background-color: #6FB5FF;
  border-bottom: 2px solid #002A55;
  justify-content: center; 
  align-items: center; 
  box-sizing: border-box;
}

.control-panel
{
  background-color:#6FB5FF;
  padding-top: 10px;
  padding-bottom: 10px;
  border-top: 1px solid #002A55;
}

.tab-text, h1
{
  font-size: 20pt;
  font-weight: 400;
  color: #002A55;
}

.tab-panel
{
  line-height: 0;            /* removes extra vertical spacing */
  padding: 0;
  margin: 0;
}

.calc-element
{
  display: flex;
  flex: 1 1 auto; 
  justify-content: space-between; /* pushes items to opposite ends */
  align-items: center;            /* vertical alignment */
  padding-bottom: 2px;
  padding-top: 2px;
  background-color: #6FB5FF;
  transition: background-color 0.4s ease;
}

.calc-element:hover
{
  background-color:#1285ff33;
}

.calc-label
{
  display: inline;
  margin-left: 10px;
  font-size: 18pt;
  color: #002A55;
}

.calc-text
{
  width: 100%;
  display: block;
  box-sizing: border-box;
  padding-left: 10px;
  padding-right: 10px;
  font-size: 18pt;
  color: #002A55;
}

.general-text
{
  display: inline-block;
  max-width: 450px;
  white-space: normal;
  word-wrap: break-word;
  margin-left: 10px;
  margin-right: 10px;
  font-size: 18px;
  color: #002A55;
}

.input-panel
{
  display: flex;
  margin-right: 10px;
  align-items: center;  
}

.calc-input
{
  display: inline;
  width: 150px;
  text-align: right;
  background-color: #98c8fc;
  border-top: 1px solid;
  border-right: none;
  border-left: 1px solid;
  border-bottom: 1px solid;
  border-color: #002A56;
  height:27px;
  line-height: 27px;
  font-size: 18pt;
  box-sizing: border-box; 
}

.calc-input-ro
{
  display: inline;
  width: 150px;
  text-align: right;
  background-color: #709ecf;
  border-top: 1px solid;
  border-right: none;
  border-left: 1px solid;
  border-bottom: 1px solid;
  border-color: #002A56;
  height:27px;
  line-height: 27px;
  font-size: 18pt;
  box-sizing: border-box; 
}

.calc-input-calculated
{
  display: inline;
  width: 120px;
  text-align: right;
  background-color: #429dff;
  border-width: 1px;
  border-color: #002A56;
  height:27px;
  line-height: 27px;
  font-size: 18pt;
  box-sizing: border-box;
}

.calc-dd
{
  background-color: #98c8fc;
  border-color: #002A56;
  border-top: 1px solid;
  border-left: none;
  border-right: 1px solid;
  border-bottom: 1px solid;
  height: 27px;
  font-size: 16pt;
}

.calc-dd-solo
{
  width: 60px;
  background-color: #98c8fc;
  border-color: #002A56;
  border-top: 1px solid;
  border-left: 1px solid;
  border-right: 1px solid;
  border-bottom: 1px solid;
  height: 27px;
  font-size: 16pt;
}

/* Remove arrows from input boxes */
/* Chrome, Safari, Edge */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button
{
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type="number"]
{
  -moz-appearance: textfield;
  appearance: textfield; /* Standard property for compatibility */
}


/* Code only for row mode for larger screens */

@media (min-width: 1401px)
{
  .col
  {
    align-self: flex-start;
  }
}

/* Responsive switch to stacked layout.
This should be number of tabs multiplied by column min width */

@media (max-width: 1400px)
{
  .mainpanel
  {
    flex-direction: column;
    align-items: stretch;
    margin-top: 0;
    padding-top: 10px;
    justify-content: flex-start;
  }
  
  .general-text
  {
    max-width: 100%;
  }
  .col
  {
    flex: 1 1 100%;
    min-width: 0;
    max-width: 100%;
    flex: 0 0 auto; 
    margin: 0;
  }

   .col-panel
   {
    flex-direction: column;   /* stack columns vertically */
    align-items: stretch;     /* make them full width */
    min-width: 0;             /* override 450px */
    max-width: 100%;

  }
 
  .page
  {
    justify-content: flex-start;
    align-items: stretch;
  }
}