html {
  height: auto;
  min-height: 100vh;
  box-sizing: border-box;
}
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}







body {
    display: flex;
    flex-direction: column;
/*    height: 100vh;*/
/*    padding-bottom: 40px;*/

    margin: 0;
    padding: 0;
    height: auto;       /* 또는 height: 100%; */
    min-height: 100vh;  /* 최소한은 화면 높이 유지 */
    box-sizing: border-box;

    overflow-x: hidden;
    overflow-y: auto;


}

header {
    height: 40px;
/*    background: #007bff;*/
    background: #1A237E;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

main {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    background: #f8f9fa;
}

footer {
    height: 40px;
    background: #343a40;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed !important;
    bottom: 0 !important;
    width: 100% !important;
}

a, a:link, a:hover, a:active, a:visited { text-decoration: none !important;color: #fff; }
a, a:link, a:hover, a:active, a:visited > * { text-decoration: none !important;color: #fff; }

.a-link {
    text-decoration: none !important;
    color: #fff !important;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}