/* Main CSS Styles */
@import url('https://fonts.googleapis.com/css2?family=Autour+One&family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=League+Gothic&family=Lexend+Deca:wght@100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    margin: 0;
}

html {
    font-size: 16px;
    overflow-y: scroll;
}

body {
    display: flex;
    flex-direction: column;
    font-family: 'Lexend Deca', sans-serif;
    line-height: 145%;
    font-size: 16px;
    font-size: 1rem;
    background-color: var(--main-background);
}

h1,
h2,
h3 {
    color: var(--main-hex);
    font-weight: bold;
    padding-bottom: 20px;
}

h1 {
    font-family: "League Gothic", sans-serif;
    font-size: 2.813rem;
    line-height: 2.3rem;
    padding-bottom: 20px;
}

.followers,
h2 {
    font-family: "League Gothic", sans-serif;
    font-size: 2.25rem;
    font-family: "League Gothic", serif;
    font-weight: 500;
    line-height: 2rem;
    letter-spacing: .1rem;
}

h3 {
    font-size: 1.4rem;
    line-height: 1.4rem;
}

h6 {
    color: var(--main-hex);
    font-family: 'Lexend Deca', sans-serif;
}

input,
select,
textarea,
button {
    font-family: inherit;
    font-size: 1rem;
    border-radius: var(--border-radius-input);
}

textarea {
    padding: .8rem;
}

input[type=checkbox],
input[type=radio],
input[type=range],
progress {
    accent-color: var(--main-hex);
}

input[type="submit"] {
    background-color: var(--main-hex);
    border: 0px;
    padding: 10px 20px;
    color: #FFFFFF;
    font-weight: bold;
    cursor: pointer;
}

a,
input[type="submit"],
button {
    cursor: pointer;
}

.link_as_button,
input[type="submit"],
button {
    border: 1px solid var(--main-hex);
    transition: var(--transition-time);
}

.link_as_button:hover,
input[type="submit"]:hover,
button:hover,
#login_form input[type="submit"]:hover,
#login_form button:hover,
#form input[type="submit"]:hover,
#form button:hover {
    /* background-color:transparent;
    color: var(--main-hex);
    text-decoration: none;
    text-decoration: underline; */

    color: var(--main-hex);
}

a {
    color: var(--background-hex);
    font-size: inherit;
    text-decoration: none;
    font-family: 'DM Sans', sans-serif;
    margin: .8rem;
}

/* a:hover {
	text-decoration: underline;	
} */

aside {
    border-radius: var(--border-radius-panel);
    border: #000000 solid .1rem;
    width: 30%;
    min-height: 30vh;
    height: auto;
    background-color: white;
    border: solid var(--main-hex) .1rem;
    border-radius: .5rem;
    align-self: flex-start;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: flex-start;
    gap: .8rem;

    &.padded {
        padding: 20px;
    }
}

#container {
    width: 100%;
    /* padding-top: 60px; */
}

/* -------------------------------------------------------------------------- */
/*                                    ICONS                                   */
/* -------------------------------------------------------------------------- */
.sidebar-icon.home,
.sidebar-icon-small.home {
    content: '';
    display: block;
    background-color: currentColor;
    mask-image: url(../img/home-icon.svg);
    mask-size: contain;
    mask-repeat: no-repeat;
}

.sidebar-icon.search,
.sidebar-icon-small.search {
    content: '';
    display: block;
    background-color: currentColor;
    mask-image: url(../img/search3-icon.svg);
    mask-size: contain;
    mask-repeat: no-repeat;
}

.sidebar-icon.explore,
.sidebar-icon-small.explore {
    content: '';
    display: block;
    background-color: currentColor;
    mask-image: url(../img/location3-icon.svg);
    mask-size: contain;
    mask-repeat: no-repeat;
}

.sidebar-icon.notif,
.sidebar-icon-small.notif {
    content: '';
    display: block;
    background-color: currentColor;
    mask-image: url(../img/bell-icon.svg);
    mask-size: contain;
    mask-repeat: no-repeat;
}

.sidebar-icon.msg,
.sidebar-icon-small.message {
    content: '';
    display: block;
    background-color: currentColor;
    mask-image: url(../img/message-icon.svg);
    mask-size: contain;
    mask-repeat: no-repeat;
}

.sidebar-icon.setting,
.sidebar-icon-small.settings {
    content: '';
    display: block;
    background-color: currentColor;
    mask-image: url(../img/gear-icon.svg);
    mask-size: contain;
    mask-repeat: no-repeat;
}

.sidebar-icon.post-btn {
    content: '';
    display: block;
    background-color: currentColor;
    mask-image: url(../img/plus-icon.svg);
    mask-size: contain;
    mask-repeat: no-repeat;
}

.custom-file-upload.img-icon {
    content: '';
    display: block;
    background-color: currentColor;
    mask-image: url(../img/img-icon.svg);
    mask-size: contain;
    mask-repeat: no-repeat;
}

.wrt-post-icon.plus {
    content: '';
    display: block;
    background-color: currentColor;
    color: currentColor;
    mask-image: url(../img/plus-icon.svg);
    mask-size: contain;
    mask-repeat: no-repeat;
}

.wrt-post-icon.close {
    content: '';
    display: block;
    background-color: currentColor;
    mask-image: url(../img/close-icon.svg);
    mask-size: contain;
    mask-repeat: no-repeat;
}

/* -------------------------------------------------------------------------- */
/*                                   HEADER                                   */
/* -------------------------------------------------------------------------- */

header {
    width: 100%;
    height: 100px;
    padding: 20px;
    background-color: var(--background-hex);
    color: var(--main-hex);
    border-bottom: 1.5px solid var(--main-hex);
    /*var(--border-hex);*/
    display: flex;
    justify-content: space-between;
    align-items: center;

    position: fixed;
    top: 0;
    z-index: 1000;

}

#search_box {
    display: flex;
    justify-content: space-between;
    align-items: center;

    height: 3rem;
    width: 30rem;

    background-color: #FFFFFF;
    color: var(--main-hex);
    border: 1.5px solid var(--main-hex);
    border-radius: var(--border-radius-input);

    margin-right: 20px;
    padding: 0.5rem;
}

#search_box input[type="search"] {
    width: 26rem;

    color: var(--main-hex);
    border: 0px;
    border-radius: 0;
    outline: 0;

    padding: 5px;
    margin-right: 1rem;
}

