body{
    background-image: url("/IMG/CDBGCLOUDS2.webp"),linear-gradient(to bottom, #1625f8, #8bcefc);
    margin: 0;
    letter-spacing: 0.06em;
    line-height: 1.6;
    color: #f0f0f7;
    overflow-y: scroll;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    backdrop-filter :blur(4px);
}
@font-face {
  font-family: comfortaa; /* set name */
  src: url("../FONT/Comfortaa.woff2") format('woff2'); /* link to folder of the font */
}
@font-face {
  font-family: comfortaa;
  src: url("../FONT/Comfortaa Bold.woff2") format('woff2');
  font-weight: bold;
}

p {
  font-family: comfortaa; /* use font */
}

a {
  font-family: comfortaa; /* use font */
}
h3 {
  font-family: comfortaa; /* use font */
}
small {
  font-family: comfortaa; /* use font */
}

body::-webkit-scrollbar {
    display: none;
}
#header{
    color: #f4610f;
    padding: 20px;
    margin: 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
}
#header a{
    color: #f4610f;
    text-decoration: none;
    font-weight: bold;
    margin: 0px 30px;
}
#logodiv{
    color: #f4610f;
    margin-top: 50px;
    margin-bottom: -30px;
    text-align: center;
    display: flex;
    flex-direction: column;
}
#logodiv a{
    color: #f4610f;
    text-decoration: none;
    font-weight: bold;
    margin: 0px 30px;
}
.nav-item:hover {
    transform: scale(1.2);
    transition: transform 0.25s ease;
}
.nav-item:not(:hover) {
    transition: transform 0.25s ease;
}

#header {
    display: flex;
    justify-content: center;
    position: sticky;
    top: 0;
    z-index: 67;
}

#nav {
    display: flex;
    flex-direction: row;
    margin-top: 10px;
    margin-bottom: 0px;
    margin-left: auto;
    margin-right: auto;
    padding: 14.5px;
    height: auto;
    width: 400px;
    justify-content: center;
    background-image: url("/IMG/toolbar2.png");
    background-repeat: no-repeat;
    background-attachment: local;
    background-size: cover;
    background-position: center;
    filter: drop-shadow(0px 5px 5px rgba(0, 0, 0, 0.20));
}

#logo{
    width: 450px;
    height: auto;
    padding: 0px;
    filter: drop-shadow(0px 5px 5px rgba(0, 0, 0, 0.20));
}
#content{
    padding: 10px 18% 10px 18%;
}

#grid0{
    display: grid;
    grid-template-columns: 2fr 1fr 2fr;
    column-gap: 20px;
    justify-content: center;
    filter: drop-shadow(0px 5px 5px rgba(0, 0, 0, 0.20));
}
#grid1{
    display: grid;
    margin-top: -60px;
    margin-bottom: 60px;
    grid-template-columns: 1fr 1fr 2fr;
    column-gap: 20px;
    justify-content: center;
    filter: drop-shadow(0px 5px 5px rgba(0, 0, 0, 0.20));
}
#gallery img{
    margin: 5px 0 5px 0;
    width: 100%;
    height: auto;
    border-radius: 20px;
}
.gallery-item img:hover {
    transform: scale(1.05);
    transition: transform 0.25s ease;
}
.gallery-item img:not(:hover) {
    transition: transform 0.25s ease;
}
#gallery:has(img:hover) img:not(:hover) {
    filter: blur(2px);
    -webkit-filter: blur(2px);
    transform: scale(0.95);
    -webkit-transform: scale(0.95);
    transition: all 0.25s ease;
    opacity: 0.5;
}

.dorie {
  position: absolute;
  top: 50px;
  left: 80px;
}

.dorie img {
 width: 20%;
 height: auto;
 opacity: 0.35; 
}

.services {
    display: flex;
    margin-bottom: 20px;
    margin-left: auto;
    justify-content: center;
}

.services img {
    width: 800px;
    height: auto;
    opacity: 0.8;
    filter: drop-shadow(0px 5px 5px rgba(0, 0, 0, 0.20)); 
}
.services img:hover {
  /* Start the shake animation and make the animation last for 5 seconds */
  animation: shake 5s;

  /* When the animation is finished, start again */
  animation-iteration-count: infinite;
}

@keyframes shake {
  0% { transform: translate(1px, 1px) rotate(0deg); }
  10% { transform: translate(-1px, -2px) rotate(-1deg); }
  20% { transform: translate(-3px, 0px) rotate(1deg); }
  30% { transform: translate(3px, 2px) rotate(0deg); }
  40% { transform: translate(1px, -1px) rotate(1deg); }
  50% { transform: translate(-1px, 2px) rotate(-1deg); }
  60% { transform: translate(-3px, 1px) rotate(0deg); }
  70% { transform: translate(3px, 1px) rotate(-1deg); }
  80% { transform: translate(-1px, -1px) rotate(1deg); }
  90% { transform: translate(1px, 2px) rotate(0deg); }
  100% { transform: translate(1px, -2px) rotate(-1deg); }
}

