body{ margin: 0 auto; display: block; } .container { margin: 0 auto; width: 100%; max-width: 960px; } @media (max-width: 768px) { .container { max-width: 90%; } } .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-top:50px; margin-top: 150px; } .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: 20px; padding: 15px 30px 0 30px; margin-bottom: 10px; } .introtitle:hover{ color:#E2C044 } .introtexts{ font-size: 20px; font-family: 'Catamaran', sans-serif; } /* 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: 58px; font-family: 'NotCourierSans', Courier, sans-serif; font-size: 5px; /*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; height: 100px; } .navtitle{ font-size: 40px; font-family: 'Catamaran', sans-serif; color: #E2C044; float:left; transform: rotate(-5deg); } .navtitle:hover{ color:#9594C4; transform: rotate(185deg); } #infobutton{ float: left; color:#E2C044; } /* .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; border-radius: 5px; } */ /* CSS */ .btn { background-color:#9594C4; border: 0 solid #E5E7EB; box-sizing: border-box; color: #000000; display: flex; font-family: 'NotCourierSans', Courier, sans-serif; font-size: 1rem; font-weight: 700; justify-content: center; line-height: 1.75rem; padding: 0m; position: relative; text-align: center; text-decoration: none #000000 solid; text-decoration-thickness: auto; max-width: 460px; position: relative; cursor: pointer; transform: rotate(-2deg); user-select: none; -webkit-user-select: none; touch-action: manipulation; float: right; margin-right: 5px; margin-bottom: 5px; } .btn:focus { outline: 0; } .btn:after { content: ''; position: absolute; border: 1px solid black; bottom: 4px; left: 4px; width: calc(100% - 1px); height: calc(100% - 1px); cursor: pointer; } .btn:hover:after { bottom: 2px; left: 2px; color:#E2C044; cursor: pointer; } #legend{ width: 20%; position: absolute; right: 25px; } .legend{ color:#E2C044; margin-top: 30px; } .legend:hover { background-color:#E2C044; cursor: pointer; color:#E2C044; } @media (min-width: 768px) { .btn { padding: .75rem 3rem; font-size: 1.25rem; } } } .zoom{ transform: scale(5); transition: all 0.5s ease-in; } .title{ margin-top: 100px; width: 100%; padding: 10px; text-align: center; }