/* This changes the font of the text to Roboto */
*{
  font-family: 'Roboto', sans-serif;}
  
/* Gives some padding to the text inside the footer */
h4{
  padding-top: 1%;
  
  font-size: 110%;
}

/* horizontal navbar modified */
.navbar {
  position: fixed;
  width: 100%;
  display: inline-block;
  text-align: center;
}

ul {
    list-style-type: none;
    overflow: hidden;
    padding: 0;
    margin: 0;
    background-color: #312b69;
    border: 1px solid #000000;
  }
  
  li {
    display: inline-block;
    text-align: center;
  }
  
  li a {
    
    display: block;
    color: white;
    text-align: center;
    padding: 10px 12px;
    text-decoration: none;
  }
  
  li a:hover:not(.active) {
    background-color:rgba(24, 0, 88, 0.63);
  }
  i{
    color: #575757;
  }
 /* horizontal navbar modified ends*/

body{font-size: 100%;
    margin: 0%;
    background-color:rgba(60, 0, 226, 0.63);
}

/* Adding attributes like sizes and rounded borders to the first image */
.center{
    width: 20%;
    height: 20%;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: 0%;
    border-radius: 20px;
}

/* Adding attributes like sizes and rounded borders to the second image */
.center2{
  width: 60%;
  height: 60%;
  float: right;
  margin-left: auto;
  margin-right: auto;
  margin-top: 2%;
  border-radius: 5px;
}
/* Adding attributes like sizes and rounded borders to the second image */
.center4{
  width: 25%;
  height: 25%;
  margin-left: auto;
  margin-right: auto;
  margin-top: 1%;
  margin-bottom: 4%;
  border-radius: 2px;
}
/* Adjusting the size of the sketchfab logo in the footer*/
.center3{
  width: 12%;
  height: 12%;
}
/* Adjusting the size of the linkedin logo in the footer*/
.center5{
  width: 12%;
  height: 12%;

}
section{
    width: 100%;
    overflow: hidden;
}
/* Adding attributes like color, padding, margins and text-aligement to the heading*/
    h2{
    background-color: #312b69;
      color: rgb(248, 248, 248);
      padding: 25px;
      text-align: center;
      margin: 1em 20% 1em 20%;
      border-radius: 20px;
      border: 1px solid #000000;
      }

    h3{
        color: rgb(248, 248, 248);
    }

      
    /* This makes all the text containers have the same attributes: colors paddings sizes etc. */
    section.content_1,section.content_2,section.content_3,section.content_4,section.content_5,section.content_6,section.content_7{
        width: 60%;
        background-color: #312b69;
        display: block;
        margin: auto;
        margin-top: 2%;
        margin-bottom: 2%;
        text-align: center;
        overflow: hidden;
        border-radius: 20px;
        padding: 2%;
    }
    /* Adding attributes to the sketchfab iframe window */
    section.content_8{
      display: block;
      margin-right: auto;
      margin-left: auto;
      margin-top: 2%;
      margin-bottom: 2%;
      text-align: center;
      padding: 2%;
    }
  /* Adding attributes to the containers inside te 3D-modeling section */
  section.content_small2,section.content_small{
    width: 37%;
    background-color: #41398b;
    float: left;
    margin-top: 2%;
    margin-bottom: 2%;
    text-align: center;
    overflow: hidden;
    border-radius: 5px;
    padding: 2%;
}
/* Adding margins to all the text so that the text is centered nicely inside the section containers */
        p{
            margin-top: 0.5em;
            margin-bottom: 0.5em;
        }

          /* 0 margin and box-sizing for the whole page 
          so that the page can include padding and border in an 
          elements total width and height */
          * {
              box-sizing: border-box;
              
            }
          /* Adding color to the text */
          h1,p,header {
          color:rgb(252, 252, 252);}
          
          /* Adding attributes to the header of the page */
          header{
            
            font-size: 200%;
            letter-spacing: 0.2em;
            text-align: center;
            height: 10%;
            padding: 1em;
        }
        /* For the background video we have to add an absolute/fixed position so it wont scroll with the actual page */
        #myVideo {
            position: absolute;
            left: auto;
            top: auto;
            z-index: -1;
          margin: 0%;
          overflow: hidden;
          position: fixed;
        }        
/* @media (min-aspect-ratio): scales the background video for correct aspect */
@media (min-aspect-ratio: 16/9) {
    #myVideo{
width: 100%;
height:auto;
    }
}

@media (max-aspect-ratio: 16/9) {
    #myVideo{
width: auto;
height:100%;
    }
}
/* @media (max-width): page and all of it's content will scale correctly onto a mobile device  */
@media only screen and (max-width: 600px) {
    section.content_1,section.content_2,section.content_3,section.content_4,section.content_5,section.content_6,section.content_7{ 
      margin: auto;
      margin-top: 5%;
      margin-bottom: 5%;
      width: 65%;
      font-size: 120%;
      }
    }
    @media only screen and (max-width: 600px) {
        .center{
            width: 40%;
            height: 40%;
        }
    }

    @media only screen and (max-width: 1100px) {
      .center2, section.content_small,section.content_small2{
      display: block;
      width: 100%;
      background-color: #41398b;
      margin: auto;
      text-align: center;
      overflow: hidden;
      border-radius: 20px;
      padding: 2%;
      }
        }
      
      
        @media only screen and (max-width: 1100px) {
         .center3{
          width: 30%;
          height: 30%;
          }
            }
    /*end of @media (max-width) */    

    /* This section makes the footer to stick to the bottom of the page */
    .sticky-footer {
        position: sticky;
        top: 100%;
        background-color: #312b69;
        color: #F7F5EE;
        text-align: center;
    }
    .footer-logos {
      display: flex; /* Align items in a row */
      justify-content: center; /* Center the items horizontally */
      align-items: center; /* Center the items vertically */
      gap: 4px; /* Add space between the logos */
    }
    
    .center3, .center5 {
      width: 100%; /* Set consistent size */
      max-width: 120px; /* Optional: Limit maximum size */
      height: auto; /* Maintain aspect ratio */
    }
     /*The page has to use viewport height units for the background video to scale correctly */
article{min-height: 100vh;}
