/* lato-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/lato/lato-v25-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

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

:root {
  --ss-green: #44aa55;
}

body {
  background-color: oldlace;
  font-family: 'Lato', sans-serif;
}

.wrapper001 {
  margin: auto;
  margin-bottom: 70px;
  max-width: 1000px;
}

h1 {
  color: var(--ss-green);
  font-size: 1.5em;
  padding: 20px;
  text-align: center;
}

.section002 .row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-column-gap: 50px;
}

.section002 .row .column {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  grid-column-gap: 50px;
  grid-row-gap: 5px;
}

.section002 .row .column h3,
table caption h3 {
  background-color: var(--ss-green);
  color: #fff;
  padding: 20px;
  text-align: center;
  text-shadow: 1px 1px 3px #000;
}

.column .lineitem {
  display: flex;
  min-height: 35px;
  align-items: center;
  margin-left: 2.5%;
}

.column .lineitem input[type="text"] {
  margin-left: auto;
  font: inherit;
  height: 100%;
  text-align: center;
}

.column .lineitem input[type="radio"] {
  margin-right: 5px;
}

.column .lineitem label {
  /* line-height: 35px; */
}

.column .lineitem label span {
  text-wrap: nowrap;
}

.section003 {
  /* background-color: #ddd; */
  margin: auto;
  margin-top: 30px;
  width: 600px;
}

table thead tr th {
  background-color: var(--ss-green);
  color: #fff;
  width: 20%;
}

table {
  border-collapse: collapse;
}

thead tr th {
  border: 1px solid #ddd;
  /* height: 50px; */
  padding: 5px;
  text-align: center;
}

tbody tr td {
  border: 1px solid #ddd;
  height: 35px;
  text-align: center;
}

table tr:nth-child(2n) {
  background-color: #f2f2f2;
}

table caption {
  border: 1px solid #ddd;
  border-bottom: none;
}

#output001 {
  /* display: none; */
  /* max-height: 240px; */
  /* overflow: hidden; */
}

#showAmort001,
#showAmort002 {
  background-color: #44aa55;
  border-radius: 50px;
  color: #fff;
  cursor: pointer;
  justify-content: center;
  margin: 10px auto;
  padding: 10px 10px;
  text-align: center;
  width: 320px;
}

.hiddenAmort {
  /* display: none; */
  max-height: 240px;
  overflow: hidden;
}

.visibleAmort {
  /* display: flex; */
  max-height: unset;
}

.hiddenButton {
  display: none;
}

.visibleButton {
  display: flex;
}

footer {
  background-color: #000;
  background-image: linear-gradient(#000, #171717);
  color: #fff;
  text-align: center;
  padding: 10px;
  width: 100%;
  position: fixed;
  bottom: 0;
  left: 0;
}

footer a {
  color: inherit;
  text-decoration: none;
}

.desktopDisplay {
  display: table-cell;
}

.mobileDisplay {
  display: none;
}

@media screen and (width <= 900px) {

  .wrapper001 {
    margin-bottom: 100px;
  }
  
  .section002 .row {
    display: grid;
    grid-template-columns: 1fr;
    grid-column-gap: 50px;
  }
 
  .column .lineitem label {
    line-height: 20px;
  }

  .column001 {
    margin-bottom: 25px;
  }

  .hiddenAmort {
    display: none;
    /* max-height: 240px; */
    /* overflow: hidden; */
  }

  .visibleAmort {
    display: flex;
    /* max-height: unset; */
  }

  .section003 {
    /* background-color: #ddd; */
    margin: auto;
    margin-top: 30px;
    width: auto;
  }

  .desktopDisplay {
    display: none;
  }

  .mobileDisplay {
    display: table-cell;
  }

  table thead tr th {
    width: auto;
  }

  footer span {
    text-wrap: nowrap;
  }

}