@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

body {
    background-color: #F9FAFC;
    font-family: 'Roboto', serif;
}

/* Custom alert colour to match style */
.alert-success {
    background-color: #cce5ff;
    color: #004085;
    border-color: #b8daff;
}

/* Ensure consistent font size for select and input elements */
.search-filter-container .form-group select,
.search-filter-container .form-group input {
    font-size: 16px;
}

/* Style for postevent_detail.html */
.brand {
    font-family: Lato, sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #4A4A4F;
}

.red-o {
    color: #E84610;
}

.thin {
    font-weight: 300;
}

.light-bg {
    background-color: #fff;
}

.dark-bg {
    background-color: #445261;
}

.main-bg {
    background-color: #F9FAFC;
}

.card {
    border: none;
    background-color: transparent;
}

.image-container {
    position: relative;
}

.image-flash {
    position: absolute;
    bottom: 5%;
    min-width: 30%;
    left: -2px;
    background-color: #188181;
}

.scale {
    width: 100%;
    height: 100%;
}

.author {
    color: white;
    margin: 4px;
    text-transform: uppercase;
}

.masthead {
    margin-top: 10px;
    overflow: hidden;
    position: relative;
    display: inline-block;
    height: 33vh;
    width: 100%;
}

.masthead-text {
    background-color: #000000;
    color: white;
    position: relative;
}

.masthead-image {
    position: relative;
    overflow: hidden;
}

.masthead-image:after {
    content: "";
    position: absolute;
    top: 0;
    right: 90%;
    height: 100%;
    width: 150%;
    background: #000000;
    -webkit-transform: skew(15deg);
    -moz-transform: skew(15deg);
    transform: skew(15deg);
    z-index: 100;
}

.post-link {
    text-decoration: none;
    color: #445261;
    padding-top: 12px;
}

.post-link:hover,
.page-link {
    color: #E84610;
}

.post-title {
    margin-top: 10%;
    margin-left: 5%;
}

.post-subtitle {
    margin-left: 5%;
    color: lightgray;
}

.btn-signup,
.btn-edit {
    background-color: #0d6efd;
    color: #fff;
}

.btn-signup:hover,
.btn-signup:active {
    background-color: #fff;
    color: #0d6efd;
}

.link {
    color: #0d6efd;
    text-decoration: none;
}

.link:hover,
.link:active {
    color: #445261;
    text-decoration: underline;
}

.btn-like {
    color: #E84610;
    border: none;
    background: transparent;
}

.btn-delete {
    color: #fff;
    background: #dc3545;
}

.btn-like:hover,
.btn-like:active {
    color: #E84610;
    background: transparent;
    border: none;
}

.faded {
    color: rgb(172, 175, 175);
}

.approval {
    color: rgb(222, 146, 168);
}

/* CSS for events_page.html */
.image-container {
    position: relative;
    width: 100%;
    padding-bottom: 50%;
    /* Aspect ratio: 4:3 (height / width * 100%) */
    overflow: hidden;
}

.image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensures the image covers the container while maintaining aspect ratio */
}

/* Styling for search and filter */
.search-filter-container .form-control {
    width: auto;
    display: inline-block;
}

/* Add style to event post */
* {
    box-sizing: border-box;
    /* Include padding and border in the element's total width and height */
}

body {
    overflow-x: hidden;
    /* Prevent horizontal scrolling on the body */
}

.event-card {
    border: 2px solid #ccc;
    /* Gray border */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    /* Subtle shadow */
    transition: transform 0.2s, box-shadow 0.2s;
    /* Smooth transition */
    overflow: hidden;
    /* Ensures rounded corners are visible */
    display: flex;
    /* Use flexbox for alignment */
    flex-direction: column;
    /* Ensure children are stacked vertically */
}

.event-card:hover {
    transform: scale(1.03);
    /* Slightly enlarge on hover */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    /* Stronger shadow on hover */
}

.event-card .card-body {
    padding: 15px;
    /* Add padding inside the card */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    /* Ensure the card body takes up available space */
}

.event-card img.card-img-top {
    border-bottom: 2px solid #ccc;
    /* Gray border under the image */
    width: 100%;
    /* Ensure the image takes full width */
    height: auto;
    /* Maintain aspect ratio */
}

.container-fluid {
    padding-right: 15px;
    /* Add padding to the container to prevent overflow */
    padding-left: 15px;
    /* Add padding to the container to prevent overflow */
}

.row {
    margin-right: -15px;
    /* Adjust margin to ensure it doesn't cause overflow */
    margin-left: -15px;
    /* Adjust margin to ensure it doesn't cause overflow */
    display: flex;
    flex-wrap: wrap;
    /* Ensure children wrap to the next line */
}

