@import url('https://fonts.googleapis.com/css2?family=Anta&display=swap');

/*
 Reset
*/
/* 1. Use a more-intuitive box-sizing model */
*, *::before, *::after {
  box-sizing: border-box;
}

/* 2. Remove default margin */
*:not(dialog) {
  margin: 0;
}

/* 3. Enable keyword animations */
@media (prefers-reduced-motion: no-preference) {
  html {
    interpolate-size: allow-keywords;
  }
}

body {
  /* 4. Add accessible line-height */
  line-height: 1.5;
  /* 5. Improve text rendering */
  -webkit-font-smoothing: antialiased;
}

/* 6. Improve media defaults */
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

/* 7. Inherit fonts for form controls */
input, button, textarea, select {
  font: inherit;
}

/* 8. Avoid text overflows */
p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

/* 9. Improve line wrapping */
p {
  text-wrap: pretty;
}
h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}

/*
  10. Create a root stacking context
*/
#root, #__next {
  isolation: isolate;
}


:root{
/* 
	Colour scheme
*/
	--primary-color: rgb(13,12,12);
	--secondary-color: limegreen;
	--text-color: lightgrey;
	--font-family: "Anta", sans-serif;
}

body{
	background-color: var(--primary-color);
}

h1,h2,h3,
h4,h5,h6 {
	color: var(--secondary-color);
}

h1{
	font-size: 48px;
	line-height: 50px;
}

.container{
	display: flex;
	flex-direction: column;
	gap: 25px;
	justify-content: flex-start;
	height: 100vh;
	padding: 20px;
	max-width: 700px;
	margin: 0 auto;
	font-size: 20px;
	font-family: var(--font-family);
	font-weight: 400;
	font-style: normal;
	color: var(--text-color);
	text-align: center;	
}

.joke-container{
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 25px;
}

#joke{
	padding: 0 25px;
	line-height: 30px;
	height: 150px;
	overflow-y: auto;
	display: flex;
	align-items: center;
}

#chuckImage{
	display: none;
	width: 100%;
	max-width: 400px;
	height: 200px;
}

footer{
	margin-top: auto;
	font-size: 16px;
}

/*
 Components
*/



#submitButton{
	padding: 10px;
	border-radius: 1px;
	background-color: transparent;
	border: 1px solid var(--secondary-color);
	color: var(--secondary-color);
	cursor: pointer;
	text-transform: uppercase;
	font-size: 14px;
	font-weight: 500;
}

#submitButton:hover{
	background-color: black;
}

.nav-link{
	font-size: 16px;
	color: var(--secondary-color);
	text-decoration: none;
	cursor: pointer;
}

.nav-link:hover {
	color: hsl(120, 61%, 60%);
	text-decoration: none;
}

