@import url('./plugins/fontawesome/css/all.min.css');
@import url('./plugins/Gallery/CSS-Gallery.css');

* {
	box-sizing: border-box;
}

a {
 color: #1a688d;   
}

a:hover {
    color: #26b4e8;       
}

html {
	scroll-behavior: smooth;
}

html,
body {
    display: block;
	margin: 0px auto;
	padding: 0px;
    max-width: 2560px;
	background-color: white;
    text-align: center;
	font-size: medium;
	font-family: "Nunito Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: normal;
    font-style: normal;
    font-variation-settings:
    "wdth" 100,
    "YTLC" 500;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0px;
    padding: 0.5em 0px;
    font-family: "Arsenal", sans-serif;
    line-height: normal;
    letter-spacing: 0.05em;
}

img {
	max-width: 100%;
	border-style: none;
}

textarea {
	resize: vertical;
}

a[href^='tel:'],
a[href^='mailto:'] {
	white-space: nowrap;
}

.Admin {
     display: inline-block;
    width: 100%;
    background-color: #F0F4F9;
    padding-top: 8px;
    font-size: xx-small;
    text-align: left;
}

.Admin a {
      margin-left: 15px;
    text-decoration: none;
    color: #C2C2C2;
}

/* Back-to-top styles */
.BackToTop {
	position: fixed;
	z-index: 10;
	right: 10px;
	bottom: 10px;
	background-color: #fcf7f7;
	padding: 10px;
	color: white;
	font-family: sans-serif;
	border-radius: 5px;
	opacity: 0;
	visibility: hidden;
	font-size: medium;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	gap: 1em;
}

.BackToTop a {
	display: inline-block;
	padding: 10px;
	background-color: #26B3E8;
	border-radius: 5px;
	color: white;
	text-decoration: none;
	box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.5);
	font-size: 0.8em;
	transition: color 0.25s, background-color 0.25s;
	line-height: normal;
	height: 50px;
	box-sizing: border-box;
	text-align: center;
}

.BackToTop a:hover {
	color: #ffffff;
	background-color: #1B678D;
}

.BackToTop #BackToTop {
	position: relative;
	display: inline-block;
	cursor: pointer;
	font-size: 20px;
	width: 50px;
}

.BackToTop #BackToTop i {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
}

.BackToTop #CloseBTT {
	position: absolute;
	left: -10px;
	top: -10px;
	width: 20px;
	height: 20px;
	cursor: pointer;
}

.Border-Left {
     border-left: 1px solid #5C7481;   
}

.Box-1 {
     display: block;
    width: 850px;
    max-width: 100%;
    text-align: left;
    margin: 85px auto 0px auto;
}

.Box-1 p {
     line-height: 1.5em;   
}

.Box-2 {
     display: inline-block;
    width: 49%;
    padding: 0px 70px;
    margin-top: 85px;
    text-align: left;
    vertical-align: top;
}

.Box-2 ul, .Box-2 p {
     line-height: 1.5em;   
}

.Box-80 {
     display: block;
    margin: 85px auto;
    width: 800px;
    max-width: 100%;
    font-size: 1.2em;
}

.Box-80 p {
     line-height: 1.5em;   
}

.Box-Button {
    display: inline-block;
    width: 300px;
    padding: 15px;
    border: 1px solid #E9EDF1;
    border-radius: 8px;
    text-align: left;
    margin: 35px 17px 0px 17px;
    -webkit-box-shadow: 4px 4px 8px #797474;
    box-shadow: 4px 4px 8px #797474;
    vertical-align: top;
}

.Box-Contact {
    display: inline-block;
    width: 40%;
    margin-left: 2%;
    margin-right: 2%;
    margin-top: 35px !important;
    padding-left: 2%;
    padding-right: 2%;
    padding-top: 20px;
    padding-bottom: 20px;
    -webkit-box-shadow: 4px 4px 8px #8196A1;
    box-shadow: 4px 4px 8px #8196A1;
    vertical-align: top;
}

.Button a {
     display: inline-block;
    background-color:#26B3E8;
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
}

.Button a:hover {
     background-color: #1a688d;   
}

.Check-List li {
    list-style-type: none;
}

