/* Updates to Google Fonts / Material Icons */

/* NEW styles */

.no-wrap {
    white-space: nowrap;
  }

.no-hyphen-break {
    white-space: normal;         /* allow wrapping */
    word-break: keep-all;        /* don't break at hyphens */
    overflow-wrap: break-word;   /* allow breaking long strings elsewhere if needed */
}

a{
    color: #5f7894;
}

a:hover{
    color: #233856;
}

.navbar-light .navbar-toggler {
    background-color: #f8fafb;
}

#content-main{
padding-top: 2em;

}

.hello-sailor-img{
    max-width: 230px;
    margin-top: 20px;
}

.carousel-item img{
    border-radius: 4px 4px 0px 0px;

}

.no-pointer{
    pointer-events: none;
}

.nav-item .dropdown-menu{
    box-shadow: 0px 0px 15px 0px rgb(0 0 0 / 10%) inset;
    -webkit-box-shadow: 0px 0px 15px 0px rgb(0 0 0 / 10%) inset;
    -moz-box-shadow: 0px 0px 15px 0px rgba(0,0,0,0.1) inset;
    background-color: #f8fafb;
    border: none;

}

ul.navbar-nav li:last-child a:last-child{
    margin-bottom: 30px;
}

ul.navbar-nav>li:last-child:after{
    display: block;
    content: "";
    width: 170px;
    height: 155px;
    background: url(../images/crab.png);
    background-size: contain;
    text-align: center;
    margin: auto;
}


::selection {
  background: rgba(159,176,195,.25); /* WebKit/Blink Browsers */
}
::-moz-selection {
  background: rgba(159,176,195,.25); /* Gecko Browsers */
}

/* Custom WFTT styles */

.custom-wftt-view {
    min-height: 100vh;
    min-width: 100vw;
    color: #F7f9fb;
    background-color: #323547;
    font-family: -apple-system, 'Arial', sans-serif;
}

.custom-wftt-content {
    text-align: center;
    padding-top: 15%;
    max-width: 700px;
}

.custom-wftt-privacy {
    max-width: 700px;
    padding-left: 30px;
    padding-right: 30px;
}

.custom-wftt-link {
    color: #F7f9fb;
    }
    
.custom-wftt-link:hover {
    color: #F7f9fb;
    }


.custom-wftt-buttons-content {
    text-align: center;
    max-width: 700px;
}

.custom-wftt-button {
    color: #F7f9fb;
    border-color: #F7f9fb;
    margin-top: .5rem;
    margin-bottom: 1rem;
    margin-left: .5rem;
    margin-right: .5rem;
    width: 125px;
}

.custom-wftt-button:hover {
    color: 323547;
    background-color: #F7f9fb;
}


/* Custom page and navbar styles */

.custom-page-background {
    background-image: url('../images/waves.jpg');
    font-family: -apple-system, 'Arial', sans-serif;
}

.custom-navbar-background {
    background-image: url('../images/waves.jpg');
    font-family: -apple-system, 'Arial', sans-serif;
}

.custom-navbar-font {
    font-family: 'Pacifico', sans-serif;
    font-size: 28px;
}

.material-icons.light {
    color: #212529;
}

.material-icons-outlined.light {
    color: #212529;
}

.navbar-padding {
    padding-left: 0rem;
    padding-right: 0rem;
}


/* Custom offcanvas classes */

.custom-offcanvas-link {
    color: #6c757d !important;
}

.custom-offcanvas-link:hover {
    color: rgba(0, 0, 0, .7) !important;
}


/* Custom miscellaneous classes */

.custom-code {
    white-space: pre-line;
    font-size: 14px;
}

.custom-pre {
    margin-bottom: 0px;
}

.custom-add-widget-options {
    margin: auto;
    max-width: 450px;
}

.custom-add-widget-copy {
    text-align: center;
}

.custom-add-widget-example {
    text-align: center;
}

/* Custom card classes */

.custom-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-clip: border-box;
    border-radius: .25rem;
    border-width: 1px;
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, .125);
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15);
}

