body {
    display: block;
    position: relative;
    z-index: 1;
}

#cv {
    border: solid black 1px;
    border-radius: 5px;
    display: flex;
    flex-direction: row;
    width: 1000px;
    margin: 50px auto;
    background-color: #b7c7e0;
    padding: 25px 0;
}

#leftCv {
    flex: 1;
    /* border: solid blue 1px; */
    border-right: #333333 solid 1px;
    margin: 25px 0;
    display: flex;
    flex-direction: column;
}

#profileCv {
    display: flex;
    flex-direction: row;
}

#profileText {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.cvSmallText {
    font-size: 14px;
    color: #f0f4f8;
    border-left: #333333 solid 1px;
    /* background-color: #d1d5db; */
    background-color: #8f9eb6;
    border-bottom-left-radius: 3px;
    margin-right: 50px;
    padding: 5px 0;
    padding-left: 5px;
    padding-bottom: 10px;
}

.kana {
    font-size: 10px;
}

.cvSmallTitle {
    color: #333333;
    border-bottom: #333333 solid 1px;
    margin-right: 50px;
    margin-top: 5px;
    /* color: #f0f4f8; */
    font-size: 18px;
    padding: 3px;
    /* background-color: #4a90e2; */
}

#profileCv img {
    height: 200px;
    width: 200px;
    border: solid black 1px;
    border-radius: 50%;
    margin: 25px 25px;
}

#prifileText {
    display: flex;
    flex-direction: column;
}

#introCv {
    border-top: solid #333333 1px;
    margin: 0 50px;
    margin-top: 10px;
    padding-top: 10px;
    height: 500px;
}

#cvPortfolio {
    border-top: #333333 solid 1px;
    margin: 0 50px;
}

.invite {
    text-align: center;
}

#rightCv {
    flex: 1;
    /* border: solid red 1px; */
    border-radius: 5px;
    display: flex;
    flex-direction: column;
}

#rightCv table {
    font-size: 14px;
    color: #f0f4f8;
    border-left: #333333 solid 1px;
    border-top: #333333 solid 1px;
    background-color: #8f9eb6;
    border-bottom-left-radius: 3px;
    padding-top: 5px;
    padding-bottom: 15px;
    padding-right: 10px;
    border-collapse: unset;
    margin-top: 15px;
}

#rightCv td {
    padding-left: 25px;
    padding-top: 3px;
}

h1, h2, h3 {
    margin: 20px 0 0 5px;
    font-size: 18px;
    border-bottom: #333333 solid 1px;
    width: max-content;
}

#schoolCv {
    /* border: solid purple 1px; */
    flex: 1;
    margin: 0 25px;
    display: block;
}

#workCv {
    /* border: solid orange 1px; */
    border-top: #333333 solid 1px;
    margin: 0 25px;
    flex: 1;
}

#skillsCv {
    /* border: solid lightskyblue 1px; */
    border-top: #333333 solid 1px;
    margin: 0 25px;
    flex: 2;
}

.loginContainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background-color: #f0f4f8;
    width: 300px;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.loginForm {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    width: 100%;
}

.loginForm input[type="text"],
.loginForm input[type="password"] {
    width: 100%;
    padding: 10px;
    margin: 5px 0;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
    background-color: white;
}

.createBlogBtn {
    padding: 3px;
    border-radius: 2px;
    color: white;
    background-color: #357ab8;
    width: max-content;
}

.createBlogBtn:hover {
    background-color: #007bff;
}

#blogForm {
    display: flex;
    flex-direction: column;
}

.blogSelection {
    padding: 3px;
    border-radius: 2px;
    color: white;
    background-color: #357ab8;
    margin-top: 2px;
}

.blogSelection:hover{
    background-color: #007bff;
}

.submitButton {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    background-color: #4a90e2;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submitButton:hover {
    background-color: #357ab8;
}

.loginContainer h2{
    color: #333333;
    font-size: 18px;
    margin-bottom: 10px;
}

#main-container {
    /* display: flex;
    gap: 5px; */
    padding: 10px;
    max-width: 900px;
    min-width: fit-content;
    margin: 0 auto;
}

#topNav{
    border: solid black 1px;
    width: 100%;
    max-width: 540px;
    display: flex;
    gap: 10px;
    margin: 0 auto;
    padding: 3px;
}

#topNav button{
    background-color: #4a90e2;
    padding: 3px;
    border-radius: 2px;
    color: white;
}

