/*global page styles*/

* {
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    margin: 0;
    padding: 0;
    background-color: #23395B;
    color: #EFF1F3;
}


/*layout containers*/

.container{
    width: 80%;
    max-width: 900px;
    margin: 0 auto;
}

.content-section {
    margin-top: 40px;
    font-size: 18px;
}

/*header/nav*/

.main-header {
    background-color: #23395B;
    border-bottom: 2px solid #FFBC42;
    padding: 15px 0;
}

.title-and-menu {
    display: flex;
    align-items: center;
}

.site-title {
    flex-grow: 1;
    text-align: left;
    margin: 10px 0;
    padding: 20px;
    font-size: 28px;
}

.site-title a {
    text-decoration: none;
    color: #EFF1F3;
    font-weight: bold;
}

.main-nav {
    position: relative; /* AI suggestion to make dropdown position relative to the nav */
    margin: 0 1em;
}

.main-nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.main-nav li {
    background-color: #1b2b44;
    padding: 0.8em;
}

.main-nav a {
    text-decoration: none;
    color: #EFF1F3;
    font-weight: bold;
}

.main-nav a:hover {
    text-decoration: underline;
}

.dropdown-row {
    text-align: left;
    border-bottom: 1px solid #2e486e;
}

.dropdown-row:last-child{
    border-bottom: none;
}

.help-dropdown-row {
    text-indent: 26px;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%; /* AI suggestion to make it sit right under the button */
    right: 0; /* AI suggestion to anchor it to the right */
    min-width: 260px;
    z-index: 1;
}

.show {
  display: block;
}

/*section headers & text*/

.section-header {
    text-align: center;
    font-size: 26px;
    margin-bottom: 30px;
}

.section-text {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 20px;
    text-align: left;
}

.help-topic-header {
    font-size: 22px;
    margin-top: 30px;
}

.indented-paragraph {
    text-indent: 50px
}

.credits-desc {
    font-weight: bold;
}

.ctc-example {
    text-align: center;
    color: #ead4ab;
}

/*form styles*/

.input-form {
    width: 100%;
}

.input-box {
    margin-bottom: 20px;
}

.label {
    display: inline-block;
    width: 140px;
    font-weight: bold;
}

.input {
    width: 70%;
    padding: 6px;
    border: 1px solid #0b2c4d;
    border-radius: 4px;
}

.static-text {
    display: block;
    margin-bottom: 10px;
}

.static-text.start {
    margin-bottom: 15px;
}

.static-text.transition {
    margin-top: 25px;
    margin-bottom: 15px;
}

.error {
    color: #EB5757;
    text-align: center;
    margin-top: 15px;
    margin-bottom: 15px;
}

/*subconditions*/

.subconditions {
    margin-bottom: 20px;
}

.subcondition-number-label {
    font-weight: bold;
    margin-right: 10px;
}

.subcondition {
    margin-top: 10px;
}

/*dropdown*/

.drop-btn {
    padding: 4px 6px;
    border: 1px solid #0b2c4d;
    border-radius: 4px;
    background-color: #ffffff;
    cursor: pointer;
}

/*buttons*/

.btn {
    display: block;
    margin: 30px auto;
    padding: 10px 25px;
    background-color: #FFBC42;
    color: #23395B;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    cursor: pointer;
    font-weight: bold;
}

.btn:hover {
    background-color: #BF8A28;
}

.menu-dropdown-btn {
    background-color:  rgba(255, 255, 255, 0);
    padding: 4px 4px 0px 4px;
    margin: 1em;
}

.menu-dropdown-btn:hover {
    background-color:  rgba(255, 255, 255, .3);
    border-radius: 50%;
}

/* icon images */

.dropdown-arrow-icon {
    pointer-events: none;
}

/*temporary message*/

.temporary-msg {
    opacity: 0;
}

/*links*/
.page-link {
    text-align: center;
    margin-top: 20px;
}

.page-link a {
    color: #FFBC42;
    text-decoration: none;
    font-weight: bold;
}

.page-link a:hover {
    text-decoration: underline;
}

.tiny-tool-link {
    margin-top: 10px;
}

.tiny-tool-link a {
    color: #eec579;
    text-decoration: none;
}

.tiny-tool-link a:hover {
    text-decoration: underline;
}

/*footer*/

footer {
    margin-top: 60px;
    padding: 20px 0;
    border-top: 2px solid #FFBC42;
    background-color: #23395B;
}

.main-footer-container {
    text-align: center;
}

.copyright {
    font-size: 14px;
    color: #EFF1F3;
}



/* action buttons under refined risk*/

 .action-buttons {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 8px;
    margin-top: 8px;
}

.action-buttons .btn {
    margin: 0.1em;
}

.copy-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.copied-msg {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1;
} 

.action-icon {
    margin: 0px 0px 0px 8px;
}