* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Noto Sans JP', sans-serif;
}

html,
body {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.flex-main {
    flex: 1;
    display: flex;
}

body>footer {
    flex: 0;
}

body>footer p {
    padding: 10px;
}

.container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.primary {
    color: #1a68bc;
}

.white-colour {
    color: #ffffff;
}

.primary-background {
    background: #1a68bc;
}

.center {
    margin: auto;
    /* width: 50%; */
    padding: 10px;
}

.title {
    width: 100%;
    padding: 20px;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 500;
    text-align: center;
    margin: 10px auto;
}

.gl-pr {
    display: block;
    position: relative;
    margin: 0 20px;
    border-radius: 5px;
    box-sizing: border-box;
    overflow: hidden;
}

.yt-ac {
    display: block;
    position: relative;
    width: 100%;
    margin-bottom: 20px;
}

.yt,
.gl,
.gl-2 {
    position: relative;
    padding: 20px;
}

.p-20 {
    padding: 20px;
}

.suggestNav {
    list-style-type: none;
}

.suggestNav>div:hover,
.suggestNav>div:focus {
    color: powderblue;
}

@media all and (max-width: 600px) {
    .container {
        max-width: 100%;
    }

    .center {
        width: 100%;
    }

    .yt,
    .gl,
    .gl-2 {
        padding: 10px;
    }

    .p-20 {
        padding: 10px;
    }
}

@media (min-width: 641px) and (max-width: 1007px) {
    .center {
        width: 90%;
    }
}

.alternate-color-table caption {
    font-size: 18px;
    font-weight: bold;
    padding: 0 0 10px;
}

.subheading {
    text-align: center;
}

#operation-table>* {
    margin-bottom: 30px;
}

.alternate-color-table .table {
    margin: 20px auto;
}

.alternate-color-table table {
    font-family: arial, sans-serif;
    border-collapse: collapse;
    width: 100%;
}

.alternate-color-table td,
.alternate-color-table th {
    border: 1px solid #dddddd;
    text-align: left;
    padding: 8px;
}

.alternate-color-table th {
    text-transform: lowercase;
}

.alternate-color-table th::first-letter {
    text-transform: uppercase;
}

.alternate-color-table tr:nth-child(even) {
    background-color: #dddddd;
}

.mortgage,
.business-plan {
    padding: 40px 20px;
    box-sizing: border-box;
    background-color: #fdfdfd;
}

.business-plan * {
    margin: 10px auto;
}

.invoice-background {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 30px 20px;
    background: white;
}

.header {
    font-size: 1.250em;
    color: #1a68bc;
    margin: 0 20px;
    padding-top: 20px;
}

.card {
    transition: 0.3s box-shadow ease;
    border-radius: 6px;
    position: relative;
    list-style: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    width: 100%;
}

.card:hover {
    box-shadow: 0 12px 23px rgba(0, 0, 0, 0.23), 0 10px 10px rgba(0, 0, 0, 0.19);
}

.grid2x2 {
    min-height: 100%;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 10px;
}

.grid2x2>div {
    display: flex;
    flex-basis: calc(50% - 40px);
    justify-content: center;
    flex-direction: column;
    margin: 0;
}
h1 {
    font-size: 3vw;
}

h2 {
    font-size: 2vw; 
}

.body {
    font-size: 1rem;
}
  
@media screen and (max-width: 600px) {
    h1 {
      font-size: 32px;
    }

    h2 {
        font-size: 26px; 
    }

    .body {
        font-size: 0.9rem;
    }
}
.btn {
    display: inline-block;
    font-size: 12px;
    border: none;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
    border-radius: 5px;
    text-align: center;
    padding: 10px;
}

.btn-primary {
    background-color: #1a68bc;
    color: white;
}

.btn-primary:hover {
    background-color: #5e97d4;
}

.btn-delete {
    background: #bc1a48;
    color: white;
}

.btn-delete:hover {
    background: #cd6683;
}

.btn-box {
    display: inline-block;
    min-width: 32px;
    width: 32px;
    height: 32px;
    font-size: 16px;
    border: none;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
    border-radius: 3px;
    text-align: center;
}

.full {
    min-width: 100%;
}

.btn-group {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 20px auto;
    align-items: center;
    justify-content: left;
    gap: 10px;
}

.btn-group a {
    flex: 0 0 30%;
    padding: 10px 0;
    cursor: pointer;
    border: 1px solid #1a68bc;
    background-color: white;
    color: #1a68bc;
    border-radius: 3px;
    text-align: center;
    text-decoration: none;
    min-width: 210px;
}

.btn-group a:hover {
    background-color: #1a68bc;
    color: white;
}

.btn-s {
    display: inline-block;
    font-size: 12px;
    border: none;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
    border-radius: 5px;
    text-align: center;
    padding: 8px;
}

.btn-b {
    border: none;
    color: white;
    padding: 14px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    margin: 4px 2px;
    margin-top: 4px;
    cursor: pointer;
    border-radius: 8px;
}

.btn-b.primary {
    background-color: #1a68bc;
    color: #ffffff;
}

.btn-b.primary:hover {
    background: #5e97d4;
}

.btn-b.gray {
    color: #1a68bc;
    background: #dbdbdb;
}

.btn-b.gray:hover {
    background: #c3c3c3;
}

details * {
    font-size: 14px;
    margin-bottom: 8px;
}

@media all and (max-width: 640px) {
    .btn-group a {
        flex: 0 0 100%;
    }

    .btn-b {
        padding: 12px;
        text-align: center;
        text-decoration: none;
        display: inline-block;
        font-size: 12px;
        margin: 4px 2px;
        margin-top: 4px;
        cursor: pointer;
        border-radius: 8px;
    }

    #operation-table > div {
        overflow: auto;
    }
}

@media (min-width: 641px) and (max-width: 1007px) {
    .btn-group a {
        flex: 0 0 48%;
    }
}

body > footer {
    position: sticky;
    top: 100vh;
    display: flex;
    justify-content: center;
    left: 0;
    bottom: 0;
    width: 100%;
    padding: 10px;
    text-align: center;
    box-sizing: border-box;
}

body.primary-bg footer {
    background: #1a68bc;
    color: white;
}

body.green-bg footer {
    background: #1a8290;
    color: white;
}
body > header {
    padding: 20px;
    text-align: center;
}

body.primary-bg > header {
    background: #1a68bc;
    color: white;
}

body.green-bg > header {
    background: #1a8290;
    color: white;
}

.board {
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

.board > *:not(:last-child) {
    margin-bottom: 15px;
}

.panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
    border: 1px solid #1a68bc;
    padding: 20px;
    box-sizing: border-box;
}

.panel h2 {
    font-size: 1.1250em;
    margin-top: 0;
}

.panel > os-input:not(:nth-child(2)) {
    margin-top: 15px;
}

.output {
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
}
.output p {
    font-weight: lighter;
}

.output .btn-delete {
    margin: 10px 0;
}

.output h4 {
    margin: 0 auto 10px;
}
.result-display {
    max-height: 100vh;
    overflow: auto;
    scrollbar-color: #fff #000;
    scrollbar-width: thin;
}

.gl-in {
    width: 100%; 
    padding: 20px;
}

@media all and (max-width: 600px) {
    .gl-in { 
        padding: 0px;
    }
}
