/* sgtc.cs  */

/*** Universals ***/
*, *::before, *::after {
    box-sizing: border-box;
}

*{
    margin:0;
    padding:0;
    line-height: 1.5;
}

/*** standard html elements **/
a{
    text-decoration: none;
    color: steelblue;
    padding:.5rem;
}

a:hover{
    text-decoration: underline;
    color: royalblue;
    font-weight: bold;
    transition: all 0.3s ease;
}

a:focus{
    text-decoration: underline;
    color: royalblue;
    font-weight: bold;
    outline: none; /* Remove default focus outline to avoid dark border on focus */
    transition: all 0.3s ease;
}

body{
    font-family: "Helvetica Neue", sans-serif;
}

h2{
    margin-top: 1rem;
    margin-bottom: 1rem;
}

img{
    max-width: 100%;
}

input{
    padding: 0.12em 0.5em;
    background-color: ghostwhite;
    width:25ch;
    align-items: center;
    border: 1px solid darkslateblue;
    border-radius: 6px;
}

input:focus{
    color: royalblue;
    box-shadow: 0 0 15px white, 0 0 25px powderblue;
    transition: all 0.3s ease;
}

p{
    margin-bottom:1em;
}

/*** custom classes **/
.am-mnu-option{
    text-align:center;
    cursor:pointer;
    width:100%;
    padding-bottom:1rem;
    padding-top:1rem;
}

.am-mnu-option:hover{
    cursor:pointer;
    color: royalblue;
}

.arcsage-logo{
    pointer-events: none;
    height:24px;
    padding-bottom: 0.5em;
    align-self:center;
}

.bc-button{
    margin-left: 0.25em;
    padding-left: 0.75em;
    padding-right: 0.75em;
    cursor:pointer;
    text-align: center;
    background-color: cornflowerblue;
    color: aliceblue;
    border:1px solid lightslategrey;
    border-radius: 8px;
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
}

.bc-button:hover{
    cursor:pointer;
    color: cyan;
    background-color: steelblue;
    box-shadow: 0 12px 16px 0 rgba(0,0,0,0.24), 0 17px 50px 0 rgba(0,0,0,0.19);
}

.bc-button:focus{
    cursor:pointer;
    color: cyan;
    background-color: steelblue;
    box-shadow: 0 12px 16px 0 rgba(0,0,0,0.24), 0 17px 50px 0 rgba(0,0,0,0.19);
}

.center{
    align-self: center;
}

.chapter-duration{
    text-align: center;
}

.chapter-topic{
    padding-left: 2rem;
    padding-bottom: 0.75rem;
}

.cmd-hide{
    display:none;
}

.copyright {
    font-size:0.75rem;
    font-style: italic;
    padding-bottom: 0.5em;
}

.fault-img{
    max-width: 100%;
    height: auto;
}

.fld-lbl{
    padding-top: 1rem;
    padding-right: 0.5em;
    text-wrap: wrap;
    flex-shrink: 0;
    width: auto;
    min-width: min-content;
    max-width: 100%;
}

.font-def{
    font-size:1rem;
}

.font-def-plus{
    font-size:1.25rem;
}

.font-def-minus {
    font-size:0.75rem;
}

.font-def-minus2 {
    font-size:0.5rem;
}

.grd-2col-col1{
    text-align: right;
    cursor: pointer;
    width:3rem;
}

.grd-2col-col1:hover{
    cursor:pointer;
    color: royalblue;
}

.grd-2col-col2{
    text-align: left;
    cursor: pointer;
    padding-right:0.5rem;
}

.grd-2col-col2:hover{
    cursor:pointer;
    color: royalblue;
}

.icon-vis-toggle{
    display: none;
}

.header-logo {
    pointer-events: none;
    width:4em;
    height:4em;
    margin-right: 0.5em;
    margin-left: 0.5em;
}

.header-title{
    text-align: center;
    margin-right:0.5em;
    align-self: center;
}

