* {
    box-sizing: border-box;
}
#mainbody {
    width: 90%;
    margin: auto;
    /*font-family: Arial, Helvetica, sans-serif;*/
    font-family: 'Open Sans', sans-serif;
}
html {
    scroll-behavior: smooth;
}
#layout {
    display: flex;
    flex-wrap: wrap;
    align-items : center;
}
#photo, #contact {
    flex-basis: 50%;
    text-align: center;
} 
#timenewsroman {
    font-family: Times New Roman, Times, serif;
}
#faceimg {
    width: 50%;
    object-fit: fill;
    border-radius: 50%;
    border: 1px solid gray;
    margin-top: 5%;
    margin-bottom: 5%;
    box-shadow:
    0 0 65px 1px rgb(235, 177, 108);
}
a.logo {
    color: black;
    text-decoration: none;
    transition: color 0.3s;
}
a.logo:visited {
    color: black;
    text-decoration: none;
}
a.logo:hover {
    color: royalblue;
    text-decoration: none;
}
a.logo:active {
    color: black;
    text-decoration: none;
}
#aboutme, #worktitle, #Tskill, #projecttitle, #edutitle {
    flex-basis: 35%;
    text-align: center;
}
#aboutmetext {
    flex-basis: 65%;
    text-align: center;
}
#box {
    border-radius: 15%;
    width: auto;
    /*background-color: rgba(191, 186, 186, 1);*/
    background-color: rgba(238, 229, 229, 0.5);
    border: 1px solid gray;
    padding: 5%;
    margin-top: 5%;
    margin-bottom: 5%;
    background-size: cover;
    background-repeat: no-repeat;
    background-image: url("mac.jpg");
    background-blend-mode: lighten;
    text-align: justify;
    box-shadow:
    0 0 10px 1px rgb(235, 177, 108);
}
#work, #project, #edu {
    flex-basis: 65%;
}
#skills {
    flex-basis: 65%;
}

.skills-list {
    list-style-type: none;
    padding-left: 0;
    text-align: left;
    font-size: 16px;
}

.skills-list li {
    margin-bottom: 20px;
}

.skills-list ul {
    list-style-type: disc;
    margin-top: 10px;
}

#datefloatright {
    flex-basis:100%;
    text-align: center;
    font-size: 90%;
}
#notfloatright {
    flex-basis:100%;
    text-align: center;
}

.btn {
    background-color: black;
    border: none;
    border-radius: 20px;
    color: white;
    padding: 12px 30px;
    cursor: pointer;
    font-size: 110%;
    transition: background-color 0.3s, color 0.6s;
}
.btn:hover {
    background-color: RoyalBlue;
    color: black;
}
.container{
    color:#000;
}
.section-1{
    background-image:url(background.jpg);
    background-position:center;
}
.section-2{
    background-image:url(background.jpg);
    background-position:center;
}
.section-3{
    background-image:url(background.jpg);
    background-position:center;
}
.btnScrollToTop {
    position: fixed;
    bottom: 1%;
    width: fit-content;
    z-index: 99;
    right: 0%;
    left: auto;
    color: black;
    background-color: grey;
    padding-left: 1%;
    padding-right: 1%;
    padding-top: 1%;
    padding-bottom: 1%;
    border-radius: 4px;
    cursor:pointer;
    transition: background-color 0.3s, color 0.6s;
}
.btnScrollToTop:hover {
    background-color: black;
    color: white;
}
#contact-me {
    text-align: center;
}

#form-status {
    text-align: center;
}

#contact-form {
    flex-basis: 100%;
    max-width: 600px;
    margin: 0 auto 1%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    font-size: 16px;
}

#contact-form label {
    font-weight: bold;
    font-family: "Lato", sans-serif;
}

#contact-form input,
#contact-form textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-family: "Lato", sans-serif;
    font-size: 16px;
    width: 100%;
}

#contact-form button.btn {
    width: fit-content;
    align-self: center;
}

@media (max-width: 640px) {
    #photo, #contact, #aboutme, #aboutmetext, #work, #skills, #project, #edu {
        flex-basis: 100%;
    }
    #box {
        border-radius: 10%;
        padding: 5%;
        margin-top: 0%;
    }
    #worktitle, #projecttitle, #edutitle {
        flex-basis: 100%;
        text-align: left;
    }
    #Tskill {
        flex-basis: 100%;
        text-align: center;
    }
    #datefloatright {
        flex-basis: 40%;
        text-align: right;
    }
    #notfloatright {
        flex-basis: 60%;
        text-align: left;
    }
    #contact-me {
        text-align: left;
    }
    #contact-form button.btn {
        align-self: flex-start;
    }
    #form-status {
        text-align: left;
    }
}