.col-md-4 {
    display: flex;
    flex-direction: column;
    padding: 0 15px;
    /* Add padding to columns to ensure proper spacing */
}

.card {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Header */
.navbar {
    background-color: #f8f9fa;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: flex-end;
    /* Align items at the bottom */
}

.navbar-brand {
    display: flex;
    align-items: flex-end;
    /* Align logo at the bottom */
}

.navbar-brand img.brand-logo {
    height: 50px;
    /* Adjust height */
    width: auto;
    /* Maintain aspect ratio */
}

.navbar-nav {
    display: flex;
    align-items: flex-end;
    /* Align nav items at the bottom */
}

/* Footer */
.footer-basic {
    padding: 20px 0;
    background-color: #ffffff;
    color: #4b4c4d;
    margin-top: auto;
    /* pushes footer down to bottom */
}

.footer-basic ul {
    padding: 0;
    list-style: none;
    text-align: center;
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 0;
}

.footer-basic li {
    padding: 0 10px;
}

.footer-basic ul a {
    color: inherit;
    text-decoration: none;
    opacity: 0.8;
}

.footer-basic ul a:hover {
    opacity: 1;
}

.footer-basic .social {
    text-align: center;
    padding-bottom: 25px;
}

.footer-basic .social>a {
    font-size: 24px;
    width: 40px;
    height: 40px;
    line-height: 40px;
    display: inline-block;
    text-align: center;
    border-radius: 50%;
    border: 1px solid #ccc;
    margin: 0 8px;
    color: inherit;
    opacity: 0.75;
}

.footer-basic .social>a:hover {
    opacity: 0.9;
}

.footer-basic .copyright {
    /* margin-top:15px; */
    text-align: center;
    font-size: 13px;
    color: #4b4c4d;
    margin-bottom: 0;
}

.footer-spacer {
    background-color: #f8f9fa;
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
}

/* events_page.html */
.page-display {
    cursor: default;
    /* Prevent cursor change on hover */
    pointer-events: none;
    /* Disable pointer events */
}

/* Account_admin.html - Style the readonly input fields to appear greyed out */
input[readonly] {
    background-color: #e9ecef;
    /* Light grey background */
    cursor: not-allowed;
    /* Change cursor to indicate non-editable */
    color: #6c757d;
    /* Grey text */
}

/* landing_page.html */
.logo-landing-page {
    max-width: 100%;
    /* Scale the image to fit its container */
    height: auto;
    /* Maintain aspect ratio */
    animation: fadeIn 1.5s ease-in-out;
    /* Fade-in animation on page load */
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    /* Smooth transition */
}

/* Fade-in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Pulse effect */
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

/* Add pulse effect on hover */
.logo-landing-page:hover {
    animation: pulse 1s infinite;
    /* Infinite pulse effect */
}

.hero-text {
    font-weight: 500;
}

/* Media Queries */
/* Hide slogan on burger menu */
@media (max-width: 991px) {
    .slogan {
        display: none;
    }
}

/* Responsive styles for search and filter form on viewports < 453px */
@media (max-width: 453px) {
    .search-filter-container {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .search-filter-container .form-inline {
        flex-direction: column;
        align-items: stretch;
    }

    .search-filter-container .form-group {
        width: 100%;
        margin-bottom: 10px;
    }

    .search-filter-container .form-group label {
        display: block;
        margin-bottom: 5px;
    }

    .search-filter-container .form-group select,
    .search-filter-container .form-group input,
    .search-filter-container .form-group button {
        width: 100%;
        box-sizing: border-box;
    }

    .search-filter-container .form-group input {
        margin-bottom: 10px;
    }

    .search-filter-container .form-group button {
        width: 100%;
    }
}

/* Ensure consistent height for select and input elements */
.search-filter-container .form-group select,
.search-filter-container .form-group button,
.search-filter-container .form-group input {
    height: 38px;
}

/* Remove space between masthead and content for smaller devices */
@media (max-width: 768px) {
    .masthead {
        height: auto;
    }
}

/* Media queries for different screen sizes */
@media (max-width: 1200px) {
    .logo-landing-page {
        width: 50%;
        /* Adjust width for medium screens */
    }
}

@media (max-width: 768px) {
    .logo-landing-page {
        width: 70%;
        /* Adjust width for small screens */
    }
}

@media (max-width: 480px) {
    .logo-landing-page {
        width: 90%;
        /* Adjust width for extra small screens */
    }
}