.icon-button{
    cursor:pointer;
    text-align: center;
    padding: 0.25em 0.75em;
    margin-bottom: 0.75em;
    background-color: steelblue;
    color: aliceblue;
    border:1px solid lightslategrey;
    border-radius: 8px;
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
}

.icon-button:hover{
    cursor:pointer;
    color:white;
    background-color: cornflowerblue;
    box-shadow: 0 12px 16px 0 rgba(0,0,0,0.24), 0 17px 50px 0 rgba(0,0,0,0.19);
}

.icon-button:focus{
    cursor:pointer;
    color: cyan;
    background-color: steelblue;
    box-shadow: 0 12px 16px 0 rgba(0,0,0,0.24), 0 17px 50px 0 rgba(0,0,0,0.19);
}

.input-cb{
    width: 1rem;
    margin-right: 0.5em;
    margin-left: 0.5em;
}

.input-disabled{
    padding: 0.12em 0.5em;
    background-color: ghostwhite;
    width:25ch;
    align-items: center;
    border: 1px solid darkslateblue;
    border-radius: 6px;
    color: royalblue;
    box-shadow: 0 0 15px white, 0 0 25px powderblue;
    transition: all 0.3s ease;
}

/* Used in the dropdown menu */
.link-item{
    cursor:pointer;
    color: steelblue;
    outline: none;
}

.link-item:hover{
    font-weight: bold;
    cursor:pointer;
    text-shadow: 0 0 1px rgba(65, 105, 225, 0.3);
    box-shadow: 0 0 5px rgba(65, 105, 225, 0.2);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.link-item:focus{
    font-weight: bold;
    outline: 1px dotted royalblue;
    text-shadow: 0 0 2px rgba(65, 105, 225, 0.4);
    box-shadow: 0 0 8px rgba(65, 105, 225, 0.3);
    transition: all 0.3s ease;
}

.nav-icon-style1{
    width:20px;
}

.nav-icon-style1:hover{
    cursor:pointer;
    color: white;
}

.spacer{
    padding-top: 1rem;
    padding-bottom: .5rem;
}

.sub-button{
    min-height:2rem;
    min-width:100%;
    margin :1rem auto;
    padding:0.12em 0.5em;
    cursor:pointer;
    color: darkblue;
    background-color:lightgrey;
    border:1px solid;
    border-radius: 5px;
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
}

.sub-button:hover{
    cursor:pointer;
    color: aliceblue;
    font-weight: bold;
    background-color:cornflowerblue;
    box-shadow: 0 0 15px white, 0 0 25px powderblue;
    transition: all 0.3s ease;
}

.sub-button:focus{
    color: aliceblue;
    background-color:cornflowerblue;
    box-shadow: 0 0 15px white, 0 0 25px powderblue;
    transition: all 0.3s ease;
}

.subhead-title{
    font-weight: bold;
    width:100%;
    border: 1px solid darkslateblue;
    flex-direction: row;
    text-align: center;
    background-color: cornflowerblue;
    color: ghostwhite;
    padding:0.25em;
}

.tabBar-col0{
    text-align: center;
}

.tabBar-col1{
    text-align: center;
}

.tabBar-col2{
    text-align: center;
}

.tooltip {
    position: relative;
}

.tooltip::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 10px;
    background-color: #333;
    color: white;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s;
}

.tooltip:hover::before {
    opacity: 1;
    visibility: visible;
}

/*** Primary Wrappers ***************/

.w-0{
    display:flex;
    flex-direction: column;
    height:100dvh;
    width:100%;
    position: relative; /* Establishes positioning context */
}

.w-L1head {
    display:flex;
    flex-direction: row;
    justify-content: space-around;
    text-align:center;
    background-color: steelblue;
    color: white;
    padding:0.5em;
}

.w-L1subhead{
    display:block;
    align-items:center;
    justify-content: center;
    text-align:center;
    background-color: steelblue;
    color: white;
    position:sticky;
    top:0;
}

