/************ BACKGROUND COLOURS AND BORDERS *****************/
/*************************************************************/
.blue-border {
    border-bottom: 6px solid #002E40;
    border-top:0;
    border-left:0;
    border-right:0;
}

.blue-border-narrow{
    border-bottom: 2px solid #002E40!important;
    border-top:0;
    border-left:0;
    border-right:0;
    border-radius:0px;
}

.gold-border {
    border-bottom: 6px solid hsl(43, 27%, 56%);
    border-top:0;
    border-left:0;
    border-right:0;
}

.gold-text{
    color:hsl(43, 27%, 56%)!important;
}

.blue-text{
    color:#002E40!important;
}

.prim-bg-color{
    background-color: #002433
}

.primary-background-a {
    background-color: #194253;
}

.primary-background-b{
    background-color: #53727d;
}

.sea-background-e{
    background-color: rgb(237, 243, 244)!important;
}

.gentle-blue-background{
    background-color:rgb(222, 237, 239)!important;
}

.gentle-blue-background2{
    background-color:rgb(232, 240, 241)!important;
}

.deep-blue-background{
    background-color: #d6e7e9!important;
}

.gold-back{
    background-color: rgb(206, 196, 169)!important;
}

/********************* HOME PAGE BANNER **********************/
/*************************************************************/
.homepage {
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)), /* Dark filter */
        url('/test/geomag-new/pages/imgs/index/background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


/************************ IMAGES *****************************/
/*************************************************************/
.img-circle {
    width: 200px;
    height: 200px;
    max-width:15vw;
    max-height:15vw;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    margin: 0 auto;
    transition: smooth 0.5s;
}
.img-wrapper {
    text-align: center;
}

.img-wrapper p {
    margin-top: 10px;
}

.img-wrapper:hover {
    cursor: pointer;
}

.img-circle:hover {
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .img-circle{
        width: 150px;
        height: 150px;
        max-width:35vw;
        max-height:35vw;
    }
}

.height-25vh {
    height: 25vh!important;
    max-height:200px;
}

.height-30vh {
    height: 30vh!important;
    max-height:200px;
}

.height-60vh {
    height: 60vh!important;
    max-height:400px;
}

.h-30vh {
    height: 30vh!important;
}

.h-40vh {
    height: 40vh!important;
}


/* image that appears on hover in list */
.list-group-item .hover-image {
    width: 0px;
    height: 0px;
    margin-right: 0px;
    opacity: 0;
    transform: scale(0);
    transition: margin-right 0.2s, opacity 0.6s, transform 0.6s;
}

.list-group-item:hover .hover-image {
    width: 200px;
    height: auto;
    margin-right: 10px;
    opacity: 1;
    transform: scale(1);
}


.hover-image:hover {
    transform: scale(1.02);
}

.list-group-item .list-content {
    transition: margin-left 0.2s;
}

.list-group-item:hover .list-content {
    margin-left: 10px;
}

/* Disable hover effects on mobile devices */
@media (max-width: 768px) {
    .list-group-item .hover-image {
        width: 0px;
        height: 0px;
        margin-right: 0px;
        opacity: 0;
    }

    .list-group-item .hover-image:not(:hover) {
        transition: none; /* Disable transition on mobile */
    }

    .list-group-item:hover .hover-image {
        width: 0px; /* No hover effect */
        height: 0px; /* No hover effect */
        margin-right: 0px; /* No hover effect */
        opacity: 0; /* No hover effect */
    }

    .hover-image:hover {
        transform: none; /* Disable transform on hover for mobile */
    }
}

/************************ BUTTONS ****************************/
/*************************************************************/
.btn-link[aria-expanded="true"]::after {
    content: " \25B2"; /* Up arrow */
    float: right;
  }

.btn-link[aria-expanded="false"]::after {
    content: " \25BC"; /* Down arrow */
    float: right;
  }

.btn:focus,.btn:active:focus,.btn.active:focus,
.btn.focus,.btn:active.focus,.btn.active.focus {
    outline: none!important;
    box-shadow: none!important;
}

.geomag-button {
    margin: 0;
    padding: 8px;
    font-weight: bold;
    font-size: clamp(16px, 2vw, 20px) !important;
    border: 2px solid transparent !important;
    border-radius: 0 !important;
    position: relative;
    background-color: #002E40;
    color: white;
    border-color: #002E40 !important;
}

.geomag-button:hover {
    cursor: pointer;
    background-color: #fff;
    color: #002E40 !important;
    border-color: black !important;
}

.geomag-button:active {
    background-color: #fff;
    color: #002E40 !important;
}

.geomag-button:disabled {
    pointer-events: none;
}

.geomag-button:focus-visible {
    outline: none !important;
    border-color: #4592a1 !important;
    box-shadow: 0 0 5px rgba(0, 95, 115, 0.5) !important;
}

.geomag-button-secondary {
    border: none !important;
    border-radius: 0 !important;
    color: #002E40;
    background-color: #e6ebed;
    border: 2px solid #e6ebed !important;
    padding: 8px;
    font-weight: bold;
    font-size: clamp(16px, 2vw, 20px) !important;
    position: relative;
}

.geomag-button-secondary:hover {
    cursor: pointer;
    color: #002E40 !important;
    background-color: #fff;
    border: 2px solid black !important;
}

.geomag-button-secondary:active {
    color: #002E40 !important;
    background-color: #fff;
}

.geomag-button-secondary:disabled {
    pointer-events: none;
}

.geomag-button-secondary:focus-visible {
    outline: none !important;
    border: 2px solid #4592a1 !important;
    box-shadow: 0 0 5px rgba(0, 95, 115, 0.5) !important;
}


.geomag-button-arrow-right{
    padding-right:30px;
}

.geomag-button-arrow-right::after {
    content: "";
    background-image: url("/test/geomag-new/pages/imgs/arrow-right-white.svg");
    background-repeat: no-repeat;
    background-size: contain;
    height: 13px;
    width: 16px;
    position: absolute;
    top: 50%;
    right:7px;
    transform: translateY(-50%);
}

.geomag-button-arrow-right:hover::after {
    background-image: url("/test/geomag-new/pages/imgs/arrow-right-dark.svg")!important;
}

.geomag-button-arrow-left{
    padding-left:30px;
}

.geomag-button-arrow-left::before {
    content: "";
    background-image: url("/test/geomag-new/pages/imgs/arrow-left-white.svg");
    background-repeat: no-repeat;
    background-size: contain;
    height: 13px;
    width: 16px;
    position: absolute;
    top: 50%;
    left:7px;
    transform: translateY(-50%);
}

.geomag-button-arrow-left:hover::before {
    background-image: url("/test/geomag-new/pages/imgs/arrow-left-dark.svg")!important;
}

.form-style-button{
    border:1px solid #ced4da!important;
    background-color: #fff;
    height:auto;
}

.form-style-button:hover, 
.form-style-button:focus {
    color: white;
    background-color: #002E40 !important;
}

.btn-grow{
    transition: transform 0.3s ease;
}

.btn-grow:hover {
    transform: scale(1.05);
}

.btn-grow:hover svg{
    fill: hsl(43, 27%, 56%);
}

.btn-grow-white:hover svg{
    fill: white!important;
}

.svg-hover:hover{
    color: hsl(43, 27%, 56%)!important;
}

.svg-hover:hover svg,
.svg-hover:hover g {
    fill: hsl(43, 27%, 56%)!important;
}

.svg-hover:focus-visible {
    outline: none !important;
    border: none !important;
}

.svg-hover:focus-visible,
.svg-emphasis{
    color:#4592a1 !important;
}

.svg-hover:focus-visible g,
.svg-hover:focus-visible svg,
.svg-emphasis g,
.svg-emphasis svg {
    outline: none !important;
    border: none !important;
    fill: #4592a1 !important;
    text-shadow: 0 0 5px rgba(0, 95, 115, 0.5) !important;
}

.toggle-hover {
    animation: toggleScaleAndFill 1.5s infinite;
  }
  
  @keyframes toggleScaleAndFill {
    0%, 100% {
      transform: scale(1);
      fill: #002E40;
    }
    50% {
      transform: scale(1.07);
      fill: hsl(43, 27%, 56%);
    }
  }

/***************** BOOTSTRAP INPUTS ETC ***********************/
/*************************************************************/
.custom-checkbox .custom-control-input:checked ~ .custom-control-label::before {
    border-color:none!important;
    background-color: #002E40!important;
}

input[type=checkbox], input[type=range] {
    accent-color: #002E40;
}

input:not([type="range"]):not([type="checkbox"]):focus {
    outline: none !important;
    border: 2px solid #4592a1 !important;
    box-shadow: 0 0 5px rgba(0, 95, 115, 0.5) !important;
}

input[type="checkbox"]:focus-visible,
.checkbox-emphasis {
    outline: none !important;
    border: 2px solid #4592a1 !important;
    box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.3), 0 0 5px rgba(0, 95, 115, 0.5) !important;
}

