/* CORE STYLES */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: black;
}

body#page1 {
    background-color: white;
}

body#page2 {
    background-color: white;
    color: #000000;
}

.wrapper {
    display: grid;
    height: 100%;
    grid-template-columns: 1fr;
    grid-template-rows: 90px 1fr 1fr;
    grid-template-areas: "header  header ""content content" "footer footer";
}

header {
    grid-area: header;
    padding: 10px;
}

article {
    grid-area: content;
    /* background-color: #20bf6b;*/
    padding: 20px;
    width: 80%;
    grid-row: 2;
}

article#page1 {
    grid-area: content;
    padding: 20px;
    grid-row: 2;
}

aside {
    grid-area: sidebar;
    /*background-color: #45aaf2;*/
}

footer {
    padding: 20px;
    grid-area: footer;
    /*background-color: #fd9644;*/
}

/* dropdown */
.dropdown {
    float: left;
    overflow: hidden;
}

.dropdown .dropbtn {
    font-size: 16px;
    border: none;
    outline: none;
    color: white;
    padding: 14px 16px;
    background-color: inherit;
    font-family: inherit;
    margin: 0;
}

.navbar a:hover,
.dropdown:hover .dropbtn {
    background-color: red;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.dropdown-content a {
    float: none;
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

.dropdown-content a:hover {
    background-color: #ddd;
}

.dropdown:hover .dropdown-content {
    display: block;
}
/*Navigator */

.nav-btn {
    display: flex;
    font-family: Open Sans;
    text-transform: uppercase;
    width: 80%;
}

.nav-btn>ul {
    display: flex;
}

ul>li {
    list-style-type: none;
    font-size: 16px;
    margin-top: 20px;
    margin-left: 100px;
    transition: opacity 0.2s ease-in-out;
    font-weight: bold;
    
}

li:hover {
    opacity: 0.5;
}

li:nth-child(1) {
    margin-left: 20px;
}

li:nth-child(2) {
    margin-left: 250px;
}

ul>li>a {
    color: #ffffff;
    text-decoration: none;
    line-height: 20px;
}


/*content home page */


/*page2 main navigation text color */

a#page2 {
    color: #000000;
}

.welcome {
    display: flex;
    flex-direction: column;
    width: 458;
    height: 120px;
    /*margin-left: 200px;*/
    margin-bottom: 1px;
    color: #ffffff;
    transform: translate(200px, 0px)
    /* background: #ffffff;*/
}

.welcome>h1 {
    font-size: 36px;
    font-weight: 400;
    width: 274px;
    height: 49px;
}

.welcome>p {
    font-size: 12px;
    font-weight: 400;
    line-height: 16.34px;
    margin-bottom: 0px;
}

.welcome-btn {
    display: inline-block;
    border: 1px solid #fff;
    color: white;
    padding: 10px;
    padding-bottom: 5px;
    padding-top: 5px;
    margin-right: 10px;
    text-align: center0.5;
    text-decoration: none;
    font-size: 12px;
    transform: translate(200px, 60px);
    cursor: pointer;
    border-radius: 1rem;
    transition: opacity 1s ease-in-out;
    text-transform: uppercase;
}

.welcome-btn:hover {
    opacity: 0.5;
}

.welcome-btn-wrap {
    display: block;
}


/*horizontal line */

.hr-line1 {
    display: flex;
    position: relative;
    border-bottom: 1px solid rgb(128, 113, 113);
    width: 200px;
    transform: translate(520px, 10px);
}

.hr-line2 {
    display: flex;
    position: relative;
    border-bottom: 1px solid rgb(128, 113, 113);
    width: 200px;
    transform: translate(450px, 10px);
}


/*Page development */

.section-custom {
    display: flex;
    flex-direction: column;
}

.flex-item {
  width: 500px;
  /*min-height: 150px;*/

  display: inline-block;
  
}

.section-custom>h1 {
    font-size: 20px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.section-custom>p {
    font-size: 16px;
    margin-bottom: 30px;
}

.section-custom-center {
    display: flex;
    flex-direction: column;
}

.section-custom-center>h1 {
    font-size: 18px;
    font-weight: 400;
    text-transform: uppercase;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2px;
}

.section-custom-center>p {
    font-size: 16px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 20px;
}


/*Page identity & vision */

.left-content {
    grid-area: content;
    grid-column-start: 1;
    grid-column-end: 3;
    grid-row: 3;
    margin: 30px;
    margin-bottom: 10px;
}

.mid-content {
    grid-area: content;
    grid-column-start: 3;
    grid-column-end: 5;
    grid-row: 4;
    margin: 30px;
}

.project-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 40px 1fr 1fr 1fr 1fr 1fr 1fr;
}

.project-left-content {
    grid-area: content;
    grid-column-start: 1;
    grid-column-end: 3;
    grid-row: 2;
    margin-bottom: 10px;
}

.project-right-content {
    grid-area: content;
    grid-column-start: 3;
    grid-column-end: 5;
    grid-row: 2;
    margin: 30px;
    margin-bottom: 10px;
}


/* project page -  overview project images */

.container {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 100px 300px;
    grid-gap: 10px;
    grid-auto-flow: dense;
    padding-top: 50px;
    margin: 30px;
}

.gallery-item {
    width: 100%;
    height: 100%;
    position: relative;
}

.gallery-item .image {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.gallery-item .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
    cursor: pointer;
    transition: .5s ease-in-out;
}

.gallery-item:hover .image img {
    transform: scale(1.5);
}

.gallery-item .text {
    opacity: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 25px;
    pointer-events: none;
    z-index: 4;
    transition: .3s ease-in-out;
    -webkit-backdrop-filter: blur(5px) saturate(1.8);
    backdrop-filter: blur(5px) saturate(1.8);
}

.gallery-item:hover .text {
    opacity: 1;
    animation: move-down .3s linear;
    padding: 1em;
    width: 100%;
    color: #000;
}

.w-1 {
    grid-column: span 1;
}

.w-2 {
    grid-column: span 2;
}

.w-3 {
    grid-column: span 3;
}

.w-4 {
    grid-column: span 4;
}

.w-5 {
    grid-column: span 5;
}

.w-6 {
    grid-column: span 6;
}

.h-1 {
    grid-row: span 1;
}

.h-2 {
    grid-row: span 2;
}

.h-3 {
    grid-row: span 3;
}

.h-4 {
    grid-row: span 4;
}

.h-5 {
    grid-row: span 5;
}

.h-6 {
    grid-row: span 6;
}


/*project's pages*/

/*work content pages*/
.work-content{
    display: grid;
    padding-left: 10%;
    padding-right: 10%;
    padding-top: 5%;
    grid-template-columns: auto auto;
    grid-template-rows: auto auto auto;
    grid-column-gap: 1em;
    grid-row-gap: 10em;
    
}

/* work content pages end */

/*Media Queries*/

@media only screen and (max-width: 500px) {
    .welcome {
        transform: translate(0px, -80px);
        width: 320px;
        font-size: 12px;
    }
    .welcome-btn {
        transform: translate(0px, 10px);
    }
    ul>li {
        margin-left: 80px;
        font-size: 12px;
    }
    li:nth-child(1) {
        margin-left: 2px;
    }
    li:nth-child(2) {
        margin-left: 50px;
    }
    li:nth-child(3) {
        margin-left: 20px;
    }
    li:nth-child(4) {
        margin-left: 20px;
    }
    .welcome>h1 {
        font-size: 20px;
    }
    .hr-line1 {
        width: 60px;
        transform: translate(150px, 5px);
    }
    .hr-line2 {
        width: 60px;
        transform: translate(150px, 5px);
    }
    .left-content {
        grid-area: content;
        grid-column-start: 1;
        grid-column-end: 1;
        grid-row: 2;
        margin: 30px;
        margin-bottom: 10px;
    }
    .mid-content {
        grid-area: content;
        grid-column-start: 1;
        grid-column-end: 1;
        grid-row: 2;
        /*margin: 30px;*/
    }
    .container {
        grid-template-columns: repeat(1, 1fr);
    }
    .w-1,
    .w-2,
    .w-3,
    .w-4,
    .w-5,
    .w-6 {
        grid-column: span 1;
    }
    @keyframes move-down {
        0% {
            top: 10%;
        }
        50% {
            top: 35%;
        }
        100% {
            top: 50%;
        }
    }
    .gallery-item .text {
        opacity: 0.8;
        transform: translate(-60%, -60%);
    }
    .gallery-item:hover .text {
        opacity: 0;
        animation: move-down .0s linear;
        
    }.wrapper {
       grid-template-areas: "header" "content" "footer";
}

	.flex-item {
	  width: 100px;

	}
	
	.wrap-text {
	  overflow-wrap: break-word;
	  max-width: 360px;
	}
 /* content resize */		
	.work-content{
        grid-template-columns: auto;
        grid-gap:30px 30px;
        padding-left:10px;
        padding-right: 10px;
        padding-top: 40px;
    }
}