/* Linking Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* plus jakarta font import */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&display=swap');

/* montserrat font import */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&display=swap');

body{
    /* Uncomment background-color for debugging */
    /* background-color: rgb(0, 0, 0); */
    margin: 0;
    color:  rgb(252, 252, 252);
    background-image: url( "images/websiteBackground2.jpg" );
    background-size: cover;
    background-attachment: fixed;
    background-repeat: repeat;
    background-position: center;

}

/*-------------------------- CSS Grid Formatting --------------------------*/
/* CSS Grid formatting for the grid-container div, and the divs within it */
.grid-container{
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(1fr, auto);
}

.grid-header{
    grid-column-start: 3;
    grid-column-end: 11;
    grid-row-start: 1;
    grid-row-end: 3;
    padding: 10%;
    padding-bottom: 2%;
    text-align: center;
    margin-top: 5%;

}
.grid-body{
    grid-column: 3 / 11;
    grid-row: 3 / 8;
    padding-top: 2%;
    padding-bottom: 5%;
    padding-left: 5%;
    padding-right: 5%;
    text-align: left;
}
/* .grid-footer{
    display: grid;
    grid-column: 1 / 13 !important;
    grid-row: 8 / 12 !important; 
    padding: 2%;
    text-align: center;
    background-color: #2f05487b;
    backdrop-filter: blur(20px);
} */
.grid-footer, .grid-footer-mobile {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr; /* Adjusts the widths of the sections */
    grid-column: 1 / 13 !important;
    grid-row: 8 / 12 !important;
    padding: 2%;
    text-align: center;
    background-color: #2f05487b;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px); /* for browsers that don't support blur immediately*/
    align-items: center; /* Aligns items vertically */
    justify-items: center; /* Aligns items horizontally */
    gap: 20px; /* Adds space between the columns if needed */
}

.landing-body {
    width: 190%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-left: -45%;
    margin-top: 8%;
    margin-bottom: 35%;
}

.landing-body .subtitle {
    margin-left: -25%;
}

@media screen and (min-width: 1900px) {
    .landing-body .subtitle {
        margin-left: -15%; /* Keep subtitle centered */
    }
}

.logoBody{
    grid-column: 1 / 13;
    grid-row: 4 / 8;
}

/* #aboutBody, #contactBody{
    display: grid;
    grid-column: 3 / 11;
    background-color: #2f054800;
    backdrop-filter: blur(20px);
    margin-bottom:5%;
} */
#aboutBody, #contactBody {
    display: grid;
    grid-column: 3 / 11;
    background-color: #2f05487b; /* Fallback solid color */
    background-color: #2f054800; /* Transparent color with backdrop-filter support */
    backdrop-filter: blur(20px); /* Apply blur effect */
    -webkit-backdrop-filter: blur(20px); /* Apply blur effect */
    margin-bottom: 5%;
}


.student-body{
  width: 95%;
  margin: auto;
  margin-top: 8%;
  height: 100%;  
}

/*------------------------------ Navigations ------------------------------*/

/* Nav bar */
.w3-top{
    background-color: #2f05487b;
    backdrop-filter: blur(20px);
    color: #f2f2f2;
}
.w3-top a:hover{
    color:#ff0090 !important; 
    transition: 0.3s;
    font-weight: 800;

    /* makes the opacity of the default bg colour to none */
    background-color: #ccc0 !important; 
}
.w3-top .active{
    background-color: rgba(46, 139, 86, 0);
    color:#ff0090;
    font-weight: 800;
}
.center-nav{
    width: 60%;
    margin: auto;
}
.center-nav{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}
#navDemo a{
    text-align: center;
}



/*------------------------------ Typography ------------------------------*/
*{
    font-family: "Plus Jakarta Sans", sans-serif !important; 
}

