/* 
    Common CSS styles for all the files begins
*/
@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');

body {
    background-color: #fff;
    font-family: 'Roboto';
    margin: 0px;
}

#container {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    grid-template-rows: 55px auto;
    grid-gap: 5px;

    /* vh: viewport height */
    min-height: 100vh;
}


#headerstuff {
    background-color: #004F2E;
    color: white;
    grid-template-columns: 66px auto 100px 60px 66px;
    grid-column: 1/4;
    grid-row: 1/2;
    display: grid;
    border: 2px solid black;
}

header h1 {
    font-size: 20px;
}

/* Dropdown Button */
.dropbtn {
    font-size: 15px;
    color: white;
    background-color: #009A44;
    border: 2px solid white;
    border-radius: 5px;
    text-decoration: none;
    padding: 7px;
    margin-top: 8px;
}

  
  /* The container <div> - needed to position the dropdown content */
.dropdown {
    position: relative;
    display: inline-block;
}
  
  /* Dropdown Content (Hidden by Default) */
.dropdown-content {
    display: none;
    border: 2px solid white;
    border-radius: 5px;
    position: absolute;
    background-color: #f1f1f1;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    right: 10px;
}
  
  /* Links inside the dropdown */
.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content p {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content label {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content input {
    margin-left: 30px;
    
    margin-right: 30px;
}
  
  /* 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: #3e8e41;}


#main-center {
    grid-column-start: 2;
    grid-column-end: 3;
    grid-row-start: 2;
    grid-row-end: 3;

    justify-self: center;

    
}

.text-area {
    resize: none;
    width: 600px;
    height: 300px;
}

.counter {
    font-size: 13px;
    font-style: italic;
}

.blog-form {
    margin-top: 60px;
    padding: 2em;
    padding-bottom: 4em;
}

.form-input-grid {
    display: grid;
    grid-template-columns: 1fr;
    row-gap: 1ch;
    column-gap: 1ch;
}

.align-right {
    float: right;
    padding-top: 2ch;
}

.button-style-link-1 {
    font-size: 15px;
    color: white;
    background-color: #009A44;
    border: 2px solid white;
    border-radius: 5px;
    text-decoration: none;
    padding: 7px;
}

.detail-link {
    color: black;
    text-decoration: none;
    padding: 7px;
}

img {
    width: 100%;
    border: 1px solid #dedede;
    border-radius: 10px;
}

.profile-avatar {
    width: 30px;
    height: 30px;
    border: 1px solid #dedede;
    border-radius: 15px;
    margin-top: 10px;
}

article {
    display: grid;
    grid-template-columns: 40px auto;
}

hr {
    border: none;
    border-top: 3px double #333;
    color: #333;
    overflow: visible;
    text-align: center;
    height: 5px;
  }

.vote-image {
    width: 25px;
    height: 25px;
}

.form-note {
    margin-left: 2.3em;
}

footer {
    background-color: white;
    color: black;
    text-align: center;
    grid-column-start: 1;
    grid-column-end: 5;
    grid-row-start: 3;
    grid-row-end: 4;
    padding: 10px;
}

#container-manage {
    display: grid;
    grid-template-columns: 1fr 3fr 3fr 1fr;
    grid-template-rows: 55px auto;
    grid-gap: 5px;

    min-height: 100vh;
}

#header-manage {
    background-color: #004F2E;
    color: white;
    grid-template-columns: 66px auto 100px 60px 66px;
    grid-column: 1/4;
    grid-row: 1/2;
    display: grid;
    border: 2px solid black;
    align-items: center;
    justify-items: center;
}


#user-info {
    grid-column-start: 2;
    grid-column-end: 3;
    grid-row-start: 2;
    grid-row-end: 3;
    justify-self: left;
}

#prev-posts {
    grid-column-start: 3;
    grid-column-end: 4;
    grid-row-start: 2;
    grid-row-end: 3;
    justify-self: center;
}

aside {
    width: 100%;
}

#user-data {
    padding: 0px 0px 30px 20px;
    margin: 20px 0px;
    border: 1px solid #dedede;
    border-radius: 10px;
}

.post {
    margin: 10px 0px;
    border: 1px solid #dedede;
    border-radius: 10px;
    color: #34495E;
    margin-left: 17px;
    padding-left: 10px;
}

.invalid {
    border: 2px solid red;
}




.error-text.hidden {
    color: red;
    font-style: italic;
    display: none;
}

.error-input {
    border: 2px solid red;
    font-style: italic;
}



#emailError,
#SemailError,
#passwordError,
#SpasswordError,
#verifyPasswordError,
#avatarError,
#dobError,
#screennameError,
#fnameError,
#lnameError,
#titleError,
#imageError
#commentError {
    color: red;
    font-style: italic;
    font-size: 0.9em;
    margin-bottom: 5px;
    display: block;
}


.hidden {
    visibility: hidden;
}