#search_box button {
    background-color: transparent;
    color: var(--main-hex);
    border: 0px;
    font-size: 1.2rem;
}

#search_box_map {
    width: 15%;
    height: 10%;
    display: flex;
    background-color: transparent;
    justify-content: space-between;
    align-items: center;
    border: 1.5px solid var(--main-hex);
    border-radius: var(--border-radius-input);
    margin-left: 85rem;
}


#search_box_map input[type="search"],
#search_box_map input[type="search"] {
    color: var(--main-hex);
    border: 0px;
    padding: 1px;
}

#search_box button,
#search_box_map button {
    background-color: transparent;
    color: var(--main-hex);
    border: 0px;
    font-size: 1.2rem;
}

.logo {
    font-family: "Autour One", sans-serif;
}

.header-logo {
    display: flex;
    justify-content: center;
    align-content: center;
    align-items: center;
    width: fit-content;
    height: auto;
    flex-direction: column;
    text-align: center;
    padding-left: 8rem;
}

header .left {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    align-content: center;
    margin: 1rem;
}

.theheader-logo {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.headerlogo {
    height: 2.5rem;
}

header .logo {
    color: var(--main-hex);
    width: 15rem;
    margin-left: 20px;
    font-size: 2rem;
    font-weight: bold;
    text-decoration: none;
}

header .logo:hover {
    color: var(--accent-hex);
}

header a {
    margin: 0;
}

.headericon {
    padding: 0 0 0 1rem;
}

header .left nav a {
    color: var(--main-hex);
    text-decoration: none;
    margin-right: 20px;
}

header .left nav a:hover {
    text-decoration: underline;
}

/* -------------------------------------------------------------------------- */
/*                                  DROPDOWN                                  */
/* -------------------------------------------------------------------------- */

/* Dropdown Button */
.dropbtn {
    color: var(--main-hex);
    background-color: transparent;
    padding: 16px;
    font-size: 16px;
    border: none;
}

/* The container <div> - needed to position the dropdown content */
.dropdown {
    position: relative;
    display: inline-block;
    margin-right: 20px;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--background-hex);
    border: 1.5px solid var(--main-hex);
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
    font-family: "DM Sans", sans-serif;
}

/* Links inside the dropdown */
.dropdown-content a {
    color: var(--main-hex);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-family: "DM Sans", sans-serif;
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {
    background-color: #ddd;
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
    display: block;
}

/* Change the background color of the dropdown button when the dropdown content is shown */
.dropdown:hover .dropbtn {
    background-color: #DD6264;
}

/* -------------------------------------------------------------------------- */
/*                                   FOOTER                                   */
/* -------------------------------------------------------------------------- */

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2rem;
    background-color: var(--background-hex);
    color: var(--main-hex);
    border-top: 1.5px solid var(--main-hex);
    display: flex;
    align-items: center;
    justify-content: left;
    margin: 0;
    padding: 0 20px;

    a {
        color: var(--main-hex);
        font-size: inherit;
        text-decoration: none;
        font-family: 'DM Sans', sans-serif;
        margin: 1rem;
    }
}

.footer-icons {
    position: fixed;
    bottom: 0;
    right: 10px;
    padding: 20px 20px;
    border-radius: 20px 20px 0 0;

    img {
        width: 4rem;
        height: 4rem;
    }
}

/* -------------------------------------------------------------------------- */
/*                                    POST CSS                                */
/* -------------------------------------------------------------------------- */
/* 
#post_creator {
    margin-bottom: 20px;
    position: relative;
} */

#post_blackout {
    display: none;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0px;
    left: 0px;
    background-color: var(--main-hex-a);
    color: #FFFFFF;
    font-weight: bold;
    text-align: center;
    font-size: 2rem;
}

.follow_button {
    background-color: var(--main-hex);
    border: 0px;
    color: #FFFFFF;
    font-weight: bold;
    padding: 10px 20px;
    padding-left: 50px;
    font-size: 1.1em;
    background-size: contain;
    background-position: 5px center;
    background-repeat: no-repeat;
    display: block;
    margin: 10px auto;
}

.post_block .row_full .follow_button {
    margin: 0px;
}

.follow_button.follow_user {
    background-image: url("../img/follow-icon.png");
}

.follow_button.following_user {
    background-image: url("../img/following-icon.png");
}

.like_button {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0;
    color: var(--main-hex);
}

.favorite_button {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0;
    color: var(--main-hex);
}

.post_block .row_full .like_button,
.favorite_button {
    margin: 0px;
}

.like_button.like_post {
    content: '';
    display: block;
    background-color: currentColor;
    mask-image: url(../img/like-icon.svg);
    mask-size: contain;
    mask-repeat: no-repeat;
}

.like_button.unlike_post {
    content: '';
    display: block;
    background-color: currentColor;
    mask-image: url(../img/liked-icon.svg);
    mask-size: contain;
    mask-repeat: no-repeat;
}

.favorite_button.like_post {
    content: '';
    display: block;
    background-color: currentColor;
    mask-image: url(../img/favourite_line_icon.svg);
    mask-size: contain;
    mask-repeat: no-repeat;
}

.favorite_button.unlike_post {
    content: '';
    display: block;
    background-color: currentColor;
    mask-image: url(../img/favourite_filled_icon.svg);
    mask-size: contain;
    mask-repeat: no-repeat;
}

.link_as_button {
    background-color: var(--main-hex);
    /*border: 0px;*/
    padding: 10px 20px;
    color: #FFFFFF;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    margin-top: 20px;
    border-radius: var(--border-radius-input);
}

main#profile .page_pane {
    width: 70%;
    padding-right: 20px;
}

.post_block {
    width: 100%;
    padding-bottom: 20px;
}

.post_viewer {
    width: 95%;
    border-bottom: 1px solid var(--border-hex);
    padding-bottom: 1.5rem;
    margin-bottom: 0px;
}

.post_block .row {
    display: flex;
    width: 100%;
    align-items: flex-start;
    align-content: center;
    justify-content: center;
}

.post_block .row_full {
    display: flex;
    width: 100%;
    justify-content: space-between;
}

.post_block .row.right {
    justify-content: right;

}

/* .post_block img.avatar {
    display: block;
    object-fit: cover;
    width: 5rem;
    border-radius: 100%;
    height: 5rem;
    margin-right: 1rem;
} */

