:root {
  --color-text: #F6EBD2;
  --hero-ratio: 0.25; 
  --footer-ratio: 0.25;  
    --footer-overlap: 20rem;
}

html {
  background-color: rgb(5, 5, 37);
  font-family: sans-serif;
  font-size: 20px;
  overflow-x: hidden; 
}

body {
  padding: 1rem;
  margin: 0 auto;
  max-width: 640px;
}


p, a,
h1,h3,h2,h4,h5, nav, form{
  color: var(--color-text);
}

a:hover {
  color: #ff8360
}

form {
    font-size: 15px;
}

main {
  position: relative;
  z-index: 1;
}

img {
    z-index: 5;
}

header {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-top: -1rem;
  padding: 0;
  background: #2d6360;
  z-index: 1;
}


header img {
  display: block;
  width: 100%;
  height: auto;
}


header h1,
header nav,
header h3,
header h2 {
  position: absolute;
  left: 0;
  right: 0;
  margin: 0;
  text-align: center;
}

header h1 {
  top: 11rem;
}

header h2 {
  top: 13rem;
}

header h3 {
  top: 14rem;
}

header nav {
  top: 19rem;   
}
footer {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-top: calc(-1 * var(--footer-overlap)); 
  padding: 0;
  background: #2d6360;
}

footer img {
  display: block;
  width: 100%;
  height: auto;
}

footer h5 {
    position: absolute;
    left: 1.5rem;
    right: 0;
    margin: 0;
    text-align: left;
    bottom: 3rem;
}

footer p {
    position: absolute;
    left: 1.5rem;
    right: 0;
    margin: 0;
    text-align: left;
    bottom: 1.5rem;
    font-size: 12px;
}

.sidenav {
  height: 20%;
  width: 200px;
  position: fixed;
  z-index: 1;
  top: 15rem;
  left: 1rem;
  background-color: rgba(5, 5, 37,0.01);
  overflow-x: hidden;
  padding-top: 5px;
}



.link-button {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--color-text);
  color:hover #ff8360;
  text-decoration: underline;
  cursor: pointer;
}

dialog {
  max-width: 560px;
  width: 90%;
  padding: 0;   
  border: 1px solid var(--color-text);
  border-radius: 8px;
  background: rgb(5, 5, 37);
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.7);
}

.dialog-content {
  padding: 1.5rem;
  max-height: 70vh;
  overflow-y: auto; 
}

dialog h2 {
  color: var(--color-text);
  margin-top: 0;
}
