/* 
Main CSS Styles

Make your customizations in style.css which 
is loaded after both this and the reset stylesheet
*/

html {
    font-size: 16px;
}

body {
    font-family: 'Lexend Deca', sans-serif;
    line-height: 145%;
    font-size: 16px;
    font-size: 1rem;
}

h1,
h2,
h3 {
    color: var(--main-hex);
    font-weight: bold;
    padding-bottom: 20px;
}

h1 {
    font-size: 2.3rem;
    line-height: 2.3rem;
    padding-bottom: 20px;
}

h2 {
    font-size: 2rem;
    line-height: 2rem;
}

h3 {
    font-size: 1.4rem;
    line-height: 1.4rem;
}

input,
select,
textarea,
button {
    font-family: inherit;
    font-size: 1rem;
    border-radius: var(--border-radius-input);
}

textarea {
    padding: 10px;
}

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: white;
}

a {
    color: var(--main-hex);
    font-size: inherit;
    text-decoration: none;
}

/* a:hover {
	text-decoration: underline;	
} */

header {
    width: 100%;
    height: 60px;
    padding: 0px 20px;
    background-color: var(--main-hex);
    border-bottom: 1px solid var(--main-hex);
    /*var(--border-hex);*/
    position: fixed;
    z-index: 50000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

hr {
    margin: auto;
    margin-top: 1rem;
    margin-bottom: 1rem;
    width: 95%;
}

#search_box input[type="search"] {
    background-color: #FFFFFF;
    border: 0px;
    padding: 6px;
    border-radius: 2rem;
    width: 100%;
    padding: 10px;
}

#search_box button {
    background-color: transparent;
    color: var(--main-hex);
    border: 0px;
    font-size: 1.2rem;
    border-radius: 2rem;
}

#search_box i {
    margin-left: 1rem;
    margin-top: 11px;
}

#search_box form input {
    margin-left: 0.1rem;
    margin-bottom: 0.1rem;
}

header .left {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    align-items: center;
}

header .logo {
    color: #FFFFFF;
    margin-right: 20px;
    font-size: 2.3rem;
    font-weight: bold;
    text-decoration: none;
}

header .logo:hover {
    color: var(--accent-hex);
}

header .left nav {
    margin-left: 20px;
}

header .left nav a {
    color: #FFFFFF;
    text-decoration: none;
    margin-right: 20px;
}

header .left nav a:hover {
    text-decoration: underline;
}

footer {
    background-color: var(--main-hex);
    color: #FFFFFF;
    width: 80%;
    padding: 5px 20px;
    margin: 0px auto;
    margin-top: 40px;
    margin-bottom: 20px;
}

main {
    min-width: 80%;
    margin: 0px auto;
    margin-top: 6%;
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
}

.width {
    width: 100%;
    margin-left: 10rem;
}

aside {
    border-radius: var(--border-radius-panel);
    width: 38.2%;
    align-self: flex-start;

    &.padded {
        padding: 20px;
    }
}

main#profile aside {
    margin-right: 20px;
    padding: 20px;
}

main#profile aside h2,
main#profile aside h3 {
    width: 100%;
    line-height: inherit;
    text-align: center;
}

main#profile {
    flex-wrap: wrap;
    margin-top: 0px;
}

main#profile .cover_photo {
    width: 100%;
    padding-bottom: 35%;
    min-height: 320px;
    background-color: var(--panel-hex);
    position: relative;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    border-bottom-left-radius: var(--border-radius-panel);
    border-bottom-right-radius: var(--border-radius-panel);
}

main#profile .cover_photo .avatar {
    width: 200px;
    height: 200px;
    margin: 0px auto;
    bottom: 20px;
    left: 20px;
    position: absolute;
    overflow: hidden;
    border: 5px solid white;
}

main#profile .cover_photo .avatar img {
    width: 100%;
}

main#profile section {
    width: 100%;
    display: flex;
    margin-top: 20px;
}