.Contact {
    text-align: center;
    padding-bottom: 40px;
    padding-top: 5px;
    margin-top: -25px;
    max-width: 100%;
}
.Contact a {
    color: #4A80AA;
    border-radius: 6px;
}
.Contact a:hover {
    text-decoration: none;
}


.Contact h2 {
    margin-bottom: 4px;
    margin-top: 28px;
}
.Contact h3 a {
    text-decoration: none;
}

/* CAPTCHA styles */
.captcha-field {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1em; /* Space between CAPTCHA image and refresh button */
}

.captcha {
    display: flex;
    align-items: center;
    gap: 0.5em;
}

.captcha-image {
    max-height: 60px; /* Ensures the image doesn't get too tall */
    margin-right: 10px;
}

.captcha-refresh-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    cursor: pointer;
}

.Container {
	width: 1400px;
	display: inline-block;
	max-width: 90%;
}

footer {
     display: inline-block;
    width: 100%;
    padding: 35px 0px 100px 0px;
    background-color: #E9EDF1;
    color: #44535A 
}

.Footer-Box {
     display: inline-block;
    width: 340px;
    vertical-align: top;
    padding: 35px 15px 0px 15px;
    font-size: .85em;
    text-align: left;
    max-width: 100%;
}

.Footer-Menu a {
     display: inline-block;
    width: 95%;
    text-decoration: none;
    border-bottom: 3px groove #D4D7D9;
    padding: 10px 5px 10px 5px;
        
}

/* Form styles */
.form {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.form-input-field.required {
    flex: 1;
}

.form-row {
    display: flex;
    flex-direction: row;
    gap: 1em;
    flex-wrap: wrap;
}

.form-row .form-input-field {
    flex: 1;
}

.form button {
    align-self: center;
}

.button {
    padding: 0.75em 1em;
    background-color: #C4C6C8;
    color: black;
    font-weight: bold;
    font-size: 1em;
    border: none;
    border-radius: 10px;
    text-decoration: none;
    text-transform: capitalize;
    cursor: pointer;
    transition: color 0.25s, background-color 0.25s;
}

.button:hover {
    background-color: #A8BBCE;
    color: black;
}

.Form-Check-Items {
     text-align: left;
}

.Form-Check-Items a {
     color: #26b4e8; 
    text-decoration: none;
}

.Form-Check-Items a:hover {
     text-decoration: underline;
}

.form-input-field {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
    text-align: left;
    min-width: 200px;
}

.form-field-label,
.form-field-input {
    width: 100%;
    font-size: 1em;
}

.form-field-input {
    padding: 0.5em;
    border: none;
    background-color: rgb(245, 245, 245);
    border-radius: 10px;
}

.form-field-input[type='date'],
textarea.form-field-input {
    font-size: 1.15em;
}

.form-field-input[type='file'] {
    cursor: pointer;
}

.form-input-field.required {
    flex: 1;
}

.form-input-field.required .form-field-label::before {
    content: '*';
    color: red;
}

.Gallery-location {
  margin-bottom: 20px;
  padding: 0 10px;
}
.Gallery-photo-gallery-label {
    cursor: pointer;
    text-decoration: underline;
    margin-top: 16px;
}
.Gallery-gallery {
    display: block;
    margin-top: 10px;
}
.Gallery-thumbnail {
  width: 90%;
  height: auto;
  object-fit: cover;
  margin: 5px;
  cursor: pointer;
  border: 1px solid #ddd;
  box-sizing: border-box;
}
.Gallery-thumbnail-wrapper {
  display: inline-block;
  width: calc(25% - 10px);
  margin: 5px;
  border: 1px solid #ddd;
  box-sizing: border-box;
}
@media (max-width: 600px) {
  .Gallery-thumbnail-wrapper {
    width: calc(49% - 10px);
  }
}
.Gallery-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
.Gallery-modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}
.Gallery-modal-content img, .Gallery-modal-content video {
  width: 100%;
  height: auto;
}
.Gallery-close {
  position: absolute;
  top: 10px;
  right: 20px;
  color: white;
  font-size: 30px;
  cursor: pointer;
}
.Gallery-nav-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 30px;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}
.Gallery-prev {
  left: 10px;
}
.Gallery-next {
  right: 10px;
}

header {
 display: inline-block;
    width: 100%;
    padding: 35px 0px 20px 0px;
}