select{
    margin: 1px;
}

select:focus {
    margin:0px;
    outline: none !important;
    border: 2px solid #4592a1 !important;
    box-shadow: 0 0 5px rgba(0, 95, 115, 0.5) !important;
}

.custom-control-input:checked~.custom-control-label::before {
    border-color: #4592a1!important;
    background-color: #4592a1!important;
}

#search-input::placeholder {
    color: #fff!important;
    font-weight: normal!important;
}

#search-input{
    border:2px solid #ffffff00!important;
}

  input[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none;
    height: 1em;
    width: 1em;
    border-radius: 50em;
    background: url(/test/geomag-new/pages/imgs/close-gold.svg) no-repeat 50% 50%;
    background-size: contain;
    opacity: 0;
    pointer-events: none;
    cursor:pointer;
}
  
input[type="search"]:focus::-webkit-search-cancel-button {
    opacity: 1;
    pointer-events: all;
}


.nav-link {
    border-bottom: 2px solid #ffffff00!important;
}

.nav-link.active,
.nav-item.show .nav-link {
    font-weight:bold;
    border-bottom: 2px solid #002e40a4!important;
}

.carousel-control-next-icon{
    background-color: #092a38;
    border-radius: 50%;
    border: 10px solid #092a38;
    height:35px!important;
    width:35px!important;
}

