/* Font for the entire body */
body {
    font-family: 'Nunito Sans', sans-serif;
}

/* Brand styling */
.brand {
    font-family: 'Poetsen One', sans-serif;
    font-size: 2.5rem;
    font-weight: 400;
    background: linear-gradient(to right, #151515, #9088d3);
    background-clip: text;
    -webkit-text-fill-color: transparent;
    /* Make text transparent to show gradient */
}

.navbar-brand {
    margin-right: 0;
}

/* Font style for thinner text elements */
.thin {
    font-size: 2.5rem;
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 600;
}

/* Navbar text color */
#navbarText a {
    color: #fff;
    font-weight: 800;
    letter-spacing: 1.5px;
    font-size: x-large;
    text-shadow: 0 0 5px #ff0000, 0 0 7px #0000ff, 0 0 8px #151515;
}

#nav-in a {
    color: #fff;
    font-weight: 800;
    letter-spacing: 1.5px;
    font-size: large;
    text-shadow: 0 0 5px #ff0000, 0 0 7px #0000ff, 0 0 8px #151515;
}

.navbar-toggler {
    background-color: rgba(164, 239, 84, 0.51);
    padding: 0.4rem;
    border-radius: 10px;
}

.comment-icon {
    color: #000 !important;
    border: none;
    background-color: rgb(255, 255, 255, 0.5);
    border-radius: 5px;
    padding: 3px;
}

/* Styling for request headers */
#request h2 {
    font-family: 'Poetsen One', sans-serif;
    font-weight: 200;
    color: #2a36c9;
}

/* Contact page styling */
#contact-pg {
    display: flex;
    flex-direction: column;
    color: #5fbc40;
    background-color: rgba(25, 25, 25, 0.65);
    border-radius: 10px;
    margin: 0.5rem auto;
}

label {
    display: flex;
    padding: 0 0.5rem;
    justify-content: flex-start;
    margin: auto 0;
}

#contact-msg>label {
    margin: 0.7rem 0 0 0;
}

#id_name,
#id_email,
#id_message {
    width: 90%;
    border: #fff;
    border-radius: 5px;
    margin: 0.5rem 0;
    padding: 0.2rem;
}

#contact-name,
#contact-email,
#contact-msg {
    display: flex;
    justify-content: space-between;
    margin: 0 0.1rem 0.2rem 0;
    width: 100%;
}

#contact-name input,
#contact-email input,
#contact-msg textarea {
    width: 100%;
    max-width: 400px;
    padding: 0.8rem;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    margin-right: 1rem;
}

#contact-msg textarea {
    height: 200px;
}

#contact-submit {
    width: auto;
    display: flex;
    justify-content: center;
    margin: 1rem auto;
    padding: 0.7rem 5rem;
}

/* Admin panel button styling */
#btn-adpan {
    background-color: #2f2423;
    border: none;
    color: #1d1f1f;
    opacity: 0.7;
    font-size: medium !important;
}

/* Admin panel button hover and active states */
#btn-adpan:hover,
#btn-adpan:active {
    background-color: #b32927;
    color: #ffffff;
}

/* Main background styling with an image and a fallback color */
.main-bg {
    min-height: 100vh;
    background:
        url('../images/background.jpeg') center center / cover no-repeat,
        #353636;
    /* Solid color underlay */
    padding: 20px 0;
    background-attachment: fixed;
}

/* Card component styling */
.card {
    background-color: rgb(255, 255, 255, 0.8);
    /* Slightly transparent white background */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.edit-comment {
    display: flex;
    align-items: center;
    justify-content: center;
}

#edit-com {
    color: #5fbc40;
    background-color: rgba(25, 25, 25, 0.65);
    border-radius: 10px;
    margin: 0.5rem auto;
}

#edit-com-btn {
    width: auto;
    display: flex;
    justify-content: center;
    margin: 1rem auto;
    padding: 0.7rem 5rem;
}

/* Transparent background utility class */
.transparent-bg {
    background-color: transparent;
}

/* Card body padding */
.card-body {
    padding: 20px;
}

/* Hides form labels */
.form-label {
    display: none;
}

/* Image container styling */
.image-container {
    position: relative;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
}