.Header-Right {
    display: inline-block;
    float: right;
    font-weight: bold;
    margin-top: 16px;
}

.Header-Right-Block {
     display: inline-block;
    margin-left: 20px;
}

.Header-Right .Button a {
     min-width: 200px;   
}

.Heading {
     display: inline-block;
    width: 100%;
    background-color: #E9EDF1;
    padding: 35px 0px;
    margin-top: -5px;
    font-size: 1.15em;
    color: #1B678D;
}

.Logo {
     display: inline-block;
    width: 400px;
    max-width: 100%;
    float: left;
}

/* Navigation styles */
.Nav-Row {
	display: inline-block;
	background-color: #E9EDF1;
	width: 100%;
}

.Nav-Inline-Block {
	display: inline-block;
	width: 100%;
}

nav {
	display: flex;
	list-style: none;
	justify-content: center;
}

nav menu {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	list-style-type: none;
	list-style-image: none;
	padding-left: 0px;
	margin: 0px;
}

nav li {
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
	margin-top: 0;
	margin-bottom: 0;
	position: relative;
	height: 100%;
}
nav li ul {
    padding-left: 0px;
    text-align: left;
    margin-top: 0px;
}
nav li ul li {
    text-align: left;
    padding-left: 0px;
    display: block;
    width: 250px;
    margin-top: -5px;
    padding-top: 10px;
    padding-bottom: 10px;
}



nav a {
    text-decoration: none;
    color: #333;
    padding: 1em;
    display: inline-block;
}

nav a:hover {
    color: #1C678D;
}

.menu-toggle {
    display: none;
    font-family: inherit;
    font-size: inherit;
    color: #1A688F;
}

/* Dropdown content */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #FFFFFF;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    top: 100%; /* Position the dropdown below the menu item */
    left: 0;
}

.dropdown-content a {
    text-align: left;
    display: block;
    padding: 8px 12px; /* Bring items closer to the left edge */
}

/* Show dropdown when active */
.dropdown-content.show {
    display: block;
}

.Row-Contact {
     display: inline-block;
    width: 100%;
    margin-top: 85px;
    padding: 42px 0px;
    color: white;
    background-color: #1d688f;    
}

.Row-Locations {
    display: inline-block;
    width: 100%;
    margin-top: 85px;
    background-image: url(Images-Main/Hartford-CT.jpg);
    background-position: center bottom;
    background-size: cover;
    background-attachment: fixed;
}

.Row-Locations-Text {
    width: 50%;
    color: white;
    background-image: -webkit-linear-gradient(270deg,rgba(35,134,185,0.87) 0%,rgba(17,63,87,0.86) 100%);
    background-image: -moz-linear-gradient(270deg,rgba(35,134,185,0.87) 0%,rgba(17,63,87,0.86) 100%);
    background-image: -o-linear-gradient(270deg,rgba(35,134,185,0.87) 0%,rgba(17,63,87,0.86) 100%);
    background-image: linear-gradient(180deg,rgba(35,134,185,0.87) 0%,rgba(17,63,87,0.86) 100%);
    padding: 85px 20px;
    font-size: 1.15em;
    display: inline-block;
    float: left;
    margin-bottom: -5px;
}

.Row-Locations-Text p {
    width: 100%;
    max-width: 500px;
    display: inline-block;
    font-weight: bold;
}

.Row-Locations-Text ul {
     padding: 0px;
}

.Row-Locations-Text ul li {
    list-style-image: none;
    list-style-type: none;
    margin: 0px;
    padding: 0px;
}

.Row-Locations-Text ul li a {
     background-color: white;
    color: #1a688d;
    padding: 10px 20px;
    border-radius: 8px;
    display: block;
    width: 180px;
    margin: 20px auto;
    text-decoration: none;
    font-weight: bold;
    max-width: 100%;
}

.Row-Locations-Text ul li a:hover {
     background-color: #26b4e8;
    color: white;
}

/* Scroll to highlight styles */
@keyframes highlight-ani {
    0% {
        background-color: transparent;
    }
    25% {
        background-color: #fff59d;
    }
    75% {
        background-color: #fff59d;
    }
    100% {
        background-color: transparent;
    }
}

.ScrollToHighlight-anchor-highlight {
    animation: highlight-ani 2s ease;
}

