/* Custom styles for the booking form */
#moondog-booking-form {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.form-group.md-note {
    background-color: #d1cfcf;
    padding: 6px 12px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.select2-container .select2-selection--single {
    height: 40px !important;
}
.terms-dialog {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.terms-dialog-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}
.md-msg-box {
    
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: #15569b 0px 30px 60px -12px inset,
    rgba(0, 0, 0, 0.5) 0px 18px 36px -18px inset;
    z-index: 1001;
    text-align: center;
}
/* Success message styles */
#md-success-msg , #md-table-msg{
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: rgba(0, 0, 0, 0.4) 0px 30px 60px -12px inset,
    rgba(0, 0, 0, 0.5) 0px 18px 36px -18px inset;
    z-index: 1001;
    text-align: center;
}

#md-success-msg h1, #md-table-msg h1 {
    font-size: 24px;
    margin-top: 20px;
}

#md-success-msg p ,#md-table-msg p{
    font-size: 18px;
    margin-top: 10px;
}

/* Checkmark */
.checkmark-circle {
    width: 150px;
    height: 150px;
    position: relative;
    display: inline-block;
}

.checkmark-circle .background {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: #00C09D;
    position: absolute;
}

.checkmark-circle .checkmark {
    border-radius: 5px;
}

.checkmark-circle .checkmark.draw:after {
    animation-delay: 100ms;
    animation-duration: 3s;
    animation-timing-function: ease;
    animation-name: checkmark;
    transform: scaleX(-1) rotate(135deg);
    animation-fill-mode: forwards;
}

.checkmark-circle .checkmark:after {
    opacity: 1;
    height: 75px;
    width: 37.5px;
    transform-origin: left top;
    border-right: 15px solid white;
    border-top: 15px solid white;
    border-radius: 2.5px !important;
    content: '';
    left: 25px;
    top: 75px;
    position: absolute;
}

@keyframes checkmark {
    0% {
        height: 0;
        width: 0;
        opacity: 1;
    }
    20% {
        height: 0;
        width: 37.5px;
        opacity: 1;
    }
    40% {
        height: 75px;
        width: 37.5px;
        opacity: 1;
    }
    100% {
        height: 75px;
        width: 37.5px;
        opacity: 1;
    }
}

