.container {
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    background: #F6F6FA;
}


body {
    font-family: 'Montserrat', sans-serif;

}

img {
    display: block;
    max-width: 100%;
    height: auto;
}


a {
    text-decoration: none;
}

.main-container {
    padding-top: 20px;
    padding-bottom: 20px;
    box-sizing: border-box;
    padding-left: 8px;
    padding-right: 8px;
}

/* My info */

.my-info-div {
    margin-bottom: 20px;
}

.my-info-title {
    color: #6D9BF5;
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: 17px;
    margin-top: 0;
    margin-bottom: 8px;
    text-align: center;
}

.main-title {
    color: #000;
    font-size: 35px;
    font-style: normal;
    font-weight: 700;
    line-height: 55px;
    margin-top: 0;
    margin-bottom: 12px;
    text-align: center;
}

.my-info-text {
    color: #595959;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
    margin-top: 0;
    text-align: center;
}

/* My projects */

.projects-div {
    margin-bottom: 20px;
}

.projects-title {
    color: #000;
    font-size: 22px;
    font-weight: 700;
    line-height: 27px;
    margin-top: 0;
    margin-bottom: 8px;
    text-align: center;
}

.projects-list {
    padding-left: 18px;
}

.projects-list-item {
    color: #000;
    font-size: 14px;
    font-weight: 700;
    line-height: 24px;
}


.projects-link {
    color: #005FFF;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
    text-decoration-line: underline;
}

.span-link {
    color: #595959;
    font-size: 14px;
    font-weight: 400;
    line-height: 24px;
}

.projects-link:hover,
.projects-link:focus {
    color: purple;
    transition: color 500ms cubic-bezier(0.4, 0, 0.2, 1);
}


/* Languages styles */

.lang-div {
    margin-bottom: 20px;
}

.lang-title {
    color: #000;
    font-size: 22px;
    font-weight: 700;
    line-height: 27px;
    margin-top: 0;
    margin-bottom: 8px;
    text-align: center;
}

.lang-list {
    padding-left: 40px;
}

.lang-list-item {
    color: #595959;
    font-size: 14px;
    font-weight: 400;
    line-height: 24px;
}

/* Work Experience */

.work-div {
    margin-bottom: 20px;
}

.work-title {
    color: #000;
    font-size: 22px;
    font-weight: 700;
    line-height: 27px;
    margin-top: 0;
    margin-bottom: 12px;
    text-align: center;
}

.second-work-title {
    color: #6D9BF5;
    font-size: 16px;
    font-weight: 700;
    line-height: 20px;
    margin-top: 0;
    margin-bottom: 12px;
    text-align: center;
}

.work-span {
    color: #6D9BF5;
    font-size: 16px;
    font-weight: 700;
    line-height: 20px;
}

.work-text {
    color: #A8A8A8;
    font-size: 12px;
    font-weight: 400;
    line-height: 15px;
    margin-top: 0;
    margin-bottom: 8px;
    text-align: center;
}

.work-text-span {
    color: #000;
    font-size: 12px;
    font-weight: 400;
    line-height: 15px;
}

.work-list {
    padding-left: 40px;
}

.work-list-item {
    color: #595959;
    font-size: 14px;
    font-weight: 400;
    line-height: 24px;
}

/* Education Styles */

.education-title {
    color: #000;
    font-size: 22px;
    font-weight: 700;
    line-height: normal;
    margin-top: 0;
    margin-bottom: 12px;
    text-align: center;
}

.college-div {
    margin-bottom: 20px;
}

.college-title {
    color: #6D9BF5;
    font-size: 16px;
    font-weight: 700;
    line-height: normal;
    margin-top: 0;
    margin-bottom: 8px;
    text-align: center;
}

.department-title {
    color: #000;
    font-size: 14px;
    font-weight: 700;
    line-height: normal;
    margin-top: 0px;
    margin-bottom: 8px;
    text-align: center;
}

.education-text {
    color: #A8A8A8;
    font-size: 12px;
    font-weight: 400;
    line-height: normal;
    margin-bottom: 0;
    margin-top: 0;
    text-align: center;
}

.goit-title {
    color: #6D9BF5;
    font-size: 16px;
    font-weight: 700;
    line-height: normal;
    margin-top: 0;
    margin-bottom: 8px;
    text-align: center;
}

.block-title {
    color: #000;
    font-size: 14px;
    font-weight: 700;
    line-height: normal;
    margin-top: 0;
    margin-bottom: 8px;
    text-align: center;
}

.goit-text {
    color: #A8A8A8;
    font-size: 12px;
    font-weight: 400;
    line-height: normal;
    margin-top: 0;
    margin-bottom: 0;
    text-align: center;
}


/* Sidebar styles */

.sidebar {
    background: #E0EBFE;
    padding-top: 20px;
    padding-bottom: 20px;
    box-sizing: border-box;
    width: 310px;
    margin-left: auto;
    margin-right: auto;
}

.sidebar-content {
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 40px;
    box-sizing: border-box;
}

.sidebar-photo {
    display: none;
}