h1, h2{
    font-weight: 700 !important;
    text-align: center;
}
p, h5{
    font-weight: 300;
}
p{
    font-size: 1.2rem;
}
/* .header-h1{
    font-size: 4rem;
    margin-top: 0;
    margin-bottom: -2%;
} */
h1{
    font-size: 2.7rem !important;
}
h2{
    font-family: "Montserrat", sans-serif;
    font-size: 2.2rem !important;
    margin-top: 0;
}
h3{
    font-size: 1.5rem;
    font-weight: 200; 
}
h4{
    font-size: 1rem !important;
    font-weight: 200;
    text-align: center;
    margin-bottom: 1%;
    margin-top: 0;
}
#get-in-touch{
    margin-top: 3%;
}
.fa-solid {
    font-family: "Font Awesome 6 Free" !important;
}

.projectStudent, .projectName{
    color: #f2f2f2;
    font-weight: 400;
    text-decoration: none;
}
.projectName{
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: -2%;
    margin-top: 3%;
}
a{
    text-decoration: none;
}

/* -------- Footer Formatting --------- */
.footerLinkHover{
    margin-top: 1%;
}
a.footerLink:link {
    color: rgb(253, 252, 252);
    background-color: transparent;
    
  }
  
  a.footerLink:visited {
    color: pink;
    background-color: transparent;
    text-decoration: none;
  }
  
  a.footerLink:hover {
    color: rgb(202, 20, 117);
    background-color: transparent;
    text-decoration: underline;
  }

  a{
    font-weight: 200;
  }


#footer-dept{
    justify-self: end; /* Align to the right side of the grid column */
    display: flex;
    align-items: center; /* Vertically center the content */
}

#footer-text {
    display: flex;
    flex-direction: column; /* Stack the text elements vertically */
    justify-content: center; /* Center vertically within the parent */
    align-items: center; /* Center horizontally within the parent */
    text-align: center;
}
#footer-uow{
    justify-self: start; /* Align to the left side of the grid column */
    display: flex;
    align-items: center; /* Vertically center the content */
}

.grid-footer img{
    height: auto;
    width: 100%;
    min-width: 70px;
}
#uowImg{
    min-width: 80px;
}

/* #designImg, #yearImg, #uowImg{
    height: auto;
    width: 100%;
} */


.grid-footer-mobile{
    grid-template-columns: 1fr; /* Make all footer items take full width */
    text-align: center;
    display: none;
}

/*------------------------------ Students Page --------------------------*/
.placeholder-student{
    width: 80%;
    height: auto;
    border-radius: 50%;
}
.flex-student-rows{
    display: flex;
    flex-flow:row wrap;
    align-items: center;
    justify-content: space-around;
    position: relative;
} 
.flex-student{
    position: relative;
    text-align: center;
    display: block;
    margin-top: 3%;
    padding: 0;
    width: 32%;
} 

/*--------------------------- Projects Page ----------------------------*/
.placeholder-img{
    width: 95%;
    height: auto;
}
.flex-project-rows{
    display: flex;
    flex-flow:row wrap;
    align-items: center;
    justify-content: space-between;
    margin-top: 5%;
    padding: 0 4% 0 4%;
    position: relative;

    margin-bottom: -2%;
}
.flex-project{
    position: relative;
    text-align: center;
    display: block;
    margin: 0;
    padding: 0;
    width: 49%;

    margin-bottom: 2%;
}

/*------------------------------ Contact Page ----------------------------*/
.contact-info{
    margin-top: 0;
}
.contact-heading{
    font-size: 1.8rem;
    font-weight: 700;
    margin-top: 3%;
    margin-bottom: 0;
}


.subtitle{
    width: 50%;
    margin-left:-24%;
    margin-top:-3%;
    margin-bottom:5%;
}

#prisContact{
    max-height: 86%;
}

#prisAbout{
    max-height: 65%;
}

#aboutBody{
    padding-top: 3%;
}

#paraAbout{
    margin-top: 2%;
} 
#headerAbout{
    padding-bottom:1%;
}

img.logo{
    display: flex;
    max-height: 8rem;
    margin-left: auto;
    margin-top: -10rem;
}

#logoMain{
    max-height: 10rem;
    margin-top:5%;
    display: flex;
  float: right;
    
}

