/* This css file is for the post.html */

/* ========================= html post form  ========================= */

form {
   /* Center the form on the page */
   margin: 20px auto;
   width: 450px;
   /* Form outline */
   padding: 1em;
   border: 1px solid #ccc;
   border-radius: 1em;
}

#post-form {
   position: relative;
   top: 40px;
}

ul {
   list-style: none;
   padding: 0;
   margin: 0;
}

form li+li {
   margin-top: .5em;
}

label {
   /* Uniform size & alignment */
   display: inline-block;
   width: 90px;
   text-align: left;
}

input,
textarea {
   /* To make sure that all text fields have the same font settings By default, textareas have a monospace font */
   font: 1em sans-serif;
   /* Uniform text field size */
   width: 300px;
   box-sizing: border-box;
   /* Match form field borders */
   border: 1px solid #999;
}

input:focus,
textarea:focus {
   /* Additional highlight for focused elements */
   border-color: #000;
}

textarea {
   /* Align multiline text fields with their labels */
   vertical-align: top;
   /* Provide space to type some text */
   height: 5em;
}

.submit-button {
   position: relative;
   margin-left: 60px;
}

#categoryDropdown {
   padding: 8px;
   font-size: 16px;
 }

/* ========================= post guidelines ========================= */

#guidelineButton {
   margin: 10px;
   margin-top:75px; 
   /* 
   
   margin-left: 15px;   */
   position: absolute;
   /* left: 630px; */
   padding: 10px 20px;
   font-size: 16px;
}

/* Styles for the modal container */
#guideModal {
   display: none;
   position: fixed;
   top: 240px;
   left: 50px;
   width: 50%;
   height: 50%;
   /* light gray background to see all of space modal takes up */
   /* background-color: rgba(0, 0, 0, 0.5); */
   justify-content: left;
   align-items: center;
   z-index: 1;
}

/* Styles for the modal content */
#modal-content {
   top: 50px;
   background-color: #fff;
   padding: 20px;
   border-radius: 8px;
   box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
   line-height: 1.29;
}

/* ========================= invalid email popup ========================= */

.popup {
   position: fixed;
   z-index: 1;
   left: 0;
   top: 0;
   width: 100%;
   height: 100%;
   overflow: auto;
   background-color: rgba(0, 0, 0, 0.4);
   display: none;
}
.popup-content {
   background-color: white;
   margin: 10% auto;
   line-height: 1.5;
   margin-bottom: 10px;
   text-align: center;
   padding: 20px;
   border: 1px solid #888888;
   width: 30%;
   font-weight: bolder;
}
.popup-content button {
   display: block;
   padding: 5px 5px;
   margin-top: 10px;
   margin-left: 172.5px;
}
.show {
   display: block;
}

h1 {
   color: orange;
}
.container{
   display: flex;
      justify-content: center;
      align-items: center;
}

/* ========================= footer ========================= */

.footer {
   margin-top: 60px;
   padding: 20px;
   /* Some padding */
   text-align: center;
   /* Center text*/
   background: #ddd;
   /* Grey background */
}

/* Make sure the nav bar is not hidden when this page loads */
#navBar {
   display: inline-block
}