@font-face {
  font-family: "New Rocker";
  src: url('../fonts/NewRocker-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

:root {
  --bg-color: #ffffff;
  --bg-secondary-color: #f3f3f6;
  --color-primary: #e95757;
  --color-secondary: #d34545;
  --color-lightGrey: #d2d6dd;
  --color-grey: #747681;
  --color-darkGrey: #3f4144;
  --color-error: #d43939;
  --color-success: #28bd14;
  --grid-maxWidth: 120rem;
  --grid-gutter: 2rem;
  --font-size: 1.6rem;
  --font-color: #333;
  --font-family-display: "New Rocker", system-ui;
  --font-family-sans: -apple-system, "BlinkMacSystemFont", "Avenir",
    "Avenir Next", "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell",
    "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  --font-family-mono: monaco, "Consolas", "Lucida Console", monospace;
}

h1{
  font-family: var(--font-family-display);
}

body {
  background-color: var(--bg-color);
  line-height: 1.6;
  font-size: var(--font-size);
  color: var(--font-color);
  font-family: "Segoe UI", "Helvetica Neue", sans-serif; /* fallback */
  font-family: var(--font-family-sans);
  margin: 0;
  padding: 0;
}

body.dark {
  background-image: url(../img/prueba.jpg);
  background-repeat: repeat;
  --bg-color: #000;
  --bg-secondary-color: #131316;
  --font-color: #f5f5f5;
  --color-grey: #ccc;
  --color-darkGrey: #777;
}

.container{
  display: flex;
  flex-direction: column;
  align-items: center;
}

.content{
  display: flex;
  height: 100vh;
  width: 85%;
  overflow: hidden;
}

main {
  flex: 1;
  overflow-y: auto;
  padding: 2rem;     
  background-color: var(--bg-secondary-color);
  border-radius: 4px;
}

main {
  scrollbar-width: thin;
  scrollbar-color: var(--color-primary) var(--bg-secondary-color);
}

main::-webkit-scrollbar {
  width: 12px;
}

main::-webkit-scrollbar-track {
  background: var(--bg-secondary-color);
}

main::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 6px;
}

main::-webkit-scrollbar-thumb:hover {
  background: var(--color-darkGrey);
}

aside{
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  min-width: 250px;
  max-width: 250px;
}

.navmenu{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  list-style: none;
}

.navmenu a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 153px;
  max-width: 153px;     
  height: 40px;
  padding: 8px 16px;      
  background-color: var(--bg-secondary-color);
  color: var(--color-primary);
  border-radius: 4px;
  text-decoration: none;
  white-space: nowrap;    
}

.navmenu a:hover {
  background-color: var(--color-primary);
  color: var(--bg-color);
}

.navmenu a:hover::before {
  content: "† ";
  white-space: pre;
}

.navmenu a:hover::after {
  content: " †";
  white-space: pre;
}

a{
  text-decoration: none;
  font-family: var(--font-family-display);
  color: var(--color-primary);
}

a:hover{
  color: var(--color-secondary)
}

@media (max-width: 600px) {
  .content {
    flex-direction: column;
    height: auto;
    overflow: visible;
  }

  main {
    overflow-y: visible;
    padding: 1rem;
  }

  aside {
    position: relative;
    height: auto;
    overflow-y: visible;
    min-width: 100%;
    max-width: 100%;
  }

  .navmenu {
    padding: 0;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }

  .navmenu li {
    flex: 0 1 auto;
  }

  .navmenu a {
    min-width: auto;
  }
}

.header {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(1rem, 100vw, 1440px);
  min-height: 300px;
  background-image: url(../img/header_background_img.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 3rem 2rem;
  color: rgb(255, 255, 255);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  box-sizing: border-box;
}

.text{
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 0;
  width: clamp(500px, 70vw, 600px);
}

.text h1{
  margin-bottom: 0;
  font-size: 5rem;
  line-height: 110%; 
}

.text p{
  margin-top: 0;
}

footer{
  font-size: 1rem;
}