@font-face { font-family: "Nunito"; src: local("Nunito"), url("Nunito-VariableFont_wght.ttf") format('truetype'); } body { font-family: "Nunito", serif; margin: 0 auto; align-items: center; justify-content: center; background: linear-gradient(135deg, black, #220033); } .logo-menu { position: fixed; top: 0; width: 100%; display: flex; justify-content: space-between; padding-top: 10px; padding-left: 10px; align-items: center; z-index: 20; } .logo img { width: 200px; filter: invert(1); } .menu-icon { display: none; margin-right: 30px; cursor: pointer; } .menu-items { padding-right: 30px; display: flex; flex-direction: row; align-items: center; justify-content: end; width: 100%; height: 100%; gap: 40px; } .menu-items a { color: white; text-decoration: none; font-size: 20px; padding: 10px; transition: color 0.3s ease; cursor: pointer; } .menu-items a:hover { color: #00aaff; } .close-btn { position: absolute; bottom: 100px; font-size: 70px; color: #fff; background: none; border: 1px solid #fff; border-radius: 50px; padding-left: 20px; padding-right: 20px; cursor: pointer; outline: none; transition: color 0.3s ease; } .close-btn:hover { color: #ff5555; } .container { position: relative; width: 100vw; height: 100vh; display: flex; justify-content: center; align-items: center; overflow: hidden; } .carousel { position: relative; display: flex; align-items: center; justify-content: center; } .card { position: absolute; margin-bottom: 150px; width: clamp(150px, 30vw, 300px); height: clamp(210px, 42vw, 420px); background: transparent; border-radius: 8px; box-shadow: 0 0 20px rgba(0, 0, 0, 0.2); display: flex; justify-content: center; align-items: center; font-size: clamp(16px, 4vw, 24px); transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1); perspective: 1000px; } .active-card { cursor: pointer; } .card-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform 0.6s ease; } .card .card-inner .front img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.4)); } .card .card-inner .front .num { position: absolute; z-index: 1; color: #fff; top: 10px; left: 33%; transition: opacity 0.8s cubic-bezier(0, 0.02, 0, 1); font-size: clamp(20px, 10vw, 80px); } .card .card-inner .front, .back { position: absolute; width: 100%; height: 100%; backface-visibility: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: bold; border: 2px solid #ccc; border-radius: 10px; overflow: hidden; } .card .card-inner .front { background-color: #fff; color: #000; } .card .card-inner .back { outline: 1px solid #5f5f5f; outline-offset: -15px; background-color: #fff; transform: rotateY(180deg); display: flex; flex-direction: column; align-items: center; justify-content: space-between; } .card .card-inner .back .card-lebel { position: absolute; top: 12px; right: 12px; padding: 5px 10px 5px 10px; color: #fff; font-size: 12px; } .card .card-inner .back .text-section { flex: 1; width: 100%; display: flex; flex-direction: column; align-items: start; justify-content: center; padding: 40px 20px 37px 20px; box-sizing: border-box; } .card .card-inner .back .text-section h2 { font-size: 13px; font-weight: 700; color: #999; } .card .card-inner .back .text-section p { margin: 5px 0px 5px 0px; font-size: 16px; font-weight: 800; color: #333; line-height: 1.25; } .card .card-inner .back img { position: absolute; bottom: 0; padding-bottom: 11px; object-fit: contain; pointer-events: none; transform: scale(2.5); } .controls { position: fixed; bottom: 200px; left: 50%; transform: translateX(-50%); display: flex; gap: 20px; z-index: 10; } .controls button { font: inherit; background-color: #f0f0f0; border: 0; padding: 0.375em 2em; display: flex; justify-content: center; align-items: center; box-shadow: inset 0 0.0625em 0 0 #f4f4f4, 0 0.0625em 0 0 #efefef, 0 0.125em 0 0 #ececec, 0 0.25em 0 0 #e0e0e0, 0 0.3125em 0 0 #dedede, 0 0.375em 0 0 #dcdcdc, 0 0.425em 0 0 #cacaca, 0 0.425em 0 0 #cecece; transition: transform 0.15s ease; cursor: pointer; } .controls button:active { translate: 0 0.225em; box-shadow: inset 0 0.03em 0 0 #f4f4f4, 0 0.03em 0 0 #efefef, 0 0.0625em 0 0 #ececec, 0 0.125em 0 0 #e0e0e0, 0 0.125em 0 0 #dedede, 0 0.2em 0 0 #dcdcdc, 0 0.225em 0 0 #cacaca, 0 0.225em 0 0 #cecece; } .bottom { position: fixed; bottom: -150px; left: 50%; background-color: white; border-radius: 8px; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); z-index: 1000; transform: translateX(-50%) rotate(-20deg); transition: .5s ease; } .bottom:hover { transform: translateX(-50%) translateY(-20%) scale(1.2) rotate(-15deg); } .bottom img { width: 100%; height: 200px; object-fit: cover; pointer-events: none; filter: brightness(2) saturate(100%) invert(32%) sepia(60%) saturate(468%) hue-rotate(72deg) brightness(150%) contrast(90%); } .bottom svg{ fill: #00aaff; } .modal { text-align: center; margin: 20px; } .modal input { display: none; } .modal label { color: white; text-decoration: none; font-size: 20px; padding: 10px; transition: color 0.3s ease; cursor: pointer; } .modal label:hover { color: #00aaff; } .modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); display: none; justify-content: center; align-items: center; z-index: 1000; opacity: 0; transform: scale(0.8); overflow-y: auto; transition: all 0.5s ease; } .modal input:checked~.modal-overlay { display: flex; opacity: 1; transform: scale(1); } .modal-box { background: black; color: #fff; padding: 50px 20px 20px 20px; width: 100%; height: 100%; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: justify; animation: popUp 0.5s ease-out; } .modal-box label { position: absolute; top: 50px; right: 50px; font-size: 30px; color: #fff; background: none; border: 1px solid #fff; border-radius: 50px; padding-left: 20px; padding-right: 20px; cursor: pointer; outline: none; transition: color 0.3s ease; } .modal-box label:hover { color: #ff5555; } .modal-box p { max-width: 600px; text-align: justify; margin: 0; font-size: 1em; line-height: 1.25; } @keyframes popUp { 0% { transform: scale(0.2); opacity: 0; } 100% { transform: scale(1); opacity: 1; } } .button:active { transform: scale(0.97); } @media (max-width: 749px) { .card { width: clamp(300px, 45vw, 500px); height: clamp(420px, 60vw, 640px); } .active-card { cursor: default; } .menu-items { display: none; } .menu-icon { display: block; cursor: default; } .close-btn { padding-left: 25px; padding-right: 25px; } .modal-box label { position: absolute; top: 35px; right: 20px; font-size: 30px; } .bottom { left: 50%; transform: rotate(-20deg); } .bottom:hover { transform: translateX(10px) scale(1.2) rotate(-15deg); } } ::-webkit-scrollbar { width: 10px; } ::-webkit-scrollbar-track { background: #f1f1f1; } ::-webkit-scrollbar-thumb { background: #888; } ::-webkit-scrollbar-thumb:hover { background: #555; }