/* 
Main CSS Styles

Make your customizations in style.css which 
is loaded after both this and the reset stylesheet
*/

/* Font Import
    Synthemsec
        font-family: "synthemesc", sans-serif;
        Available weights: 400 (normal)
        Use: h1

    The Seasons
        font-family: "the-seasons", sans-serif;
        Available weights: 400 (n, italic), 700 (n, i)
        Use: h1, h2, h2 name

    Karla
        font-family: "Karla", sans-serif;
        Available weights: 200 (n, i), 300 (n, i), 400 (n, i), 500 (n, i), 600 (n, i), 700 (n, i), 800 (n, i)
        Use: p, button, a, h3, h4, h5, tag, label
*/

/* Font Import */
@import url("https://use.typekit.net/haa3vpr.css");
/* Adobe Import */
@import url('https://fonts.googleapis.com/css2?family=Karla:ital,wght@0,200..800;1,200..800&display=swap');
/* Google Import */


/* BR Styling continued at bottom of page */

/* This is Andrew's styling */
:root {
    --profile-color: #2B4593;
    --profile-border: #0d2879;
}

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);
}

a {
    color: var(--main-hex);
    font-size: inherit;
    text-decoration: none;
}

header {
    width: 100%;
    height: 60px;
    padding: 0px 20px;
    background-color: var(--main-hex);
    border-bottom: 1px solid var(--main-hex);
    position: fixed;
    z-index: 50000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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 {
    margin-top: 20px;
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
}

aside {
    border-radius: var(--border-radius-panel);
    width: 38.2%;
    background-color: var(--panel-hex);
    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%;
    border-radius: 50%;
}

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 .page_pane h1,
main#index .page_pane h2,
main#index .page_pane p {
    width: 100%;
}

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

#news_feed {
    width: 100%;
}

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

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

#login_form {
    padding: 20px;
}

#login_form label,
#form label {
    margin-top: 20px;
    color: var(--main-hex);
    width: 100%;
    display: block;
    clear: both;
    font-weight: bold;
}

#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: 10px;
    color: var(--main-hex);
    font-size: 1rem;
    margin-top: 5px;
}

#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;
}

#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(--main-hex);
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
}

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

#form .avatar {
    width: 200px;
    height: 200px;
}

#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;
}

#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;
}

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

.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);
    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: 20px;
}

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

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

.post_block .row {
    display: flex;
    width: 100%;
    align-items: stretch;
}

.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%;
    border-bottom: 1px solid var(--border-hex);
    padding-bottom: 20px;
    margin-bottom: 0px;
}

.post_composer .row {
    display: flex;
    width: 100%;
}

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

}

.post_composer img {
    width: 100px;
    height: 100px;
    display: block;
    margin-left: auto;
}

.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(--panel-hex);
    color: var(--main-hex);
}

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

.profile_right {
    width: 61.8%;
}

.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;
    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;
}

.logout_message,
.login_error {
    font-weight: bold;
    font-size: 1.6rem;
    padding-bottom: 40px;
}

.logout_message {
    color: var(--success-hex);
}

.login_error {
    color: var(--error-hex);
}



/* BR Styling -------------------------------------------------------------------------------------- */

html {
    font-size: 16px;
}

body {
    font-family: "Karla", sans-serif;
    font-size: 16px;
    font-size: 1rem;
    line-height: 120%;
    color: var(--c-accent-navy);
    background: var(--c-bg);

    /* Background Tiling */
    background-image: url(../img/square_bg.png);
    background-repeat: repeat;
    background-attachment: fixed;
    background-blend-mode: overlay;
}


/* Headings */
h1,
h2,
h3,
h4,
h5 {
    line-height: 120%;
}

h1 {
    font-size: 6.25rem;
    font-family: "synthemesc", sans-serif;
    text-transform: uppercase;
    -webkit-text-stroke: 2px var(--c-accent-navy);
    text-shadow: 2px 4px 0 var(--c-accent-navy);
    color: var(--c-bg-card);
    line-height: 90%;
}

h1.s {
    font-size: 4rem;
    -webkit-text-stroke-width: 0px;
    color: var(--c-accent-navy);
    text-shadow: none;
}