/* .post_block img.attachment {
    width: 100%;
    height: auto;
    margin-top: 10px;
} */

.post_content {
    width: 100%;
}

.post_content p {
    margin-top: 10px;
    width: 100%;
    clear: both;

}

.post_content a {
    color: var(--main-hex);
    text-decoration: none;
}

.post_content a:hover {
    text-decoration: underline;
}

.post_content a.user_name {
    font-weight: bold;
    font-size: 1.4rem;
    margin: 0;
}



.post_composer {
    width: 100%;
    border-bottom: 1px solid var(--border-hex);
    padding-bottom: 20px;
    margin-bottom: 0px;
}

.post_composer .row {
    display: flex;
    width: 100%;
    /*align-items: stretch;*/
}

.post_composer .row.right {
    justify-content: space-between;
    align-items: center;
    align-content: center;
}

.post_composer img {
    display: block;
    object-fit: cover;
    width: 6.3rem;
    border-radius: 100%;
    height: 100%;
}

.post_composer textarea {
    width: 100%;
    resize: vertical;
    min-height: 100px;
    border: 1px solid var(--border-hex);
    align-self: stretch;
    margin-left: 20px;
}

.post_composer .file {
    width: 100%;
    margin-top: 20px;
    margin-right: 20px;
    padding: 10px 20px;
    border: 1px solid var(--main-hex);
    color: black;
}

/* .post_composer .file.required {
    color: #DD6264;
} */

.post_composer .post {
    margin-top: 20px;
    flex-basis: 100px;
    flex-grow: 0;
    flex-shrink: 0;
}

/* -------------------------------------------------------------------------- */
/*                                 POST MODULE                                */
/* -------------------------------------------------------------------------- */

main#post-module {
    width: 100%;
    height: 100vh;
    background-color: rgba(30, 30, 30, 0.719);

    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    margin: auto;
    padding: 10rem;

    position: fixed;
    z-index: 9999;
    overflow: hidden;
}

.post-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 45rem;
    height: 3rem;

    margin: 0 auto;
    margin-bottom: 1rem;

    .tl-recipe,
    .tl-cafe {
        display: flex;
        justify-content: center;
        align-items: center;

        background-color: var(--main-background);
        border: 2px solid var(--main-hex);

        width: 50%;
        height: 100%;

        h2 {
            padding-bottom: 0;
        }
    }

    .tl-recipe {
        border-radius: 0;
        border-bottom-left-radius: 0.5rem;
        border-top-left-radius: 0.5rem;
    }

    .tl-cafe {
        border-radius: 0;
        border-bottom-right-radius: 0.5rem;
        border-top-right-radius: 0.5rem;
        border-left: none;
    }
}

.tl-recipe.active,
.tl-cafe.active {
    background-color: var(--sec-hex-hover);
    cursor: pointer;
}

.tl-recipe:hover,
.tl-cafe:hover {
    background-color: var(--sec-hex-hover);
}

.wrt-post-overlay-recipe {
    background-color: var(--main-background);
    width: 45rem;
    min-height: 10rem;
    height: auto;

    border: 2px solid var(--main-hex);
    border-radius: .5rem;

    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;

    align-self: center;
    max-height: calc(100vh - 8rem);
    overflow: auto;

    margin: auto;
    margin-top: 0;

    .wrt-post-header {
        background-color: var(--main-hex);
        border-bottom: 2px solid var(--main-hex);

        width: 100%;
        height: 3rem;
        padding: 1rem;

        display: flex;
        justify-content: space-between;
        align-items: center;

        h4 {
            color: var(--background-hex);
        }

        .wrt-post-icon.close:hover {
            color: var(--secondary-hex);
            transition: color 0.2s;
        }
    }
}

.wrt-post-overlay-cafe {
    background-color: var(--main-background);
    width: 45rem;
    min-height: 10rem;
    height: auto;

    border: 2px solid var(--main-hex);
    border-radius: .5rem;

    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;

    align-self: center;
    max-height: calc(100vh - 8rem);
    overflow: auto;

    margin: auto;
    margin-top: 0;

    .wrt-post-header {
        background-color: var(--secondary-hex);
        border-bottom: 2px solid var(--main-hex);

        width: 100%;
        height: 3rem;
        padding: 1rem;

        display: flex;
        justify-content: space-between;
        align-items: center;

        h4 {
            color: var(--background-hex);
        }

        wrt-post-icon.close:hover {
            color: var(--main-hex);
        }
    }
}

.wrt-post-content {
    display: flex;
    flex-direction: column;
    align-items: stretch;

    width: 100%;
    height: auto;
    padding: 1.5rem;

    .wrt-post-textarea {
        flex: 0 1 auto;
        margin-bottom: 1rem;
    }

    .wrt-post-imgpreview {
        flex-shrink: 0;
        height: 5rem;
        margin-bottom: 1rem;
        display: none;
    }

    .wrt-post-bottom {
        display: flex;
        justify-content: space-between;
        align-items: center;

        flex-shrink: 0;
    }
}

.wrt-post-bottom-right {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.wrt-post-title {
    display: flex;
    flex-direction: column;
}

.wrt-post-title textarea {
    width: 100%;
    height: auto;
    min-height: 1rem;
    resize: vertical;

    border: 1px solid var(--main-hex);
    border-radius: .2rem;

    padding: 0;
    padding-top: .75rem;
    padding-bottom: 0rem;
    padding-left: .75rem;

    line-height: 1rem;
}

.wrt-post-overlay-recipe .wrt-post-title textarea {
    margin-bottom: 0.5rem;
}


.wrt-post-textarea textarea {
    width: 100%;
    min-height: 12rem;
    resize: vertical;

    border: 1px solid var(--main-hex);
    border-radius: .2rem;
    align-self: stretch;
}

.post_composer input[type="file"],
.wrt-post-imgupload input[type="file"] {
    display: none;
}

.custom-file-upload {
    border: none;
    width: 2.5rem;
    height: 2.5rem;
    color: var(--main-hex);
    cursor: pointer;
}

.custom-file-upload:hover {
    color: var(--secondary-hex);
    transition: color 0.2s;
}

.wrt-post-postbutton {
    display: flex;
    justify-content: center;
    align-items: center;

    font-size: 1rem;
    width: 6rem;
    height: 2.5rem;

    background-color: var(--main-hex);
    color: var(--background-hex);
    border-radius: 1rem;

    cursor: pointer;
}

.wrt-post-icon {
    width: 2rem;
    height: 2rem;
    color: var(--background-hex);
}

.wrt-post-postbutton:hover {
    font-size: 1rem;
    background-color: var(--secondary-hex);
    color: var(--main-hex);
    border-radius: 1rem;
    transition: color 0.2s;
}

main#post-module input[type="submit"] {
    background-color: transparent;
    color: var(--background-hex);
    border: none;
    outline: none;
    margin: 0;
    padding: 0;
}

