:root {
    --primary-color: #FFDE00;
    --primary-light-color: #FFE769;
    --secondary-color: #FFE4BA;
    --secondary-light-color: #FFF6E8;
    --post-color: #62EEA8;
    --delete-color: #FF9F9F;
    --light-color: #FFFEFC;
    --grey-color: #747E79;
    --dark-color: #000000;

    --primary-font: 'Cabin', sans-serif;
    --seconday-font: 'Calistoga', sans-serif;
    
    --border-width: 3px;
    --element-border-radius: 5px;
    
    --button-height: 5px;
    
    --small-button-height: 2px;
    
    --element-padding: 0.8em;
    
    --maximum-width: 320px;
}

html, body {
    margin: 0;
    padding: 0;
    font-size: 16px;
}

body {
    color: var(--dark-color);
    background-color: var(--secondary-light-color);
    font-family: var(--primary-font);
}

/* === Typography === */

h1, h2 {
    margin: 0;
}

h2 {
    font-weight: 500;
}

.app-title {
    font-family: var(--seconday-font);
    font-size: 2.5em;
    text-align: center;
}

/* === Sections === */

section {
    margin: 3em 0;
}

.auth-fields-and-buttons {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

/*=== User Section === */

.user-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8em;
}

.user-section img {
    width: 3.75em;
    height: 3.75em;
    border-radius: 100%;
    border: var(--border-width) solid var(--dark-color);
}

.user-section h2 {
    font-size: 1.2em;
}


/* === Nav === */

nav {
    /* margin: 0.6em 0; */
    margin: 0;
    width: 100%;
    height: 50px;
    background-color: var(--primary-color);
    padding: 3px;
    display: flex;
    justify-content: space-between;
}

.logo {
    width: 45px;
    padding: 5px;
}

/* search */
.search-container {
    width: 280px;
    height: 30px;
    margin-top: 8px;
    border-radius: 25px;
    background-color: white;
    border: solid black;
}

#search {
    width: 250px;
    height: 10px;
    border: none;
    border-radius: 25px;
    text-align: left;
    float: right;
}

.user-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8em;
}

.user-section img {
    width: 3.75em;
    height: 3.75em;
    border-radius: 100%;
    border: var(--border-width) solid var(--dark-color);
}

.user-section h2 {
    font-size: 1.2em;
}
/* === Structure === */

.container {
    max-width: var(--maximum-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    width: 100%;
}

#logged-out-view .container {
    gap: 2em;
}

/* === Common for elements === */

input, button, textarea {
    font-family: inherit;
    padding: var(--element-padding);
    border-radius: var(--element-border-radius);
    width: 100%;
    box-sizing: border-box;
}
 
input, button {
    font-size: 1.1em;
    text-align: center;
    border: var(--border-width) solid var(--dark-color);
}
 
input:focus, button:focus, textarea:focus {
    outline: none;
}


/* === Input fields === */

input {
    font-weight: 300;
}

input::placeholder, textarea::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
    color: var(--grey-color);
    opacity: 1; /* Firefox */
}

input:-ms-input-placeholder { /* Internet Explorer 10-11 */
    color: var(--grey-color);
}

input::-ms-input-placeholder { /* Microsoft Edge */
    color: var(--grey-color);
}

textarea {
    font-size: 1em;
    border: 0;
    box-shadow: 3px 3px 3px 1px rgba(0, 0, 0, .25);
    resize: none;
    height: 6em;
}

textarea::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
    color: var(--grey-color);
    opacity: 1; /* Firefox */
}

textarea:-ms-input-placeholder { /* Internet Explorer 10-11 */
    color: var(--grey-color);
}
  
textarea::-ms-input-placeholder { /* Microsoft Edge */
    color: var(--grey-color);
}
 

/* === Buttons === */

button {
    font-weight: 600;
    width: 100%;
    border:none;
}

button:hover {
    cursor: pointer;
}

.primary-btn {
    background-color: var(--primary-color);
    box-shadow: 0px var(--button-height) 0px 0px var(--dark-color);
    position: relative;
}

.primary-btn:hover {
    top: var(--button-height);
    box-shadow: none;
}

.secondary-btn {
    padding: 0.4em;
    background-color: transparent;
}

.secondary-btn:hover {
    color: var(--light-color);
    background-color: var(--dark-color);
}

.provider-btn {
    color: var(--dark-color);
    background-color: var(--light-color);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5em;
    border: 0;
    box-shadow: 3px 3px 3px 1px rgba(0, 0, 0, .25);
}

.provider-btn:hover {
    transition: all 0.2s ease;
    box-shadow: 0px 0px 0px 0px rgba(0, 0, 0, .25);
}

.google-btn-logo {
    width: 1.375em;
}

/* 
classes to make the sign out buttons work 
*/

.icon-img-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 1.875em;
    margin-top: 4px;
    margin-right: 5px;
}

.icon-img-btn:hover {
    filter: invert(0.5);
}

.search-icon {
    width: 20px;
    height: 20px;
    margin-top: 5px;
    margin-left: 7px;
}

textarea {
    font-family: inherit;
    padding: var(--element-padding);
    border-radius: var(--element-border-radius);
    width: 100%;
    height: 100px;
    box-sizing: border-box;
    font-size: 1.1em;
    box-shadow: 5px 5px 5px rgba(0, 0, 0, .25);
    border: none;
    resize: none;
    margin-top: 15px;
}


/* === Post Section === */
.post-section {
    display: flex;
    flex-direction: column;
    gap: 1em;
    margin-bottom: 50px;
}

#post-container {
    width: 100%;
    justify-items: center;
}

.post {
    background-color: #ffe4ba;
    width: 500px;
    border-radius: 10px;
    padding: 15px;
    margin: 20px;
}

.profile-pic {
    width: 3.75em;
    height: 3.75em;
    border-radius: 100%;
    border: var(--border-width) solid var(--dark-color)
}

.icons {
    text-align: right;
}

#likeBtn, #commentBtn, #shareBtn {
    width: 30px;
    margin: 5px;
}

/* === IDs === */

#logged-out-view {
    display: none;
}

#logged-in-view {
    display: none;
}

/*  credit:coursera */

/* Dropdown Button */
.dropbtn {
    background-color: #FFDE00;
    color: rgb(0, 0, 0);
    padding: 16px;
    font-size: 16px;
    border: none;
 }
 
 
 /* The container <div> - needed to position the dropdown content */
 .dropdown {
    position: relative;
    display: inline-block;
 }
 
 
 /* Dropdown Content */
 .dropdown-content {
    display: none;
    position: absolute;
    background-color: #f1f1f1;
    min-width: 320px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
 }
 
 
 /* Links inside the dropdown */
 .dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
 }
 
 
 /* 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;
 }
 