html, body {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding-top: 25px;
}

a {
    color: #1a1e21;
    text-decoration: none;
}

a:hover {
    color: #198754;
    text-decoration: underline;
}

select {
    display: inline-block;
    box-sizing: border-box;
    height: 38px;
    background-color: #fff;
    border: 1px solid #aaa;
    border-radius: 4px;
    color: #444;
    line-height: 28px;
    padding-left: 4px;
    padding-right: 20px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.select2-container {
    min-width: 10em !important;
}

.pagination a:hover {
    text-decoration: none;
}

.main-header {
    border-bottom: 3px solid #5cb850;
}

.vtklogo {
  position: absolute;
  top: 12px;
  width: 0;
  min-width: 100px;
  transition: all .2s ease-in-out;
}

.vtklogo:hover {
    transform: scale(1.1);
}

@media screen and (min-width: 1200px) {
    .headerbrand {
        margin-left: 82px;
    }
}
@media screen and (max-width: 1200px) {
    .headerbrand {
          margin: auto;
    }
}

.footer_icon {
  opacity: 0.5;
  color: #FFFFFF;
  transition: all .2s ease-in-out;
}

.footer_icon:hover {
  opacity: 0.7;
  color: #5cb850;
  transform: scale(1.1);
}

footer {
  border-top: 3px solid #5cb850;
}

.main-sidebar {
    background-color: #e8e8e8;
    flex-shrink: 0;
}

.main-sidebar td {
    display: flex;
}

.main-sidebar a {
    margin-right: 0.5rem !important;
    flex-grow: 1;
}

.main-messages {
    position: fixed;
    left: 50%;
    top: 80px;
    transform: translate(-50%, 0);
    z-index: 1000;
}

.home-title {
    margin-left: 30px;
    padding-top: 5px;
    border-radius: 0px 10px 10px 0px;
    border: 0px;
    background-color: white;
}

.home-title a:hover {
    color: black;
    text-decoration: none;
}

.activity-info {
    position: relative;
}

.activity-info img {
    width: 50%;
    border-radius: 10px;
    height: auto;
    object-fit: cover;
}

.activity-info .activity-date {
    background-color: #52a147;
    border-radius: 5px 0px 0px 5px;
    position: absolute;
    right: 0;
    top: 1rem;
    padding-right: 1rem;
}

.activity-info .activity-type {
    border-radius: 5px 0px 0px 5px;
    position: absolute;
    right: 0;
    bottom: 1rem;
    padding-right: 1rem;
}

.three-columns {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Line for quote */
blockquote, blockquote p {
    line-height: 1.6;
    color: #222222;
}

blockquote {
    margin: 0 0 1rem;
    padding: 0.5625rem 1.25rem 0 1.1875rem;
    border-left: 1px solid #333333;
}

/* Bootstrap 5 dropdown */
.dropdown-item:active {
    background-color: #198754;
}

/* Calendar styling */
#full-clndr {
    width: 100%;
    text-align: center;
    line-height: 2.5rem;
}

#full-clndr .flex-container, #full-clndr .days-container, #full-clndr .week-container, #full-clndr .nav-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-content: stretch;
}

#full-clndr .nav-container {
    background-color: #198754 !important;
    color: #fefefe;
    height: 2.5rem;
    vertical-align: middle;
    border-top-left-radius: 0.15rem;
    border-top-right-radius: 0.15rem;
}

#full-clndr .nav-container div {
    width: 33.3333333333%;
}

#full-clndr .nav-container .clndr-previous-button:hover,
#full-clndr .nav-container .clndr-next-button:hover {
    background-color: #198754 !important;
    cursor: pointer;
}

#full-clndr .week-container {
    background-color: #198754 !important;
    color: #fefefe;
    border-bottom-left-radius: 0.15rem;
    border-bottom-right-radius: 0.15rem;
    height: 2.5rem;
    vertical-align: middle;
}

#full-clndr .week-container div {
    width: 14.2857142857%;
}

#full-clndr .days-container {
    color: #333333;
    flex-wrap: wrap;
    background-color: #fefefe;
}

#full-clndr .days-container .daybox {
    border-radius: 0.15rem;
    position: relative;
    width: 14.2857142857%;
    padding: 0.3rem;
    z-index: 2;
}

#full-clndr .days-container .daybox.event .day-number {
    background-color: #f6f6f6;
}

#full-clndr .days-container .daybox.today .day-number {
    background-color: #a3cfbb !important;
}

#full-clndr .days-container .daybox .day-events {
    display: flex;
    flex-wrap: wrap;
    line-height: 0.5rem;
    position: absolute;
    top: 0;
    z-index: 5;
}

