@import url("https://fonts.googleapis.com/css2?family=Alata&family=Comfortaa&display=swap");

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

html {
  font-size: 10px;
}

body {
  background: url(../images/resume-build/123.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
  font-size: 1.6rem;
  font-family: "Alata", sans-serif;
  /* font-family: 'Comfortaa', cursive; */
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
}
body.hide-scrolling {
  overflow-y: hidden;
}
/*----------------------
  Custom Scrollbar 
  ------------------------*/
::-webkit-scrollbar {
  width: 5px;
}
body.hide-scrolling {
  overflow-y: hidden;
}
/*----------------------
  Custom Scrollbar 
  ------------------------*/
::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background-color: rgb(4, 4, 4);
}

::-webkit-scrollbar-thumb {
  background-color: rgb(156, 122, 242);
}

::-webkit-scrollbar-track {
  background-color: rgb(4, 4, 4);
}

::-webkit-scrollbar-thumb {
  background-color: rgb(156, 122, 242);
}
/*  */

a {
  text-decoration: none;
}

/* navbar start */
.navbar {
  background-color: rgba(8, 7, 7, 0.4);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 2% 0px 2%;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
}
.navbar-brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  font-size: 1.8rem;
}
.navbar-brand-text {
  color: #fff;
  font-weight: 800;
  font-family: "Comfortaa", cursive;
}

.navbar-brand-icon {
  width: 65px;
  margin-right: 6px;
  opacity: 1.2;
}
.profile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px;
  width: 20%;
}
.profile-pic {
  margin-left: 50px;
  border-radius: 50%;
  background-color: #dde6ed;
  width: 55px;
  height: 55px;
}
/* img {
  width: 100%;
  display: block;
} */
.templates {
  position: relative; /* Add relative positioning */
  top: 70px;
  display: grid;
  grid-template-columns: repeat(4, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px;
  justify-items: center;
}

.templates img {
  max-width: 100%;
  min-height: 308px;
  /* height: auto; */
  border: 1px solid #ddd;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: filter 0.3s;
}
.templates div {
  position: relative; /* Added to create a stacking context for absolute positioning */
  display: inline-block; /* Adjust display to inline-block to fit content size */
  
}
.templates div:hover img {
  filter: blur(5px); /* Apply a blur filter on hover */
}

.try-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.3s, background-color 0.3s;  cursor: pointer;
}

.templates div:hover .try-button {
  opacity: 1;
}
.try-button:hover{
  background-color: black; /* Dark blue background color */
  color: #fff; 
  font-size:medium;
  font-weight: 600;
}