/* Project Page Styles */

.projheader img {
    width: 100%;
    height: auto;
    border-radius: 75px;
    filter: drop-shadow(0px 5px 5px rgba(0, 0, 0, 0.20));
}
.projheaderv2 img {
    z-index: 1;
    width: 20%;
    position: absolute;
    filter: drop-shadow(0px 5px 5px rgba(0, 0, 0, 0.20));
}
.projheaderv3 img {
    width: 570px;
    height: auto;
    display: flex;
    flex-direction: column;
    margin: auto;
    filter: drop-shadow(0px 5px 5px rgba(0, 0, 0, 0.20));
}
.projheaderv4 img {
    z-index: 1;
    width: 1000px;
    height: auto;
    position: absolute;
    filter: drop-shadow(0px 5px 5px rgba(0, 0, 0, 0.20));
}
.projheroimage {
    margin-top: 20px;
}
.projheroimagev2 {
    margin-top: 100px;
}
.projheroimagev3 {
    margin-top: 250px;
}
.projheroimage img {
    width: 100%;
    height: auto;
    border-radius: 75px;
    filter: drop-shadow(0px 5px 5px rgba(0, 0, 0, 0.20));
}
.projheroimagev2 img {
    width: 100%;
    height: auto;
    border-radius: 75px;
    filter: drop-shadow(0px 5px 5px rgba(0, 0, 0, 0.20));
}
.projheroimagev3 img {
    width: 100%;
    height: auto;
    border-radius: 75px;
    filter: drop-shadow(0px 5px 5px rgba(0, 0, 0, 0.20));
}
.projcontent {
    display: flex;
    flex-wrap: wrap;
    margin-top: 20px;
    margin-right: 0px;
    margin-left: 0px;
    justify-content: center;
    align-items: center;
}


/* Specific Page Styles */

.sbprojabout {
    text-align: left;
    padding: 15px 8% 15px 8%;
    overflow: hidden;
    background-image: linear-gradient(to bottom right, #ffffff, #c2bed1);
    border-radius: 75px;
    filter: drop-shadow(0px 5px 5px rgba(0, 0, 0, 0.20));
    color: #000000;
}
.sbprojcolors {
    background-image: linear-gradient(to bottom right, #7209B7, #20028d);
    border-radius: 75px;
    filter: drop-shadow(0px 5px 5px rgba(0, 0, 0, 0.20));
    padding: 15px 8% 15px 8%;
    overflow: hidden;
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.sbprojcolors img {
    width: 15%;
    height: auto;
    margin: 20px;
    padding: 0px 20px 0px 20px;
}
.sbprojfonts {
    background-image: linear-gradient(to bottom right, #ffffff, #c2bed1);
    border-radius: 75px;
    filter: drop-shadow(0px 5px 5px rgba(0, 0, 0, 0.20));
    padding: 15px 8% 15px 8%;
    overflow: hidden;
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.sbprojfonts img {
    width: 35%;
    height: auto;
    margin: 20px;
    padding: 0px 20px 0px 20px;
}
#sbgrid{
    display: grid;
    margin-top: 20px;
    margin-bottom: 60px;
    grid-template-columns: 2fr 2fr;
    column-gap: 20px;
    justify-content: center;
    filter: drop-shadow(0px 5px 5px rgba(0, 0, 0, 0.20));
}
#sbgrid1{
    display: grid;
    margin-top: -58px;
    margin-bottom: 60px;
    justify-content: center;
    filter: drop-shadow(0px 5px 5px rgba(0, 0, 0, 0.20));
}
#sscgrid{
    display: grid;
    margin-top: 20px;
    margin-bottom: 60px;
    justify-content: center;
    filter: drop-shadow(0px 5px 5px rgba(0, 0, 0, 0.20));
}

.blinkprojcolors {
    background-image: linear-gradient(to bottom right, #4B78B2, #11456D);
    border-radius: 75px;
    filter: drop-shadow(0px 5px 5px rgba(0, 0, 0, 0.20));
    padding: 15px 8% 15px 8%;
    overflow: hidden;
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.blinkprojcolors img {
    width: 15%;
    height: auto;
    margin: 20px;
    padding: 0px 20px 0px 20px;
    filter: drop-shadow(0px 5px 5px rgba(0, 0, 0, 0.20));
}

/*project select names*/

.name{
    padding: 10px 18% 10px 18%;
    justify-content: center;
    display: flex;
    flex-direction: column;
    margin: auto;
    filter: drop-shadow(0px 5px 5px rgba(0, 0, 0, 0.20));
}
.name img{
    margin: 5px 0 5px 0;
    width: auto;
    height: 100px;
}
.name-item img:hover {
    transform: scale(1.05);
    transition: transform 0.25s ease;
}
.name-item img:not(:hover) {
    transition: transform 0.25s ease;
}
.name:has(img:hover) img:not(:hover) {
    filter: blur(2px);
    -webkit-filter: blur(2px);
    transform: scale(0.95);
    -webkit-transform: scale(0.95);
    transition: all 0.25s ease;
    opacity: 0.5;
}

/*end of names*/


#bottomnav{
    position: relative;
    bottom: 0;
    height: 100%;
    width: 100%;
    margin: auto;
    background-image: url("/IMG/bottomtb.png");
    background-repeat: no-repeat;
    background-attachment: local;
    background-size: cover;
    background-position: center;
    text-align: center;
    font-size: 14px;
}
#footer p{
    margin-left: auto;
    margin-bottom: 0px;
    color: #f4610f;
    padding-bottom: 35px;
    padding-top: 29px;
}

#navgrid{
    display: grid;
    grid-template-columns: 4fr 3fr;
    grid-gap: 100px;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 200px;
    width: 50%;
    top: 180px;
    margin: auto;
    padding-top: 20px;
}

#navgrid img {
    margin: 5px 0 5px 0;
    width: 95%;
    height: auto;
    border-radius: 10px;
}

