
@import url('https://fonts.googleapis.com/css2?family=Lexend+Exa&display=swap');

/* root is defining the colors and shadows variables */

:root {
  --white: #fff;
  --light: #eee;
  --bluish: #00ffbb;
  --purple: #b500ff;
  --cat: #ffb500;
  --dark: #181818;
  --shadow: 0 1rem 2rem rgba(0,0,0,0.05), 0 0.6rem 0.6rem rgba(0,0,0,0.05);
  --bored: #bf1e2e;
  --boredtransparent: rgba(191,30,46,0.75);
  --bodark: #353a3e;
  --bodarktransparent: rgba(53,58,62,0.75);
  --d: 700ms;
  --e: cubic-bezier(0.19, 1, 0.22, 1);

}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  box-sizing: border-box;
  font-size: 62.5%;
  scroll-behavior: smooth;
}

/* Responsive font size codes */


@media (max-width: 1920px) {
  html {
    font-size: 60%;
  }
}

@media (max-width: 1365px) {
  html {
    font-size: 60%;
  }
}
/* body css is written in grid, and the page wrapper is inside 'main' grid-area,header in 'header and footer in 'footer' */


body {
  width: 100%;
  font-family: 'Helvetica' , sans-serif;
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--dark);
  background-color: var(--light);
  display: grid;
  grid-template-areas: "header header header"
                         "left main right"
                         "footer footer footer";

    grid-template-columns: 1fr 3fr 1fr;
    grid-template-rows: 40rem auto auto;
    /* This codes prevent text selection */

        -moz-user-select: none; -webkit-user-select: none; -ms-user-select:none; user-select:none;-o-user-select:none;
}





@media (max-width: 1550px) {
  html {
    font-size: 60%;
  }

  body {
      grid-template-columns: 1fr 30fr 1fr;
  }
}

#header {
  background-color: white;
  width: 100%;
  height: 100%;
  grid-area: header;
  display: flex;
  flex-direction: column;
}


#nav-bar {
display:grid;
grid-template-areas:". logo-nav main-nav .";
grid-template-columns: 1fr 1fr 2fr 1fr;
grid-template-rows: 12rem;
width: 100%;
height: 12rem;
background-color: var(--white);
position: fixed;
z-index: 200;
}

@media (max-width: 1550px) {
  #nav-bar {
    grid-template-columns: 1fr 10fr 20fr 1fr;
  }
}



#nav-box {
  grid-area: main-nav;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: flex-end;
  font-size: 1rem;
}

#nav-first-row {
  grid-area: main-nav;
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 40%;
  align-items: center;
  justify-content: flex-end;
  font-size: 15px;
  font-style: inherit;
  font-weight: inherit;
  padding-top: 4rem;
}

#mobile-nav-menu {
  display: none; /* this line disables the nav menu drop down for desktop (it's active on mobile-web) */
}

#nav-second-row {
  grid-area: main-nav;
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 60%;
  align-items: center;
  justify-content: flex-end;
  font-size: 15px;
  font-style: inherit;
  font-weight: inherit;
}


#nav-logo {
  grid-area: logo-nav;
  margin-right: auto;
  height: 100%;
  width: 100%;
}

#nav-logo img {
  width:100%;
  height:100%;
}


.nav-a {
  padding-right: 4rem;
  padding-left: 4rem;
  color: var(--bodark);
  padding: 2rem;
  display: block;
  text-decoration: none;
}

.nav-a:hover {
  color: var(--bored);
}

.language-dropbtn {
  background-color: #fff;
  color: var(--bodark);
  padding-right: 1.6rem;
  padding-left: 1.6rem;
  font-size: 15px;
  border: none;
}

.language-dropdown {
  position: relative;
  display: inline-block;
}

.language-dropdown-content {
  display: none;
  position: absolute;
  background-color: #bf1e2e;
  min-width: 7.1rem;
  box-shadow: 0px 0.8rem 1.6rem 0px rgba(0,0,0,0.2);
  z-index: 1;
  right: 0;
}

