/* Prevent text selection */
.prevent-select {
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Font face */
@font-face {
  font-family: "Anonymous Pro";
  src: url('/fonts/AnonymousPro-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
}

.anonymous-pro-regular {
  font-family: "Anonymous Pro", ui-monospace, "Courier New", monospace;
  font-weight: 400;
  font-style: normal;
}

/* Page base */
:root{
  --bg:#0f0f0f;
  --aside:#000000;
  --card:#242424;
  --muted:#1e7cb0;
  --accent:#91c7d4;
  --border:#999999;
  --footer:#262626;
  --text:#ffffff;
}

* { box-sizing: border-box; }

body{
  margin:0;
  min-height:100vh;
  display:flex;
  flex-direction:column;
  background-color:var(--bg);
  color:var(--text);
  justify-content:flex-start;
}

/* Header with parallax background */
header.parallax{
  background-image: url("images/the.webp");
  background-attachment: fixed;
  background-position: top left;
  background-repeat: repeat;
  background-size: 2%;
  padding: 1vh;
}

.header-content{
  display:flex;
  align-items:center;
}

.header-content img.image1{
  max-width:15vh;
  margin-right:1vh;
}

  .text-content h2{ color:var(--muted); }
/* Main layout */
main{
  display: flex;
  padding: 1vw;
  padding-right: calc(180px + 1vw);
  border-top: 3vh solid var(--card);
  flex: 1;
  box-sizing: border-box;
}

/* Sidebar */
aside{
  background:var(--aside);
  transition:1s ease-in-out;
  display:flex;
  position:fixed;
  height: 100vh;
  box-sizing: border-box;
  flex-direction: column;
  text-align:top auto;
  right:0px;
  top:0px;
  flex:1;
  overflow-y:auto;
  overflow-x: hidden;
  z-index: 1000;
  padding:20px;
  width:7.5vh;
  flex-shrink:0;
  opacity:1;
  overflow:hidden;
  align-self:flex-start;
  font-size:4.5vh;
}
aside:hover{ width:200px; text-align:right;  }
aside nav ul{ list-style:none; padding:0; margin:0; }
aside nav ul li{ margin-bottom:5px; text-align:right; transition: opacity 0.5s ease;}
aside nav ul li a{ color: var(--text); text-decoration:none; opacity:0;}
aside:hover nav ul li a { opacity: 1;  transition: opacity 1s ease-in-out;}
aside nav ul li a:hover{ color: var(--muted)}

/* Grid / cards INDEX*/
.layout-container{ 
flex:1; display:flex; padding:5vh;
}

.grid-container{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap:4vh;
  width:100%;
}

.grid-card{
  background:var(--bg);
  padding:2vh;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  min-height:40vh;
}

.grid-item{
  width:100%;
  height:160px;
  object-fit:cover;
  object-position:center top;
  display:block;
  background:var(--card);
  border-bottom:5px solid var(--border);
}

/*ARTICLE GRID CARDS*/
.grid2-container {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(150px, 1fr);
  grid-template-areas:
    "image image"
    "content menu";
  gap: 2rem;
  padding: 2rem;
  width: 100%;
  box-sizing: border-box;
  background: var(--card);
  border-top: 5px solid var(--border);

}

/*ARTICLE LAYOUT*/
.grid2-item{
  grid-area: image;
  width: 100%;
  max-height: 480px;
  object-fit: cover;
}

/*LINK TEXT*/
.content > p:nth-of-type(-n+2) {
  font-weight: bold;
}


.content p {
  grid-area: content;
  line-height: 1.4 !important;
}

.content a,
.content a:visited {
  color: inherit;
  text-decoration: none;
}

.content a:hover {
	text-decoration: underline;
}

/*END OF LINK TEXT*/

.menu {
  grid-area: menu;
}

.layout-container-menu {
	min-width:100px;
}
/*END OF ARTICLE LAYOUT*/

/*ARTICLE IMAGE&CAPTION*/
.article-figure {
  margin: 1rem 0;
}

.article-figure img {
  display: block;
  width: 100%;
  max-width: 665px;
  height: auto;
}

.article-figure figcaption {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  line-height: 1.4;
}
/*END OF ARTICLE IMAGE/CAPTION*/

/*ARTICLE SOURCES*/
.sources {
  margin-top: 2rem;
}

.sources ul {
  padding-left: 1.25rem;
}

.sources li {
  margin-bottom: 0.5rem;
  overflow-wrap: anywhere;
}
/*END OF ARTICLE SOURCES*/

/*ARCHIVE LIST*/
.archive-img-list {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 2rem;
  padding: 1rem;
  overflow-x: auto;
  overflow-y: auto;
  align-items: flex-start;
}

/*ARCHIVE CARD*/
.archive-cards {
	flex: 0 0 200px;
	overflow: visible;
	scroll-snap-align: start;	
	flex-direction: column;
	gap: 0.5rem;
}

.archive-cards a {
	display: block;
}

.archive-cards img {
	object-fit: contain;
	display: flex;
	width: 100%;
	height: 100%;
	transition: 0.25s ease;
	transform-origin: center;
}

/*ARCHIVE CARD HOVER*/
.archive-cards img:hover {
	transform: scale(1.1);
	border: 2px solid var(--text);
	border-radius: 5px;
}


/* ABOUT HEADER CONTAINER */
.about-container {  
	display: flex;  
	flex-direction: column;  
	align-items: flex-start;
	}

/* ABOUT HEADERS */
.about-header,.about-header-ca {
	margin-bottom: 1rem;
	text-align: left;  
	font-style: italic;  
	font-size: 19px;  
	text-decoration: underline;  
	flex-wrap: nowrap;
	}

.about-header img {
  width: 120px;
  height: auto;
}
	
.about-header-ca {  
	margin-top: 20px;
	}


/*ABOUT PARAGRAPH*/
.about-paragraph {
	margin-top: 20px;
	padding-right: 100px;
	text-align: left;
	line-height: 1.6;
}


/*ARTICLE LIST*/
.article-list {
  display: flex;
  flex-wrap: nowrap;
  gap: 3rem;
  padding: 1rem;
  overflow-x: auto;
}

/*ARTICLE CARD*/
.article-card {
	flex: 0 0 245px;
	overflow: hidden;
	box-sizing: border-box;
	border: 1px solid var(--muted);
	border-radius: 5px;
	background: var(--aside);
	scroll-snap-align: start;	
	max-height: none;
}

.article-card:hover {
	border-color: white;
	border: 2px solid white;
	text-decoration-line: underline;
	transition: 0.2s ease;
}

/*ARTICLE CARD HEADER/PARAGRAPH*/
.article-card h2, .article-card p {
	margin: 0px;
	padding: 1rem 1rem 0;
	overflow-wrap: anywhere;
   word-break: break-word;	
} 

.article-card h2,
.article-card p {
  margin: 0;
  padding: 1rem 1rem 0;
}

.article-card a,
.article-card a:visited,
.article-card a:hover {
  color: inherit;
  text-decoration: none;
}


/*ARTICLE IMAGES*/
.article-card img {
	display: block;
	width: 100%;
	height: 160px;
	object-fit: inherit;
	border-radius: 4px;	
}

.article-card p {
	padding-bottom: 1rem;
}









.button-ui {
	border: 1px solid var(--text);
	border-radius: 5px;
	background: var(--aside);
	color: var(--text);
	height: 10%;
	width: 110%;
}

.button-ui:hover {
	background: #242424;
	color: white;
}

/* Phone layout */
@media (max-width: 600px) {
  html,
  body {
    width: 100%;
    overflow-x: hidden;
  }

  body {
    font-size: 16px;
  }

  header.parallax {
  	 min-height: 0;
    height: auto;
    padding: 1rem;
}

  .header-content {
  	 width: 100%;
  	 align-items: center;
  	 justify-content: center;
  	 gap: 0.75rem;
}

  .header-content .text-content {
  	 flex: 1 1 0;
  	 min-width: 0;
  	 text-align: center;
}

  .header-content h1 {
  	 font-size: clamp(1.25rem, 6vw, 2rem);
  	 line-height: 1.15;
  	 overflow-wrap: anywhere;
}

  .header-content h2 {
  	 font-size: clamp(0.85rem, 3.5vw, 1rem);
  	 line-height: 1.4;
  	 overflow-wrap: anywhere;
  	 margin: 0.5rem 0;
}


  /* Turn the fixed desktop sidebar into a compact top navigation */
  aside {
    position: relative;
    inset: auto;
    z-index: 1;
    width: 100%;
    height: auto;
    padding: 0.75rem 1rem;
    overflow: visible;
    flex-direction: row;
    font-size: 1rem;
  }

  aside:hover {
    width: 100%;
    text-align: left;
  }

  aside nav {
    width: 100%;
  }

  aside nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1rem;
  }

  aside nav ul li {
    margin: 0;
    text-align: center;
  }

  aside nav ul li a,
  aside:hover nav ul li a {
    display: block;
    padding: 0.35rem;
    opacity: 1;
  }

  main {
    display: block;
    min-width: 0;
    padding: 1rem;
    border-top-width: 1rem;
  }

  .layout-container {
    display: block;
    min-width: 0;
    padding: 0;
  }

  .grid-container {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }

  .grid-card {
    min-width: 0;
    min-height: 0;
    padding: 1rem;
  }

  .grid-item {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .grid2-container {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "image"
      "content"
      "menu";
    gap: 1rem;
    padding: 1rem;
    width: 100%;
    box-sizing: border-box;
  }

  .grid2-item {
    grid-area: image;
    width: 100%;
    height: auto;
    max-height: 65vh;
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }

  .content {
    grid-area: content;
  }

  .layout-container-menu,
  .menu {
    grid-area: menu;
    min-width: 0;
  }

  .archive-img-list,
  .article-list {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 1rem;
    width: 100%;
    max-width: 100%;
    padding: 0.75rem 0;
    overflow: visible;
  }

  .archive-cards,
  .article-card {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .archive-cards img,
  .article-card img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 260px;
    object-fit: cover;
  }

  .article-card {
    max-height: none;
  }

  .about-container {
    min-width: 0;
    width: 100%;
  }

  .about-header,
  .about-header-ca {
    max-width: 100%;
    padding: 0;
    overflow-wrap: anywhere;
  }

  .about-paragraph {
    width: 100%;
    margin-top: 1rem;
    padding: 0;
    overflow-wrap: anywhere;
  }

  .button-ui {
    width: 100%;
    min-height: 44px;
  }

  .footer-content {
    flex-wrap: wrap;
    justify-content: center;
    padding: 0.75rem;
  }

  .footer-content img {
    max-width: 90px;
    max-height: 48px;
  }
}

/* Text inside cards */
.grid-text h3{ margin:0.75vh 0 0.5vh 0; font-size:1.6rem; }
.grid-text h4{ margin:0 0 .5vh 0; font-size:1.1rem; color:var(--muted); }
.grid-card p{ margin:0; font-size:.9rem; color:#ddd; }

/* Footer */
footer{
  background:var(--footer);
  text-align:center;
  display:flex;
  align-items:center;
  justify-content:center;
}

.footer-content{ display:flex; align-items:center; gap:1vh; }
.footer-content img{ max-width:15vh; max-height:7vh; }
