/* FONTS */

@font-face {
  font-family: 'Grundly';
  src: url('../resources/Grundly.ttf') format('truetype');
}

@font-face {
  font-family: 'Snuggohorns-Regular';
  src: url('../resources/Snuggohorns-Regular.ttf') format('truetype');
}

@font-face {
	font-family: 'Klapow';
	font-weight: 400;
	src: url('../resources/Heatherhorns_klapow-Regular.ttf') format('truetype');
}



/* links */
a{
	color: var(--lnkc);
	cursor: pointer;
}
a:hover,
a.current {
	color: var(--lnkhc);
}
a.disabled {
	color: var(--lnkdc);
}
a.current,
a.disabled {
	pointer-events: none;
}

/* body */
body{
	background-color: var(--bgc);
background-image: url("../resources/pattern-12.png"); 

}

/*body::after {
  content: "";
  background: white;
  opacity: 0.1;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  position: absolute;
  z-index: -1;
  background-image: url("../resources/pattern-2.png"); 
}*/

/* header and navbar */
#header{
	display: contents;
}
#header>.desktop-nav>nav{
	width:100%;
	position:sticky;
	top:0;
	z-index:1;
	background-color: var(--bgc);
	/*background-image: url("../resources/strike-50opacity.png");*/
}
#header>.desktop-nav>nav>a{
	font-size: 1rem;
	font-weight: bold;
	text-decoration: none;
	font-family: Times New Roman;
}
#header>a{
	display: block;
	margin: 0 auto;
	width: fit-content;
}
#header>a>img{
	max-height: 6em;
}
/* navbar in general */
nav{
	display: flex;
	flex-direction: row;
	justify-content: center;
	gap: 2em;
}

nav>a{
	position: relative;
	margin-bottom: 0.5em;
	margin-top: 0.5em;
}
nav>a::after{
	content: '';
	display: block;
	position: absolute;
	bottom: -0.2em;
	left: 50%;
	transform: translate(-50%,0);
	width: 0;
	height: 0.15em;
	background-color: var(--lnkhc);
	transition: width 0.2s;
	pointer-events: none;
}
nav>a:hover::after,
nav>a.current::after{
	width: 100%;
}
nav>a>svg{
	height:2em;
	width:auto;
}
nav>a.revicon>svg{
	transform:scale(-1,1);
}

/* cards in general */
.card{
	margin: 0.5em;
	padding: 1em 2em;
	background-color: var(--cardc);
}

/* comic */
.comic{
	display: flex;
	flex-direction: column;
	align-items: center;
	box-sizing: border-box;
	min-width: 50vw;
	max-width: 80vw;
}
.comic>.comic__inner{
	/*margin:1em 0;*/
margin: 0;
	max-width:100%;
}

/* NAV BAR */

.dropdownmenu {
	display: none;
}

.hamburger-icon{
  border:none;
  background-color:transparent;
}

.hamburger-icon .fa-bars,
.hamburger-icon .fa-x{
  color:white;
  font-size:1rem;
  cursor:pointer;
}


.hamburger-icon input[type="checkbox"] {
  appearance: none;
}

@media screen and (max-width: 600px) {
	.dropdownmenu {
		display: block;
	}

	.mobile-navigation-options {
		 overflow: hidden;
  		  flex-direction: column;
  		  align-items: center;
  		  transition: all 0.5s ease-in-out;
  		  display: contents;
		}


	.mobile-navigation-options li {
		display: block;
  	  height: 1.5rem;
  	  margin: 0 auto;
 	   width: fit-content;
 	 }

	.mobile-navigation-options li a {
		font-weight: bold;
  		text-decoration: none;
 		 font-family: Times New Roman;

	}

	.desktop-nav {
	display: none;
	}
}



/* Making the hamburger button visible */
.hamburger-icon {
    display: block;
  }

/* Initially hiding the cross icon */
.fa-x{
    display:none;
  }



/*determining whether the header contains a checkbox input that is checked before expanding the navigation's height to 100 pixels to make it visible.*/

  header:has(.hamburger-icon input[type="checkbox"]:checked) .mobile-navigation-options {
    margin-top: 1rem;
    height:100px;
  }

/* Hiding the bars icon on checkbox checked state */
  header:has(.hamburger-icon input[type="checkbox"]:checked) .fa-bars {
    display:none;
  }

/* Showing the cross icon on checkbox checked state */
  header:has(.hamburger-icon input[type="checkbox"]:checked) .fa-x {
    display:inline-block;
  }