.carousel-control-next{
    opacity:1!important;
    bottom: -10px!important;
    top: 100%!important;
    width:inherit!important;
    padding-left:7.5%;
}

.carousel-control-next:hover{
    opacity: 1!important;
    text-decoration: none!important;
    cursor:pointer;
    color: rgba(0,0,0,0) !important;
}

.carousel-control-next-icon:hover{
    background-color: hsl(43, 27%, 56%)!important;
    border: 10px solid hsl(43, 27%, 56%)!important;
    opacity: 1!important;
}

.carousel-control-prev-icon{
    background-color: #092a38;
    border-radius: 50%;
    border: 10px solid #092a38;
    height:35px!important;
    width:35px!important;
}

.carousel-control-prev{
    opacity:1!important;
    bottom: -10px!important;
    top: 100%!important;
    width:inherit!important;
    padding-right:7.5%;
}

.carousel-control-prev:hover{
    opacity: 1!important;
    text-decoration: none!important;
    cursor:pointer;
    color: rgba(0,0,0,0) !important;
}

.carousel-control-prev-icon:hover{
    background-color: hsl(43, 27%, 56%)!important;
    border: 10px solid hsl(43, 27%, 56%)!important;
    opacity: 1!important;
}

.carousel-indicators li {
    background-color: #002E40!important;
}