main#index .page_pane {
    width: 61.8%;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    flex-direction: column;
}

main#index {
    display: flex;
    flex-direction: column;
}

main#index aside {
    margin: 8% 0;
    width: 30%;
    z-index: 5;
}

main#register aside {
    margin: 3.5% 1%;
    width: 47%;
}

#password {
    margin-top: 5rem;
}

.password-reset {
    width: 100%;
    margin-left: 10rem;
    color: var(--main-hex);
}

.password-reset form label, .password-reset form a {
    color: var(--main-hex)!important;
}

.password-reset form a {
    margin-top: 1rem;
}

main#password aside {
    margin: 12% 1%;
    width: 47%;
}

.first-last {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 1rem;
}

.label-flex {
    display: flex;
    flex-direction: column;
    width: 100%;
}

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%;
}

#container {
    width: 100%;
    padding-top: .5px;
    background-color: var(--body-bg);
    background-image: url(../img/no-post-bg.png);
    background-size: cover;
    min-height: 100vh;
    background-position: 100px;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.search-bg {
    min-height: 105vh;
}

#news_feed {
    width: 100%;
}

#form {
    width: 61.8%;
    padding-right: 20px;
}

#search {
    /* width: calc(100vw - 720px); */
    margin-left: 20rem;
}

#search_results {
    /* width: 61.8%;
    padding-right: 20px; */
    width: 100%;
    padding-right: 35%;
}

#login_form {
    padding: 20px;
}

#login_form form button:first-of-type {
    background: linear-gradient(90deg, #FDBB22 0%, #D63F04 100%);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    padding: 15px;
    margin-top: 1rem;
    border-radius: 2rem;
    margin-bottom: 1.25rem;
}

#register #form input[type="submit"] {
    background: linear-gradient(90deg, #FDBB22 0%, #D63F04 100%);
    color: white;
    width: 100%;
    padding: 15px;
    margin-top: 2rem;
}

#password #form input[type="submit"] {
    background: linear-gradient(90deg, #FDBB22 0%, #D63F04 100%);
    color: white;
    width: 100%;
    padding: 15px;
    margin-top: 1.6rem;
    border: 0px;
}

#login_form form button:first-of-type:hover,
#register #form input[type="submit"]:hover,
#password #form input[type="submit"]:hover,
#form input[type="submit"].save_button:hover {
    transform: scale(1.025);
}

#login_form label,
#form label {
    margin-top: 20px;
    color: var(--white);
    width: 100%;
    display: block;
    clear: both;
    font-weight: bold;
    text-transform: uppercase;
}

#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: 100%;
    background-color: #FFFFFF;
    padding: 15px;
    color: var(--main-hex);
    font-size: 1rem;
    margin-top: 5px;
    border-radius: 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);
}

#form textarea {
    resize: vertical;
}

#login_form input[type="submit"],
#login_form button,
#form input[type="submit"],
#form button {
    width: 120px;
    color: #FFFFFF;
    padding: 10px 20px;
    margin-top: 20px;
    margin-bottom: 40px;
    background-color: var(--main-hex);
    font-weight: bold;
    font-size: 1rem;
}

#form input[type="submit"].save_button,
#form button.save_button {
    margin-top: 40px;
    background: linear-gradient(90deg, #FDBB22 0%, #D63F04 100%);
    border: none;
}

#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(--white);
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
}

#login_form a:hover {
    text-decoration: underline;
}

#login_form .signup_link, .return-to-edit {
    display: block;
    color: var(--accent-yellow);
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    margin: auto;
}

#login_form .signup_link:hover {
    text-decoration: none;
}

#login_form .signup_link, .return-to-edit {
    text-align: center;
}

#register .return-to-login,
#password .return-to-login {
    color: white;
    display: block;
    text-align: center;
    margin-top: -1rem;
}

#register .return-to-login:hover,
#password .return-to-login:hover {
    text-decoration: underline;
}

#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;
    border-radius: 2rem;
}