.language-dropdown-content a {
  color: #fff;
  padding: 1.2rem 1.6rem;
  text-decoration: none;
  display: block;
}

.language-dropdown-content a:hover {background-color: rgba(53,58,62,0.75);}

.language-dropdown:hover .language-dropdown-content {display: block;}

.language-dropdown:hover .language-dropbtn {background-color: #fff; color: #353a3e}



.second-nav-a {
  padding-right: 4.5rem;
  padding-left: 4.5rem;
  color: var(--bodark);
  padding: 1.5rem;
  display: block;
  text-decoration: none;
}

.second-nav-a:hover {
  background-color: var(--boredtransparent);
  color: var(--bodark);
}

.our-machinery-dropbtn {
  background-color: #fff;
  color: var(--bodark);
  padding: 1.6rem;
  font-size: 15px;
  border: none;
}

.our-machinery-dropdown {
  position: relative;
  display: inline-block;
}

.our-machinery-dropdown-content {
  display: none;
  position: absolute;
  background-color: #fff;
  min-width: 16rem;
  box-shadow: 0px 0.8rem 1.6rem 0px rgba(0,0,0,0.2);
  z-index: 1;
}

.our-machinery-dropdown-content a {
  color: var(--bodark);
  padding: 1.2rem 1.6rem;
  text-decoration: none;
  display: block;
}

.our-machinery-dropdown-content a:hover {background-color: var(--bored); color: #fff;}

.our-machinery-dropdown:hover .our-machinery-dropdown-content {display: block;}

.our-machinery-dropdown:hover .our-machinery-dropbtn {background-color: var(--boredtransparent); color: #353a3e}


.title-box {
  background-color: var(--bodark);
  margin-top: 12rem;
  height: 80%;

  background-image: url(../images/boratas-metal.jpg);
  min-height: 28rem;
  background-attachment: fixed;
  background-position: bottom;
  background-repeat: no-repeat;
  background-size: cover;

}

.pages-map {
  display: grid;
  position: relative;
  grid-template-areas:". main .";
  grid-template-columns: 1fr 3fr 1fr;
  background-color: white;
  width: 100%;
  height: 20%;
}

@media (max-width: 1550px) {
  .pages-map {
    grid-template-columns: 1fr 30fr 1fr;
  }
}

.pages-map li {
  background-color: white;
  color: var(--bored);
  grid-area: main;
  height: 100%;
  width: 100%;
  display: flex;
  position: relative;
  align-items: center;
  padding-left: 2rem;

}
.pages-map li a {
  color: var(--bodark);
  padding: 1rem;
  font-size: 1.5rem;
}
.pages-map li a:hover {
  color: var(--bored);
}


/* 'page-wrapper' is written in column-grid which is named 1, 2, 3,... --- every 'section' is placed in one of these grid-areas*/


#page-wrapper {
  background-color: var(--light);
  grid-area: main;
  display: grid;
  grid-template-areas:   "1"
                         "2"
                         "3"
                         "4";
}

#who-we-are-sec {
  background-color: var(--light);
  grid-area: 1;
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin-top: 8rem;
}

.who-we-are-txt {
  display: flex;
  flex-direction: column;

}



#who-we-are-sec p {
  padding-right: 2rem;
  text-align: justify;
  font-size: 1.5rem;
}

#who-we-are-sec img {
 width: 50%;
 height: 100%;
 object-fit: cover;
}



#who-we-are-more-sec {
  background-color: blue;
  grid-area: 2;

}

