* {
  margin: 0;
  box-sizing: border-box;
}

body {
  height: 100%;
  margin: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

header {
  position: fixed;
  height: 200px;
  width: 100%;
  background-image: url("../images/Background_Footer.jpg");
}

footer {
  position: sticky;	
  margin: auto;
  min-height: 100px;
  width: 100%;
  background: #1d2758;
}

p.footer {
	color: #1d2758;
}

/* Center website */
.main {
  max-width: 1200px;
  height: 100%;
  margin: auto;
  padding-top: 250px;
}

h1 {
  font-size: clamp(2rem, 2vw, 2rem);
  word-break: break-all;
}

h3 {
  font-size: clamp(1.5rem, 1.5vw, 1.5rem);
  word-break: break-all;
}


p {
  font-size: clamp(1rem, 1vw, 1rem);
}

.responsive {
  max-width: 100%;
  height: auto;
}

.flex-container {
  display: flex;
  justify-content: stretch;
  align-items: stretch;  
  width: 100%;
}
.flex-container > div {
  background-color: #ffffff;
  text-align: center;
  font-size: clamp(1rem, 2vw, 3rem);
  margin:5px;
  padding: 10px;
  border-radius: 6px;
}

.flex-joke {
  display: flex;
  justify-content: stretch;
  align-items: stretch;  
  font-size: clamp(1rem, 2vw, 3rem);
}

.flex-joke > div {
  margin: 5px;
  padding: 50px;
  color: red;
  justify-content: center;
  background-image: url("../images/Background_jokes.jpg");
  background-repeat: no-repeat;
  background-size: contain;
  border-radius: 6px;
}

.flex-fact {
  display: flex;
  justify-content: stretch;
  align-items: stretch;  
  font-size: clamp(1rem, 2vw, 3rem);
}

.flex-fact > div {
  margin: 5px;
  padding: 50px;
  color: green;
  justify-content: center;
  background-color: #fff;
  border-radius: 6px;
}

.flex-music {
  display: flex;
  justify-content: stretch;
  align-items: stretch;  
  font-size: clamp(1rem, 2vw, 3rem);
}

.flex-music > div {
  margin: 5px;
  padding: 20px;	
  color: green;
  justify-content: center;
  background-color: #sss;
  border-radius: 6px;
}

.footer-container {
  display: flex;
  justify-content: center;
  align-items: stretch;  
  max-width: 1200px;
}
.footer-container > div {
  background-color: #1d2758;
  justify-content: center;
  text-align: left;
  color: white;
  margin:5px;
  padding: 10px;
  border-radius: 6px;
}

.countdown {
  font-size: 1vw;
  text-align: center;
}
/* Top Navagation Bar */
.topnav {
  overflow: hidden;
  background-color: #333;
}

.topnav a {
  float: left;
  display: block;
  color: #f2f2f2;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
}

.topnav a:hover {
  background-color: #ddd;
  color: black;
}

.topnav a.active {
  background-color: #8d2228;
  color: white;
}

.topnav .icon {
  display: none;
}

.pagination {
  margin: 20px 0;
  display: flex;
  gap: 8px;
  justify-content: center;
}
.page-link {
  display: inline-block;
  padding: 8px 14px;
  background: #f0f0f0;
  border: 1px solid #ccc;
  color: #333;
  text-decoration: none;
  border-radius: 4px;
  font-size: 14px;
  min-width: 60px;
  text-align: center;
}
.page-link:hover {
  background: #e0e0e0;
}
.page-link.active {
  background: #333;
  color: #fff;
  border-color: #333;
}

/* Start 600px responsive */  
@media screen and (max-width: 600px) {
  .topnav a:not(:first-child) {display: none;}
  .topnav a.icon {
    float: right;
    display: block;
  }
  .topnav.responsive {position: relative;}
  .topnav.responsive .icon {
    position: absolute;
    right: 0;
    top: 0;
  }
  .topnav.responsive a {
    float: none;
    display: block;
    text-align: left;
  }
  .column {
    width: 100%;
  }  
  .flex-container { 
    flex-direction: column;
  }
  .flex-container div { 
    width: 100%;
  }
}
/* End 600px responsive */



