<style>

body{
	margin:0;
                font-family: Verdana, sans-serif;
}

.collection_name {
	text-align: center;
}

@media (max-width: 48em) {

	.row{
		display:grid;
		grid-template-columns: auto;
	}
}

@media only screen and (min-width: 48em) {

	.row{
		display:grid;
		/*grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr));*/
		grid-template-columns: auto auto;
	}
}

.grid-container{
	display:grid;
	gap:20px;
/*	background-color:#004b66;*/
	padding: 20px;
	grid-template-columns: repeat(auto-fit, minmax(min(30rem, 50%), 1fr));
	width:90%; 
/*	outline: solid black;*/
	list-style:none;
}
.grid-item{
	background-color: #cce6ff;
	padding:20px;
	text-align:center;
	font-size:20px;
	outline: solid black;
	vertical-align: middle;
	color:black;
	height:100px;
}

.grid-item:hover{
	outline: solid white; 
	font-weight:bold;
}
.side{	
	float: left;
	padding:10px;
	width:20%;
}
.middle{
	justify:center;
	margin: auto;
	float: left;
	padding: 10px;
	width:70%;
}
.row::after{
	content:"";
	display:table;
	clear: both;
}
/*cards1 style start */
:root {
  --surface-color: #fff;
  --curve: 40;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  background-color: #e6e2d8;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 4rem 5vw;
  padding: 0;
  list-style-type: none;
}

.card {
  position: relative;
  display: block;
  height: 100%;
  border-radius: calc(var(--curve) * 1px);
  overflow: hidden;
  text-decoration: none;
  background-color: darkgrey;
}

.card__image {
  width: 100%;
  height: auto;
}

.card__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
  border-radius: calc(var(--curve) * 1px);
  background-color: var(--surface-color);
  transform: translateY(100%);
  transition: .2s ease-in-out;
}

.card:hover .card__overlay {
  transform: translateY(0);
}

.card__header {
  position: relative;
  display: flex;
 /* align-items: center;*/
  gap: 2em;
  height: 100px;
  padding: 2em;
  border-radius: calc(var(--curve) * 1px) 0 0 0;
  background-color: var(--surface-color);
  transform: translateY(-100%);
  transition: .2s ease-in-out;
}

.card__arc {
  width: 80px;
  height: 80px;
  position: absolute;
  bottom: 100%;
  right: 0;
  z-index: 1;
}

.card__arc path {
  fill: var(--surface-color);
  d: path("M 40 80 c 22 0 40 -22 40 -40 v 40 Z");
}

.card:hover .card__header {
  transform: translateY(0);
}

