/*-----------------------------------------------------  General Styles */
body {
    height: 100vh;
    background-color: #1d6347;
}
.display-1 {
    font-weight: bold;
}

.display-4 {
    font-weight: bold;
}
/*------------------------------------------------------- Navbar Styles */
#navbar {
    background-color: #212529;
    border-bottom: 2px solid #ff3c38;
}

.navbar-brand {
    color: #6c8ead;
    font-weight: bold;
    letter-spacing: 1px;
    transition: color 0.2s ease-in-out, border 0.2s ease-in-out;
}
.navbar-brand:hover {
    color: #ff3c38;
}
.nav-link {
    color: #6c8ead;
    letter-spacing: 1px;
    transition: color 0.3s ease-in-out, border 0.3s ease-in-out;
}
.nav-link:hover {
    color: #ff3c38;
}
.navbar-nav .nav-link.active {
    color: #ff3c38;
    text-decoration: underline;
}

.navbar-toggler {
    border: 2px solid #ff3c38;
    background-color: #1d6347;
}

.navbar-toggler-icon {
    color: #ff3c38;
}

/* ----------------------------------------------------- Home Page Logged In */

#header {
    background-color: #fff275;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 5px 5px rgba(0, 0, 0);
}

#header h1 {
    text-decoration: underline;
}

#container {
    background-color: #ff3c38;
    padding: 5px 45px 20px;
    border-radius: 10px;
    border: 4px solid black;
    ;
    box-shadow: 10px 10px rgba(0, 0, 0, 0.52);
}

.btn-outline-secondary {
    background-color: #6c8ead;
    color: #212529;
    font-weight: bold;
    border: 4px solid black;
    letter-spacing: 1px;
    border-radius: 50%;
    height: 80px;
    width: 80px;
}

.btn-outline-secondary:hover {
    background-color: #1d6347;
    color: #fff275;
    border: 4px solid black;
}
/* -------------------------------------------------------- Home Page Logged Out */
.orange-title {
    color: #ff3c38;
    border-bottom: 3px solid #ff3c38;
}

.yellow-background {
    background-color: #fff275;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 5px 5px rgba(0, 0, 0, 0.52);
}

.large {
    font-size: 1.7rem;
    font-weight: 400;
}

.bold {
    font-weight: 700;
}

.home-btn {
    min-height: 45px;
    min-width: 125px;
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.btn-register {
    background-color: #ff7738;
}

.btn-register:hover {
    background-color: #ff3c38;
    color: white;
}

.btn-login {
    background-color: #6c8ead;
}

.btn-login:hover {
    background-color: #ff3c38;
    color: white;
}

/* ------------------------------------------------------------ Alert Messages */
.success {
    color: #333;
    font-weight: bold;
    background-color: #3de04d;
    border: 4px solid #333;
}
.error {
    color: #333;
    font-weight: bold;
    background-color: #ff3c38;
    border: 4px solid #1d6347;
}
/* Alert message for no cards on homescreen */
.alert.alert-warning {
    color: black;
    border: 4px solid black;
}

/*---------------------------------------------------------------- About Page */
hr {
    border: 3px solid #212529;
    opacity: 0.75;
    width: 75%;
}

.btn-about {
    background-color: #ff7738;
    border: 3px solid #333;
    font-weight: 600;
    color: #333;
}
.btn-about:hover {
    background-color: #6c8ead;
    border: 3px solid #333;
}
/* ------------------------------------------------------------------- Card Styling */
/* Tweak card styling for home page */
.card.card-home {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

/* Card styling for user-card page */

/* Negative margin to ensure Chaos Cards intro text-box and card container are aligned horizontally when screen size is > 768px and 'no-card' message appears */

#card-container {
    margin-top: -20px;
}
.card-mb {
    margin-bottom: 3rem;
}
.card {
    background-color: #fff275;
    width: 18rem;
    margin-bottom: 1.5rem;
    box-shadow: 5px 5px rgba(0, 0, 0, 0.52);
    border: 3px solid #1d6347;
}

.card-body {
    border-top: 2px solid #333;
}
.card-title {
    font-size: 1.4rem;
    font-weight: bold;
}

/* ---------------------------------------------- Footer Styles */

#footer {
    background-color: #212529;
    width: 100%;
    border-top: 2px solid #ff3c38;
}

