/*Main style for every page*/

html
{
  scroll-behavior: smooth;
}
/*No instantaneous anchors*/

*
{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
/*
Resets spacings to 0
Horizontal overflow prevention with border-box
*/

body
{
  background-color: black;
  color: #C0C0C0;
}

/*Header*/

header
{
  background-color: #434343;
}

#icon-and-title, header nav ul
{
  display: flex;
}
/*
Puts it in one line
Makes it easier changing the layout soon
More explanation down
*/

h1
{
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  padding: 5px;
  width: 20%;
  text-align: center;
  margin-top: 5px;
}
/*
Removing it from the normal flow
50% of the website is half
Excess spacing remove fomr the x-axis
(The parent container gives the excess space)
*/

header img 
{
  width: 55px;
}

header nav
{
  background-color: #e8e8e8;
}

header nav a
{
    text-decoration: none;
    text-align: center;
}

header nav ul
{
  justify-content: space-evenly;
}
/*
Already in flex
Layout no matter flex the direction is sets it to space between
*/

header nav ul li
{
  background-color: #C0C0C0;
  width: 200px;
  list-style-type: none;
  color: #000080;
  font-size: 20px;
  padding: 5px;
  border-radius: 5px;
}

header nav ul li:hover
{
padding: 7px;
background-color: #9a9a9a;
}

header .active-link
{
  background-color: #9a9a9a;
}
/*Header Closed*/



/*Main*/

h2
{
  color: #9765c6;
}

main
{
  background-color: #242424;
  margin: 0 48px;
  padding: 20px;
}

p
{
  line-height: 30px;
  padding: 20px;
}


main a
{
  color: #7575ff;
}

hr
{
  border: solid #e8e8e854 1px;
  width: 100%;
}

/*Main Closed*/

footer
{
  display: flex;
  justify-content: space-around;
  background-color: #434343;
  padding: 30px;
}

footer a
{
  text-decoration: none;
  color: #cfcfff;
  list-style-type: none;
  line-height: 30px;
}

footer nav ul li:hover, footer .active-link
{
color: #9765c6
}


footer .footer-container p
{
  color: white;
  line-height: 35px;
  margin: 0;  
  padding: 0;
}