.carousel-indicators{
    bottom:-35px!important;
}

.img-central{
    max-width: none!important;
}



/******************** LEAFLET MAP + UTILS **********************/
/*************************************************************/
.map-frame {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height:65vh;
    max-height:700px;
    margin-bottom:50px;
}

.map-body {
    width: 100%; 
    height: 100%;
    border-top: 2px solid black;
    border-bottom: 2px solid black;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.6);
    display: flex;
    justify-content: center; 
    align-items: center;
    color: #000; 
    font-size: 1.25rem; 
    text-align: center;
    pointer-events: none!important;
    z-index:999999;
}

.overflow-div{
    max-height:60vh;
    overflow:auto;
}

.overflow-div-sm{
    max-height:50vh;
    overflow:auto;
}

.overflow-div-lg{
    max-height:70vh;
    overflow:auto;
}

.abs-center{
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.display-none{
    display: none;
}

.no-max-width {
    max-width: none !important;
  }

.cursor-pointer{
    cursor: pointer!important;
}

.p-important{
    border-left: 2px solid hsl(197, 100%, 13%);
}

.img-contain{
    object-fit: contain!important;
}

/**************************PAGINATION*************************/
/*************************************************************/
.pagination .page-link {
    color: #6c757d;
    background-color: rgb(237, 243, 244);
    border-color: rgb(237, 243, 244);
    border: 1px solid #ddd;;
    padding: 5px;
    border-radius:0px!important;
    }

.pagination .page-link:hover {
    color: white;
    background-color: #002E40;
    cursor: pointer;
}

.pagination .active .page-link {
    color: white; 
    background-color: #002E40;
    border: 1px solid #ddd;
}

.pagination .disabled .page-link {
    color: #6c757d;
    background-color: transparent;
    border: 1px solid #ddd;
}

.pagination .page-link:focus {
    box-shadow: 0 0 0 2px rgba(138, 171, 177, 0.5);
}

/************************** TABLES ***************************/
/*************************************************************/
.table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.geomag-table{
    width: 100%!important;
    max-width:100%;
    border: none!important;
    border-collapse: collapse!important;
    margin-bottom:30px!important;
}

.geomag-table th, td {
    width:100vw;
    padding: 8px!important;
    text-align: center!important;
}

.geomag-table th {
    color:white;
    background:none;
    background-color: #002E40;
    font-size: clamp(15px, 2vw, 17px);
}

.geomag-table td {
    font-size: clamp(15px, 2vw, 17px);
    vertical-align: middle!important;
}

.geomag-table-small th {
    color:white;
    background-color: #002E40;
    font-size: clamp(10px, 2vw, 14px)!important;
}

.geomag-table-small td {
    font-size: clamp(10px, 2vw, 14px)!important;
}

.geomag-table-extra-small th {
    color:white;
    background-color: #002E40;
    font-size: clamp(8px, 1vw, 12px)!important;
}

.geomag-table-extra-small td {
    font-size: clamp(8px, 1vw, 12px)!important;
}


/************************* CARDS *****************************/
/*************************************************************/
.card-hover .btn{
    border-radius: 0!important;
    text-decoration: none!important;
}

.card-hover .card-header{
    border:none!important;
    border-radius: 0!important;
}

.card-hover .btn:hover {
    text-decoration: none!important;
    color:#ffffff!important;
    border-radius: 0!important;
}


/************************ VIDEOS *****************************/
/*************************************************************/
.video-container {
    position: relative;
    height: 500px;
    overflow: hidden;
    width: 100%;
    background: #000;
}
.video-container iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: none;
}


/****************** GRID OF BUTTONS **************************/
/*************************************************************/
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    box-sizing: border-box;
}

.grid-container-sm {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    box-sizing: border-box;
}

