@font-face {
    font-family: 'Karla';
    src: url('../Karla-VariableFont_wght.ttf') format('truetype');
    font-weight: 200 800;
    font-style: normal;
}

* {
    font-family: 'Karla', sans-serif !important;
    /* font-weight: 400 !important; */
}

/* Ensure Font Awesome icons render with their own font (not overridden by the global *) */
.fa,
.fas,
.far,
.fal,
.fad,
.fa-solid,
.fa-regular,
.fa-light,
.fa-duotone {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important; /* solid by default */
}
.fab,
.fa-brands {
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400 !important;
}

body {
    /* background-color: #f0f0f0; */
}

.wp-block-post-title {
    display: none !important;
}

.wp-singular.single .wp-block-post-title {

    display: block;
}

.wp-site-blocks {
    margin: auto;
}

.has-global-padding>.alignfull {
    padding-top: 0 !important;
    margin-top: 0 !important;
	padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

.wp-block-post-content {
    margin-top: 0px;
}

#wp--skip-link--target {
    margin-top: 0px !important;
}

#ja-header-bar {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 10px 20px;
}

.site-logo img {
    max-height: 60px;
    height: auto;
}

.profile-select {
    display: flex;
    align-items: center;
}

.profile-select select {
    padding: 6px 10px;
    font-size: 16px;
    width: 100%;
    display: inline-block;
    padding-right: 10px;
    ;
}

#user-type-form {
    min-width: 150px;
}

.icon-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    justify-items: center;
    padding: 20px;
    border: 2px solid #999;
    border-radius: 20px;
    max-width: 320px;
    margin: 30px auto;
    background-color: #fff;
}

.icon-button {
    width: 48px;
    height: 32px;
    background-color: #001973;
    border: none;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.2s;
}

.icon-button:hover {
    background-color: #2435a1;
}

.icon-button img {
    filter: brightness(0) invert(1);
    width: 16px;
    height: 16px;
}

.icon-button.active {
    background-color: #FE4229;
}


.center {
    text-align: center;
    align-self: center;
}

.border {
    border: 1px solid black;
    padding: 5px;
}

.center-iframe {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.center-iframe iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.icon-bar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    padding: 8px 15px;
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-around;
    gap: 10px;
    z-index: 9999;
    max-width: calc(100% - 40px);
}

.icon-bar a img {
    display: block;
}

.back-to-top-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #343a40;
    color: white;
    z-index: 1000;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s, transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top-button:hover {
    background-color: #495057;
    transform: translateY(-2px);
}


@media (max-width: 768px) {
    .back-to-top-button {
        bottom: 100px;
        right: 50px !important;
    }
}

/* Always row */
#ja-header-bar{
  display:flex !important;
  flex-direction:row !important;
  align-items:start !important;
  justify-content:start !important;
  gap:12px;
  flex-wrap:nowrap;
}

/* Kill forced line breaks from the HTML */
#ja-header-bar br{ display:none; }

/* Keep the logo tidy */
#ja-header-bar .site-logo img{
  max-height:48px;  /* tweak */
  height:auto;
  width:auto;
}

/* Stop Bootstrap from making the select full-width */
#ja-header-bar .profile-select,
#ja-header-bar .profile-select form{ width:auto !important; }

#ja-header-bar .form-select{
  width:auto !important;
  min-width:170px;   /* tweak */
  display:inline-block;
}

.uagb-modal-popup-close {
 background: white !important;   
 border-radius: 30px !important;
}