.w-L1main{
    display:flex;
    flex-direction: column;
    flex:1;
    justify-content: space-between;
    padding-bottom:4em;
}

.w-EB{
    display:flex;
    flex-direction: column;
    padding-bottom:1rem;
    margin-top: 1rem;
    margin-left:5%;
    margin-right:5%;
    padding-left:18%;
    padding-right:18%
}

/*  Form Wrappers*/
.w-form-inner {
    display: flex;
    flex-direction: column;
    margin-top: 2em;
    margin-left: auto;
    margin-right: auto;
    width:fit-content;
}

.w-form-inner2 {
    display: flex;
    flex-direction: column;
    margin-top: 0;
    margin-left: auto;
    margin-right: auto;
    width:fit-content;
}

.w-form-outer{
    padding:1rem;
}

.w-form-outer2{
    padding-top:0;
    padding-left:1rem;
    padding-right:1rem;
}
/*  Primary Grid Wrapper */
.w-grd-2col{
    display: grid;
    grid-template-columns: 10% 1fr;
    row-gap:1rem;
    column-gap:2rem;
    margin-top: 2em;
    margin-left:5%;
    margin-right:5%;
}

/*** Breadcrumb Wrapper *****************/
.w-bc{
    display:none;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    background-color: steelblue;
    border: 1px solid darkslateblue;
    padding-top:0.5rem;
    padding-bottom:0.5rem;
}

.w-bc-fb{
    display:none;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    background-color: steelblue;
    border: 1px solid darkslateblue;
    padding-top:0.5rem;
    padding-bottom:0.5rem;
}

.w-bc-lower{
    display:none;
}

/*** Dropdown Menu wrappers, etc *****************/
.w-dd-mnu {
    position: absolute;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 250px;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.dd-mnu-down {
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 8px;
}

.dd-mnu-up {
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 8px;
}

/* Add a triangle pointer to the menu */
.dd-mnu-down::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid white;
}

.dd-mnu-up::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid white;
}

/*** Other Wrappers *****************/

.w-am-menu{
    display: flex;
    flex-direction: column;
    margin: 0;
}

.w-block-row{
    display: block;
}

.w-chapter-details{
    display: flex;
    flex-direction:column;
    text-align: left;
}

.w-chapter-topics {
    display: flex;
    flex-direction: column;
    margin: 1em 15%;
}

.w-flex-col{
    display: flex;
    flex-direction: column;
}

.w-footer{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    justify-items: center;
    align-items: center;
    width:100%;
    border: 1px solid darkslateblue;
    color:darkslateblue;
    background-color:white;
    padding-top:0.5rem;
    /*padding-bottom:0.25em; */
}

.w-hdr-buttons{
    display: flex;
    align-self: flex-end;
}

.w-profile-btn {
    position: relative;
    display: inline-block;
}

.w-statusBar{
    min-height: 1.25rem;
    width:100%;
    border: 1px solid darkslateblue;
    flex-direction: row;
    text-align: center;
    color:darkslateblue;
    background-color:lightgrey;
    padding: 0.25em 1em;
}

.w-tabBar{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    justify-content: space-between;
    position: fixed; /* Fixed position to stay at the bottom of the viewport */
    bottom:0;
    left: 0;
    right: 0;
    width: 100dvw;
    z-index: 1; /* Ensure it floats above other elements */
    background-color: white; /* Add background to make it visible */
    padding-top: 0.5rem;
    border: 1px solid grey;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.1); /* Add subtle shadow for visual separation */
}

.w-tabBar-fb{
    display: flex;
    justify-content: flex-start;
    align-items: center;
    position: fixed; /* Fixed position to stay at the bottom of the viewport */
    bottom:0;
    left: 0;
    right: 0;
    width: 100dvw;
    z-index: 1; /* Ensure it floats above other elements */
    background-color: white; /* Add background to make it visible */
    padding: 0.5rem;
    border: 1px solid grey;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.1); /* Add subtle shadow for visual separation */
}

.w-video {
    display: flex;
    flex-direction: column;
}