main#post-module input[type="submit"]:hover {
    background-color: transparent;
    border: none;
    outline: none;
}

#uploaded-previewimg-recipe,
#uploaded-previewimg-cafe {
    max-height: 5rem;
    border-radius: .2rem;
}

/* https://codepen.io/drylikov/pen/QwNxNPM */
.rating-container {
    /* padding: 20px; */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    margin: 1.12rem 0;
}

.rating {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    transform: scaleX(-1);
    margin-bottom: 1rem;
}

.rating-title h3 {
    margin-bottom: .5rem;
    font-size: 1em;
    font-weight: 600;
    padding-bottom: 0;
}

.rating:not(:checked)>input {
    position: absolute;
    appearance: none;
}

.rating:not(:checked)>label {
    cursor: pointer;
    font-size: 40px;
    color: var(--star-default);
    transition: color 0.2s ease;
}

.rating:not(:checked)>label:before {
    content: '★';
}

.rating>input:checked+label:hover,
.rating>input:checked+label:hover~label,
.rating>input:checked~label:hover,
.rating>input:checked~label:hover~label,
.rating>label:hover~input:checked~label {
    color: var(--star-checked-hover);
}

.rating:not(:checked)>label:hover,
.rating:not(:checked)>label:hover~label {
    color: var(--star-hover);
}

.rating>input:checked~label {
    color: var(--star-checked);
}

/* -------------------------------------------------------------------------- */
/*                                  NEW POST                                  */
/* -------------------------------------------------------------------------- */

.thepost {
    width: 100%;
    max-height: 701px;
    height: auto;

    margin: auto;

    background-color: var(--background-hex);
    border: 2px solid var(--main-hex);
    border-radius: 5px;

    z-index: 0;
}

.thepost-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;

    height: 3.5rem;

    color: var(--background-hex);
    border-bottom: 2px solid var(--main-hex);
}

.recipe .thepost-header {
    background-color: var(--main-hex);
}

.place .thepost-header {
    background-color: var(--secondary-hex);
}

.thepost-expand {
    display: flex;
    align-items: center;

    gap: 1rem;
}

.thepost-user {
    display: flex;
    align-items: center;
    color: var(--main-hex);

    .avatar {
        width: 2.25rem;
        height: 2.25rem;
        background-color: #cfb7b8;
        border-radius: 50%;
        margin-bottom: 0;
        object-fit: cover;
    }

    a {
        font-family: 'DM Sans', sans-serif;
        font-size: 1.25rem;
        font-weight: 600;
    }
}

.thepost .thepost-header .user_name {
    color: var(--background-hex);
}

.thepost .thepost-content .user_name {
    color: var(--main-hex);
}

.thepost-content {
    display: flex;
}

.thepost-media {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60%;
    height: 585px;

    background-color: #000000;

    overflow: hidden;
}

.thepost-media .attachment {
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 0;
}

.thepost-textsection {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1rem;

    width: 40%;
    max-height: 585px;
    height: auto;

    .thepost-user {
        margin-bottom: 1rem;

        .avatar {
            width: 2.75rem;
            height: 2.75rem;

        }
    }

    .thepost-caption {
        max-height: 70%;
        height: auto;

        padding: 0.5rem;
        margin-bottom: 1.5rem;

        overflow-y: auto
    }

    .thepost-commentsection {
        /* background-color: aqua; */
        display: flex;
        flex-direction: column;
        flex: 1;

        max-height: 10rem;
        height: auto;
        margin-bottom: 1rem;
        margin-top: auto;

        h4 {
            font-weight: bold;
            margin-bottom: .5rem;
        }
    }
}

.thepost-title h4 {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    text-transform: capitalize;
}

.thepost .thepost-rating input[type="radio"],
.thepost .thepost-rating label {
    pointer-events: none;
    cursor: default;
}

.thepost .rating-container {
    margin: 0.5rem 0;
}

.comment-input {
    width: 100%;
    height: 2rem;
    padding: 0.5rem;
    resize: vertical;

    color: var(--main-hex);

    border: 1.5px solid var(--main-hex);
    border-radius: .5rem;
    align-self: stretch;

    margin-top: auto;

}

.comment {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;

    width: 100%;
    border-top: 0.5px solid rgba(128, 128, 128, 0.272);
    padding: 0.5rem 0;

    .comment-pfp {
        width: 2.75rem;
        height: 2.75rem;
        margin-right: 1rem;

        img {
            width: 100%;
            height: 100%;
            object-fit: cover;

            border-radius: 50rem;
            margin-bottom: 0;
        }
    }

    .comment-content {
        width: 80%;

        .user_name {
            font-weight: bold;
        }
    }
}

.comment_list {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;

    gap: .5rem;

    width: 100%;
    flex: 1;
    overflow-y: auto;
}

.thepost-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0.5rem 1rem;

    height: 3.5rem;

    background-color: #FFF6F6;
    color: var(--background-hex);
    border-top: 2px solid var(--main-hex);
}

.thepost-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.thepost a.delete {
    color: var(--main-background);
    font-weight: bold;
    font-size: 2rem;
    line-height: 1.4rem;
    margin: 0;
    transition: color .2s ease-in-out;
}

.thepost a.delete:hover {
    color: var(--error-hex);
    text-decoration: none;
}


/* -------------------------------------------------------------------------- */
/*                                LANDING PAGE                                */
/* -------------------------------------------------------------------------- */

#index {
    flex: 1;
    width: 100%;
    height: calc(100vh - 100px - 2rem);

    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url('../img/landingpage-bg.jpg');
    background-size: contain;
}



main#index .page_pane {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;

}

main#index .page_pane h1,
main#index .page_pane h2,
main#index .page_pane p {
    width: 100%;
}

main#index p {
    font-size: 1.4rem;
    line-height: 140%;
}

