body{ margin: 0; display: block; } .card { float: left; width: calc(200mm / 7.5 ); /* Adjusted width to fit 2 cards per row with margins */ height: calc(287mm / 15 ) ; /* Adjusted height to fit 4 rows per page with margins */ border: 1px solid #9594C4; box-sizing: border-box; /* Includes the border in the width and height calculation */ overflow: hidden; } .card.image{ width: calc(200mm / 2); /* Adjusted width to fit 2 cards per row with margins */ height: calc(287mm / 4); padding: 0; margin: 0; box-sizing: border-box; /* Includes the border in the width and height calculation */ overflow: hidden; } .card.text{ padding: 5px; box-sizing: border-box; overflow: hidden; background-color: white; word-wrap: break-word; } .cards{ padding: 60px 320px 0px 200px } .background-image { opacity: 50%; } /*game */ h1{ font-family: 'NotCourierSans Bold', Courier, monospace; color: #c4007a; font-weight: 600; text-align: center; overflow: hidden; margin: 0mm; overflow-wrap: break-word; font-size: 5px; } .introtitle{ font-size: 30px; padding: 15px 30px 0 30px; } /* thesis quotes */ h2{ font-family: 'Catamaran Bold', sans-serif; font-weight: 1000; color: #a6dbf0; margin: 0mm; overflow-wrap: break-word; font-size: 5px; } /* alternative materials*/ h3 { font-family: 'Catamaran Bold', sans-serif; font-weight: 1000; color: #E2C044; margin: 0mm; overflow-wrap: break-word; font-size: 5px; } /* wiki*/ h4{ font-family: 'NotCourierSans Bold',Courier, sans-serif; font-weight: 800; color: #9594C4; margin: 0mm; overflow-wrap: break-word; font-size: 5px; } .h4::after { content: ":"; white-space: pre; } .a4::after { content: "\A"; white-space: pre; } p{ margin: 0mm; font-family: 'Catamaran Medium', sans-serif; font-weight: 400; font-size: 3px; color: #393E41; } .tensteps{ font-family: 'Catamaran Bold', sans-serif; font-weight: 800; font-size: 5px; color: #b4d194; padding-top: 10px; text-align: center; display: inline-block; align-self: flex-end; } .image_titles { /*width: 105mm;*/ text-align: center; margin-top: 63mm; margin-left: 9mm; font-family: 'NotCourierSans', Courier, sans-serif; font-size: 12pt; /*text-shadow: -1px 2px #393e41;*/ color:black; display: inline-flex; justify-content: center; align-items: center; background-color: #9594c49e; } .game{ object-fit:cover; width: 26mm; } @media print { .body{ -webkit-print-color-adjust: exact !important; /* Chrome, Safari 6 – 15.3, Edge */ /* Firefox 48 – 96 */ print-color-adjust: exact !important; } .page{ -webkit-print-color-adjust: exact !important; /* Chrome, Safari 6 – 15.3, Edge */ print-color-adjust: exact !important; } .overflowing-element { overflow: hidden; } nav{ display: none !important; } } @media screen { .body { display: grid; grid-template-columns: repeat(auto-fill, minmax(calc(200mm / 2), 1fr)); grid-gap: 5mm; height: 287mm; width: 200mm; margin: 0 auto; padding: 5mm; overflow: hidden; } .card { box-sizing: border-box; overflow: hidden; cursor: pointer; transition: transform .2s; } nav { position: relative; top: 0; left: 0; right: 0; z-index: 50; padding: 24px; margin-bottom: 50px; text-align: right; top: 0; background-image: url("finalCOVER.jpg"); background-position: center; background-repeat: no-repeat; background-size: cover; } .btn { background: white; display: inline-block; min-width: 50px; height: 50px; border-radius: 24px; padding: 0 4px; border: 1px solid currentColor; color: #9594c4; transition-duration: 0.7s; cursor: pointer; } .btn:hover { background-color: #9594c4; } } .zoom{ transform: scale(5); transition: all 0.5s ease-in; } #legend{ width: 20%; position: absolute; right: 25px; } .legend{ color:#E2C044; margin-top:20px; } .legend:hover { background-color:#E2C044; padding: 20px 60px 20px 60px; } .title{ margin-top: 100px; width: 100%; padding: 10px; text-align: center; }