@font-face {
    font-family: 'Pretendard-Regular';
    src: url('https://fastly.jsdelivr.net/gh/Project-Noonnu/noonfonts_2107@1.1/Pretendard-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Pretendard-Bold';
    src: url('https://fastly.jsdelivr.net/gh/Project-Noonnu/noonfonts_2107@1.1/Pretendard-Bold.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'TheJamsil5Bold';
    src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_2302_01@1.0/TheJamsil5Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
}

header {
    width: 100%;
    background: #415d43;
    height: 80px;
}

header a {
    display: flex;
    width: fit-content;
    height: 80px;
    color: white;
    text-decoration: none;
    margin: auto;
    text-align: center;
}

header a img {
    margin-left: auto;
}

header a h1 {
    margin-right: auto;
    font-family: "TheJamsil5Bold", serif;
}


#navbar {
    justify-content: center;
    align-items: center;
}

body {
    font-family: "Pretendard-Regular", sans-serif;
    justify-content: center;
    align-items: center;
    display: flex;
    flex-direction: column;
    margin: 0px;
}

h1, h2 {
    font-family: "Pretendard", sans-serif;
    margin-bottom: 0px;
}

h2 {
    color: #415d43;
}

.mainContainer {
    display: flex;
    flex-direction: column;
    width: 800px;
}

.headingContanter {
    padding: 20px;
    padding-bottom: 0px;
    width: 100%;
}

.divider {
    margin: 20px 0;
    width: 100%;
    height: 1px;
    background-color: rgba(0, 0, 0, .1);
}

.description {
    color: grey;
    font-size: 0.9em; /* Adjust this value as needed */
    margin-top: 0px;
    margin-bottom: 0px;
}

.contentContainer {
    display: flex;
}

.mainNav {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.mainNav a {
    box-sizing: border-box;
    text-decoration: none;
    color: #333333;
    border-radius: 10px;
    padding: 20px;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1), 0 6px 20px rgba(0, 0, 0, 0.1);
    font-family: "Pretendard-Bold", sans-serif;
}

.mainNav p {
    font-family: "Pretendard", sans-serif;
}

#interestForm {
    background: #4D4D4D;
    opacity: 0.9;
    color: white;
    padding: 20px;
    max-width: 760px; /* Limit width for larger screens */
    display: flex;
    flex-direction: column;
}

#interestForm label {
    margin-bottom: 5px;
    font-size: 0.8em;
}

#interestForm input {
    margin-bottom: 10px;
    height: 36px;
}

#interestForm button {
    margin-top: 10px;
    padding: 10px;
    background: #709775;
    color: white;
    border: transparent;
    transition-duration: 0.2s;
}

#interestForm button:hover {
    background: #415d43;
}

#result {
    transition-duration: 0.2s;
    margin-left: 20px;
    margin-right: 20px;
}

.finalBalance {
    font-size: 20px;
    text-align: center;
    margin: 20px;
    margin-top: 10px;
    margin-bottom: 0px;
}

.finalBalance em {
    font-family: "Pretendard-Bold", sans-serif;
    text-decoration: none;
    color: #415d43;
    font-weight: 700;
}

.month {
    font-size: 0.7em;
    color: #676767;
}

.balance {
    font-family: Pretendard-Bold;
    font-size: 1.1em;
    /*margin-bottom: 5px;*/
}

.balance em {
    color: #415d43;
    font-style: normal;
}

.principal, .interest {
    font-size: 0.9em;
    color: #4D4D4D;
}

.opinionsContainer p {
    line-height: 24px;
}

.opinionsContainer em {
    font-style: normal;
    font-family: "Pretendard-Bold", sans-serif;
}

.opinionsContainer h2 {
    margin-bottom: 10px;
}

.opinionsContainer br {
    margin-bottom: 16px;
}

.opinionsContainer ol {
    list-style-position: outside;
    padding-left: 16px;
    margin-right: 16px;
}

.opinionsContainer li {
    margin-bottom: 16px;
    line-height: 24px;
}

.opinionsContainer li span {
    position: relative;
    left: 10px;
    right: 0;
}

footer {
    background: #333333;
    width: 100%;
    margin-top: 20px;
}

.footerMenuContainer {
    display: flex;
    max-width: 800px;
    justify-content: center;
    gap: 20px;
    margin: 90px auto 85px;
    align-items: center;
}

footer .navItem {
    color: #ADADAD;
}

footer .navSubItem {
    font-size: 0.8em;
    color: #fff;
    transition-duration: 0.2s;
}

footer .navSubItem:hover {
    color: #709775;
}

.services {
    display: flex;
    flex-direction: column;
    gap: 0.2em;
}

.services p {
    margin: 0;
}

.services a {
    text-decoration: none;
}

.navItem {
    flex: 1 1 auto;
}

@media (max-width: 750px) {
    h1 {
        margin-top: 0px;
        font-size: 20px;
    }

    h2 {
        font-size: 16px;
    }

    header {
        height: 54px;
    }

    header a {
        width: 100%;
        height: 54px;
    }

    header a img {
        margin-left: auto;
    }

    header a h1 {
        margin-right: auto;
        font-family: "TheJamsil5Bold", serif;
        margin-top: auto;
        margin-bottom: auto;
    }


    #navbar {
        justify-content: center;
        align-items: center;
    }

    .mainContainer {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .headingContainer {
        padding: 16px;
        padding-bottom: 0px;
        margin: auto;
    }

    .divider {
        margin: 16px 0;
        width: 100%;
        height: 1px;
        background-color: rgba(0, 0, 0, .1);
    }

    .description {
        color: #818181;
        font-size: 14px;
        margin-top: 0px;
        margin-bottom: 0px;
    }

    .contentContainer {
        display: flex;
        flex-direction: column;
        width: 100%;
        padding: 16px;
        box-sizing: border-box;
    }

    #interestForm {
        padding: 16px;
    }

    #result {
        max-width: 100%;
        height: auto;
        margin: 16px;
    }

    .opinionsContainer {
        margin: 16px;
    }

    .footerMenuContainer {
        margin-left: 16px;
        margin-right: 16px;
    }
}