.grid-item {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #002E40;
    color:white;
    padding: 0.75rem;
    text-align: center;
    border: 2px solid black !important;
}

.grid-item:hover {
    cursor:pointer;
    color: #002E40 !important;
    background-color: #fff;
    border: 2px solid #002E40 !important;
}

.grid-hovered {
    color: #002E40 !important;
    background-color: #fff;
    border: 2px solid #002E40 !important;
    font-weight: bold!important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2), 0 1px 3px rgba(0, 0, 0, 0.25);
}

.grid-hovered a{
    font-weight: bold!important;
}

.grid-item{
    font-size: 1rem;
    text-decoration: none!important;
}

/********************* GRID OF IMAGES ************************/
/*************************************************************/
.gallery {
    display: grid;
    gap: 15px;  /* Space between figures */
    grid-template-columns: repeat(4, 1fr); /* Default to 4 columns */
    width: 100%;
    padding: 10px;
    grid-auto-flow: dense;
}
  
.gallery figure {
    position: relative;
    overflow: hidden;
    width: 100%!important;
    transition: all 0.2s ease; /* Smooth transition for width and scaling */
    cursor: pointer;
}

.gallery figure:hover{
    cursor: pointer;
    transform: scale(1.01);
}

.gallery figure.clicked {
    z-index: 10;
    grid-column: span 2;
    grid-row: span 2;
}

.gallery figure.clicked img {
    padding: 20% 10px;
}

/* Handle hover for items at the end of the row */
.gallery figure:nth-child(4n).clicked {
    grid-column: span 2 !important; /* Ensure proper alignment */
    width: calc(100% - 15px); /* Avoid overflow */
}

/* Medium screen (2x2 grid) */
@media (min-width: 768px) and (max-width: 1199px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery figure.clicked {
        width: 100% !important; /* Prevent scaling on medium screens */
        grid-column: span 1;
        grid-row: span 1;
    }

    .gallery figure.clicked img {
        padding: 0px;
    }

    .gallery figure:nth-child(4n).clicked {
        grid-column: span 1 !important;
        width: 100%;
    }
}

/* Small screen (1x1 grid) */
@media (max-width: 767px) {
    .gallery {
        grid-template-columns: 1fr;
    }

    .gallery figure.clicked {
        width: 100% !important; /* Prevent scaling on small screens */
        grid-column: span 1;
        grid-row: span 1;
    }

    .gallery figure.clicked img {
        padding: 0px;
    }

    .gallery figure:nth-child(4n).clicked {
        grid-column: span 1 !important; 
        width: 100%;
    }
}
  

/************ BANNERS FOR SPECIFIC PAGES *********************/
/*************************************************************/
.aurora-background {
    background-image: url('/test/geomag-new/pages/imgs/index/aurora_alert.jpg');
    background-size: cover;
    background-position: center;
    height: 30vh;
    margin: 0;
    padding:0;
    margin-top:-27px;
    width: 100%;
    overflow-x: hidden;
}

.aurora-dark {
    position: relative;
    background-image: url('/test/geomag-new/pages/images/aurora-dark.jpg');
    background-size: cover;
    background-position: center;
    height: 25vh;
    margin: 0;
    padding:0;
    width: 100%;
    overflow-x: hidden;
}


.modelling-background {
    background-image: url('/test/geomag-new/pages/research/modelling/images/wmm-banner.png');
    background-size: cover;
    background-position: center;
    height: 30vh;
    margin: 0;
    padding:0;
    margin-top:-27px;
    width: 100%;
    overflow-x: hidden;
}


/**************************** UTILS **************************/
/*************************************************************/
.gentle-shadow{
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.125)!important;
}

.bottom-shadow{
    box-shadow: 0 5px 3px -3px rgba(128, 128, 128, 0.6)!important;
}

.no-hover {
    pointer-events: none;
    opacity: 0!important; 
    cursor: not-allowed;
}