/* Flash message styling inside images */
.image-flash {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 5px;
    border-radius: 5px;
}

/* Image scaling */
.scale {
    width: 100%;
    height: auto;
}

/* Author text styling */
.author {
    color: white;
    margin: 4px;
    text-transform: uppercase;
}

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

/* Masthead text styling */
.masthead-text {
    background-color: #445261;
    color: white;
    position: relative;
}

/* Masthead image container styling */
.masthead-image {
    position: relative;
    overflow: hidden;
}

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

/* Post link styling */
.post-link {
    text-decoration: none;
    color: #445261;
}

/* Post link hover and page link styling */
.post-link:hover,
.page-link {
    color: #0e9585;
}

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

/* Post subtitle styling */
.post-subtitle {
    margin-left: 5%;
    color: lightgray;
}

.post-pad {
    margin-bottom: 0.6rem;
}

/* Signup and edit button styling */
.btn-signup,
.btn-edit,
.btn-page {
    background-color: #188181;
    color: #fff;
}

/* Signup button hover and active states */
.btn-signup:hover,
.btn-signup:active,
.btn-page:hover,
.btn-page:active {
    background-color: #fff;
    color: #23BBBB;
}

.btn-page {
    text-decoration: none;
    border-radius: 5px;
    padding: 0.5rem;
    margin: 0.7rem;
}

/* Link styling */
.link {
    color: #23BBBB;
    text-decoration: none;
}

/* Link hover and active states */
.link:hover,
.link:active {
    color: #445261;
    text-decoration: underline;
}

/* Delete button styling */
.btn-delete {
    color: #fff;
    background: #c92926;
}

/* Delete button hover and active states */
#btn-delete:hover,
#btn-delete:active {
    color: #1d1f1f;
}

/* Profile image border radius */
#prof-img img {
    border-radius: 20px;
    width: 80%;
    height: auto;
    margin-bottom: 1rem;
}

/* User page styling */
.user-pg {
    color: #3ce603;
    background-color: rgba(25, 25, 25, 0.65);
    border-radius: 10px;
    margin: 0.5rem auto;
}

/* About page styling */
.about-pg {
    color: #5fbc40;
    background-color: rgba(46, 46, 46, 0.65);
    border-radius: 10px;
}

.text-end em {
    background-color: rgb(255, 255, 255, 0.5);
    border-radius: 3px;
    padding: 3px 1px;
}

/* Login page styling */
.log-pg {
    color: #3ce603;
    background-color: rgba(25, 25, 25, 0.65);
    border-radius: 10px;
}

/* Login message margin */
.log-msg {
    margin-top: 1rem;
}

/* Gallery card styling */
.pic {
    border-radius: 10px;
}

.arrow-back {
    background-color: rgba(16, 1, 1);
    padding: 0.8rem 0.1rem;
    display: flex;
    align-items: center;
    border-radius: 5px;
}

.carousel-item {
    transition: transform 4s ease-in-out;
}

footer a {
    text-decoration: none;
    color: #fff;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-links a:hover,
.social-links a:focus-visible {
    outline: none;
    transform: scale(3);
    color: #eae333;
}

.error-pg {
    background-color: rgba(25, 25, 25, 0.4);
    border-radius: 10px;
    padding: 1.5rem;
}

/* Media Queries */

/* Adjustments for small and medium-sized devices */
@media (max-width: 768px) {
    .user-pg {
        width: 50%;
    }

    .about-pg {
        width: 90%;
    }

    .col-12.col-md-8.about-pg.mx-auto {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

@media (min-width: 1200px) {

    #contact-name input,
    #contact-email input,
    #contact-msg textarea {
        margin-right: 2rem;
        margin-left: 0.8rem;
    }

    #contact-name,
    #contact-email,
    #contact-msg {
        margin-right: 0.6rem;
        margin-left: 1rem;
    }
}

@media (min-width: 1450px) {

    #contact-name,
    #contact-email,
    #contact-msg {
        margin-right: 2rem;
        margin-left: 2rem;
    }

    #contact-name input,
    #contact-email input,
    #contact-msg textarea {
        max-width: 600px;
        margin-right: 3rem;
        margin-left: 0.8rem;
    }
}