.continue{
    padding: 1%;
    margin: 0%;
    margin-top:1%;
    max-width: 50%;
    justify-content: center;

}
#contText{
    margin: 0%;
    
}
  
  .button{
    background-color: #fe39b682; 
    color: rgb(255, 255, 255); 
    font-size: large;
    font-weight: 200;
    border: none;
    padding: 1%;
    padding-left: 5%;
    padding-right: 5%;
    margin-top:2%;
    text-align: center;
    transition-duration: 0.4s;
    cursor: pointer;
    letter-spacing: 1rem;
  }
  .button:hover{
    background-color: #ffffffc1;
    color: #fe39f3
  }

 .buttonDiv{
    display: grid;
    align-items: center;
    text-align: center;
 }

 .portfolio-button {
    background-color:#f2f2f2; 
    color: rgb(202, 20, 117); 
    font-weight: 300;
    border: none;
    margin-top: -2%;
    margin-bottom: 5%;
    padding: 1%;
    padding-left: 3.5%;
    padding-right: 3%;
    text-align: center !important;
    transition-duration: 0.4s;
    cursor: pointer;
    letter-spacing: 0.5rem;
 }
 .portfolio-button:hover{
    background-color:rgb(202, 20, 117); 
    color: #f2f2f2; 
 }
  
 .subtitle1{
    text-align: left;
    margin-left: 6%;
    margin-top: -2rem;
    margin-bottom: 6%;
    font-weight: 300 !important;
 }
 .subtitle2{
    text-align: right;
    margin-right: 6%;
    margin-top: -2rem;
    font-weight: 300;
 }
 .subtitle3{
    text-align: right;
    margin-right: 10%;
    margin-top: -7rem;
    font-weight: 300;
 }

.image-main, .image-hover{
    border-radius: 50%;
    max-height: 18rem;
}
.student-img-flex{
    max-height: none;
}

.subject{
    margin-bottom: 1%;
    text-align: center;
    font-weight: 600;
}
.subject-details{
    margin-bottom: 5%;
}

.projectTitles{
    text-align: centre;
    margin-bottom: 0;
}
video{
    margin-top: 1.5%;
}

.container {
    position: relative;
    width: 100%;
  }
  
  .image {
    display: block;
    width: 100%;
    height: auto;
  }
  
  .overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    width: 100%;
    opacity: 0;
    transition: .5s ease;
    /* background-color: #fe39b682; */
    border-radius: 60%;
    max-height: 18rem;
    max-width: 18rem;
    margin-left: 10.5%; 
    /* margin-left: 9.5%;  */
  }
  
  .container:hover .overlay {
    opacity: 1;
  }

  .text {
    color: white;
    font-size: 1.8rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
  }

/* -------------- New student formatting ---------------- */
.student-rows{
    display: flex;
    flex-flow:row wrap;
    align-items: center;
    justify-content: space-around;
}

.student-set img{
    width: 85%;
    height: auto;

    border-radius: 50%;
    text-align: center;
    margin-bottom: 5pt;
    position: relative;
}
.student-set{
    position: relative;
    text-align: center;
    display: block;
    margin: 0;
    padding: 0;
    width: 30%;
}
.student-set{
    margin-bottom: 5%;
}
#filler-div{
    flex-grow: 0.8;
    justify-content: space-between;
    display: none;
}

.image-hover {
    display: none;
}
  /* Add this CSS to show the hover image when hovering the student set */
  .student-set:hover .image-hover{
    display: block;
    /* opacity: 1; */
  }
  
  /* Add this CSS to hide the main image when hovering the student set */
  .student-set:hover .image-main{
    display: none;
  }

  .student-set:hover .image-main{
    display: none;
  }

.student-overlay, .image-hover{
    position: absolute;
    top: 0;
    bottom: 7px;
    left: 0;
    right: 0;

    border-radius: 50%;
    margin: auto;

    width: 80%;
    height: auto;   
}
.student-overlay{
    opacity: 0; 
}
.student-overlay:hover, .student-hover:hover{
    transition: .3s ease;
    /* display: block; */
    opacity: 1;
}
.text {
    color: white;
    font-size: 1.5em;
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    text-align: center;
}