#topNav button:hover{
    background-color: #357ab8;
}

main {
    /* flex: 3; */
    width: 100%;
    max-width: 540px;
    margin: 0 auto;
}

.blogTitleElement{
    border: none;
}

.article {
    display: block;
    flex-direction: row;
    margin: 5px auto;
    padding: 5px;
    align-items: center;
    border: solid black 1px;
}

.elementContainer {
    display: flex;
    flex-direction: row;
    gap: 5px;
}

.article img {
    width: 150px;
    height: 125px;
    object-fit: cover;
    margin-left: auto;
    border-radius: 2px;
}

.flexList {
    display: block;
    margin: 5px auto;
    padding: 10px;
    border: solid black 1px;
}

.listArticle {
    flex: 1;
    border: solid black 1px;
    padding: 5px;
    margin: 5px 0;
}

.listArticle p {
    font-size: 12px;
    padding: 3px;
}

.flexList img {
    width: 100%;
    height: 100px;
    object-fit: cover;
}

.textElement {
    margin: 5px auto;
    border: solid black 1px;
    padding: 10px;
}

#addButton {
    display: block;
    background-color: lightskyblue;
    color: aliceblue;
    text-align: center;
    border-radius: 3px;
    width: 100%;
    margin: 0 auto;
}

#addButton:hover {
    background-color: rgb(135, 183, 250);
}

#options {
    display: none;
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

#options li {
    padding: 3px;
    border: solid black 1px;
    border-top: none;
}

#options li:hover {
    background-color: rgba(128, 128, 128, 0.5);
}

.editButton {
    padding: 3px 5px;
    background-color: lightskyblue;
    color: white;
    font-weight: bold;
    border-radius: 3px;
}

.editButton:hover {
    background-color: rgb(135, 183, 250);
}

.editUl {
    display: none;
    position: absolute;
    z-index: 2;
    border-bottom: solid black 1px;
}

.editLi {
    display: block;
    gap: 5px;
    /* flex-direction: row; */
    background-color: aliceblue;
    border: solid black 1px;
    border-bottom: none;
    padding: 5px 0;
}

.showButton {
    background-color: cadetblue;
    color: white;
    padding: 2px 3px;
    border-radius: 3px;
}

.showButton:hover {
    background-color: rgb(84, 141, 143);
}

.option {
    position: absolute;
    margin-left: 20px;
}

.colourPalette {
    display: none;
    flex-direction: column;
    border: solid black 1px;
}

.colourRow {
    flex-direction: row;
}

.palette {
    padding: 10px;
}

.optionBox {
    display: none;
    gap: 5px;
    position: absolute;
    background-color: white;
}

.weight {
    border: solid black 1px;
}

.weight:hover {
    background-color: grey;
}

.inputBox {
    display: none;
    gap: 5px;
    background-color: white;
}

.inputBox input {
    border: solid black 1px;
    background-color: white;
}

.inputBox button {
    background-color: cadetblue;
    color: white;
    padding: 3px;
    border-radius: 3px;
    border: solid black 1px;
}

.textAreaContainer {
    display: none;
}

.textAreaContainer textarea {
    border: solid black 1px;
    width: 95%;
}

.textAreaButton {
    color: white;
    background-color: lightskyblue;
    padding: 3px 5px;
    border-radius: 2px;
    margin: 5px 0;
}

.textAreaButton:hover {
    background-color: rgb(135, 183, 250);
}

.uploadBox {
    display: none;
    background-color: white;
    width: max-content;
}

.uploadLabel {
    padding: 5px 3px;
    border-radius: 2px;
    color: white;
    background-color: #007bff;
}

.uploadLabel:hover {
    background-color: blue;
}

.uploadSpan {
    margin: 0 5px;
}

.uploadButton {
    background-color: cadetblue;
    color: white;
    padding: 3px;
    border-radius: 3px;
    border: solid black 1px;
}

.uploadButton:hover {
    background-color: rgb(82, 137, 138);
}

.removeButton {
    background-color: red;
    color: white;
    padding: 3px;
    border-radius: solid black 1px;
}

.removeButton:hover {
    background-color: darkred;
}

@media screen and (max-width: 870px) {
    #main-container {
        flex-direction: column-reverse;
    }
    .elementContainer{
        flex-direction: column;
    }
    .elementContainer img {
        height: 300px;
    }
    .article img {
    width: 100%;
    margin: none;
    }
    #cv {
        flex-direction: column;
        width: auto;
    }
}