.card__thumb {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

.card__title {
  font-size: 1em;
  margin: 0 0 .3em;
  color: #6A515E;
}

.card__tagline {
  display: block;
  margin: 1em 0;
  font-family: "MockFlowFont";
  font-size: .8em;
  color: #D7BDCA;
}

.card__status {
  font-size: .8em;
  color: #D7BDCA;
}

.card__description {
  padding: 0 2em 2em;
  margin: 0;
  color: #D7BDCA;
  font-family: "MockFlowFont";
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
/*cards1 style end */

.pages {
	text-align: center;
	word-spacing: 10px;
}
.pages a:link { text-decoration: none; }
.pages a:visited { text-decoration: none;
		   color: blue;
}
.pages a:hover { text-decoration: none;
		color: red;			
}
.pages a:active { text-decoration: none; }

/*modal box style*/

.modal {

    /* Overlay page content */
    position: fixed;
    top: 10;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    text-align:center; 
    

    /* Transition opacity on open */
    -webkit-transition: opacity 500ms ease-in;
    -moz-transition: opacity 500ms ease-in;
    transition: opacity 500ms ease-in;

    /* Hide for now */
    opacity: 0;
    pointer-events: none;
}

.modal-image {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: auto;
  height: 60%;
}

/* Show modal */
.modal:target {
    opacity: 1;
    pointer-events: auto;
   
}

/* Content */
.modal > div {
    width: 90%;
   max-height: 100%;   
    background: #fff;
    position: relative;
     display: block;
  margin-left: auto;
  margin-right: auto;
  margin-top: auto;
  margin-bottom: auto;

    /* Default minimise animation */
    -webkit-animation: minimise 500ms linear;
    -moz-animation: minimise 500ms linear;
    animation: minimise 500ms linear;

    /* Prettify */
    padding: 30px;
    border-radius: 7px;
    box-shadow: 0 3px 20px rgba(0,0,0,0.9);
    background: #fff;
    background: -moz-linear-gradient(#fff, #ccc);
    background: -webkit-linear-gradient(#fff, #ccc);
    background: -o-linear-gradient(#fff, #ccc);
    background: linear-gradient(#fff, #ccc);
    text-shadow: 0 1px 0 #fff;
}

/* Override animation on modal open */
.modal:target > div {
    -webkit-animation-name: bounce;
    -moz-animation-name: bounce;
    animation-name: bounce;
}

.modal h2 {
    font-size: 36px;
    }		if ($row['Enthaelt']!== NULL){echo  $row['Enthaelt'] . "<br>";}

@-webkit-keyframes bounce {
  0% {
    -webkit-transform: scale3d(0.1,0.1,1);
    box-shadow: 0 3px 20px rgba(0,0,0,0.9);
  }
  55% {
    -webkit-transform: scale3d(1.08,1.08,1);
    box-shadow: 0 10px 20px rgba(0,0,0,0);
  }
  75% {
    -webkit-transform: scale3d(0.95,0.95,1);
    box-shadow: 0 0 20px rgba(0,0,0,0.9);
  }
  100% {
    -webkit-transform: scale3d(1,1,1);
    box-shadow: 0 3px 20px rgba(0,0,0,0.9);
  }
}

@-webkit-keyframes minimise {
  0% {
    -webkit-transform: scale3d(1,1,1);
  }
  100% {
    -webkit-transform: scale3d(0.1,0.1,1);
  }
}

@-moz-keyframes bounce {
  0% {
    -moz-transform: scale3d(0.1,0.1,1);
    box-shadow: 0 3px 20px rgba(0,0,0,0.9);
  }
  55% {
    -moz-transform: scale3d(1.08,1.08,1);
    box-shadow: 0 10px 20px rgba(0,0,0,0);		if ($row['Enthaelt']!== NULL){echo  $row['Enthaelt'] . "<br>";}
  }
  75% {
    -moz-transform: scale3d(0.95,0.95,1);
    box-shadow: 0 0 20px rgba(0,0,0,0.9);
  }
  100% {
    -moz-transform: scale3d(1,1,1);
    box-shadow: 0 3px 20px rgba(0,0,0,0.9);
  }
}

@-moz-keyframes minimise {
  0% {
    -moz-transform: scale3d(1,1,1);
  }
  100% {
    -moz-transform: scale3d(0.1,0.1,1);
  }
}

@keyframes bounce {
  0% {
    transform: scale3d(0.1,0.1,1);
    box-shadow: 0 3px 20px rgba(0,0,0,0.9);
  }
  55% {
    transform: scale3d(1.08,1.08,1);
    box-shadow: 0 10px 20px rgba(0,0,0,0);
  }
  75% {
    transform: scale3d(0.95,0.95,1);
    box-shadow: 0 0 20px rgba(0,0,0,0.9);
  }
  100% {		if ($row['Enthaelt']!== NULL){echo  $row['Enthaelt'] . "<br>";}
    transform: scale3d(1,1,1);
    box-shadow: 0 3px 20px rgba(0,0,0,0.9);
  }
}

@keyframes minimise {
  0% {
    transform: scale3d(1,1,1);
  }
  100% {
    transform: scale3d(0.1,0.1,1);
  }
}

/* Modal close link */
.modal a[href="#close"] {
    position: absolute;
    right: 0;
    top: 0;
    color: transparent;
}

/* Reset native styles */
.modal a[href="#close"]:focus {
    outline: none;
}

/* Create close button */
.modal a[href="#close"]:after {
    content: 'X';		if ($row['Enthaelt']!== NULL){echo  $row['Enthaelt'] . "<br>";}
    display: block;

    /* Position */
    position: absolute;
    right: -10px;
    top: -10px;
    width: 1.5em;
    padding: 1px 1px 1px 2px;

    /* Style */
    text-decoration: none;
    text-shadow: none;
    text-align: center;
    font-weight: bold;
    background: #000;
    color: #fff;
    border: 3px solid #fff;
    border-radius: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.5);
    }

    .modal a[href="#close"]:focus:after,
    .modal a[href="#close"]:hover:after {
    -webkit-transform: scale(1.1,1.1);
    -moz-transform: scale(1.1,1.1);
    transform: scale(1.1,1.1);
}

.modal a[href="#close"]:focus:after {
    outline: 1px solid #000;
}

/* Open modal */
a.openModal {
  
}

a.openModal:hover,
a.openModal:focus {
    background: -moz-linear-gradient(#fff, #ccc);
    background: -webkit-linear-gradient(#fff, #ccc);
    background: -o-linear-gradient(#fff, #ccc);
    background: linear-gradient(#fff, #ccc);
}

/*modal box style end*/
/* Tooltip container */
a.tooltip {
  position: relative;
  display: inline-block;     /* ensures positioning works */
  cursor: zoom-in;           /* magnifying glass cursor */
  text-decoration: none;
  max-width: 100%;  /* optional */
}

/* Tooltip bubble */
a.tooltip .tooltiptext {
  position: absolute;
  left: 50%;
  bottom: 110%;              /* above the element */
  transform: translateX(-50%);
  visibility: hidden;
  opacity: 0;
  z-index: 9999;

  /* styling */
  background: #000;
  color: #fff;
  padding: 6px 8px;
  border-radius: 6px;
  white-space: nowrap;
  font: 13px/1.2 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  /* animation */
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

/* Arrow */
a.tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #000;    /* arrow color matches bubble */		if ($row['Enthaelt']!== NULL){echo  $row['Enthaelt'] . "<br>";}
}

/* Show tooltip on hover */
a.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

.modal h2 {
margin: 0;}
</style>