.student-set:hover .student-overlay{
    opacity: 1;
    transition: .3s ease;
    cursor: pointer;
}
/* ------------------------------------------------------------------------ */

  .title {
    max-width: 85%;
    max-height: 100%;
    margin: -2rem;
  }
 
  .filters{
    
    display: flex;
    justify-content: left;
    font-weight: 300;
    font-size: medium;
  }
 .filter{
    display: flex;
    justify-content: left;
    margin-left: 4.5%;
    font-weight: 300 !important;
    width: 100%;
    /* padding-top: 1.25%; */
 }

 .filters:hover {
    font-weight: 600;
    color: rgb(202, 20, 117);
    cursor: pointer;
    margin: 0%;
 }
 .filters-flex{
    display: flex;
    width: 100%;
    justify-content: left;
    margin-left: 3%;
 }

html{
    scroll-behavior: smooth;
}

.scroll {
	width: 60px;
	height: 60px;
	border: 2px solid #fff;
	border-radius: 50%;
	position: relative;
	animation: down 1.5s infinite;
	-webkit-animation: down 1.5s infinite;
    margin-top:-28%;
    margin-bottom: 12%;
    margin-left: 46%;
	&::before {
		content: '';
		position: absolute;
		top: 15px;
		left: 19px;
		width: 18px;
		height: 18px;
		border-left: 2px solid #fff;
  	border-bottom: 2px solid #fff;
		transform: rotate(-45deg);
        scroll-behavior: smooth;
	}
}

@keyframes down {
	0% {
		transform: translate(0);
	}
	20% {
		transform: translateY(15px);
	}
	40% {
		transform: translate(0);
	}
}

@-webkit-keyframes down {
	0% {
		transform: translate(0);
	}
	20% {
		transform: translateY(15px);
	}
	40% {
		transform: translate(0);
	}
}

.tile_div{
    display: flex;
    margin-left: 1%;
    margin-top: -4%;
    flex-direction: column;
}

.tile_div a {
    display: flex; /* Use flexbox to center content */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    
    border-radius: 50%; /* Make the button circular */
    width: 60px; /* Set button width */
    height: 60px; /* Set button height */
    
    font-weight: 300; /* Font weight */
    background-color: #f2f2f2; /* Background color */
    color: rgb(202, 20, 117); /* Text color */
    text-align: center; /* Ensure text stays centered */
    text-decoration: none; /* Remove underline */
    margin-bottom: 4%; /* Spacing between buttons */
}

.tile_div a:hover {
    background-color: rgb(202, 20, 117); /* Background on hover */
    color: #f2f2f2; /* Text color on hover */
    transition-duration: 0.3s; /* Smooth hover transition */
}

.title_div a.last {
    margin-right: 0;
}

.clear {
    clear: both;
}


#contactHeader{
    margin-bottom: 5%;
}

/* Old footer text styling for year image */
.year{
  max-height: 6.5rem;
  margin-left: 0%;
  display: flex;
  margin-bottom: -8.5rem;
  padding-top: 1%;
}

.studentVideo{
    width:80%;
    height: auto;
}

.filterButton{
    margin:1%;
    padding:1%;
    text-align: center;
}

.tile_div{
    margin-bottom: -4%;
}