.p-5vw {
    padding: clamp(25px, 3vw, 50px);
  }

.bullet-ul {
    list-style-type: disc!important;
    margin-left: 20px!important;
}

.grow-small {
    transition: transform 0.2s ease-in-out;
}

.grow-small:hover{
    transform: scale(1.015)!important;
}


.font-emphasis {
    transition: all 0.1s ease-in-out;
}

.font-emphasis:hover{
    color:rgb(58, 110, 114)!important;
    transform: scale(1.2);
    overflow:hidden;
}

.font-emphasis-color {
    transition: all 0.1s ease-in-out;
}

.font-emphasis-color:hover{
    color:rgb(58, 110, 114)!important;
    overflow:hidden;
}

/************************ CHARTS *****************************/
/*************************************************************/
.plot-tool{
    height: clamp(50vh, 80vh, 110vw);
    max-height:600px;
}


/************************* FIGURES ***************************/
/*************************************************************/
figcaption{
    position:relative;
    padding-left:50px;
}

figcaption:not(.expand-left):not(.no-expand)::after {
    position:absolute;
    content: "";
    top:-35px;
    right:0;
    width: 35px;
    height: 35px;
    background-color: inherit;
    background-image: url('/images/expand.svg')!important;
    background-repeat: no-repeat;
    background-size: 65%;
    background-position: center;
    padding:15px;
    cursor:pointer;
    box-sizing: border-box; 
    transition: all 0.3s ease; 
    display: block;
}

figcaption.expand-left:not(.no-expand)::after {
    position: absolute;
    content: "";
    top: -35px;
    left: 0;
    width: 35px;
    height: 35px;
    background-color: inherit;
    background-image: url('/images/expand.svg');
    background-repeat: no-repeat;
    background-size: 65%;
    background-position: center;
    padding: 15px;
    cursor: pointer;
    box-sizing: border-box; 
    transition: all 0.3s ease; 
    display: block;
}


figcaption:hover::after {
    transform: scale(1.05);
}

/*************************** MODALS *************************/
/*************************************************************/
.modal-backdrop {
    z-index: 100000 !important;
  }

.modal {
z-index: 100001 !important;
}

/************************* TOOLTIPS **************************/
/*************************************************************/
.info-tooltip::before {
    font-family: "bootstrap-icons"; 
    content: "\f430";
    cursor: pointer;
    display: inline-block;
    font-size: 1.5rem;
}


/******************** TO TOP BUTTON **************************/
/*************************************************************/
.to-top-button {
    all: unset;
    display: none;
    position: fixed;
    bottom: 3vh;
    right: 3vh; 
    z-index: 999999;
    border: none; 
    outline: none; 
    background-color: #495057;
    color: white; 
    cursor: pointer; 
    padding: 15px; 
    font-size: 18px;
    width:25px;
    height:25px;
    text-align:center;
    justify-content: center;
    align-items: center;
    border-radius:50px;
    box-shadow: 0 0 0 .2rem #002e406a;
    border: 2px solid white;
  }
  
.to-top-button:hover {
    background-color: #194253;
    box-shadow: 0 0 0 .4rem #5f7a8481;
  }

.to-top-button:focus {
    outline: none;
    box-shadow: 0 0 0 .4rem #5f7a8481;
    background-color: #194253;
}