h1.xs {
    font-size: 3.125rem;
    -webkit-text-stroke-width: 0px;
    color: var(--c-accent-navy);
    text-shadow: none;

}

h2 {
    font-family: "the-seasons", sans-serif;
    font-size: 3rem;
    font-weight: 700;
    text-transform: uppercase;
}

h2.name {
    font-size: 2.25rem;
    text-transform: capitalize;
    font-weight: 400;
}

h3 {
    font-family: "Karla", sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
}

h4 {
    font-size: 1.5rem;
    font-weight: 400;
}

h5 {
    font-size: 1.25rem;
    font-weight: 600;
}

p {
    line-height: 150%;
    padding-bottom: 0.5rem;
}

p.lg {
    font-size: 1.125rem;
}

input {
    font-size: 1.35rem;
    opacity: 75%;
    color: var(--t-accent-navy);
    font-style: italic;
}

label {
    font-size: 1rem;
    margin-left: 1rem;
}

a {
    font-size: 1.5rem;
    color: var(--t-accent-navy);
}


/* Button */
button,
.button {
    /* Standard for unstyled buttons */
    padding: 0.5rem 1.5rem;
    justify-content: center;
    font-family: "Karla", sans-serif;
    text-transform: uppercase;
    font-size: 1rem;
    font-weight: 800;
    border: var(--b-button) solid var(--t-accent-navy);
    border-radius: var(--br-button);
    box-shadow: var(--b-button) var(--b-button) 0 0 var(--t-accent-navy);

    /* Additonal styling to accomdate icons */
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

button.fill {
    background: var(--c-accent-navy);
    color: var(--c-bg-card);
}

button.outline {
    background: var(--c-bg-card);
    color: var(--c-accent-navy);
    border: var(--b-button) solid var(--c-accent-navy);
    box-shadow: var(--b-button) var(--b-button) 0 0 var(--c-accent-navy);
}

button.cta {
    background: var(--c-accent-red);
    color: var(--t-white);
    border: var(--b-button) solid var(--t-accent-red);
    box-shadow: var(--b-button) var(--b-button) 0 0 var(--t-accent-red);
}

button.filter {
    background: var(--c-accent-pink);
    border: var(--b-button) solid var(--t-accent-pink);
    box-shadow: var(--b-button) var(--b-button) 0 0 var(--t-accent-pink);
    color: var(--c-bg-card);
}

button.s {
    font-size: 0.75rem;
}

button.m {
    font-size: 1rem;
}

button.xl {
    font-size: 1.5rem;
    padding: 1rem 2.5rem;
    border-radius: var(--br-button-xl);
    border: var(--b-button-xl) solid var(--t-accent-red);
}

button i {
    font-size: 1.2rem;
    line-height: 1;
    display: inline-block;
}

button.s i {
    font-size: 0.8rem;
}

button.m i {
    font-size: 1.2rem;
}

button.xl i {
    font-size: 1.6rem;
}


/* Genre Tags */
.tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    background: var(--c-accent-navy);
    color: var(--t-white);
    border: none;
    border-top-left-radius: var(--br-tag);
    border-bottom-left-radius: var(--br-tag);
    border-top-right-radius: var(--br-tag);
    border-bottom-right-radius: var(--br-tag);

    /* Cut out */
    clip-path: polygon(100% 0%, 90% 50%, 100% 100%, 0 100%, 0 0);
    padding: 0.15rem 1.2rem 0.15rem 0.5rem;
}

.tag.end {
    /* Resource Used: https://www.cssportal.com/css-clip-path-generator/ */
    clip-path: polygon(100% 0%, 90% 50%, 100% 100%, 10% 100%, 0 50%, 10% 0);
    padding: 0.15rem 1.2rem 0.15rem 0.9rem;

    border-top-left-radius: var(--br-tag);
    border-bottom-left-radius: var(--br-tag);
    border-top-right-radius: var(--br-tag);
    border-bottom-right-radius: var(--br-tag);
}

.genre-group {
    display: flex;
}


/* Horizontal Rule */
hr {
    border: none;
    border-top: var(--b-hr) dotted var(--c-accent-navy);
    width: 100%;
}


