@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap');

* {
	margin: 0;
	padding: 0;
	box-sizing: content-box;
  font-family: 'Lato', sans-serif;
  scroll-behavior: smooth;
}

/* scroll bar */

::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #000000;
  border-radius:2px 2px 10px 10px;
}

::-webkit-scrollbar-thumb:hover {
  background:   rgb(109, 109, 109);
}

/* scroll bar */

input[type="search"]::-webkit-search-cancel-button {
  display: none;
}

.top {
  overflow: hidden;
  position: fixed;
  width: 100%;
  background-color: rgb(22, 19, 19);
  z-index: 9; 
}

.top a{
  float: right;
  display: block;
  color: rgb(255, 255, 255);
  text-align: center;
  padding: 27px 20px;
  text-decoration: none;
  text-decoration: none;
  font-size: 20px;
}

.top a:hover {
  color:black;
  text-decoration: none;
  background-color: white;
}

#bgimg {
  position: absolute;
  top: 0px;
  width: 100%;
  height: 100vh;
  object-fit: cover;
  z-index: -1;
}

.search-all {
  position: relative;
  top: 270px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  flex-wrap: wrap;
  align-content: center;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.searchbar1 {
  display: flex;
  justify-content: center;
  align-content: center;
  align-items: center; 
}

.searchbar {
  text-align: center;
  outline: none;
  padding: 18px;
  font-size: 18px;
  border-radius: 10px;
  border: none;
}

#searchbtn {
  border-radius: 20px;
  width: 110px;
  font-size: 1.1em;
  padding: 16px;
  background-color: #f8f8f8;
  box-shadow: 2px 7px #bbb;
  transition: all 0.3s;
  cursor: pointer;
}

#searchbtn:hover {
  color: white;
  background-color: black;
  box-shadow: 2px 7px #666;
  border: 2px solid white;

}
#searchbtn:active {
  transition: all 0.4s;
  transform: translate(2px,7px);
  box-shadow: 0px 0px #000;

}
#words {
  position: relative;
  top: 150px;
  color: rgb(255, 255, 255);
  text-align: center;
  font-weight: bolder;
  font-size: 100px;  
  z-index: 1;
}

#search-icon {
  margin-left: -40px;
  cursor: pointer;
color: black;
}


.second-page {
  position: absolute;
  top:750px;
}

.second-page h1 {
  padding: 20px;
  width: auto;
  position: relative;
  font-size: 100px;
  left: 20px;
  text-shadow: -3px 2px #999;
}

.box {
  display: flex;
  position: relative;
  justify-content: space-between;
  text-align: center;
  left: 150px;
  top: 50px;
  gap: 140px;
  flex-wrap: wrap;
}


.card-body {
  text-align: left;
}

section {
  top: 1300px;
  position: relative;
  color: white;
  background-color: rgb(0, 0, 0);
  height: 100vh;
  width: 100%;
}

footer {
  background-color: #ffffff;
  position: relative;
  height: 220px;
  width: 100%;
  top: 1300px;
  text-align: center;
}

footer p {
  position: relative;
  top: 50px;
}

.btn.btn-primary {
  background-color: #000000 !important;
  border: none !important;
  box-shadow: 0px 5px #bbb;
}
.btn.btn-primary:hover {
  box-shadow: 0px 5px #666;

}

.btn.btn-primary:active {
  border: none !important;
  box-shadow: 0px 4px #666;
  transform: translateY(1px);
}

#github {
  position: relative;
  top: 50px;
  cursor: pointer;
}
.select{
  background-color: rgb(22, 19, 19);
  color: white;
  font-size: larger;
  cursor: pointer;
  padding: 25px 20px;
  text-decoration: none;
  font-size: 20px;
  border: 1px solid rgb(22, 19, 19);
}
.select:hover{
  background-color: rgb(22, 19, 19);
  color: white;
}

section > p {
display: flex;
justify-content: center;
top: 40px;
position: relative;
font-size: 60px;
}

div.skills {
  display: grid;
  position: relative;
  top: 80px;
  grid-template-columns: repeat(3,1fr);
  gap: 30px;
  padding: 20px;
}

.card-text {
  font-size: 18px;
}
  
div.skills > div {
  background-color: whitesmoke;
  color: black;
  padding: 30px;
  margin: 10px 20px 0 20px;
  font-size: 30px;
  border-radius: 6px;
}

div.skills > div:hover {
  color: white;
  background-color: rgb(34, 34, 34);
  transition: all 0.2s;
}

div.footer-nav {
  position: relative;
  top: 60px;
  display: flex;
  gap: 30px;
  font-size: 18px;
  color: rgb(42, 42, 42);
  justify-content: center;
}

.footer-nav > div:not(:hover) {
opacity: 0.5;
}


@media screen and (max-width: 700px) {
  #search {
    width: 90%;
  }
}