#login_form {
    /* padding: 20px; */
    text-align: center;
    text-align: center;
    /* color: white; */
    /* margin: auto; */

}

.coffeemug {
    margin: auto auto;
}

.coffeemugpassword {
    margin: auto auto;
    padding-top: 5rem;
}

.coffeemugregister {
    margin: auto auto;
    padding-top: 5rem;
}

#index .log-in-container {
    position: absolute;
    top: 50%;
    left: 46.5%;
    transform: translate(-50%, -50%);
}

.register-container {
    position: absolute;
    top: 54%;
    left: 46.5%;
    transform: translate(-50%, -50%);
    color: var(--secondary-hex);
    text-align: center;
    width: 31.8%;
    margin: auto;
    background-color: var(--almost-black-hex);
    padding-top: 4rem;
    border-radius: 5%;
}

.password-container {
    position: absolute;
    top: 50%;
    left: 46.5%;
    transform: translate(-50%, -50%);
    color: var(--secondary-hex);
    text-align: center;
    width: 31.8%;
    margin-top: auto;

}

.register-container h2 {
    color: #FFEADC;
    font-size: 4rem;
    margin-bottom: rem;
}

.password-container h2 {
    color: #FFEADC;
    font-size: 4rem;
    margin-bottom: 2rem;
}


#login_form h2 {
    color: #FFEADC;
    font-size: 4rem;
    margin-bottom: 2rem;
}

#login_form input:not([type='checkbox']),
#login_form input:not([type='radio']),
#form input:not([type='checkbox']),
#form input:not([type='radio']),
#form select,
#form textarea {
    width: 90%;
    background-color: #FFFFFF;
    padding: 10px;
    color: var(--main-hex);
    font-size: 1rem;
    margin-top: 2rem;
}

#login_form input:not([type='checkbox']),
#login_form input:not([type='radio']) {
    border: 0;
}

#form input,
#form select,
#form textarea {
    border: 1px solid var(--main-hex);
    margin: 2rem;
}

#form textarea {
    resize: vertical;
}

#login_form input[type="submit"],
#login_form button,
#form input[type="submit"],
#form button {
    width: 120px;
    /*border: 0px;*/
    color: #FFFFFF;
    padding: 10px 20px;
    margin-top: 20px;
    margin-bottom: 40px;
    background-color: var(--secondary-hex);
    font-family: "Autour One" serif;
    font-weight: bold;
    font-size: 1rem;
    border-radius: 10%;
    border: 2px solid var(--secondary-accent-hex);
}

#form input[type="submit"].save_button,
#form button.save_button {
    margin-top: 40px;
}

#login_form input[type="submit"].wide_butt,
#login_form button.wide_butt,
#form input[type="submit"].wide_butt,
#form button.wide_butt {
    width: auto;
}

#login_form a {
    color: var(--secondary-hex);
    font-family: "Autour One", serif;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: underline;
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

#login_form a:hover {
    text-decoration: underline;
}

.get_messages {
    background-color: white;

    max-height: 25px;
    font-weight: 500;
    font-family: 'DM Sans', sans-serif;
    border-radius: var(--border-radius-input);
}

.logout_message,
.login_error {
    font-weight: 500;
    font-size: 1rem;
}

.logout_message {
    color: var(--success-hex);
    border: 1.5px solid var(--success-hex);
}

.login_error {
    color: var(--error-hex);
    border: 1.5px solid var(--error-hex);
}

/* -------------------------------------------------------------------------- */
/*                                   PROFILE                                  */
/* -------------------------------------------------------------------------- */

main#profile {
    width: 95%;
    margin: 0px auto;
    display: flex;
    flex: 1;
    flex-wrap: nowrap;
    flex-direction: row;
}

main#profile aside {
    padding: 2.5rem;
    margin-top: 1.3rem;
    border-radius: var(--home-border-radius);
}

.followers {
    padding: .5rem;
    box-shadow: 0 5px 10px 0 rgba(0, 0, 0, 0.2), 0 5px 10px 0 rgba(0, 0, 0, 0.1);
    border-radius: var(--home-border-radius);
}

#profile aside .post_block {
    padding: 1rem;
    background: transparent;
    border-radius: var(--home-border-radius);
    box-shadow: 0 5px 10px 0 rgba(0, 0, 0, 0.2), 0 5px 10px 0 rgba(0, 0, 0, 0.1);
}

.post_viewer {
    width: 100%;

    h2 {
        line-height: 1rem;
    }

    .row {
        width: 100%;
        min-height: 5rem;
        height: auto;

        display: flex;
        justify-content: center;
        align-items: center;

        .avatar {
            width: 4rem;
            height: 4rem;
            margin-right: 1rem;
            margin-bottom: 0;
            object-fit: cover;
            border-radius: 50%;
        }
    }
}

main#profile aside h2.profile-name {
    padding: .5rem;
    box-shadow: 0 5px 10px 0 rgba(0, 0, 0, 0.2), 0 5px 10px 0 rgba(0, 0, 0, 0.1);
    border-radius: var(--home-border-radius);
}

main#profile aside h4 {
    font-family: "DM Sans", sans-serif;
    font-weight: 600;
    margin: .5rem 0;
    color: var(--secondary-accent-hex);
}

main#profile aside h2,
main#profile aside h3 {
    width: 100%;
    line-height: inherit;
    text-align: center;
}

main#profile {
    display: flex;
    flex-wrap: wrap;
    margin-top: 6rem;
}

main#profile .cover_photo {
    width: 95%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 25%;
    min-height: 320px;
    background: url(../img/profile-header.png) repeat-x;
    position: relative;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: var(--home-border-radius);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border: var(--main-hex) solid 1px;
}

.profile-menu {
    display: flex;
    flex-direction: row;
    justify-content: center;
    padding-bottom: 2rem;
    width: 190%;
}

.avatar {
    width: 12rem;
    height: 12rem;
    margin-bottom: 1rem;
    object-fit: cover;
}

main#profile .cover_photo .avatar {
    width: 200px;
    height: auto;
    margin: 0px auto;
    bottom: 20px;
    left: 20px;
    position: absolute;
    overflow: hidden;
    border: 5px solid white;
}

main#profile .avatar img {
    display: block;
    object-fit: cover;
    width: 100%;
    border-radius: 100%;
    height: 100%;
}