/* Layout styling */

#footer ul {
    list-style-type: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 0;
    min-width: 10rem;
}

/* Visual styling */
#footer ul a {
    color: #6c8ead;
    font-size: 2rem;
    transition: color 0.3s ease-in-out, border 0.3s ease-in-out;
}

#footer ul a:hover {
    color: #ff3c38;
}

#footer ul a:active {
    border: 2px dashed #ff3c38;
    padding: 10px;
    border-radius: 20%;
}

#footer p {
    margin-bottom: 0.5rem;
    color: #6c8ead;
}

#footer .copyright {
    margin-bottom: 1rem;
}

/* Override Bootstrap styling which was preventing copyright info and social links spacing */
#footer .row>* {
    flex-shrink: 1;
    width: auto;
}

/* Text Styling */
.large-text {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.2;
}

.copyright {
    font-size: small;
}


/* ----------------------------------------------------------- My Cards page */
#user-cards .card {
    min-height: 364px;
}

#form-body {
    /* background-color: #6c8ead; */
    background-color: #fff275;
    border-radius: 10px;
    padding: 15px;
    border: 4px solid #212529;
}

/* JavaScript Class to focus on Edit Card Form */
.focus {
    border: 4px solid #1d6347 !important;
    border-radius: 10px;
    box-shadow: 0px 0px 20px 10px #6c8ead;
    padding: 15px;
    transition: all 0.3s ease-in-out;
}

#submit-btn {
    background-color: #ff7738;
    border: 3px solid black;
    color: black;
    font-weight: 500;
}
#submit-btn:hover {
    background-color: #fff275;
    color: black;
    border: 3px solid black;
}
.edit-btn {
    background-color: #6c8ead;
    border: 3px solid #333;
    color: #333;
    font-weight: 500;
}
.edit-btn:hover {
    background-color: #ff7738;
    color: white;
    border: 3px solid black;
}
.delete-btn {
    background-color: #ff3c38;
    border: 3px solid black;
    color: black;
    font-weight: 500;
}
.delete-btn:hover {
    background-color: #fff275;
    color: black;
    border: 3px solid black;
}

/* ----------------------------------------------------------- Registration Page */

.btn-signup {
    background-color: #fff275;
    color: #333;
    font-weight: 550;
    border: 3px solid #333;
}
.btn-signup:hover {
    background-color: #1d6347;
    border: 3px solid #333;
    color: white;
}

.auth-yb {
    background-color: #ff7738;
    border-radius: 10px;
    box-shadow: 5px 5px rgba(0, 0, 0, 0.52);
    padding: 20px;
}

.link {
    color: #3de04d;
    font-weight: bold;
    text-decoration: none;
}
.link:hover {
    color: #fff275;
    text-decoration: underline;
}

/* ------------------------------------------------------------------ About Page */

.about-content {
    background-color: #fff275;
    border-radius: 10px;
    box-shadow: 5px 5px rgba(0, 0, 0, 0.52);
}
.feedback-form {
    background-color: #fff275;
    border-radius: 10px;
    box-shadow: 5px 5px rgba(0, 0, 0, 0.52);
    padding: 20px;
}

/* ------------------------------------------------------------------- Media Queries */

/* Remove negative margin when elements stack vertically to ensure space between them */

@media screen and (max-width: 768px) {
    #card-container {
        margin-top: 0px;
    }
    /* Add space between nav and header */
    #header {
        margin-top: 0.5rem;
    }
}

/* Home page. Ensure card container doesn't exceed screen-width on screen-sizes < 425px */

@media screen and (max-width: 425px) {
    #container {
        max-width: 100%;
        padding: 0px 25px 15px;
    }
    #demo-card {
        max-width: 100%;
    }
    #card-container {
        margin-bottom: 2rem;
    }
}