#moondog-booking-form.overlay {
    position: relative;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.5);
}
.form-group input[type='text'], input[type='password'], input[type='email'], input[type='url'], input[type='tel'], input[type='number'], input[type='range'], input[type='date'], input[type='datetime'], textarea, input.text, input[type='search'] {
	padding: 10px !important;
}
.md-container {
    position: relative;
    border-radius: 10px;
    padding: 60px;
    background-image: radial-gradient(
        circle at 20% 100%,
        rgba(184, 184, 184, 0.1) 0%,
        rgba(184, 184, 184, 0.1) 33%,
        rgba(96, 96, 96, 0.1) 33%,
        rgba(96, 96, 96, 0.1) 66%,
        rgba(7, 7, 7, 0.1) 66%,
        rgba(7, 7, 7, 0.1) 99%
    ),
    linear-gradient(40deg, #040a22, #c59d5f, #9d7d4c, #6f7aa6);
    background-repeat: no-repeat;
    background-size: cover;
}
@media only screen and (min-width: 480px) and (max-width: 767px) {
    .container, .type5.tribe_events .container .container, .layout-boxed .vc_row .dt-sc-stretch-row-content {
        width: 1320px !important;
        padding: 0px !important;
    }
}
.category-filter {
    margin-bottom: 20px;
}

.category-filter select {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Post Grid Styles */
.post-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.post-card {
    perspective: 1000px;
    width: calc(33.333% - 20px); /* 3 columns */
    margin-bottom: 20px;
    height: 400px; /* Fixed height */
}

.post-card-inner {
    position: relative;
    width: 100%;
    height: 85%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

.post-card:hover .post-card-inner {
    transform: rotateY(180deg);
}

.post-card-front, .post-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.post-card-front {
    background: #fff;
    overflow: hidden; /* Ensure content doesn't overflow */
}

.post-card-back {
    background: #fff;
    color: #000;
    transform: rotateY(180deg);
    padding: 20px;
    box-sizing: border-box;
}

.post-thumbnail {
    width: 100%;
    height: auto;
}

.post-thumbnail-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #eee;
    color: #666;
}

.btn-custom-link {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
}

.btn-custom-link:hover {
    background-color: #0056b3;
}
.post-type-archive-moondog .breadcrumb ,.tax-md_category .breadcrumb  {
    display: none;
}

.time-slot-buttons {
    display: flex;
    flex-wrap: wrap; 
    border: 2px solid #8c714a;
    padding: 10px;
    border-radius: 10px;
}

.time-slot-button {
    margin: 5px; /* Add space between buttons */
    padding: 2px 5px; /* Add padding for buttons */
}
.time-slot-button {
    color: #000000 !important;
    border-color: #9e8051 !important;
}
.form-group-row {
    display: flex; /* Aligns child elements in a row */
    flex-wrap: wrap; /* Allows elements to wrap on smaller screens */
    margin-bottom: 15px; /* Space below the row */
}

.form-group {
    flex: 1; /* Allows each form group to grow equally */
    min-width: 150px; /* Sets a minimum width for each field */
    margin-right: 10px; /* Space between the fields */
}

.form-group:last-child {
    margin-right: 0; /* Removes margin from the last item */
}

/* Adjustments for better spacing and alignment */
.form-group label {
    font-weight: bold; /* Makes the label bold for better readability */
    margin-bottom: 5px; /* Adds space below the label */
}

select.form-control {
    height: calc(2.25rem + 2px); /* Ensures uniform height for select fields */
    border: 1px solid #ced4da; /* Border color for select fields */
    border-radius: 0.25rem; /* Rounded corners for select fields */
    box-shadow: none; /* Removes the default shadow */
}

/* Adjusts spacing on smaller screens */
@media (max-width: 576px) {
    .form-group-row {
        flex-direction: column; /* Stacks the fields vertically */
    }
    .form-group {
        margin-right: 0; /* Removes right margin on small screens */
        margin-bottom: 15px; /* Adds bottom margin for spacing */
    }
}
/* Global mobile styles */
* {
    box-sizing: border-box; /* Ensure padding and border are included in element's total width and height */
}

/* Mobile view (max-width: 767px) */
@media (max-width: 767px) {
    .md-container {
        padding: 10px;
        margin: 0 auto;
        width: 100%; 
    }

    #moondog-booking-form {
        display: flex;
        flex-direction: column;
        width: 100%;
        padding: 15px;
    }

    #reservation-details, #personal-details {
        width: 100%;
        margin-bottom: 20px;
    }

    .form-group {
        width: 100%;
        margin-bottom: 15px;
    }

    label {
        font-size: 14px;
        font-weight: bold;
        margin-bottom: 5px;
    }

    .form-control, 
    .form-check-label, 
    select, 
    input[type="text"], 
    input[type="email"], 
    input[type="tel"], 
    textarea {
        width: 100%;
        font-size: 14px;
        padding: 10px; /* Increased padding for better touch interaction */
        border-radius: 4px;
        border: 1px solid #ccc;
    }

    .form-check-label {
        font-size: 13px;
    }

    #terms-dialog .terms-dialog-content {
        width: 90%;
        max-width: 400px;
        font-size: 14px;
    }

    /* Success message styles */
    #md-success-msg {
        width: 100%;
        text-align: center;
        margin-top: 20px;
    }

    #md-success-msg .checkmark-circle {
        width: 60px;
        height: 60px;
    }

    #md-success-msg h3 {
        font-size: 18px;
    }

    #md-success-text {
        font-size: 14px;
    }
	.post-card {
		width: 100%;
	}
	.post-grid {
    display: flex;
    flex-direction: column;
}
}