#navgrid1{
    display: grid;
    grid-template-columns: .12fr .12fr .12fr;
    grid-gap: 20px;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 200px;
    width: 30%;
    top: 10px;
    left: 350px;
    right: 0;
    margin: auto;
    padding-top: 20px;
}

#navgrid1 img {
    margin: 5px 0 5px 0;
    width: 70%;
    height: auto;
    border-radius: 10px;
}
.navgrid1-item img:hover {
    transform: scale(1.05);
    transition: transform 0.25s ease;
}
.navgrid1-item img:not(:hover) {
    transition: transform 0.25s ease;
}
.nameplate {
    flex: 0 0 auto;
    padding: 0px 25% 60px 0%;
}
.nameplate img {
    width: 130%;
    height: auto;
    z-index: -1;
}
.aboutrow1 {
    display: flex;
    flex-wrap: wrap;
    margin-right: 100px;
    margin-left: 0px;
    margin-top: -200px;
    justify-content: center;
    align-items: center;
}
.blurb {
    flex: 0 0 auto;
    width: 25%;
    padding-top: 20px;
    padding-bottom: 20px;
    padding-left: 5%;
    padding-right: 5%;
    margin-top: 110px;
    overflow: hidden;
    background-color: #ffffc6;
    border-radius: 75px;
    filter: drop-shadow(0px 5px 5px rgba(0, 0, 0, 0.20));
    color: #000000;
    opacity: 0.8;
    font-size: 13px;

}
.cruzyhero {
    flex: 0 0 auto;
    width: 50%;
}
.cruzyhero img {
    width: 130%;
    height: auto;
    border-radius: 10px;
    filter: drop-shadow(0px 5px 5px rgba(0, 0, 0, 0.20));
}
.cruzyhero img:hover {
  /* Start the shake animation and make the animation last for 5 seconds */
  animation: shake 5s;

  /* When the animation is finished, start again */
  animation-iteration-count: infinite;
}

@keyframes shake {
  0% { transform: translate(1px, 1px) rotate(0deg); }
  10% { transform: translate(-1px, -2px) rotate(-1deg); }
  20% { transform: translate(-3px, 0px) rotate(1deg); }
  30% { transform: translate(3px, 2px) rotate(0deg); }
  40% { transform: translate(1px, -1px) rotate(1deg); }
  50% { transform: translate(-1px, 2px) rotate(-1deg); }
  60% { transform: translate(-3px, 1px) rotate(0deg); }
  70% { transform: translate(3px, 1px) rotate(-1deg); }
  80% { transform: translate(-1px, -1px) rotate(1deg); }
  90% { transform: translate(1px, 2px) rotate(0deg); }
  100% { transform: translate(1px, -2px) rotate(-1deg); }
}

#info-box {
  display: none;
  position: absolute;
  top: 0px;
  left: 0px;
  z-index: 1;
  background: rgb(0 0 0 / 40%);
  color: white;
  border-radius: 5px;
  padding: 5px;
  font-family: comfortaa;
}

@media screen and (max-width: 1390px) {
    .aboutrow1 {
        flex-direction: column-reverse;
        margin-right: 80px;
        margin-left: 0px;
        margin-top: -300px;
    }

    .cruzyhero {
        margin: auto;
        width: 100%;
        padding-top: 100px;
    }
    
    .cruzyhero img {
        width: 100%;
        height: auto;
        margin: auto;
        padding-top: 100px;
    }


    .blurb {
        width: 100%;
        height: 100%;
        margin: auto;
        padding-top: 20px;
        padding-bottom: 20px;
        padding-left: 5%;
        padding-right: 5%;
        font-size: 18px;
    }
    
    .projheaderv4 img {
        width: 60%;
        height: auto;
        margin: auto;
        padding-top: -300px;
    }
    .projheaderv3 img {
        width: 60%;
        height: auto;
        margin: auto;
        padding-top: -300px;
    }
    .services img {
        width: 80%;
        height: auto;
        margin: auto;
    }
}