/* ------------------------------ Media Queries -------------------------- */
/* Makes the webpages responsive and adapt to different screensizes */
/* On screens that are 992px wide or less (Tablets) */
@media screen and (max-width: 992px) {
    /* Uncomment body for debugging */
    /* body {
        background-color: rgb(186, 186, 221);
        color: purple;
    } */
    .prismatic{
        margin-top: 15%;
        width: 110%;
        margin-left: -3%;
    }

    /* Home Formatting */
    .landing-body{
        margin-bottom: 0;
    }
    .subtitle{
        margin-top: -1%;
    }
    .grid-header{
        margin-bottom: 10%;
    }
    .container{
        display: none;
        /* margin-top: 40%; */
    }

    /* Students Formatting */
    .subtitle1{
        font-size: 1.5rem !important;
        margin-bottom: 10%;
        margin-top: -10%;
        margin-left: 3%;
    }

    /* Students and Projects Flex*/
    /* .student-rows{
        flex-direction: column;
    } */
    .student-set{
        width: 45%;
        height: auto;
    }
    #filler-div{
        display: inline;
    }

    .flex-project-rows{
        flex-direction: column;
    }
    .flex-project{
        width: 80%;
        height: auto;
    }

    /* Projects Filters */
    .tile_div{
        margin-left: -2%;
    }
    .flex-project-rows{
        padding: 0;
    }
    .flex-project{
        width: 100%;
    }
    .filter{
        font-size: 1.5rem !important;
        margin-left: 5%;
        margin-top: -7%;
    }
    .filters-flex{
        justify-content: left;
        margin-bottom: 8%;
    }
    .tile_div a{
        width: 60px;
        height: 60px; 
        line-height: 3.3rem;
    }
    .projectTitles + p{
        margin-bottom: 5%;
        margin-top: 2%;
    }
    video{
        margin-top: 2%;
    }

    /* Contact Formatting */
    #contactBody{
        margin-top: 10%;
    }
    #contactBody h2{
        margin-top: 5%;
    }

    /* Footer Formatting */
    #designImg{
        height: auto;
        width: 80%;
    }
    #footer-uow img{
        height: auto;
        width: 40%;
    }


}
  
/* On screens that are 600px wide or less (Phones) */
@media screen and (max-width: 600px) {
    /* Uncomment body for debugging */
    /* body {
        color: blue;
    } */

    /* CSS Grid used with Top Nav */
    .grid-header{
        grid-column: 2 / 12;
        grid-row: 1 / 3;
        padding: 12%;
    }
    .grid-body{
        grid-column: 2 / 12;
        grid-row: 3 / 8;
        padding: 2%;
    }
    .grid-footer{
        display: none;
    }
    .grid-footer-mobile{
        display: block;
        grid-column: 1 / 13;
        grid-row: 8 / 12; 
        padding: 4%;

        align-items: center;
    }

    .landing-body{
        margin-bottom: 0;
    }
    .title{
        margin-top: 3rem;
    }
    .landing-body .subtitle{
        margin-top: 1%;
        width: 65%;
        margin-left: -10%;
    }

    .prismatic{
        margin-top: 25%;
        margin-bottom: -15%;
        width: 120%;
        margin-left: -9%;
    }
    .subtitle1{
        margin-top: -8%;
        font-size: 1.5rem !important;
    }
    .filter{
        margin-top: -4%;
    }

    /* Hiding the 'down' button */
    .container{
        display: none;
        /* margin-top: 40%; */
    }

    /* Taking the filler div away */
    #filler-div{
        display: none;
    }

    #aboutBody, #contactBody{
        /* grid-column: 2 / 12; */
        grid-column: 1 / 13;
        padding: 9%;
        padding-top: 5%;
    }

    /* Typography */
    .header-h1{
        font-size: 3.5rem;
    }

    /* Students and Project Flex */
    .tile_div a{
        line-height: 3.5rem;
    }
    .flex-project-rows{
        flex-direction: column;
    }
    .flex-project{
        width: 95%;
        height: auto;
    }

    #headerAbout{
        margin-top: 15%;
    }
    .student-set{
        width: 80%;
    }
    .student-rows{
        margin-top: 15%;
    }
    .student-set img{
        width: 95%;
    }
    .portfolio-button {
        margin-top: 3%;
        padding: 3%;
        padding-left: 5.5%;
      }
  
    /* Get the footer to stack vertically */
    .grid-footer-mobile{
        padding: 9%;
    }
    #footer-text-mobile{
        padding-bottom: 5%;
    }
    #designImgMobile, #yearImgMobile{
        max-width: 80px;
    }
    #uowImgMobile{
        max-width: 90px;
    }
}