.but-container {
width: 50%;
margin-left: auto;
margin-top: 2rem;


}


 .bg, .button {
	 position: absolute;
	 width: 50px;
	 height: 50px;
	 border-radius: 100%;
}

 .bg {
	 animation: pulse 1.2s ease infinite;
	 background: var(--bored);
}
 .button {
	 display: flex;
	 justify-content: center;
	 align-items: center;
	 position: absolute;
	 z-index: 99;
	 border: none;
	 background: var(--bored);
	 background-size: 1.8rem;
	 cursor: pointer;
	 outline: none;
}
 .button a {
	 position: absolute;
	 color: #fff;
	 font-size: 1.7rem;
}
 @keyframes pulse {
	 0% {
		 transform: scale(1, 1);
	}
	 50% {
		 opacity: 0.3;
	}
	 100% {
		 transform: scale(1.5);
		 opacity: 0;
	}
}





#timeline {
	 padding: 10rem 0;
}
 html, body {
	 overflow-x: hidden;
}
 body {
	 font-size: 1.5rem;
}
 h1 {
	 font-size: 200%;
	 text-transform: uppercase;
	 letter-spacing: 0.3rem;
	 font-weight: 400;
}


/* timeline img general css is shared with all cards, but there's an indivicual second class name for every card which defines the image for each card; and it's at the end of these css lines  */

 #timeline {
	 position: relative;
}
 #timeline::before {
	 content: '';
	 background: #c5cae9;
	 width: 0.5rem;
	 height: 95%;
	 position: absolute;
	 left: 50%;
	 transform: translateX(-50%);
}
 .timeline-item {
	 width: 100%;
	 margin-bottom: 7rem;
}
 .timeline-item:nth-child(even) .timeline-content {
	 float: right;
	 padding: 4rem 3rem 1rem 3rem;
}
 .timeline-item:nth-child(even) .timeline-content .date {
	 right: auto;
	 left: 0;
}
 .timeline-item:nth-child(even) .timeline-content::after {
	 content: '';
	 position: absolute;
	 border-style: solid;
	 width: 0;
	 height: 0;
	 top: 3rem;
	 left: -1.5rem;
	 border-width: 1rem 1.5rem 1rem 0;
	 border-color: transparent #f5f5f5 transparent transparent;
}
 .timeline-item::after {
	 content: '';
	 display: block;
	 clear: both;
}
 .timeline-content {
	 position: relative;
	 width: 45%;
	 padding: 1rem 3rem;
	 border-radius: 0.4rem;
	 background: #f5f5f5;
	 box-shadow: 0 2rem 2.5rem -1.5rem rgba(0, 0, 0, .3);
}
 .timeline-content::after {
	 content: '';
	 position: absolute;
	 border-style: solid;
	 width: 0;
	 height: 0;
	 top: 3rem;
	 right: -1.5rem;
	 border-width: 1rem 0 1rem 1.5rem;
	 border-color: transparent transparent transparent #f5f5f5;
}
 .timeline-img {
	 width: 3rem;
	 height: 3rem;
	 background: var(--bored);
	 border-radius: 50%;
	 position: absolute;
	 left: 50%;
	 margin-top: 2.5rem;
	 margin-left: -1.5rem;
}

 .timeline-card {
	 padding: 0 !important;
}
 .timeline-card p {
	 padding: 0 2rem;
}
 .timeline-card a {
	 margin-left: 2rem;
}

 .timeline-img-header {
	 height: 20rem;
	 position: relative;
	 margin-bottom: 2rem;
}
 .timeline-img-header h2 {
	 color: #fff;
	 position: absolute;
	 bottom: 0.5rem;
	 left: 2rem;
}
 blockquote {
	 margin-top: 3rem;
	 color: #757575;
	 border-left-color: #3f51b5;
	 padding: 0 2rem;
}
 .date {
	 background: var(--bored);
	 display: inline-block;
	 color: #fff;
	 padding: 1rem;
	 position: absolute;
	 top: 0;
	 right: 0;
}
 @media screen and (max-width: 768px) {
	 .timeline::before {
		 left: 5rem;
	}
	 .#timeline .timeline-img {
		 left: 5rem;
	}
	 #timeline .timeline-content {
		 max-width: 100%;
		 width: auto;
		 margin-left: 7rem;
	}
	 #timeline .timeline-item:nth-child(even) .timeline-content {
		 float: none;
	}
	 #timeline .timeline-item:nth-child(odd) .timeline-content::after {
		 content: '';
		 position: absolute;
		 border-style: solid;
		 width: 0;
		 height: 0;
		 top: 3rem;
		 left: -1.5rem;
		 border-width: 1rem 1.5rem 1rem 0;
		 border-color: transparent #f5f5f5 transparent transparent;
	}
}