/* Contacts styles */

.contacts-title {
    color: #161D2A;
    font-size: 22px;
    font-weight: 700;
    line-height: normal;
    margin-top: 0;
    margin-bottom: 8px;
    text-align: center;
}

.span-contact {
    color: #161D2A;
    font-size: 14px;
    font-weight: 700;
    line-height: 24px;
    margin-right: 8px;
}

.contacts-div {
    margin-bottom: 20px;
}

.contacts-text {
    margin-top: 0;
    margin-bottom: 4px;
}

/* Tech Skills */

.tech-div {
    margin-bottom: 20px;
}

.tech-title {
    color: #161D2A;
    font-size: 22px;
    font-weight: 700;
    line-height: normal;
    margin-top: 0;
    margin-bottom: 8px;
    text-align: center;
}

.tech-list {
    padding-left: 40px;
}

.tech-list-item {
    color: #161D2A;
    font-size: 14px;
    font-weight: 400;
    line-height: 24px;
}

/* Soft Skills */

.soft-title {
    color: #161D2A;
    font-size: 22px;
    font-weight: 700;
    line-height: normal;
    margin-top: 0;
    margin-bottom: 8px;
    text-align: center;
}

.soft-list {
    padding-left: 40px;
}

.soft-list-item {
    color: #161D2A;
    font-size: 14px;
    font-weight: 400;
    line-height: 24px;
}

.sidebar-link:hover,
.sidebar-link:focus {
    color: purple;
    transition: color 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

.inst-link {
    color: #0000ee;
    display: inline-flex;
    gap: 4px;
    align-items: center;
}

.icon-svg-team {
    fill: orangered;
}

.icon-svg-team:hover,
.icon-svg-team:focus {
    fill: purple;
    transition: fill 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------------TABLET STYLES--------------- */

@media screen and (min-width: 768px) {
    .container {
        max-width: 768px;
        display: flex;
        flex-direction: row-reverse;
        justify-content: flex-end;
        background: white;
    }

        body {
            background: #F6F6FA;
            padding: 40px 40px 40px 40px;
            font-family: 'Montserrat', sans-serif;
        }

   .main-container {
       padding-top: 40px;
       padding-bottom: 40px;
       box-sizing: border-box;
       padding-left: 40px;
       padding-right: 40px;
   }

   .my-info-div {
       margin-bottom: 40px;
   }

   .my-info-title {
    text-align: left;
   }

   .main-title {
    text-align: left;
   }

   .my-info-text {
    text-align: left;
   }

   .info-photo {
    display: none;
   }

   .projects-div {
       margin-bottom: 40px;
   }

   .projects-title {
    text-align: left;
   }

   .lang-div {
       margin-bottom: 40px;
   }

   .lang-title {
    text-align: left;
   }

   .lang-list {
    padding-left: 15px;
   }

   .work-div {
       margin-bottom: 40px;
   }

   .work-title {
    text-align: left;
   }

   .second-work-title {
    text-align: left;
   }

   .work-text {
    text-align: left;
   }

   .work-list {
    padding-left: 15px;
   }

   .college-div {
       margin-bottom: 40px;
   }

   .education-title {
    text-align: left;
   }
   .education-text {
    text-align: left;
   }

   .college-title {
    text-align: left;
   }

   .department-title {
    text-align: left;
   }

   .goit-title {
    text-align: left;
   }

   .block-title {
    text-align: left;
   }

   .goit-text {
    text-align: left;
   }

 /* SIDEBAR STYLES */


   .sidebar {
       padding-top: 40px;
       padding-bottom: 40px;
   }

   .sidebar-content {
       padding-left: 20px;
       padding-right: 20px;
       padding-top: 40px;
   }

   .sidebar-photo {
    display: block;
   }

   .contacts-title {
    text-align: left;
   }

   .tech-title {
    text-align: left;
   }

   .tech-list {
    padding-left: 15px;
   }

   .soft-title {
    text-align: left;
   }

   .soft-list {
    padding-left: 15px;
   }

   .contacts-div {
       margin-bottom: 40px;
   }

   .tech-div {
       margin-bottom: 40px;
   }

}



/* ----------------DESKTOP VERSION---------------- */


@media screen and (min-width: 1158px) {
    .container {
        max-width: 1158px;  
    }

    .main-container {
        padding-left: 80px;
        padding-right: 80px;
        padding-top: 80px;
        padding-bottom: 80px;
    }

    .lang-list-item {
        font-size: 16px;
    }

    .work-text {
        font-size: 14px;
    }

    .work-text-span {
        font-size: 14px;
    }

    .work-list-item {
        font-size: 16px;
    }

    .department-title {
        font-size: 15px;
    }

    .education-text {
        font-size: 14px;
    }

    .block-title {
        font-size: 15px;
    }

    .goit-text {
        font-size: 14px;
    }

    .sidebar {
        width: 420px;
    }

    .sidebar-content {
        padding-left: 30px;
        padding-right: 30px;
    }

    .icon-svg-team {
        display: inline;
    }
    
}