#cov-profrt {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bio-container {
    padding: 1rem;
    background: transparent;
    border-radius: var(--home-border-radius);
    box-shadow: 0 5px 10px 0 rgba(0, 0, 0, 0.2), 0 5px 10px 0 rgba(0, 0, 0, 0.1);
}

.profile-name {
    font-weight: 600;
    color: var(--main-hex);
    letter-spacing: .15rem;
}

#profile-news {
    display: flex;
    flex-direction: column;
    max-width: 20%;
    gap: 1rem;
}

.fave-post-name {
    font-weight: 600;
    color: var(--main-hex);
    letter-spacing: .05rem;
}

.p-block {
    display: flex;
    flex-direction: column;
    justify-content: center;

    border: solid var(--main-hex) .1rem;
    border-radius: .5rem;
    padding: 1rem;

    width: 15rem;
    min-width: 15rem;
    max-width: 15rem;
    height: auto;

    text {
        font-size: .5rem;
    }

    img {
        width: 4rem;
        height: 4rem;
        object-fit: cover;
        margin-right: 0.5rem;
        border-radius: var(--home-border-radius);
    }

    a {
        margin-bottom: 0;
        margin: 0;
        color: black;
    }

    h4 {
        font-weight: 500;
        text-transform: capitalize;
    }

    h3{
        font-size: 1rem;
        padding-bottom: 0;
    }
}

.fave-places-grid{
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    
    gap: 1rem;
}

.fave-places{
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
}

.fave-places-text{
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}

.fave-placeholder-img img{
    width: 3rem;
    height: 3rem;
    border-radius: 0.5rem;
    margin-right: 1rem;
}

.fave-posts {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 1rem;
}

.fave-post-single {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

main#profile section {
    width: 100%;
    display: flex;
    margin-top: 20px;
}

#news_feed {
    width: 100%;
}

#search_results {
    width: 61.8%;
    padding-right: 20px;
}

#form {
    width: 65%;
    margin-top: 10rem;

    label {
        margin: 2rem;
    }
}

#form .avatar {
    width: 12rem;
    margin: 1rem 4rem;
    height: 12rem;
    border-radius: 50%;
}

#edit_profile {
    display: flex;
    justify-content: center;
    align-items: center;
    align-content: center;
}

#form .cover_photo_holder {
    width: 100%;
    padding-bottom: 35%;
    background-color: var(--panel-hex);
    position: relative;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    margin-bottom: 40px;
    margin-top: 20px;
}

.profile_right {
    width: 95%;
}

.edit-profile-btn {
    margin: 2rem;
    border-radius: 2rem;
    padding: .5rem 1rem;
    display: inline-block;
    color: #ffffff;
    font-weight: 600;
    text-align: center;
    background: var(--secondary-hex);
    border: 0;
    cursor: pointer;
    transition: background var(--transition-time), transform var(--transition-time);
}

.edit_profile a {
    color: var(--main-hex);
    text-decoration: none;
    font-family: var(--primary-btn);
    font-weight: 600;
    color: white;
    letter-spacing: .1rem;
}

.edit_profile .edit-profile-btn:hover {
    background: var(--sec-hex-hover);
    transform: translateY(-1px);
}

.followers {
    margin-top: 20px;
    width: 100%;
    text-align: center;
}

.followers span.top {
    padding: 0px 10px;
}

.tabs {
    width: 100%;
    margin-top: 20px;
    border-bottom: 1px solid var(--border-hex);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.tabs a {
    margin-right: 20px;
}

.tabs a.active {
    font-weight: bold;
}

.search_feed_people {
    display: none;
}

.no_posts {
    width: 100%;
    color: var(--panel-hex);
    font-weight: bold;
    padding: 100px 0px;
    text-align: center;
    font-size: 2rem;

    img {
        width: 10rem;
        height: auto;
        margin-top: 2rem;
    }

}

/* -------------------------------------------------------------------------- */
/*                                HOME SIDEBAR                                */
/* -------------------------------------------------------------------------- */

#sidebar-home {
    width: var(--sidebar-width-home);
    height: calc(100vh - 90px);

    position: fixed;
    top: 6rem;
    left: 0;

    background-color: var(--background-hex);
    border-right: var(--border-stroke) solid var(--main-hex);

    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 3rem;

    z-index: 0;

}

.sidebar-pfp {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 10rem;
    height: 10rem;
    margin-bottom: 2.25rem;

    a img {
        width: 10vw;
        height: 10vw;
        object-fit: cover;
        border-radius: 50rem;
    }
}

.temp-pfp {
    width: 9rem;
    height: 9rem;
    background-color: #cfb7b8;
    border-radius: 50%;
}

.sidebar-btn {
    display: flex;
    justify-content: left;
    align-items: flex-end;

    width: 11rem;
    height: 2rem;
    margin-bottom: 1.5rem;

    background-color: transparent;
    outline: none;
    border: none;
    border-radius: 0;

    .sidebar-icon {
        width: 2.25rem;
        height: 2.25rem;
        margin-right: 1rem;
        color: var(--main-hex);
    }

    h6 {
        font-size: 1.25rem;
        font-weight: 400;
    }
}

.sidebar-post-btn {
    display: flex;
    justify-content: center;
    align-items: center;

    width: 10.5rem;
    height: 3rem;

    background-color: var(--secondary-hex);
    outline: none;
    border: none;
    border-radius: 1.25rem;

    .sidebar-icon {
        width: 2.25rem;
        height: 2.25rem;
        margin-right: 1rem;
        color: var(--background-hex);
    }

    h6 {
        font-size: 1.2rem;
        color: var(--background-hex);
    }
}

.sidebar-post-btn:hover {
    background-color: var(--main-hex);
    cursor: pointer;
    transition: background-color 0.2s;
}

/* ------------------------------ SMALL SIDEBAR ----------------------------- */
#sidebar-home-small-map {
    width: var(--sidebar-small-map-width);
    height: calc(100vh - 90px);

    position: fixed;
    top: 6rem;

    background-color: var(--background-hex);
    border-right: var(--border-stroke) solid var(--main-hex);

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 1rem;
    margin: auto 0;
    z-index: 9000;
    top: 0;
    /* anchors it to the top of the viewport */

    height: 100vh;
    /* full height of the viewport */

    nav {
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;

        margin-right: 1rem;

        .sidebar-btn-small {
            margin-top: 2rem;
            margin-left: 3.5rem;
            width: 4.5rem;
            height: 4.5rem;
            border-radius: 50%;
        }

        .sidebar-btn-small:first-of-type {
            margin-top: 0;
        }

        .sidebar-pfp-small-map {
            margin-top: 4rem;
            margin-left: 1.2rem;

            a {
                margin: 0;
            }
        }
    }
}