/* the img codes for each card */

.timeline-establish-img {
    background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, .4)), url('../images/history-1.jpg') center center no-repeat;
    background-size: cover;
}

.timeline-firstMachine-img {
    background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, .4)), url('../images/history-2.jpg') center center no-repeat;
    background-size: cover;
}

.timeline-firstSemiMobile-img {
    background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, .4)), url('../images/history-3.jpg') center center no-repeat;
    background-size: cover;
}

.timeline-firstMobile-img {
    background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, .4)), url('../images/history-4.jpg') center center no-repeat;
    background-size: cover;
}

.timeline-firstAbroadDelivery-img {
    background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, .4)), url('../images/history-5.jpg') center center no-repeat;
    background-size: cover;
}

.timeline-firstMobileAbroad-img {
    background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, .4)), url('../images/history-6.jpg') center center no-repeat;
    background-size: cover;
}

.timeline-secondFactory-img {
    background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, .4)), url('../images/Boratas-tablo.JPG') center center no-repeat;
    background-size: cover;
}














#footer {
  grid-area: footer;
  width: 100%;
  height: auto;
  display: grid;
  grid-template-areas: ". center-footer .";
  grid-template-columns: 1fr 3fr 1fr;
  background-color: var(--bodark);
  margin-top: 3rem;
}

@media (max-width: 1550px) {
  #footer {
    grid-template-columns: 1fr 10fr 1fr;
  }
}

.footer-container {
  grid-area: center-footer;
  display: flex;
  flex-direction: column;
  height: auto;
  width: 100%;
}

.footer-container a {
  color: cyan;

}

.footer-container a:hover {
  color: var(--bored);
}

.footer-container-top {
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: row;
  font-size: 13px;
  color: var(--white);
}

.footer-titles {
  font-size: 16px;
  font-weight: bold;
  padding-bottom: 1rem;
  color: var(--white);
  padding-top: 1rem;
}

.footer-box-1 {
  padding: 1rem;
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
}

.footer-box-2 {
  padding: 1rem;
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
}

.footer-box-3 {
  padding: 1rem;
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
}

.footer-box-4 {
  padding: 1rem;
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
}
.footer-box-5 {
  display: none;
}

.social-media-box {
  width: 100%;
  height: auto;
  align-self: flex-start;
  display: flex;
  flex-direction: row;
}

.social-media-box {
  margin: 0;
  padding: 1rem 0;
  border-bottom: 1px solid #ccc;
}

.social-media-box:hover {
  border-bottom: 1px solid var(--bored);
}

.social-media-box:hover #li-span {
  display: none;
}

.social-media-box:first-child {
  padding-top: 0;
  border-top: none;
}

.social-media-box:last-child {
  padding-bottom: 3rem;
}



.social-media-box .fa {
  color: var(--white);
  font-size: 3rem;
  padding: 2rem;
  width: 100%;
  align-self: center;
  text-decoration: none;
  background-color: var(--bored);
}

.social-media-box .fa:hover {
  color: white;
  background-color: var(--bodark);
}

.footer-container-bot-links {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.footer-container-bot-links img {
  width: 20rem;
  height: auto;
  align-self: center;
  padding: 1rem;
}

.footer-site-info{
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
}

.footer-site-info a {
  color: var(--white);
  padding: 1rem;
}

.footer-site-info a:hover {
  color: var(--bored);
  padding: 1rem;
}

.mobile-bot-navigation {
  display: none;
}
