@import url('https://fonts.googleapis.com/css2?family=Fira+Sans+Condensed: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&family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');

* {
  margin: 0px;
  padding: 0px;
}

html {
  scroll-behavior: smooth;
}

button {
  font-family: "Fira Sans Condensed", Helvetica, sans-serif;
}

body {
	font-family: "Fira Sans Condensed", Helvetica, sans-serif;
	font-weight:300;
	font-style: normal;

  display: grid;
  grid-template-columns: auto;
  grid-template-rows: auto auto 1fr auto;
  transition: grid-template-rows 1s;

  background: #fdf0ff;
  background: linear-gradient(45deg, #65081f80 10%, #2f004f80 35%, #2f004f80 65%, #c0be0480 90%);

  width: 100%;
  min-height: 100vh;

  overflow-x: hidden;
  > section {
    height: 100%;
    width: 100%;
  }
  >main {
    font-family: "Ubuntu", sans-serif;
    font-size: 16px;
    width: min(1000px, calc(100vw - 80px));
    margin: 0 auto;
    background-color: #EEEEEE80;
    border-radius: 44px;
    
    padding: 16px;

    view-transition-name: page-content;
  }
}

header {
  font-family: "Fira Sans Condensed", Helvetica, sans-serif;
  font-weight:400;
  font-style: normal;

  width: 100%;
 
  top: 0;
  >div.mrthead {
    font-size: 60px;
    padding-bottom: 24px;
    padding-top: 72px;
    padding-left: 24px;
    padding-right: 24px;

    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: end;
    overflow: hidden;
    gap: 0 20px;
    >p {
      display: inline-flex;
      max-width: fit-content;
      display: flex;
      flex-wrap: wrap;
    }
  }
}

nav.navigation {
  background-image: linear-gradient(to top, rgba(255, 0, 0, 0), rgb(255, 255, 255, 0.67), rgb(255, 255, 255, 1));
  >li {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 0 0 #ffcf43 inset;

    transition: color 0.3s;
    transition: 0.5s;
    >a {
      width: 100%;
      height: 100%;
      display: flex;
      justify-content: center;
      align-items: center;
      margin: 24px 0;
      font-style: normal;
      transform: translateY(0);
      transition: 0.5s;
    };
    >a:link {
      color: black;
      text-decoration: none;
    };
    >a:visited {
      color: black;
      text-decoration: none;
    };
  }
  >li:hover {
    font-style: italic;
    background-color: #00475080;
    >a{color: white;}
  }
  >li:active {
    box-shadow: inset 5px rgba(0, 0, 0, 0.5);
    background-color: #004750B0;
    box-shadow: 0 0 8px 4px #ffcf43 inset, 0 6px 4px -2px #00475010;
    >a{
      transform: translateY(4px);
      color: white;
      margin-bottom: 20px;
    }
  }
}

.smolitalic {
  font-style: italic;
  font-weight: 300;
  font-size: 28px;
  text-align: right;
  text-wrap: balance;
}

.multiline {
  display: flex;
  flex-wrap: wrap;
}

.midchild {
  width: 0px;
}

nav.navigation {

  display: flex;
  justify-content: space-around;
  align-items: flex-end;

  position:sticky;
  top: 0;
  z-index: 100;
  
}

h1 {
  padding-top: 32px;
}

h2 {
  padding-top: 20px;
}

h3 {
  padding-top: 12px;
}

h4 {
  padding-top: 4px;
}

h5 {
  padding-top: 2px;
}

footer {
  padding-bottom: 24px;
	padding-top: 48px;
	padding-left: 48px;
  padding-right: 48px;
  > section {
    font-family: "Fira Sans Condensed";
    display: flex;
    justify-content: space-between;
    align-items: center;
    > nav {
      width: 100%;
      > li {
        list-style-type: none;
      }
    }
  }
}

nav > li{
  list-style-type: none;
}

li.foot-subhead {
  font-weight: 400;
  font-size: 18px;
}

/* width */
::-webkit-scrollbar {
  width: 8px;
  
}

/* Track */
::-webkit-scrollbar-track {
  background: #2e2a25;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: #004750;
  border-radius: 5px;
  box-shadow: 0 0 0 1px #ffcf43 inset;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #002e34;
}

mark {
  border-radius: 4px;
  padding: 2px;
}

@view-transition {
  navigation: auto;
}

--view-transition-group(page-content) {
  animation-duration: 0.5s;
}