.hamburger {
    display: block;
    opacity: 100%;
    font-size: 2.5rem;
    color: white;
    position: fixed;
    margin: 0 0 0 3rem;
    z-index: 1100;
    /* higher than nav */
    cursor: pointer;
}

.hamburger:hover {
    cursor: pointer;
    color: white;
}

/* ---------------------------- Chat GPT Assisted --------------------------- */
#sidebar-home-small {
    width: var(--sidebar-small-width);
    height: calc(100vh - 90px);

    align-items: center;
    position: fixed;
    top: 100px;
    left: 0;

    background-color: var(--background-hex);
    border-right: var(--border-stroke) solid var(--main-hex);

    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 1rem;
    margin: auto 0;

    /* START HIDDEN → pushed fully off-screen */
    transform: translateX(-100%);
    transition: transform 0.4s ease;

    z-index: 2;
}

/* When active → slide into view */
#sidebar-home-small.active {
    transform: translateX(0);
}

/* bottom:0, left:0 fix from co-pilot */
#sidebar-home-small a::after {
    bottom: 0;
    left: 0;
    width: 0;
    height: .2rem;
    content: "";
    background: var(--secondary-hex);
    position: absolute;
    inset: 0;
    top: initial;
    transition: width 0.3s ease;
}

#sidebar-home-small a.active::after,
#sidebar-home-small a:hover::after {
    width: 100%;
}

#sidebar-home-small nav {
    position: relative;
    top: 0;
    transition: left 0.3s ease;
    z-index: 50;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding-left: 2.5rem;
    margin-top: 25px;
}



/* Change nav to open from the left - w3schools & copilot */
#sidebar-home-small nav.active {
    left: 0;
    /* slide into view */
}

.sidebar-pfp-small {
    display: flex;
    align-items: center;
    margin-right: 24px;

    a img {
        width: 3.5vw;
        height: 3.5vw;
        object-fit: cover;
        border-radius: 50rem;
        padding-bottom: 0px;
    }
}

.sidebar-pfp-small-map {
    display: flex;
    align-items: center;
    margin-top: 25px;
    justify-content: center;
    align-items: center;

    a img {
        width: 3vw;
        height: 3vw;
        object-fit: cover;
        border-radius: 50rem;
        padding-bottom: 0px;
    }
}


.sidebarlogo {
    width: 3.5rem;
    margin-left: 0.5rem;
}

.sidebar-btn-small {
    margin-top: 2rem;
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
}

#sidebar-home-small nav a.sidebar-btn-small:first-of-type {
    margin-top: 0;
}


.sidebar-icon-small {
    width: 3rem;
    height: 3.5rem;
    margin-top: 2rem;
    color: var(--main-hex);
    margin-left: 0rem;
}

.sidebar-icon-small-map {
    width: 3rem;
    height: 3.5rem;
    margin-top: 2rem;
    color: var(--main-hex);
    margin-left: 1.25rem;
}

h6 {
    font-size: 1.25rem;
    font-weight: 400;
}

.sidepanel {
    height: 100%;
    width: 0;
    /* hidden by default */
    position: fixed;
    top: 0;
    right: 0;
    /* slide in from the right */
    background-color: #fff;
    overflow-x: hidden;
    transition: 0.3s;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.3);
    padding: 20px;
    z-index: 50;
}

.sidepanel.open {
    width: 350px;
    /* visible width */
}

.ol-popup-closer {
    font-size: 24px;
    text-decoration: none;
    cursor: pointer;
}

#popup.ol-popup {
    background-color: white;
    padding: 1rem;
}



a#place-url {
    color: var(--main-hex);
    font-weight: bold;
    text-decoration: none;
}


/* -------------------------------------------------------------------------- */
/*                                TIMELINE PAGE                               */
/* -------------------------------------------------------------------------- */

main#home {
    width: 100%;
    margin: 0px;
    display: flex;
    flex: 1;
    flex-wrap: nowrap;
    flex-direction: row;

    margin-top: 8.5rem;
}

#home #news_feed {
    margin-top: 2rem;
}

/* Page Layout */
#home .page_pane {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    margin-left: calc(var(--sidebar-width-home) + var(--sidebar-gap-home));
    margin-right: var(--sidebar-gap-home);
    width: calc(100vw - var(--sidebar-width-home) - (var(--sidebar-gap-home) * 2) - 17px);

    background-color: var(--main-background);
    gap: 3rem;
}

.middle-col {
    width: 918px;
}

.right-col {
    width: 20rem;
    background-color: #ddd;
}

/* Suggested/Following toggle */
.content_toggle {
    display: flex;
    justify-content: center;
    align-items: center;

    margin-bottom: 2rem;

    .feedtoggle {
        display: flex;
        justify-content: center;
        align-items: center;

        width: 50%;
        height: 3rem;
        overflow: hidden;

        border: var(--border-stroke) solid var(--main-hex);

        background-color: var(--main-background);
    }

    .active-feedtgl {
        background-color: #FFDEC7;
    }

    h2 {
        margin: 0;
        padding: 0;
    }
}

#profile .content_toggle {
    margin-bottom: 0;
}

#profile .active-feedtgl {
    border-top-left-radius: 0;
    border-bottom-left-radius: var(--home-border-radius);
    border-top-right-radius: 0;
    border-bottom-right-radius: var(--home-border-radius);
    cursor: default;
}

.tl-suggested {
    border-top-left-radius: 0;
    border-bottom-left-radius: var(--home-border-radius);
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    padding: 1rem 2rem;
}

#home .tl-suggested {
    border-top-left-radius: var(--home-border-radius);
    border-bottom-left-radius: var(--home-border-radius);
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.tl-following {
    /* border-top-right-radius: var(--home-border-radius);
    border-bottom-right-radius: var(--home-border-radius);
    border-top-left-radius: 0;
    border-bottom-left-radius: 0; */
    border-radius: 0;
    padding: 1rem 2rem;
}

#home .tl-following {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-top-right-radius: var(--home-border-radius);
    border-bottom-right-radius: var(--home-border-radius);
}

