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

body {
    font-family: 'Raleway', sans-serif;
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100vw;
    background-color: #f2ede3;
}

.landing-header {
    display: flex;
    flex-direction: row;
    height: 15%;
    width: 100%;
    justify-content: space-between;
}

.logo-container {
    display: flex;
    flex-direction: row;
    width: 50%;
    margin: 18px 0 0;
}

.logo-container a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    padding: 15px;
    border-radius: 10px;
    transition: box-shadow 0.3s, transform 0.2s;
}

.logo-container a:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    background-color: rgba(255, 255, 255, 0.05);
}

.logo-container a h1 {
    color: black;
    font-size: 1.4em;
    margin: 0;
    font-weight: 700;
    text-decoration: none;
}

.sphere-icon {
    width: 1.4em;
    height: 1.4em;
    background-repeat: no-repeat;
    background-size: contain;
    margin-right: 5px
}

.landing-image {
    background-image: url('https://images.unsplash.com/photo-1488521787991-ed7bbaae773c?q=80&w=1170&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
    height: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    margin: 0 0 0 -8px;
}

.auth-links,
.nav-links {
    margin: 25px 30px;
}

.auth-links>a {
    color: white;
    padding: 10px 25px;
    border-radius: 10px;
    text-decoration: none;
    margin: 0 10px;
    font-weight: bold;
}

.auth-links>a:first-child {
    background-color: #9e856b;
}

.auth-links>a:first-child:hover {
    background-color: black;
    color: white;
}

.auth-links>a:nth-child(2) {
    background-color: #9e856b;
}

.auth-links>a:nth-child(2):hover {
    background-color: black;
    color: white;
}

.nav-links>a {
    text-decoration: none;
    margin: 0 15px;
    font-weight: bold;
    color: black;
}

.nav-links>a:hover {
    color: #bfa78a;
    text-decoration: none;
}

.signup-page,
.signin-page {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    height: 90%;
}

.signup-form-container-1,
.signin-form-container-1 {
    width: 60%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.signup-form-container-2,
.signin-form-container-2 {
    padding: 50px 30px 50px;
    border: 1px solid gray;
    max-width: 350px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.signup-form-container-2>h1,
.signin-form-container-2>h1 {
    font-weight: normal;
    text-transform: uppercase;
    font-size: 1.5em;
}

.signup-form-container-2>form,
.signin-form-container-2>form {
    display: flex;
    flex-direction: column;
}

.signup-form-container-2 button {
    width: 16em;
    align-self: flex-start;
}

label {
    font-size: 1em;
}

input {
    border: 1px solid rgb(190, 190, 190);
    border-radius: 10px;
    margin: 10px 0;
    width: 15em;
    padding: 5px;
    font-size: 1em;
}

button {
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    background-color: #9e856b;
    padding: 7px 15px;
    margin: 10px 0;
    font-size: 1em;
}

button:hover {
    background-color: black;
}

.signup-img {
    background-image: url('https://images.unsplash.com/photo-1578357078586-491adf1aa5ba?q=80&w=764&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
    min-height: 110vh;
    background-size: cover;
    background-repeat: no-repeat;
    width: 40%;
    position: relative;
    z-index: -10;
}

.signin-img {
    background-image: url('https://images.unsplash.com/photo-1578357078586-491adf1aa5ba?q=80&w=764&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
    min-height: 110vh;
    background-size: cover;
    background-repeat: no-repeat;
    width: 40%;
    position: relative;
    z-index: -10;
    left: -10px;
}

.index-container {
    width: 80%;
    max-width: 800px;
    text-align: center;
}

.index-container h1 {
    color: black;
    margin: 5px auto;
}

.index-container p {
    padding-bottom: 10px;
}

.card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.card-container li h4 {
    margin-bottom: 10px;
    color: #3e3327;
}

.card-container li a {
    display: inline-block;
    text-decoration: none;
    background-color: #9e856b;
    color: white;
    padding: 8px 15px;
    border-radius: 8px;
    font-weight: bold;
    transition: background-color 0.2s;
}

.card-container li a:hover {
    background-color: black;
}

.card-container a {
    display: inline-block;
    text-decoration: none;
    background-color: #9e856b;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: bold;
    transition: background-color 0.2s;
    min-width: 220px;
    text-align: center;
    box-sizing: border-box;
}

.card-container a:hover {
    background-color: black;
}

.dashboard {
    width: 80%;
    max-width: 900px;
    margin: 30px auto;
    text-align: center;
    font-family: 'Raleway', sans-serif;
}

.dashboard h1 {
    color: black;
    margin: 0 auto;
    margin-bottom: 30px;
}

.dashboard h2 {
    color: #5a4e42;
    margin-top: 60px;
    margin-bottom: 20px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 5px;
}

.dashboard h3 {
    color: #3e3327;
    margin-top: 20px;
    margin-bottom: 10px;
}

.dashboard h4 {
    color: #9e856b;
    margin-top: 10px;
    margin-bottom: 5px;
    padding-left: 5px;
    text-align: left;
}

.dashboard h4 a {
    text-decoration: none;
    color: black;
    transition: color 0.2s;
}

.dashboard h4 a:hover {
    color: #9e856b;
    text-decoration: none;
}

.dashboard p {
    background-color: #fff8f0;
    padding: 15px 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    color: #3e3327;
    text-align: left;
}

.dashboard p a {
    color: black;
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 700;
}

.dashboard p a:hover {
    color: #9e856b;
    text-decoration: none;
}

.dashboard .section {
    margin-bottom: 30px;
}

.new-edit-container {
    width: 80%;
    max-width: 700px;
    margin: 30px auto;
    padding: 20px;
    background-color: #fff8f0;
    border-radius: 15px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    font-family: 'Raleway', sans-serif;
}

.new-edit-container h1 {
    color: black;
    margin-bottom: 25px;
}

.new-edit-container form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.new-edit-container label {
    width: 100%;
    text-align: left;
    font-weight: bold;
    padding-left: 5px;
    margin-top: 15px;
    margin-bottom: 5px;
    color: #3e3327;
}

.new-edit-container input,
.new-edit-container textarea,
.new-edit-container select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    margin-top: 5px !important;
    margin-bottom: 10px;
    font-size: 1em;
    font-family: inherit;
    box-sizing: border-box;
}

.new-edit-container textarea {
    resize: vertical;
    min-height: 80px;
}

.new-edit-container button {
    background-color: #9e856b;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1em;
    cursor: pointer;
    margin-top: 20px;
    transition: background-color 0.2s;
}

.new-edit-container button:hover {
    background-color: black;
}

.show-container {
    width: 80%;
    max-width: 900px;
    margin: 50px auto;
    padding: 25px;
    background-color: #fff8f0;
    border-radius: 15px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    font-family: 'Raleway', sans-serif;
}

.show-container h1 {
    color: black;
    margin-bottom: 25px;
}

.show-container h2 {
    color: #5a4e42;
    margin-bottom: 25px;
}

.show-container h3 {
    color: #5a4e42;
    margin-top: 20px;
    margin-bottom: 10px;
    font-style: italic;
}

.show-container p {
    background-color: #fff8f0;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    text-align: left;
    color: #3e3327;
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.05);
}

.show-container ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 20px 0;
}

.show-container ul li {
    background-color: #fff8f0;
    padding: 12px 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.05);
}

.show-container a {
    display: inline-block;
    text-decoration: none;
    background-color: #9e856b;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: bold;
    margin: 10px 5px 20px 5px;
    transition: background-color 0.2s;
}

.show-container a:hover {
    background-color: black;
}

.show-container button:hover {
    background-color: black;
}

.show-container form textarea {
    min-height: 120px;
    font-size: 1.1em;
    width: 54%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    resize: vertical;
}

.title {
    font-weight: 700;
    color: #3e3327;
}

.profile-actions {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    align-items: center;
}

.profile-actions form {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.profile-actions .action-button {
    margin: 0 5px;
}

.view-details {
    padding: 5px 12px;
    font-size: 0.9em;
    border-radius: 6px;
}

.org-heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 35px;
    gap: 25px;
}

.action-button,
.action-button {
    display: inline-block;
    background-color: #9e856b;
    color: white;
    border: none;
    padding: 10px 0;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.2s;
    font-family: 'Raleway', sans-serif;
    font-size: 1em;
    box-sizing: border-box;
}

.action-button {
    width: 100px;
}

.action-button-new {
    width: 110px;
}

.org-link {
    text-decoration: none;
    color: #9e856b;
    display: inline-block;
    width: 100%;
    padding: 10px 0;
    border-radius: 8px;
    font-weight: bold;
    transition: background-color 0.2s;
}

.org-link:hover {
    color: black;
}

.action-button:hover,
.org-button:hover {
    background-color: black;
}

.index-container {
    text-align: center;
    margin: 20px auto;
}

a.action-button {
    display: inline-block;
    margin-top: 25px;
}

.listing-org-card {
    background-color: #fff8f0;
    border-radius: 10px;
    padding: 30px 40px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 15px;
}

.listing-org-card h3 {
    margin: 5px 5px 15px 5px;
    font-weight: bold;
    color: #3e3327;
}

.listing-org-card p {
    margin: 0 0 10px 0;
    color: #3e3327;
    font-size: 14px;
}

.listing-org-card .view-details {
    text-decoration: none;
    background-color: #9e856b;
    color: white;
    padding: 10px 28px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1em;
    transition: background-color 0.2s;
    width: 180px;
    text-align: center;
    display: inline-block;
    margin-top: 5px;
}

.listing-org-card .view-details:hover {
    background-color: black;
}

.card-message {
    color: #3e3327;
    margin-top: 20px;
    background-color: #fff8f0;
    border-radius: 10px;
    padding: 30px 40px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    width: 400px;
    margin-bottom: 15px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 60px;
}

.comment-card {
    color: #3e3327;
    margin-top: 20px;
    background-color: #fff8f0;
    border-radius: 10px;
    padding: 30px 40px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    width: 400px;
    margin-bottom: 15px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 60px;
}

.comment-card form.edit-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.edit-form textarea[name="content"] {
    min-height: 120px;
    width: 100%;
    font-size: 1.1em;
    padding: 14px;
    border-radius: 8px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    resize: vertical;
}

.comment-actions {
    display: flex;
    flex-direction: row;
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
}

.back-button {
    display: inline-block;
    background: none;
    color: #9e856b;
    padding: 0;
    border-radius: 0;
    font-weight: bold;
    text-decoration: underline;
    transition: color 0.2s, text-decoration 0.2s;
    margin-bottom: 20px;
    margin-left: 20px;
    border: none;
    text-decoration: none;
}

.back-button:hover {
    color: black;
    text-decoration: none;
    background: none;
}

@media (max-width: 600px) {
    body {
        width: 100vw;
        padding: 0;
        margin: 0;
    }

    .landing-header {
        flex-direction: column;
        align-items: stretch;
        height: auto;
        padding: 0 0 10px 0;
    }

    .logo-container {
        width: 100%;
        justify-content: center;
        margin: 10px 0 0 0;
        padding: 0;
        flex-direction: column;
        align-items: center;
    }

    .logo-container a {
        justify-content: center;
        width: 100%;
        padding: 10px 0;
    }

    .nav-links,
    .auth-links {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        margin: 0;
        padding: 0 10px;
        width: 100%;
        gap: 8px;
    }

    .nav-links>a,
    .auth-links>a {
        width: 100%;
        margin: 0;
        padding: 12px 0;
        text-align: center;
        border-radius: 0;
        border-bottom: 1px solid #e0d6c6;
        background: none;
        color: black;
        font-size: 1.1em;
    }

    .nav-links>a:last-child,
    .auth-links>a:last-child {
        border-bottom: none;
    }

    .nav-links>a:hover,
    .auth-links>a:hover {
        background: #f2ede3;
        color: #9e856b;
    }

    .index-container,
    .show-container,
    .new-edit-container,
    .dashboard {
        width: 98vw;
        max-width: 100vw;
        padding: 10px;
        margin: 10px auto;
    }

    .card-container {
        flex-direction: column;
        gap: 10px;
        margin-top: 10px;
    }

    .listing-org-card,
    .comment-card,
    .card-message {
        width: 95vw;
        min-width: unset;
        padding: 15px 5px;
    }

    .show-container form textarea,
    .edit-form textarea[name="content"] {
        width: 100%;
        min-width: 0;
    }

    .profile-actions,
    .comment-actions {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }

    .action-button,
    .action-button-new,
    .org-link,
    .show-container a {
        width: 100%;
        min-width: unset;
        margin: 8px 0;
        box-sizing: border-box;
    }

    .org-heading {
        gap: 10px;
    }
}