/* style for head page */
body {
  background-color: #cdd;
}

body {
  font-family: "Helvetica Neue", "Segoe UI", Segoe, Helvetica, Arial, "Lucida Grande", sans-serif;
  font-weight: normal;
  margin: 0;
  padding: 0;
  text-align: center;
}
a { color: #626276; text-decoration: none;}


h1 {font-size: 1.2rem; font-weight: 500; margin-bottom:0.1rem;}
main {margin: .2rem auto 1rem auto; max-width: 1170px;}

/* header */
header {margin:0 auto;}
header aside {
    background-color:#337755;
    padding:2px 0 2px 0;
}
header.small {font-size:.75rem;}
header h1 {
    margin:1rem 0 1rem 0; background-color:#aa4433; border-radius:10% 60% 10% 40%;
}
.headlines {
    display: block;
	/*margin: 2em auto;*/
	overflow: hidden;
	position: relative;
	table-layout: fixed;
	width: 100%;
}
.defile {
    display:block;
    font-size:.75rem;
	animation:linear marqueelike 60s infinite ;
	margin-left:-400%;
	padding:0 5px;
	text-align:left;
	height:25px;
}
.defile:after {
	content:attr(data-text);
	position:absolute;
	white-space:nowrap;
	padding-left:10px;
}
@keyframes marqueelike {
	0%, 100% {margin-left:0;}
	99.99% {margin-left:-400%;}
}


/* footer */
footer {
    background-color:#223344;
    font-size:1.2rem; color:white;
    margin:0 8rem 0 8rem;
    padding:1rem 1rem 1rem 1rem;
    width:75%; height: 5rem;
    display: grid;
    grid-template-columns: 1fr 1fr 2fr 1fr 3fr;
    align-items: center;
}

#bigger {  animation-duration: 5s;  animation-name: getbig; animation-iteration-count: infinite;}
@keyframes getbig { from { font-size: 90%;  } to { font-size: 190%;  } }
#bugger {  animation-duration: 5s;  animation-name: getbug; animation-iteration-count: infinite;}
#bug1 {  animation-duration: 5s;  animation-name: getbug1; animation-iteration-count: infinite;}
@keyframes getbug1 { from { color: #222;  } to { color: #ddd;  } }
#bug2 {  animation-duration: 6s;  animation-name: getbug2; animation-iteration-count: infinite;}
@keyframes getbug2 { from { color: #222;  } to { color: #876;  } }
#bug3 {  animation-duration: 5s;  animation-name: getbug3; animation-iteration-count: infinite;}
@keyframes getbug3 { from { color: #222;  } to { color: #bcd;  } }
#bug4 {  animation-duration: 4s;  animation-name: getbug4; animation-iteration-count: infinite;}
@keyframes getbug4 { from { color: #222;  } to { color: #a98;  } }
#bug5 {  animation-duration: 3s;  animation-name: getbug5; animation-iteration-count: infinite;}
@keyframes getbug5 { from { color: #222;  } to { color: #def;  } }


/* box dimension uses the "free space" repartition: unit = fr */
.box {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-gap: 1rem;
 /*   margin-top:1rem; width:100%;
    justify-content: space-between; align-items: flex-end; */
}
.box article {margin:auto; width:340px; border-top: 1px solid #667788;}
.imgbox {width:320px; height:240px; margin:10px;}
.box img {max-width:100%; max-height:100%;
    object-fit: cover;
    border:1px solid rgb(200, 210, 250);
}
.article-image {
    max-height:345px;
}
/* make it responsive! Pad --------- */
@media only screen and (max-width: 500px) {
    .box {
        grid-template-columns: 1fr;
    }
    .defile {
    	animation:linear marqueelikeMin 20s infinite ;
    	margin-left:-300%;
    }
    @keyframes marqueelikeMin {
    	0%, 100% {margin-left:0;}
    	99.99% {margin-left:-300%;}
    }
}
@media only screen and (max-width: 700px) {
    .box {
        grid-template-columns: 1fr 1fr;
    }
    .defile {
    	animation:linear marqueelikeMid 30s infinite ;
    	margin-left:-400%;
    }
    @keyframes marqueelikeMid {
    	0%, 100% {margin-left:0;}
    	99.99% {margin-left:-400%;}
    }
}

/* ******************************************** */
.articles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding: 1rem;
}

.article-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 0.5rem;
  background: #fff;
}

.article-subtitle {
  margin: 0;
  color: #444;
  line-height: 1.5;
}

.article-link {
  display: block;
}

.article-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.375rem;
  object-fit: cover;
}

/* Intermediate screens: 2 articles per row */
@media (min-width: 48em) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* Desktop: 3 articles per row */
@media (min-width: 75em) {
  .articles-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