#post_blackout {
    display: none;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0px;
    left: 0px;
    background-color: var(--body-bg);
    color: var(--text-dark);
    font-weight: bold;
    text-align: center;
    font-size: 2rem;
    z-index: 1000;
}

/* FOLLOW BUTTON (used in profile blocks and other areas)
   Gradient button matching Figma design
   Includes icon on left side (via background-image)
   Larger size (48px height) for better visibility */
.follow_button {
    background: linear-gradient(90deg, #FDBB22 0%, #D63F04 100%);
    border: 0px;
    color: #FFFFFF;
    font-weight: 700;
    padding: 12px 20px;
    padding-left: 50px;
    /* Extra left padding for icon space */
    font-size: 18px;
    line-height: 20px;
    background-size: 24px 24px, 100% 100%;
    /* Icon size, then gradient fills rest */
    background-position: 12px center, center;
    /* Icon position, then gradient */
    background-repeat: no-repeat, no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px auto;
    border-radius: 8px;
    cursor: pointer;
    height: 48px;
    font-family: 'Afacad', sans-serif;
}

.post_block .row_full .follow_button {
    margin: 0px;
}

.follow_button.follow_user {
    background-image: url("../img/follow-icon.png"), var(--main-linear, linear-gradient(90deg, #FDBB22 0%, #D63F04 100%));
}

.follow_button.following_user {
    background-image: url("../img/following-icon.png"), var(--main-linear, linear-gradient(90deg, #FDBB22 0%, #D63F04 100%));
}

.like_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;
    border-radius: var(--border-radius-input);
}

.post_block .row_full .like_button {
    margin: 0px;
}

.like_button.like_post {
    background-image: url("../img/like-white.png");
}

.like_button.unlike_post {
    background-image: url("../img/following-icon.png");
}

.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);
}

.page_pane {
    width: 70%;
    padding-right: 0;
}

.post_block {
    width: 100%;
    padding-bottom: 20px;
}

.post_viewer {
    width: 100%;
    padding-bottom: 20px;
    margin-bottom: 0px;
}

.post_block .row {
    display: flex;
    width: 100%;
    align-items: stretch;
    place-items: center;
    background-color: var(--body-bg);
    padding: 1rem;
    box-shadow: 5px 2px 18px 0px #0000000d;
    border-radius: 1rem;
}

.post_block .row_full {
    display: flex;
    width: 100%;
    justify-content: space-between;
}

.post_block .row.right {
    justify-content: right;

}

.post_block img.avatar {
    width: 100px;
    height: 100px;
    margin-right: 20px;
}

.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;
}

.post_content a.delete {
    color: var(--error-hex);
    font-weight: bold;
    font-size: 2rem;
    line-height: 1.4rem;
}

.post_content a.delete:hover {
    color: #000000;
    text-decoration: none;
}

.post_composer {
    width: 100%;
    padding-bottom: 10x;
    margin-bottom: 0px;
    padding-right: 1.5rem;
}

.post_composer .row {
    display: flex;
    width: 100%;
    /*align-items: stretch;*/
}

.post_composer .row.right {
    justify-content: right;
    margin-bottom: 4rem;

}

.post_composer img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.post_composer textarea {
    width: 100%;
    resize: vertical;
    min-height: 100px;
    align-self: stretch;
    margin-left: 20px;
    border-radius: 1.5rem;
    border: none;
    box-shadow: 5px 2px 18px 0px #0000000d;
}

.post_composer .file {
    width: 83.5%;
    margin-right: 15px;
    padding: 10px 20px;
    border: 3px solid #012181;
    color: var(--main-hex);
    border-radius: 1rem;
}

.post_composer .post {
    flex-basis: 100px;
    flex-grow: 0;
    flex-shrink: 0;
    background: linear-gradient(90deg, #FDBB22 0%, #D63F04 100%);
    /* background: #fdbb22; */
    border-radius: 1rem;
    color: white;
    font-weight: bold;
    border: none;
    cursor: pointer;
    font-size: 20px;
}

input[type="file"]::file-selector-button {
    font-family: 'Afacad', sans-serif;
    background-color: var(--main-hex);
    color: white;
    padding: 5px 15px;
    border: none;
    border-radius: 15px;
    cursor: pointer;
}

.avatar {
    object-fit: cover;
    border-radius: 50%;
    display: block;
    aspect-ratio: 1 / 1;  /* guarantees a perfect square */
    width: 30%; /* keeps avatar image at 40% size so it dosen't grow too large */
}


.avatar-flex {
    display: flex;
    width: 100%;
    gap: 1rem;

    img {
        width: 20%;
    }
}

input[type="file"]::file-selector-button {
    font-family: 'Afacad', sans-serif;
    background-color: var(--main-hex);
    color: white;
    padding: 5px 15px;
    border: none;
    border-radius: 15px;
    cursor: pointer;
}

.avatar {
    border-radius: 100%;
}

.profile_right {
    width: 61.8%;
}

#edit_profile {
    width: calc(100vw - 720px);
    margin-top: 3rem;
}

#edit_profile form label {
    color: var(--main-hex);
}

