/* --------------------------------------------------- VARIABLES & PROPERTIES --------------------------------------------------- */ @import url("https://fonts.googleapis.com/css2?family=Jua&family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&display=swap"); :root { --line: transparent; --line-active: #ffffff; --bg-gradient: linear-gradient( 45deg, rgb(0, 29, 36), rgb(0, 35, 44), rgb(0, 29, 36) ); --ring-center-x: 50%; --ring-pattern: repeating-radial-gradient( circle at var(--ring-center-x) center, transparent 0px, transparent 113px, rgba(0, 27, 34, 0.3) 203px, rgba(0, 74, 92, 0.136) 206px ); transition: --ring-center-x 0.5s ease; } @property --animatedBorder { syntax: ""; inherits: false; initial-value: 0deg; } /* --------------------------------------------------- GLOBAL STYLES --------------------------------------------------- */ html, body { font-family: "Nunito Sans", sans-serif; width: 100%; height: 100%; background: var(--ring-pattern), var(--bg-gradient); background-blend-mode: normal; } :root:has(main#page.side) { --ring-center-x: 35%; } a { color: rgb(0, 151, 188) !important; text-decoration: none; } a:hover .project-card { border-color: rgb(0, 83, 104); } .unselectable { user-select: none; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; } /* --------------------------------------------------- PAGE LAYOUT --------------------------------------------------- */ main#page { position: absolute; top: 50%; left: 0; width: 100%; margin-top: -100px; color: rgb(0, 151, 188); transition: width 0.5s ease; } main#page.side { width: 70%; } /* --------------------------------------------------- TEXT STYLES --------------------------------------------------- */ h1 { color: #fff; margin-bottom: 0; font-family: "Jua", sans-serif; font-weight: 400; font-style: normal; font-size: 4rem; } h1.spin { animation: textSpin 4.5s linear infinite; position: relative; } h1.spin::before, h1.spin::after { content: "index" !important; } /* --------------------------------------------------- PROJECTS SIDE PANE --------------------------------------------------- */ #projects-pane { position: absolute; top: 0; right: 0; width: 30%; height: 97%; margin: 15px; padding: 20px; border-radius: 10px; background: rgba(0, 23, 29, 0.48); opacity: 0; pointer-events: none; visibility: hidden; } #projects-pane ul { height: 100%; padding-bottom: 20px; overflow-y: scroll; overflow-x: hidden; scrollbar-width: none; -ms-overflow-style: none; } #projects-pane ul::-webkit-scrollbar { display: none; } .project-card { background: rgba(0, 23, 29, 0.641); border: 1px solid rgb(0, 44, 55); padding: 10px; border-radius: 10px; margin-bottom: 10px; color: #fff !important; } /* --------------------------------------------------- NOW PLAYING WIDGET --------------------------------------------------- */ #now-playing { position: fixed; bottom: 20px; left: 20px; display: flex; align-items: center; gap: 12px; padding: 8px; background-color: rgba(0, 0, 0, 0.271); border-radius: 8px; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); color: #fff; text-align: left; text-decoration: none; width: 300px; transition: opacity 0.2s, left 0.5s ease; } #now-playing img { width: 64px; height: 64px; border-radius: 4px; object-fit: cover; } #now-playing #content { width: 100%; } /* --------------------------------------------------- ANIMATED BORDER EFFECT --------------------------------------------------- */ .animated-border::before, .animated-border::after { content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 70px; z-index: 1; background: conic-gradient( from var(--animatedBorder), transparent, transparent, transparent, blue ); background-clip: text; -webkit-text-fill-color: transparent; animation: animatedBorder 3s linear infinite; } .animated-border::before { filter: blur(20px); opacity: 0.5; } /* --------------------------------------------------- ANIMATIONS --------------------------------------------------- */ @keyframes textSpin { 0% { transform: rotateY(0deg); } 100% { transform: rotateY(359deg); } } @keyframes animatedBorder { from { --animatedBorder: 0deg; } to { --animatedBorder: 360deg; } }