#full-clndr .days-container .daybox .day-events .day_event {
    margin: 1px;
}

#full-clndr .days-container .day.adjacent-month, #full-clndr .days-container .empty.adjacent-month {
    opacity: 0.3;
}

#full-clndr .has-tip {
    cursor: pointer;
    border: none;
}

/* Photos */
.gallery-outer-box {
    display: block;
    position: relative;
    overflow: hidden;
    transition-duration: 0.4s;
}
.gallery-outer-box .overlay-color {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100%;
    width: 100%;
    transition-timing-function: inherit;
    transition-duration: inherit;
    background: rgba(33, 186, 69, 0);
    transition-property: background;
    border-radius: 0.15rem;
}
.gallery-outer-box .overlay-textcontainer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100%;
    width: 100%;
    transition-timing-function: inherit;
    transition-duration: inherit;
    padding: 1rem;
    border-radius: 0.15rem;
}
.gallery-outer-box .overlay-textcontainer .overlay-text {
    transition-timing-function: inherit;
    transition-duration: inherit;
    position: relative;
}
.gallery-outer-box:hover .overlay-color {
    background: rgba(33, 186, 69, 0.5);
}
.gallery-outer-box .overlay-text {
    color: #f6f6f6;
}

.photo-outer-box {
    display: block;
    position: relative;
    overflow: hidden;
    transition-duration: 0.4s;
}
.photo-outer-box .overlay-color {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100%;
    width: 100%;
    transition-timing-function: inherit;
    transition-duration: inherit;
    background: rgba(33, 186, 69, 0);
    transition-property: background;
    border-radius: 0.15rem;
}
.photo-outer-box .overlay-textcontainer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100%;
    width: 100%;
    transition-timing-function: inherit;
    transition-duration: inherit;
    padding: 1rem;
    border-radius: 0.15rem;
}
.photo-outer-box .overlay-textcontainer .overlay-text {
    transition-timing-function: inherit;
    transition-duration: inherit;
    position: relative;
}
.photo-outer-box:hover .overlay-color {
    background: rgba(33, 186, 69, 0.5);
}
.photo-outer-box .overlay-text {
    top: 20%;
    left: 40%;
    color: #f6f6f6;
    opacity: 0;
    transition-property: opacity;
}
@media screen and (min-width: 40em) {
    .photo-outer-box .overlay-text {
        top: 35%;
        left: 45%;
    }
}
.photo-outer-box:hover .overlay-text {
    opacity: 1;
}

.delete_picture {
    z-index: 100;
    width: 100%;
    background: #db2828;
    color: #f6f6f6;
    text-align: center;
    cursor: pointer;
    border-radius: 0 0 0.25rem 0.25rem;
    margin-top: -2px;
}
.delete_picture:hover {
    background: #b21e1e;
}

/* Activities */
#map_location {
    width: 100%;
    height: 20rem;
    border-radius: 0.15rem;
    z-index: 1 !important;
}

@media screen and (min-width: 401px) {
    #activity_poster {
        height: auto;
        max-width:100%;
        max-height: 20em;
        border: 2px solid #f6f6f6;
        transition-property: border;
        transition-duration: 0.6s;
        float: right;
        margin-left: 5px;
        margin-bottom: 1px;
        object-fit: contain;
    }
}
@media screen and (max-width: 400px) {
    #activity_poster {
        height: auto;
        max-width:100%;
        max-height: 20em;
        border: 2px solid #f6f6f6;
        transition-property: border;
        transition-duration: 0.6s;
        float: top;
        margin-left: 5px;
        margin-bottom: 1px;
        object-fit: contain;
    }
}
#activity_poster:hover {
    border: 2px solid #21ba45;
}

.overlay-container {
    position: relative;
    /* <-- Set as the reference for the positioned overlay */
    margin-top: 2rem;
    margin-bottom: 2rem;
}
.overlay-container .overlay-columns {
    z-index: 2 !important;
    padding: 1rem;
    width: 18rem;
}
@media screen and (min-width: 800px) {
    .overlay-container .overlay-columns {
        position: absolute;
        top: 0;
        left: 5%;
        height: 100%;
        color: #f6f6f6;
        background-color: rgba(51, 51, 51, 0.8);
    }
}

/* Green checkbox */
.form-check-input:checked {
    background-color:#198754 !important;
    border-color:#198754 !important;
}

@media screen and (max-width: 992px){
    .fix-dropdown{
        position: sticky;
        bottom: 0em;
    }
}
