*,
*::before,
*::after {
  box-sizing: border-box;
}

*:focus {
  outline: none;
}

html {
  scroll-behavior: smooth;
}

@font-face {
  font-family: "MSGae";
  src: url("Fonts/MSGae.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "TNRae";
  src: url("Fonts/TNRae.otf") format("opentype");
  font-display: swap;
}

body {
  padding: 0;
  margin: 0;
  min-height: 100vh;
  background-image: url(Graphics/ASAT.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  font-family: "TNRae", monospace;
  margin-right: 10%;
  margin-left: 10%;
  padding-bottom: 7%;
}

a {
  color: red;
  text-decoration-color: red;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
}

header img {
  width: 250px;
  height: auto;
}

nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  background: linear-gradient(to right, #0d66ba, #2d545e);
  padding: 7px 15px;
  border-color: white;
  border-width: 3px;
  border-style: dotted;
  color: white;
  margin: 0 auto;
  margin-right: 5px;
  margin-left: 5px;
}

nav img {
  vertical-align: middle;
}

nav a {
  color: white;
  text-decoration: none;
  font-size: 12px;
  padding: 0 8px;
  letter-spacing: 0.05em;
}

nav a:hover {
  color: blue;
  text-decoration: underline;
}

main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "MSGae";
  color: white;
}

.header {
  background-image: url(Graphics/Sno6_1.png);
  background-position: center top;
  padding: 10px 10px;
  border-color: white;
  border-width: 3px;
  border-style: solid;
  color: white;
  font-family: "MSGae";
  margin-right: 30px;
  margin-top: 30px;
}

.seneca {
  color: white;
}

.binos {
  background-image: url(Graphics/Sno6_2.png);
  padding: 10px 10px;
  border-color: white;
  border-width: 3px;
  border-style: solid;
  color: white;
  font-family: "MSGae";
  margin-right: 30px;
  margin-top: 30px;
}

.portfolio {
  background-image: url(Graphics/Sno6_1.png);
  padding: 10px 10px;
  border-color: white;
  border-width: 3px;
  border-style: solid;
  color: white;
  font-family: "MSGae";
  margin-right: 30px;
  margin-top: 30px;
}

.skills {
  background-image: url(Graphics/Sno6_2.png);
  background-position: center top;
  padding: 10px 10px;
  border-color: white;
  border-width: 3px;
  border-style: solid;
  color: white;
  font-family: "MSGae";
  margin-right: 30px;
  margin-top: 30px;
}

.favorites {
  background-image: url(Graphics/Sno6_1.png);
  background-position: center;
  padding: 10px 10px;
  border-color: white;
  border-width: 3px;
  border-style: solid;
  color: white;
  font-family: "MSGae";
  margin-right: 30px;
  margin-top: 30px;
}

.diary {
  background-image: url(Graphics/Sno6_2.png);
  background-position: center;
  padding: 10px 10px;
  border-color: white;
  border-width: 3px;
  border-style: solid;
  color: white;
  font-family: "MSGae";
  margin-right: 30px;
  margin-top: 30px;
}

footer {
  background: linear-gradient(#7493d6, azure);
  color: blue;
  text-align: center;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
}

footer::before {
  content: '';
  display: block;
  position: absolute;
  bottom: 80%;
  left: 0;
  right: 0;
  height: 20px;
  background: url('Graphics/shark.png') repeat-x;
}

  /* mobile stuff --- */

  @media (max-width: 768px) {

    main {
      flex-wrap: wrap;
    }

    body {
      padding-bottom: 100px;
      background-image: url(Graphics/ASATf.jpg);
    }

    nav {
      flex-wrap: wrap;
    }

    .header,
    .binos,
    .portfolio,
    .skills,
    .favorites,
    .diary {
      width: auto;
    }

    /* mobile stuff --- */
  }