.tl-following:last-child:not(.modal) {
    border-top-right-radius: 0;
    border-bottom-right-radius: var(--home-border-radius);
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* -------------------------------------------------------------------------- */
/*                                  404 PAGE                                  */
/* -------------------------------------------------------------------------- */

main#error_404 .page_pane {
    position: relative;
    background-color: var(--background-hex);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: calc(100vh - 2rem);
}

.error-bg {
    position: relative;
    background-image: url(../img/Coffee_Spill.svg);
    background-size: contain;
    background-repeat: no-repeat;
    width: 70vw;
    height: 70vh;
    margin-top: 2rem;

    h1 {
        position: absolute;
        top: 35%;
        left: 77%;
        font-size: 4rem;
        color: #000000;
    }
}

.error-msg {
    position: absolute;
    top: 68%;
    left: 38%;
    transform: translateX(-50%);

    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;

    h6 {
        font-weight: 400;
        font-size: 1.25rem;
        color: var(--background-hex);
    }

    .try-again {
        display: flex;
        justify-content: center;
        align-items: first baseline;
    }

    .try-again a h6 {
        color: var(--secondary-hex);
        text-decoration: underline;
    }
}

/* -------------------------------------------------------------------------- */
/*                               SEARCH RESULTS                               */
/* -------------------------------------------------------------------------- */

#search_results a {
    color: var(--main-hex);
}

/*                                 MAP                                         */
/* -------------------------------------------------------------------------- */


#mapdiv {
    display: block;
    width: 100%;
    height: 100vh;
}

.ol-attribution {
    display: none;
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    left: auto !important;
    bottom: auto !important;
    color: var(--secondary-hex);
    padding: 5px 10px;
    font-size: 12px;
    z-index: 1000;
}



/* ------------------------------- Pop Up Page ------------------------------ */
.pop-up-page {
    text-align: center;
    max-width: 340px;
    border-top: var(--main-hex) 30px solid;
    display: flex;
    flex-direction: column;
    border-radius: 5px;
    background-color: var(--background-hex);
    opacity: 0;
    animation: fadeIn 0.25s ease-in forwards
}

.pop-up-page h2 {
    padding-top: 1rem;
    font-size: 3rem;
}

.star-rating {
    display: flex;
    flex-direction: row;
    justify-content: center;
    padding: 0.5rem;
    color: var(--secondary-hex);
}

.pop-up-page button {
    background-color: var(--secondary-hex);
    color: var(--background-hex);
    font-weight: bold;
    padding: 0.5rem;
    text-align: center;
    justify-content: center;
    width: 50%;
    margin: 1rem;
}

/* ------------------------------- Cafe  Page ------------------------------ */
/* The Modal (background) */
.modal {
    display: none;
    overflow: auto;

    position: fixed;
    z-index: 1;
    right: 0;
    top: 0;

    width: 30rem;
    height: 100%;
    border-radius: 0;

    opacity: 0;
    animation: fadeIn 0.25s ease-in forwards
}

.break {
    background: var(--main-hex);
    height: 1px;
    width: 100%;
}

.media-img {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tl-suggested,
tl-following:last-child,
.feedtoggle,
.active-feedtgl,
.modal.content_toggle {
    border-radius: 0;
}

.modal.content_toggle {
    border-radius: 0;
    border: #572A27 solid 1px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


/* Modal Content/Box */
.modal-content {
    background-color: #fefefe;
    border: 2px solid var(--main-hex);
    width: 100%;
    border-radius: 0;
    overflow-y: auto;
}

.favorite-cafe-list {
    background-color: var(--background-hex);
    text-align: center;
}

.favorite-cafe-location a {
    background-color: var(--background-hex);
    color: var(--main-hex);
    font-size: 1.75rem;
    font-weight: 600;
    font-family: "League Gothic", sans-serif;
    text-decoration: underline;
    margin-bottom: 2rem;
}

.modal-content input {
    margin-bottom: 1rem;
}

/* Modal overlay */
.cafe-modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 700px;
    height: 700px;
    animation: fadeIn 0.25s ease-in forwards
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


/* Modal content box */
.cafe-modal-content {
    position: relative;
    margin: auto;
    top: 50%;
    transform: translateY(-50%);
    width: fit-content;
    max-width: 90%;
    max-height: 90%;
    overflow-y: auto;
    background: #fff;
    border-radius: 8px;
    padding: 20px;
}


.cafe-page {
    text-align: left;
    max-width: 700px;
    border-top: var(--main-hex) 30px solid;
    display: flex;
    flex-direction: column;
    border-radius: 5px;
    background-color: var(--background-hex);
    overflow-x: hidden;
    display: none;
}

.cafe-page h2 {
    padding-top: 1rem;
    font-size: 3rem;
}

.cafe-modal-header {
    width: 100%;
    height: 3rem;
    background-color: var(--main-hex);

    .close {
        color: var(--main-background);
        float: right;
        font-size: 3rem;
        font-weight: bold;
        margin: .5rem .5rem 1rem 0;
        cursor: pointer;
    }

    .close:hover {
        color: var(--secondary-hex);
    }
}

.cafe-modal-mainImg {
    width: 100%;
    height: 15rem;

    img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
}

.cafe-modal-genInfo {
    margin: 1rem 1rem;
}

.cafe-page button {
    background-color: var(--secondary-hex);
    color: var(--background-hex);
    font-weight: bold;
    padding: 0.5rem;
    justify-content: center;
}

.star-rating-cafe {
    display: flex;
    flex-direction: row;
    justify-content: end;
    padding: 0.5rem;
    color: var(--secondary-hex);
    font-size: 2rem;
}

.star-rating-cafe p {
    display: flex;
    font-size: 1rem;
    color: black;
}

.cafepage-buttons {
    display: flex;
    flex-direction: row;
    text-align: center;
}

.cafe-favorite {
    margin-left: 0rem;
}

.cafe-media img {
    width: 8rem;
    height: 8rem;
}

.cafe-info,
.cafe-media {
    padding: 1rem;
}

.cafe-info{
    border-bottom: 1px solid var(--main-hex);
}


.add-place {
    text-align: center;
    display: flex;
    flex-direction: column;
    max-width: 340px;
    color: var(--main-hex);
    background-color: var(--background-hex);
    border-radius: 20%;

}

.add-place button {
    background-color: var(--secondary-hex);
    color: var(--background-hex);
    padding: 0.25rem;
    margin-top: 1rem;
}