/******************** CUSTOM LOADER **************************/
/*************************************************************/
.loader-geomag {
    width: 10px;
    aspect-ratio: 1;
    border-radius: 50%;
    animation: l5 1s infinite linear alternate;
  }
  @keyframes l5 {
      0%  {box-shadow: 20px 0 #2b3f5a, -20px 0 #0002;background: #2b3f5a }
      33% {box-shadow: 20px 0 #2b3f5a, -20px 0 #0002;background: #0002}
      66% {box-shadow: 20px 0 #0002,-20px 0 #2b3f5a; background: #0002}
      100%{box-shadow: 20px 0 #0002,-20px 0 #2b3f5a; background: #2b3f5a }
  }


/* TOOLTIPS */
.tooltip-popup button[data-tooltip] {
    position: relative; /* Make the button the reference point for the tooltip */
}

.tooltip-popup button[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: calc(100% + 10px);
    transform: translateX(-50%); 
    background-color: #002E40;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    word-wrap: break-word;
    width: auto;
    height:auto;
    max-height: 500px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    z-index: 9999;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: opacity 0.2s ease, visibility 0s 0.2s;
}

/* Triangle (arrow) for the tooltip */
.tooltip-popup button[data-tooltip]::before {
    content: '';
    position: absolute;
    bottom: 87%; /* Slightly above the tooltip */
    left: 50%;
    transform: translateX(-50%); /* Center the arrow with the tooltip */
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #002E40; /* Tooltip arrow color */
    opacity: 0; /* Initially hidden */
    visibility: hidden; /* Initially hidden */
    z-index: 9999;
    transition: opacity 0.2s ease, visibility 0s 0.2s;
}

/* Show the tooltip and the triangle on hover */
.tooltip-popup button[data-tooltip]:hover::after,
.tooltip-popup button[data-tooltip]:hover::before {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.2s ease, visibility 0s;
}

/*************************************************************/
/************** ADD A WARNING CLASS FOR FORMS ****************/
/*************************************************************/
.is-warning {
    border-color: #ffc107!important;
    background-color:#faf9ed!important;
}

.is-warning:focus {
    border-color: #e0a800!important;
    box-shadow: 0 0 0 0.25rem rgba(255, 193, 7, 0.25)!important;
    background-color:#faf9ed!important;
  }

.is-invalid{
    background-color:#faf0ed!important;
}

/*************************************************************/
/********************* PLOT LEGENDS **************************/
/*************************************************************/
.legend-item {
    transition: transform 0.2s ease-in-out;
}

.legend-item:hover {
    transform: scale(1.025); 
    cursor: pointer;
}

/*************************************************************/
/********************** OTHER ********************************/
/*************************************************************/
.menu-item{
    cursor:pointer;
}
/*************************************************************/
/******** FIX OLD WEBPAGE CONTENT DUE TO BOOTSTRAP ETC *******/
/*************************************************************/
#navigation{
    width:100%!important;
    background: #fafafa;
    border-bottom: 1px solid #3d545d;
    padding-top:0;
    box-sizing: border-box;
}


#footer-col1 {
    width: 100%;
    min-width: 65%;
}

#footer-col2 {
    width: 100%;
    min-width: 35%; 
}

.normal-cursor {
    cursor: default;
}

.cursor-pointer {
    cursor: pointer;
}

/*************************************************************/
/************* IMPROVE OLD CONTENT AS TEMP MEASURE ***********/
/*************************************************************/
.AccordionPanelOpen > .AccordionPanelTab {
    background: #3d545d url(https://resources.bgs.ac.uk/images/icons/accordionOpen.png) right no-repeat !important;
    box-shadow: none;
    border-bottom: #444 solid 0.1em!important;
}

.AccordionPanelTab {
    background: #f2f4f4 url(https://resources.bgs.ac.uk/images/icons/accordionClosed.png) right no-repeat !important;
    box-shadow: none;
    border-bottom: #444 solid 0.1em!important;
}

#leftCol .AccordionPanelContent ul li{
    background:#fafafa!important;
    box-shadow:none;
    border-bottom: #444 solid 0.1em!important;
}

.sectionHead{
    background:#002E40 !important;
    color:white !important;
    box-shadow: none !important;
    border-radius: 0px!important;
    border-bottom: #444 solid 0.1em!important;
}

div.menuChild, div.menuGrandChild, div.menuGreatGrandChild {
    background:#002E40 !important;
    box-shadow: none;
    border-bottom: #444 solid 0.1em!important;
}

