/* Root variables */
:root {
    --pg-50: #f4fbf7;
    --pg-100: #e8f7ee;
    --pg-200: #cfeee0;
    --pg-300: #b7e6d2;
    --pg-400: #8fd8b8;
    --pg-500: #63c89f;
    --pg-600: #3aa87f;
    --pg-700: #2e8f66;
    --text: #103227;
    --muted: #6b7a73;
    --surface: #fff;
    --shadow: 0 6px 18px rgba(16,50,39,.08);
    --media-max-width-limit: 960px;
}

/* Global reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base document */
html {
    font-size: 14px;
    position: relative;
}

/* Body */
body {
    font-family: Inter, sans-serif;
    color: var(--text);
    background: var(--pg-50);
    margin: 0 auto;
    width: auto;
}

.body-container {
    max-width: var(--media-max-width-limit);
    margin: 0 auto;
}

.bg-soft {
    background: var(--pg-50);
}

/* Typography */
h1 {
    font-size: 2.1rem;
    letter-spacing: 2px;
    font-weight: 600;
}

p,
a {
    font-size: 1.2em;
    opacity: 0.8;
}

a {
    color: var(--pg-600) !important;
    margin-left: 10px;
}

ul {
    list-style-type: none;
    margin: 0; /* Removes default margin */
    padding: 0; /* Removes default padding */
}

/* Inputs + buttons focus */
.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* Table */
table,
tr,
th {
    border: 1px solid black;
    border-collapse: collapse;
    border-style: hidden;
    background: transparent;
}

/* Floating labels */
.form-floating > .form-control::placeholder,
.form-floating > .form-control-plaintext::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control:focus::placeholder,
.form-floating > .form-control-plaintext:focus::placeholder {
    text-align: start;
}

/* Background image wrapper */
.background-div {
    width: 100%;
    height: 300px;
    background-image: url('');
    background-size: cover;
    background-position: center;
}

/* Sections */
.event-details-view {
    background-color: #696969;
    margin-bottom: 20px;
    padding: 7px;
    background-clip: padding-box;
}

.sightseeing-details-view {
    background-color: #556B2F;
    margin: 7px 0;
    padding: 7px;
    background-clip: padding-box;
}

/* Utilities */
.center-element {
    margin: auto;
    width: 50%;
    padding: 2px;
}

.marginSpaceVertical10px {
    margin: 3px 0px;
    padding: 3px 0px;
}

.m-5 {
    margin: 5px;
}

.p-5 {
    padding: 5px;
}

.psw-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* right align column */
    margin-top: 10px;
}

.psw-container-all-at-one-row {
    display: flex;
    justify-content: flex-end; /* right justify */
    gap: 16px; /* spacing between links */
    width: 100%;
}

/* Collapsible sections */
.collapsible {
    display: flex;
    justify-content: center;
    align-items: center;
    /*gap: 10px;*/
    border-radius: 8px;
    background-color: beige;
    color: #444;
    cursor: pointer;
    margin: 7px auto;
    padding: 8px;
    width: 100%;
    border: none;
    text-align: left;
    font-size: 15px;
}

    .collapsible:hover,
    .collapsible.active {
        background-color: beige;
    }

.active {
    background-color: beige;
}

.content {
    display: none;
    overflow: hidden;
    background: beige;
}

/* Select-based pagination */
.select-page-number {
    height: 30px;
    width: 180px;
}

.select-page-number-previous,
.select-page-number-next {
    height: 30px;
    width: 40px;
}

.button-select-page {
    display: inline-block;
    background-color: white;
    color: black;
    border-radius: 8px;
    transition: background 0.2s;
    text-decoration: none;
}

    .button-select-page:hover {
        background-color: darkgray;
    }

/* Buttons / links */
.button-link {
    display: inline-block;
    padding: 10px 20px;
    background: var(--soft-teal-hover);
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s;
}

    .button-link:hover {
        background: var(--soft-teal-hover);
    }

.link-to-go-back,
.edit-delete-icons {
    margin: 5px;
    padding: 5px;
}

/* Forms & creation pages */
.create-sightseeing {
    width: 300px;
}

.create-sightseeing-image {
    margin: 10px 0;
}

.create-links {
    font-size: 17px;
    font-weight: bold;
}

/* Cards */
.card-location-config,
.card-filter-config {
    margin: 5px;
    padding: 5px;
    background-color: aliceblue;
}

.card-event-config {
    margin: 5px;
    padding: 5px;
    background-color: beige;
}

.event-card,
.location-card {
    background: var(--surface);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 1rem;
    margin-bottom: 1rem;
}

.event-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--pg-700);
}

.location-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--pg-600);
}

/* Filters */
.btn-filter {
    background: var(--pg-300);
    border: none;
    color: var(--pg-700);
    padding: .4rem .9rem;
    border-radius: 20px;
}

    .btn-filter.active {
        background: var(--pg-600);
        color: white;
    }

/* Navbar */

.navbar-brand {
    font-size: 1.1rem;
    color: var(--pg-600);
}

    .navbar-brand img {
        height: 40px;
        width: 40px;
    }

.navbar-nav .nav-link {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

@media (max-width: var(--media-max-width-limit)) {
    /* Responsive typography */
    html {
        font-size: 16px;
    }

    .navbar .nav-link {
        padding: 8px 12px;
    }
}

/* Containers */
.container {
}

/* Images */
img {
    max-width: 100%;
    height: auto;
}

/* Slideshow */
.slideshow-container {
    position: relative;
    margin: 7px auto;
}

.mySlides {
    display: none;
}

.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    user-select: none;
    -webkit-user-select: none; /* Safari */
}

    .prev:hover,
    .next:hover {
        background-color: rgba(0,0,0,0.8);
    }

.prev {
    left: 0;
}

.next {
    right: 0;
}

.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

    .dot:hover,
    .active-slideshow-item {
        background-color: #717171;
    }

@keyframes fade {
    from {
        opacity: 0.4;
    }

    to {
        opacity: 1;
    }
}