.edit_profile {
    text-align: center;
}

.edit_profile a {
    color: var(--main-hex);
    text-decoration: none;
}

.edit_profile a:hover {
    text-decoration: underline;
}

.followers {
    margin-top: 20px;
    width: 100%;
    text-align: center;
}

.followers span.top {
    padding: 0px 10px;
}

.tabs {
    width: 100%;
    margin-top: 20px;
    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%;
    border: 10px dashed var(--panel-hex);
    color: var(--panel-hex);
    font-weight: bold;
    padding: 100px 0px;
    text-align: center;
    font-size: 2rem;

}

.logout_message,
.login_error {
    font-weight: bold;
    font-size: 1.6rem;
    padding-bottom: 40px;
}

.logout_message {
    color: var(--success-hex);
    margin-left: 10rem;
    width: 150%!important;
}

.login_error {
    color: var(--error-hex);
}

.sidebar .logo svg {
    width: 95%;
    margin-top: 0.5rem;
    margin-left: 2px;
}

.sidebar {
    padding-right: 5px;
}

.sidebar .logout-link {
    margin-bottom: 1rem;
}

.shadowed-icon img {
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.25));
}

#index .page_pane {
    background-image: none;
    background-color: transparent;
}

.get_messages {
    font-size: 1.5rem;
    width: 100%;
    line-height: 2rem;
    margin-top: -1rem;
    margin-bottom: -1.5rem;
}

.input-error {
    border: 2px solid var(--error-hex) !important;
    background-color: #ffbebe!important;
}
.error-msg {
    color: #fa9292;
    font-family: 'Afacad';
    font-size: 16px;
    margin: 4px 0 10px 0;
}


.save-flex {
    display: flex;
    gap: 1rem;
    margin-top: -1rem;
}

/* edit-profile chnages saved button */
div#edit_profile_msg {
    color: green !important;
    padding: 1rem;
    padding-top: 3rem;
    width: 25%;
    text-align: center;
    border-radius: 2rem;
    font-size: 1.2rem;
    text-wrap: nowrap;
    align-items: center;
}

#no-posts {
    h1 {
        color: red;
    }
} */

.postmap .ol-attribution {
    position: absolute;
    top: 13.8rem;
    background-color: rgba(255, 255, 255, 0.683);
    padding: 0.2rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    border-radius: 0 0.5rem 0 0;
    text-align: right;
    font-size: 0.75rem;
}

.homemap .ol-attribution {
   position: absolute;
   top: 57.5rem;
   left: 74.45rem;
   background-color: rgba(255, 255, 255, 0.502);
   padding: 0.5rem;
   border-radius: 0.5rem 0 0 0;
}

.ol-attribution button {
    display: none;
}

a.user_name {
    margin-top: 0.5rem;
}