.menuTitle{
    color:white !important;
}

.menuRow{
    border-bottom: #444 solid 0.1em!important;
}

.socmed_ico{
    margin:10px 10px;
}

#header{
    width:100%!important;
    background: #002433;
    height:20px!important;
    max-height:130px!important;
    min-height:120px!important;
}

#header-home {
    width: 100% !important;
    height: 40vh !important;
    max-height: 350px !important;
    min-height: 200px !important;
    background: url(/images/homePage/header_2020.png) no-repeat center center !important;
    background-size: cover !important;
}

#logo-header{
    max-height:120px;
    max-width:90vw;
    padding-top:1rem;
}

.navLink{
    color: black;
}

.navigator > div.topLevel > a:hover {
	text-decoration: underline;
	background-color: #e2ebf0;
	color: #000;
}

@media screen and (max-width: 57em) {
    #header {
        display: flex; 
        background: #002433 !important;
        padding: 0;
        margin:0;
        height: 100px;
        align-items: center;  
        justify-content: center;  
        overflow-y: hidden;
    }

    #header-home{
        display:flex;
        justify-content: center;
        align-items: center;
        min-height:10vh!important;
        max-height:20vh!important;
    }

    #header-home a{
        margin-top:0;
    }

    #qSearchForm {
        width: auto !important;
    }

    #logo-header {
        height: 100px;
        padding:0;
        display: block;
        margin:0!important;
    }
}

#widthBox{
    width:100%!important;
    height:100%;
    margin:0;
    padding:0;
    max-width:100vw;
}

#qSearchForm {
    position:relative!important;
    padding: 0.5em 0.6em;
    margin-right:20px;
}

#breadCrumbs{
    padding-top:0!important;
}

#slideShow div#slideShowList p {
    background: none!important;
    background-color: #f3f6f7!important;
}

#slideShow div#slideShowList p.selected{
    background-color: #002E40!important;
    color:white!important;
}

.homeFrame h2, .newsFrame h2 {
    background: none!important;
    background-color: #e6eaeb00!important;
}

.featureFrame p {
    background: none!important;
    background-color: #ffffff00!important;
    color:black!important;
}

.slideShowPanel {
    border-top: 2px solid #002433 !important;
}


h1{
    color:#002433!important
}

html{
    width:100%!important;
    overflow-x:hidden;
}

body{
    width:100%!important;
}

input[type="submit"]#qSearchBtn {
    padding:2px;
    height: 25px;
    width:25px;
	background-image: url(/includes/search.svg)!important;
}

.input-min-width-95p {
    min-width:95%!important;
    box-sizing: border-box; 
}

input[type="date"] {
    -webkit-appearance: none!important; /* iOS date input appearance fix */
  }

img {
    box-sizing: border-box;
  }
  
ul > li {
	list-style-image: none!important;
}

/**************************PAGINATION*************************/
/*************************************************************/
.pagination {
    display: flex!important;
    justify-content: center!important;
}

.pagination .page-link {
    color: #6c757d !important;
    background-color: rgb(237, 243, 244) !important;
    border-color: rgb(237, 243, 244) !important;
    border: 1px solid #ddd !important;
    padding: 5px !important;
    border-radius: 0px !important;
    display: flex!important;
    flex-grow: 1!important;
}

.pagination .page-link:hover {
    color: white !important;
    background-color: #002E40 !important;
    cursor: pointer !important;
}

.pagination .active .page-link {
    color: white !important;
    background-color: #002E40 !important;
    border: 1px solid #ddd !important;
}

.pagination .disabled .page-link {
    color: #6c757d !important;
    background-color: transparent !important;
    border: 1px solid #ddd !important;
}

.pagination .page-link:focus {
    box-shadow: 0 0 0 2px rgba(138, 171, 177, 0.5) !important;
}

ul li, ol li {
	margin-right: 0!important;
    margin-left: 0!important;
}