.custom-card-code {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-clip: border-box;
    border-radius: .25rem;
    border-width: 1px;
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, .125);
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 12px;
    max-width: 450px;
    padding-left: 8px;
    padding-right: 8px;
    padding-top: 8px;
    padding-bottom: 8px;
}

.custom-card-body {
    flex: 1 1 auto;
    padding: 1rem 1rem;
}

.custom-card-body-html {
    /* flex: 1 1 auto; */
    /* overflow: hidden; */
    position: relative; 
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.adsense-wrapper {
    /* max-width: 100%; */
    height: auto;
    overflow: hidden;
}

/* Chrome Desktop AdSense Overflow Fix */
/* Fix Bootstrap col class to have explicit width for AdSense calculation */
.col {
    width: 100% !important;  /* Explicit width prevents flex item zero-width issue */
}

/* Set explicit dimensions on AdSense containers BEFORE ad loads */
/* This helps AdSense choose appropriately sized ads */
.adsense-wrapper {
    position: relative;
    display: block;
    width: 100%;
    max-width: 100%;
    overflow: hidden !important;
}

/* Force AdSense to see container constraints */
.adsense-wrapper ins.adsbygoogle {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 300px; /* Minimum ad width */
    overflow: hidden !important;
}

/* Desktop-specific constraints to help AdSense size selection */
@media screen and (min-width: 768px) and (max-width: 991px) {
    .adsense-wrapper ins.adsbygoogle {
        max-width: 456px !important; /* Match .adsense-div max-width */
    }
}

@media screen and (min-width: 992px) and (max-width: 1199px) {
    .adsense-wrapper ins.adsbygoogle {
        max-width: 456px !important;
    }
}

@media screen and (min-width: 1200px) and (max-width: 1399px) {
    .adsense-wrapper ins.adsbygoogle {
        max-width: 546px !important;
    }
}

@media screen and (min-width: 1400px) {
    .adsense-wrapper ins.adsbygoogle {
        max-width: 636px !important;
    }
}

/* Additional desktop fixes */
@media screen and (min-width: 768px) {
    /* Ensure the col has proper width on desktop with side columns */
    .row > .col {
        flex: 1 0 0%;  /* Standard Bootstrap col behavior */
        width: auto;   /* Allow normal flex sizing */
        min-width: 0;  /* Allow shrinking */
        max-width: 100%; /* Prevent overflow */
    }
    
    /* But when it contains AdSense, give it explicit dimensions */
    .col:has(.adsense-wrapper) {
        width: 100% !important;
        position: relative;
    }
    
    /* Contain AdSense elements - remove overflow-y visible to prevent cropping */
    .adsense-wrapper {
        overflow: hidden !important;
        box-sizing: border-box !important;
    }
    
    /* Extra containment */
    .custom-card-body-html {
        overflow: hidden !important;
        width: 100%;
        position: relative;
    }
    
    /* Ensure ads don't exceed container */
    .adsense-wrapper * {
        max-width: 100% !important;
    }
}


.custom-card-title {
    color: #000920;
    /* margin-bottom: .5rem; */
    margin-top: 0.5rem;
    margin-bottom: 0.6rem;
    font-weight: 600;
    font-size: 1.7rem;
}

.custom-card-h1-title {
    color: #000920;
    /* margin-top: 0rem; */
    /* margin-bottom: 1rem; */
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    font-size: 1.7rem;
}

.custom-card-h2-title {
    color: #000920;
    margin-top: 0rem;
    margin-bottom: 1.2rem;
    font-weight: 400;
    font-size: 1.2rem;
    line-height: 1.5;
}

.custom-card-subtitle {
    color: #5f7894;
    /* margin-top: -.25rem; */
    /* margin-bottom: .5rem; */
    margin-top: -.25rem;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    --bs-text-opacity: 1;
}

.custom-card-home-button {
    border-color: rgba(159,176,195,.25);
    background-color: #fff;
    margin-top: .25rem;
    margin-bottom: .5rem;
    margin-left: .25rem;
    margin-right: .25rem;
}

.custom-card-home-button:hover {
    border-color: rgba(159,176,195,.5);
    background-color: rgba(159,176,195,.5);
}

.custom-card-text-center {
    text-align: center;
}

.custom-card-text-left {
    text-align: left;
    padding-left: 5px;
    padding-right: 5px;
    padding-top: 10px;
    padding-bottom: 10px;
    line-height: 1.7;
}

.custom-card-text-small {
    text-align: left;
    padding-top: 2px;
    padding-bottom: 2px;
    color: rgba(33,37,81,.7);
    font-size: .875em;
    line-height: 24px;
}

.custom-card-list {
    text-align: left;
    padding-left: 0px;
    padding-right: 15px;
    padding-top: 5px;
    padding-bottom: 5px;
    line-height: 1.7;
}

.custom-card-list-link {
    color: #125fa3;
    }
    
.custom-card-badge {
    color: rgba(33, 37, 41, 1);
    background-color: rgba(248, 249, 250, 1);
    border-radius: 50rem;
    margin-bottom: .5rem;
}

.custom-card-message-button {
    color: #fff;
    border-color: #5f7894;
    background-color: #5f7894;
    margin: 10px 0px 20px;
}

.custom-card-message-button:hover {
    color: #fff;
    border-color: #9fb0c3;
    background-color: #9fb0c3;
}

.custom-card-buttons-button {
    color: #fff;
    border-color: #5f7894;
    background-color: #5f7894;
    margin-left: .25rem;
    margin-right: .25rem;
}

.custom-card-buttons-button:hover {
    color: #fff;
    border-color: #9fb0c3;
    background-color: #9fb0c3;
}

.custom-card-table {
    text-align: center;
    margin-bottom: 0;
    border-color: #dee2e6;
}

.custom-card-table-weather {
    text-align: center;
    margin-bottom: 0;
    border-color: #dee2e6;
    table-layout: fixed;
    width: 100%;
}

.custom-card-table-header {
    border-width: 3px;
    border-top: 0;
    border-left: 0;
    border-right: 0;
    font-weight: 500;
}

.custom-card-table-highlight {
    background-color: #F2F6F8;
}

.custom-card-moon {
    vertical-align:top;
    padding-top:3px !important;
    padding-bottom:0px !important;
    line-height:1rem;
}

table.center {
    width:100%; 
  }

.custom-card-footer {
    padding: .5rem 1rem;
    border-top: 1px solid rgba(0, 0, 0, .125);
    padding-top: 1rem;
    padding-bottom: .25rem;
    margin-bottom: 0;
    --bs-text-opacity: 1;
    color: rgba(33,37,81,.7);
    background-color: #fff;
}

.custom-card-footer-link {
    color: #6c757d;
    }
    
.custom-card-footer-link:hover {
    color: rgba(0, 0, 0, .7)
    }


/* Custom modal classes */

.custom-modal {
    top: calc(100% - 400px);
}

.custom-modal-button {
    color: #fff;
    background-color: #198754;
    border-color: #198754;
}

.custom-modal-button:hover {
    color: #fff;
    background-color: #198754;
    border-color: #198754;
}


/* Custom footer classes */

.custom-footer {
    padding-top: 1rem;
    padding-bottom: 1rem;
    margin-top: 1.5rem;
}

.custom-footer-first-section {
    padding-top: 1rem;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    justify-content: center;
    border-top: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
}

.custom-footer-link {
    color: #6c757d;
    padding-left: .5rem;
    padding-right: .5rem;
    border-radius: 4px;
}

.custom-footer-link:hover {
    color: #fff;
    background-color: #9fb0c3;

}

.custom-footer-no-link {
    color: #6c757d;
    padding-left: .5rem;
    padding-right: .5rem;
    border-radius: 4px;
}
.custom-footer-extra-section {
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    justify-content: center;
    border-bottom: 1px solid #dee2e6;
}


/* Custom map classes */

.map-responsive{
    overflow:hidden;
    padding-bottom:55%;
    position:relative;
    height:0;
    /* margin: 0px -16px; */
}
.map-responsive iframe{
    left:0;
    top:0;
    height:100%;
    width:100%;
    position:absolute;
}