body, html {
    /* Will take the entire height of the viewport */
    height: 100%;
    margin: 0;
  }

/*FONTS*/
/* Due to each font's weight being seperate files, I had to create them all in seperate font-faces. 
Whilst I could bunch them all into one font-face, it would cause further complications down the track
if i needed one part bold and another regular - i need to outline the weight of each font */
@font-face {
    font-family:'STIXTwoText';
    src: url('fonts/STIXTwoText-Regular.ttf');
}
@font-face {
    font-family: 'STIXTwoText';
    src: url('fonts/STIXTwoText-Bold.ttf');
    font-weight: bold;
}
@font-face {
    font-family:'QueensCompressed';
    src: url('fonts/QueensCompressed-Thin.ttf') format('truetype');
    font-weight:lighter;
}
@font-face {
    font-family:'QueensCompressed';
    src: url('fonts/QueensCompressed-Regular.ttf') format('truetype');    
}
@font-face {
    font-family: 'QueensCompressed';
    src: url('fonts/QueensCompressed-ExtraBold.ttf') format('truetype');
    font-weight:bold;
}

/*fixed icon on top left of website. z-index is the order in which elements are positioned. I nearly forgot to place this icon in the website. I havent used Z-index anywhere else in this code so this image is number one and automatically overlaps in front of every other element. */
#icon {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
    padding:2vw;
}

#icon img {
    width: 9vw;
  }

/*Relative means that the background image stays in the normal position in a document flow*/

.bandana {
    position: relative;
}

.links {
    /* links (currently not functional - BOLD) */
    position: absolute;
    top: 8px;
    right: 16px;
    color:white;
    font-size:1.5vw;
}


.links a {
    color: white;
    text-decoration: none;
    padding-right: 50px;
  }

  .links a:last-child {
    padding-right: 0; /* Removes padding from the last link */
  }
  
  .links a:hover {
    text-decoration: underline;
  }


/* MAIN HEADER */
/* Uses STIX font, won't be affected by other elements (absolute), centered (adjusted top to 40% due to font size, white, large size */
h1 {
    font-family:'STIXTwoText';
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 10vw;
}




/* NORMAL TEXT*/

p {
    font-family:'STIXTwoText';
    font-weight:normal;
}


/* TEXT USING STIX BOLD*/
.links {
    font-family: 'STIXTwoText';
    font-weight:bold;
}


  .bandana {
/* Full height */
    height: 100%; 
  
/* Center and scale the image nicely */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
  }
  
  .bandana img {
/* Full width and height of the image*/
    width: 100%;
    height: 100%;
  
/* Ensures the image covers the container */
    object-fit: cover;
  }



/* images in PHOTOGRAPHY - border-box means width and height is fixed, floating left means its positioned horizontally, next to each other  */
h2, h3, h4{
    font-family:'QueensCompressed';
    font-weight:lighter;
    text-align: center;
    font-size:5vw;
}

/*this is in order to display 8 images, with 4 on each row. using wrap means any images that exceed the container must move into a new set of line, border box allows padding to be applied, and object-fit maintains the ratio of all of the images*/
.row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  .column {
    box-sizing: border-box;
    width: 25%;
    padding: 30px;
  }

  .column img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }




  .column .caption {
    font-family: 'STIXTwoText';
    font-size: 1.5vw;
  }



.aboutsection{
    position: relative;
}

.viewall{
    text-align: right;
    font-family: 'QueensCompressed';
    font-size:2.5vw;
    padding: 15px;
}

.about{
    position: relative;
    text-align: center;
    font-family: 'QueensCompressed';
    font-size:5vw;
    padding: 20px 100px;
}
 

/* increase in top makes it go down, increasing left makes it go right within the parent container - had to experiment and alter the percentages to find the right spot for each. */
/* animation is a new thing i've learnt - this animation rotates the images infinitely, with no delay and the animation lasts 10 seconds */

.vividleft {
    position: absolute;
    top: 40%;
    left: -10%;

    max-width: 50%;

    animation-name:rotate;
    animation-duration:10s;
    animation-delay: 0s;
    animation-iteration-count: infinite;
}

.vividright {
    position: absolute;
    top: -10%;
    left: 60%;
    max-width: 50%;

    animation-name:rotate;
    animation-duration:10s;
    animation-delay: 0s;
    animation-iteration-count: infinite;
}


/*animating the images - theres 4 keyframes, and each frame is telling it to move 90 degrees to a full rotation*/


@keyframes rotate {

    0%{transform: rotate(0deg);}
    25%{transform: rotate(90deg);}
    50%{transform: rotate(180deg);}
    100%{transform: rotate(360deg);}
}



.selfportrait{
    display:block;
    margin: 0 auto;
    max-width: 25%;
    height: auto;
}


/*Contact section - titles have been adjusted to be in the center to match the rest of the website, creating balance and symmetry*/


.nameemail-textbox, .information-textbox{
    text-align:center;
  }

/* creating the size and background for all of the textboxes*/
input[type=text]{
    width:50%;
    border:none;
    margin:8px;
    background-color: #76848D;
    height: 3vw;
}

input[type="text"]::placeholder {
    color: gainsboro;
    font-family:STIXTwoText;
  }

.contact-titles{
    font-family:STIXTwoText;
    font-weight:bold;
    font-size:1.5vw;
    margin:8px;
}

.submit-textbox{
    display: flex;
    justify-content:center;
    padding:5%;
}


input[type=submit]{
    background-color: gray;
    color:aliceblue;
    padding: 1vw;
    border:none;
}

h5{
    font-family:'QueensCompressed';
    font-weight:lighter;
    text-align: center;
    font-size:4.5vw;
    opacity: 50%;
    padding: 0vw;
}

.apps{
    display: flex;
    justify-content:space-between;
    margin: 10vw 10vw 10vw 10vw;
}

.apps a img {
    height: 100%; /* Set the height of the images to fill the parent container */
  }

footer{
    padding:10%;
}





  



  