.ScrollToHighlight-anchor-highlight:after {
	content: '';
	width: 100%;
	height: 100%;
	position: absolute;
	left: 0px;
	top: 0px;
	z-index: 9999999999;
	opacity: 0.25;
	pointer-events: none;
	animation-name: ScrollToHighlight-highlight-ani;
	animation-duration: 1.5s;
	animation-iteration-count: 1;
}

/* Scroll to highlight styles */
@keyframes highlight-ani {
	0% {
		background-color: transparent;
	}
	25% {
		background-color: #fff59d;
	}
	75% {
		background-color: #fff59d;
	}
	100% {
		background-color: transparent;
	}
}

.ScrollToHighlight-anchor-highlight {
	position: relative;
}

/* Media Queries */

@media (max-width: 1100px) {
    
    .Border-Left {
         border-left: none;
        border-top: 1px solid #5C7481;
    }
    
    .Box-2 {
     width: 100%;
    padding: 0px;
        max-width: 650px;
    }
    
    .Box-Contact {
    width: 95%;
    margin-left: 0px;
    margin-right: 0px;
}
    
    .Header-Right {
        width: 100%;
        float: none;
        margin: 20px 0px 0px 0px;
        border-top: 1px solid #8F9AA0
    }
    
    .Logo {
         float: none;
    }
    
    .Header-Right-Block {
         margin: 20px 10px 10px 10px;
        font-size: small;
    }
    
    .Header-Right .Button {
         display: inline-block;
    }
    
    .Header-Right .Button a {
         min-width: 0px;
    }
}

@media only screen and (max-width: 768px) {
	nav {
		flex-direction: column;
		width: 100%;
		align-items: center;
	}

	nav ul {
		margin-top: 0;
		padding-left: 0;
		width: 100%;
		text-align: center;
	}

	nav li {
		width: 100%;
		flex-direction: column;
		align-items: flex-start;
		position: relative;
	}

	nav li a {
		width: 100%;
	}
    
    nav li ul li {
         width: auto;
    }

    .menu-toggle {
        display: flex;
        justify-content: center; /* Center the button horizontally */
        gap: 0.5em;
        align-items: center;
        padding: 1em;
        width: 100%;
        border: none;
        background-color: transparent;
        cursor: pointer;
    }

	.menu-toggle i {
		font-size: 1.5em;
	}

	#main-menu {
		display: none;
		background-color: #FFFFFF;
		width: 100%;
	}

	.menu-toggle .close {
		display: none;
	}

	#main-nav.active .menu-toggle .close {
		display: var(--fa-display, inline-block);
	}

	#main-nav.active .menu-toggle .open {
		display: none;
	}

	#main-nav.active #main-menu {
		display: flex;
		flex-direction: column;
	}

	.dropdown-content {
		position: static;
		width: 100%;
		margin: 0;
		padding: 0;
	}

	.dropdown-content.show {
		display: block;
	}

	/* Prevent underlining dropdown links on hover/focus */
	nav .dropdown-content a, 
	nav .dropdown-content a:active, 
	nav .dropdown-content a:focus {
		text-decoration: none !important;
	}
    
    /* Center dropdown items on mobile */
     .dropdown-content a {
        text-align: center;
    }
}

@media (max-width: 800px) {
     .Row-Locations-Text {
         width: 90%;
         float: none;
    }
}

@media only screen and (max-width: 600px) {
    .captcha-field {
        flex-direction: column; /* Stack elements vertically */
        align-items: flex-start;
    }

    .captcha {
        display: flex;
        flex-direction: row; /* Ensure the CAPTCHA image and refresh button are side by side */
        align-items: center;
        justify-content: flex-start;
        width: 100%;
    }

    .captcha-image {
        margin-right: 10px; /* Ensure space between the CAPTCHA image and the refresh button */
        max-width: 75%; /* Ensure the image doesn't take up too much space */
    }

    .captcha-refresh-btn {
        margin-top: 0; /* Remove top margin */
        padding: 0;
        height: 100%; /* Align with the height of the CAPTCHA image */
    }

    .form-input-field.required {
        width: 100%; /* Ensure the input field takes full width */
    }
}

@media (max-width: 450px) {
     .Header-Right .Button {
         display: block;
    }
}
