/*** Main editor styles ***/

textarea {
    resize: none;
}

main.editor section {
    margin: 0 2em;
}

input[type="submit"] {
    margin-top: 2em;
}

.edit, .delete {
    border: none;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    outline: none;
    background-color: var(--primaryDefault);
    color: #FFFFFF;
    cursor: pointer;
}

.timelineHeader {
	font-weight: 400;	
}

div.editorContainer, div.projectsGrid {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 2em;
    margin-bottom: 0.5em;
}

div.editorContainer > *, div.projectsGrid > * {
    width: 45%;
}

main.editor section {
    display: none;
    flex-direction: column;
}

section#editPost {
    display: flex;
}

div.modifyBtnContainer {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5em;
    width: 100%;
}

div.dateContainer, div.companyAreaContainer {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 1em;
    margin-bottom: 0.5em;
}

section#curriculumVitae .timeline {
    position: relative;
    max-width: 30em;
    gap: 1em;
    display: flex;
    flex-direction: column;
    height: 100%;
}

section#curriculumVitae .timelineItem, section#projects .projItem {
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border-radius: 10px;
    padding: 1rem;
    position: relative;
}

section#curriculumVitae .timelineItem {
    border: 2px solid var(--timelineItemBrdr);
    color: #FFFFFF;
    background-color: var(--primaryHover);
}

section#curriculumVitae .timelineItem.editing {
    color: #000000;
    border: 5px solid var(--primaryDefault);
    padding: 0.5em;
}

section#curriculumVitae .timelineItem.editing {
    background-color: #FFFFFF;
}

form div.gradeContainer.formControl {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
}

section#curriculumVitae form.timelineItem:not(.editing) .edit,
section#curriculumVitae form.timelineItem:not(.editing) .delete {
    color: var(--primaryHover);
    background-color: #FFFFFF;
}

section#curriculumVitae form.timelineItem:not(.editing) div.dateContainer {
    display: none;
}

section#curriculumVitae form.timelineItem.editing .timelineHeader {
    display: none;
}

section#curriculumVitae form.timelineItem.editing div.gradeContainer.formControl {
    gap: 1em;
    margin-bottom: 0.5em;
}

section#curriculumVitae form.timelineItem:not(.editing) div.gradeContainer.formControl input,
section#curriculumVitae form.timelineItem:not(.editing) div.companyAreaContainer.formControl input,
section#curriculumVitae form.timelineItem:not(.editing) .formControl .courseText,
section#curriculumVitae form.timelineItem:not(.editing) .formControl .jobTitleText,
section#projects form.projItem:not(.editing) div.formControl.projectTitleContainer input,
section#projects form.projItem:not(.editing) div.formControl.infoContainer textarea {
    outline: none;
    border: none;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    border-radius: 0;
    resize: none;
}

section#curriculumVitae form.timelineItem:not(.editing) div.gradeContainer.formControl > *,
section#curriculumVitae form.timelineItem:not(.editing) div.companyAreaContainer.formControl > * {
    color: hsl(0, 0%, 90%);
}

section#curriculumVitae form.timelineItem:not(.editing) .formControl .courseText,
section#curriculumVitae form.timelineItem:not(.editing) .formControl .jobTitleText {
    color: #FFFFFF;
}

section#curriculumVitae form.timelineItem:not(.editing) div.gradeContainer.formControl input {
    padding: 0 0.25em;
}

section#curriculumVitae form.timelineItem:not(.editing) div.formControl .courseText, 
section#curriculumVitae form.timelineItem:not(.editing) .formControl .courseText {
    padding: 0;
}

section#curriculumVitae form.timelineItem:not(.editing) input[type=submit] {
    display: none;
}

.courseText {
    resize: none;
}

section#curriculumVitae form.timelineItem:not(.editing) div.companyAreaContainer input {
    width: 30%;
}

section#projects #projList .projItem {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin: 0 auto;
    width: 90%;
    border: 1px solid var(--grey);
    gap: 1em;
    box-shadow: 0 6px 4px 0 var(--mutedBlack);
}

section#projects #projList {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1em;
}

section#projects #projList .projItem img {
    max-width: 15rem;
    width: 100%;
    padding: 0 1em;
}

section#projects .projItem .linkContainer {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: 3em;
    margin-left: 2em;
}

section#projects .linkContainer .btn {
    padding: 0.25em 0.5em;
}

section#projects #isMainProject {
    width: auto;
}

section#projects form.projItem:not(.editing) div.formControl.imageContainer,
section#projects form.projItem:not(.editing) div.formControl.isMainProject,
section#projects form.projItem:not(.editing) div.formControl.viewProjContainer,
section#projects form.projItem:not(.editing) div.formControl.gitContainer,
section#projects form.projItem:not(.editing) input[type="submit"],
section#projects form.projItem.editing img.displayedImage,
section#projects form.projItem.editing div.linkContainer {
    display: none;
}

section#projects form.projItem:not(.editing) div.formControl.projectTitleContainer input {
    font-size: 1.17em;
    font-weight: bold;
}

section#projects form.projItem:not(.editing) div.formControl.projectTitleContainer input,
section#projects form.projItem:not(.editing) div.formControl.infoContainer textarea {
    color: #000000;
}

section#addPost form, section#editPost form {
    margin: auto 4rem;
}

form .formControl .ck.ck-editor__top .ck-sticky-panel .ck-toolbar {
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
    border-bottom: 2px solid var(--mutedGrey);
    box-shadow: 0 3px 4px var(--mutedBlack);
}

form .formControl .ck.ck-editor__main .ck-content {
    border-top-right-radius: 0;
    border-top-left-radius: 0;
    border-top: inherit;
}

form .formControl .ck-editor__editable {
    min-height: 400px;
}

section#editPost {
    justify-content: center;
}

section#editPost h2 {
    align-self: flex-start;
}

section#editPost table {
    border-collapse: collapse;
    border-style: hidden;
    align-self: center;
    margin-bottom: 5em;
}

section#editPost table td, th {
    border: 1px solid var(--mutedGrey);
    text-align: left;
    padding: 8px;
    min-width: 10rem;
}

section#editPost form {
    margin-bottom: 2em;
}