/* Card Containers */
.card-container {
    background: var(--c-bg-card);
    border: var(--b-card) solid var(--c-accent-navy);
    box-shadow: var(--b-button-xl) var(--b-button-xl) 0 0 var(--c-accent-navy);
    border-radius: var(--br-card);
    padding: 1.5rem;
}


/* Input Container */
.input {
    display: flex;
    align-items: center;
    background: var(--t-white);
    padding: 0.5625rem 1.5rem;
    border: var(--b-input) solid var(--c-accent-navy);
    box-shadow: var(--b-input) var(--b-input) 0 0 var(--c-accent-navy);
    border-radius: var(--br-input);
    width: 30rem;
    color: var(--t-accent-navy);
}

.input i {
    font-size: var(--i-s);
}

.input input {
    border: none;
}

.input input:focus {
    outline: none;
}

.input.search {
    gap: 0.625rem;
    box-shadow: none;
}


/* Icons */
.icon-s {
    font-size: var(--i-s);
}

.icon-m {
    font-size: var(--i-m);
}

.icon-lg {
    font-size: var(--i-lg);
}


/* Profile Photos */
.profile {
    display: block;
    border-radius: 50%;
    border: var(--b-profile-m) solid var(--profile-border);
}

.profile.s {
    width: var(--i-profile-s);
    height: var(--i-profile-s);
    border-color: var(--profile-border);
}

.profile.m {
    width: var(--i-profile-m);
    height: var(--i-profile-m);
}

.profile.xl {
    width: var(--i-profile-xl);
    height: var(--i-profile-xl);
    border: var(--b-profile-xl) solid var(--profile-border);
}


/* Game Photos */
.game {
    padding: 0;
    /* Add base styling if needed */
}

.game.xs {
    width: var(--i-game-xs);
    height: var(--i-game-xs);
    border-radius: var(--br-game);
    box-shadow: var(--b-input) var(--b-input) 0 0 var(--c-accent-navy);
}

.game.s {
    width: var(--i-game-s);
    height: var(--i-game-s);
    border-radius: var(--br-game);
}


/* Navigation */
.nav-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-item i {
    font-size: var(--i-m);
}

a.underline {
    font-size: 1rem;
    text-decoration: underline;
}

.link {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

a.arrow {
    font-size: 1rem;
}


/* Star Ratings */
.star-rating {
    display: flex;
    width: 100%;
    color: var(--c-accent-navy);
}

.star-rating.s i {
    font-size: var(--star-s);
}

.star-rating.m i {
    font-size: var(--star-m);
}


/* Misc */
.hide {
    display: none !important;
}

.show {
    display: block;
}

/* Container that holds all testing elements */
main.container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}


/* Test for Postcard */
main.container {
    box-sizing: border-box;
    padding-left: 48px;
    padding-right: 24px;
    align-items: center;
}

.post-container {
    background: var(--c-bg-card);
    border: var(--b-card) solid var(--c-accent-navy);
    box-shadow: var(--b-button-xl) var(--b-button-xl) 0 0 var(--c-accent-navy);
    border-radius: var(--br-card);
    padding: 1.5rem;
    box-sizing: border-box;

    width: 100%;
    max-width: 880px;
    box-sizing: border-box;
    margin: 0 auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.post-images {
    justify-content: center;
    display: flex;
    padding-top: 1rem;
    gap: 16px;
    width: 100%;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    padding-left: 1rem;
}

.post-user {
    display: flex;
    align-items: center;
    margin-top: 20px;
    margin-bottom: 8px;
    padding-left: 0.3rem;
}

.post-user .profile {
    margin-right: 15px;
}

.game-info {
    padding-top: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.genre-group {
    display: flex;
    margin-top: -1rem;
}

.game-details {
    display: flex;
    flex-direction: column;
}

.post-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding-bottom: 0.5rem;
    padding-left: 4rem;
}

.post-actions .like {
    display: flex;
    align-items: center;
    gap: 4px;
}

.post-actions .comment {
    display: flex;
    align-items: center;
    gap: 4px;
}

.name-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.view-game-btn {
    margin-top: 1rem;
    margin-left: 10rem;
    padding: 6px 12px;
    font-size: 0.9rem;
}

.post-text {
    padding-left: 4rem;
    padding-bottom: 0.75rem;
}