/* STUDYSHEET ENTRY */ .studysheet-entry { color: white; position: relative; border-radius: 20px; transition: transform 0.25s, color 0.25s, opacity 0.25s; } .studysheet-entry:hover { cursor: pointer; color: black; transform: scale(0.98); z-index: 2; } .studysheet-entry.ss-selected { cursor: pointer; color: black; transform: scale(0.98); z-index: 2; } .studysheet-entry-visible { display: flex; align-items: center; gap: 15px; padding: 15px; box-sizing: border-box; background-color: var(--frosted-glass); transition: background-color 0.25s, border-radius 0.25s; border-radius: 25px; } .studysheet-entry-hover { pointer-events: none; z-index: 1; position: absolute; top: calc(100% - 15px); max-height: 0; overflow: hidden; opacity: 0; transition: max-height 0.25s, background-color 0.25s, opacity 0.25s; background-color: var(--frosted-glass); box-sizing: border-box; padding-left: 15px; padding-right: 15px; padding-bottom: 20px; padding-top: 10px; width: 100%; border-bottom-left-radius: 25px; border-bottom-right-radius: 25px; display: flex; flex-direction: row; gap: 5px; } .term-count { font-size: 45px; } .studysheet-entry-visible:hover { background-color: var(--primary-light); border-bottom-left-radius: 0; border-bottom-right-radius: 0; } .studysheet-entry.ss-selected .studysheet-entry-visible { background-color: var(--primary-light); } .studysheet-entry:has(.studysheet-entry-visible:hover) .studysheet-entry-hover { max-height: 150px; background-color: var(--primary-light); opacity: 1; } .studysheet-entry:last-child { margin-bottom: 150px; } .studysheet-entry .studysheet-user-container { display: inline-flex; align-items: center; gap: 7.5px; margin-top: 5px; transition: transform 0.25s; } .studysheet-entry .studysheet-user-container:hover { transform: scale(0.95); } .studysheet-pfp { height: 25px; width: 25px; border-radius: 50%; } .studysheets { display: flex; flex-direction: column; gap: 10px; height: 500px; overflow-y: scroll; overflow-x: visible; padding-right: 5px; box-sizing: border-box; } /* CREATOR */ .term-container { position: relative; background-color: var(--frosted-glass); border-radius: 15px; padding: 10px; transition: opacity 0.25s; } .term-container > div { display: flex; gap: 10px; align-items: flex-start; position: relative; } .term-container textarea { flex: 1; } .term-container:has(textarea:focus) .left-options { opacity: 0.15; pointer-events: none; } .term-container .drag-handle { cursor: grab; width: 32px; aspect-ratio: 1/1; } .term-container .left-options { position: absolute; height: 50px; right: 5px; bottom: 1px; opacity: 0; pointer-events: none; transition: opacity 0.25s; gap: 5px; } .term-container:hover .left-options { opacity: 1; pointer-events: auto; } /* .term-container:hover textarea { border-bottom: 2px solid transparent; } */ .term-container .left-options img { background-color: wheat; border-radius: 17px; height: 100%; aspect-ratio: 1/1; cursor: pointer; box-shadow: 0 0 5px black; } .term-component { display: flex; flex-direction: column; gap: 5px; width: 100%; } .term-container .star { margin: 0; padding: 0; height: 30px; fill: transparent; stroke: white; aspect-ratio: 1/1; stroke-width: 7px; transition: fill 0.25s, stroke 0.25s; } .term-container .star.selected { fill: yellow; stroke: transparent; } .blurred-answer { background-color: white; transition: background-color 0.25s; } .blurred-answer:hover { background-color: transparent; transition: background-color 0.1s; cursor: pointer; } .comment-container { border: 3px solid var(--frosted-glass); box-sizing: border-box; background-color: transparent; } .comment-container.multi::before { left: -38px; } .comment-container > textarea { border: none; font-style: italic; font-size: 15px; } .image-container { display: flex; justify-content: space-between; align-items: flex-end; } .image-container > div { flex: 1; } .clickable-image:hover { cursor: pointer; opacity: 0.5; transition: opacity 0.25s, filter 0.25s, transform 0.25s; } .image-container img { max-width: 40%; max-height: 300px; } textarea { background-color: transparent; border: none; color: white; font-family: 'Poppins', sans-serif; font-size: 17px; resize: none; } textarea:focus { outline: none; } textarea::-webkit-scrollbar { display: none; } .multi { margin-left: 50px; max-width: calc(100% - 50px); } .multi > .term-container::before { content: ""; position: absolute; left: -35px; transform: translateY(-50%); top: 50%; width: 10px; height: 10px; border: 4px solid var(--frosted-glass); border-radius: 50%; } .term-warning { color: rgb(255, 228, 173); font-size: 14px; font-weight: bold; margin-top: 5px; } /* LOADER */ #loader { animation: spin 1s linear infinite; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } /* BUTTONS */ .glass-button { background-color: var(--frosted-glass); color: white; cursor: pointer; border: none; border-radius: 10px; transition: background-color 0.25s, color 0.25s, transform 0.25s, box-shadow 0.25s; } .glass-button:hover { background-color: white; color: black; transform: scale(1.05); } .glass-button:active { transform: scale(1); box-shadow: 0 0 5px 2.5px white; } .wheat-button { background-color: var(--primary-light); color: black; cursor: pointer; border: none; border-radius: 10px; font-family: 'Poppins', sans-serif; transition: background-color 0.25s, color 0.25s, box-shadow 0.25s; } .wheat-button:hover { background-color: var(--secondary-light); box-shadow: 0px 0px 10px 2px wheat; } .wheat-button.active { background-color: var(--secondary-light); box-shadow: 0px 0px 10px 2px wheat; } /* POPUPS */ .popup-container { position: fixed; top: 0; right: 0; left: 0; bottom: 0; background-color: rgba(0, 0, 0, 0.5); display: flex; justify-content: center; align-items: center; transition: opacity 0.15s; z-index: 100; } .popup { background-color: var(--frosted-glass); border-radius: 25px; padding: 15px; box-sizing: border-box; backdrop-filter: blur(10px); display: flex; flex-direction: column; gap: 5px; width: 95vw; text-align: center; } .popup button { padding: 10px; border-radius: 15px; } /* .popup button { background-color: var(--primary-light); border: none; border-radius: 15px; padding: 10px; cursor: pointer; transition: background-color 0.25s, box-shadow 0.25s; } .popup button:hover { background-color: var(--secondary-light); box-shadow: 0 0 10px 5px var(--primary-light); } */ .popup input { background-color: var(--primary-light); border: none; outline: none; border-radius: 15px; padding: 10px; box-sizing: border-box; } /* TOGGLE SWITCH thanks w3schools https://www.w3schools.com/howto/howto_css_switch.asp */ .name-switch { display: flex; align-items: center; justify-content: space-between; gap: 20px; } .name-switch > div { flex: 1; background-color: var(--frosted-glass); height: 3px; } .switch { position: relative; display: inline-block; width: 55px; height: 30px; margin-top: 5px; margin-bottom: 5px; } /* Hide default HTML checkbox */ .switch input { opacity: 0; width: 0; height: 0; } /* The slider */ .slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: white;; -webkit-transition: .4s; transition: .4s; border-radius: 34px; } .slider:hover { /* mix background color and white */ background-color: #faefd9; } .slider:hover:before { transform: translateX(2.5px); } input:checked + .slider:hover:before { transform: translateX(22.5px); } .slider:before { position: absolute; content: ""; height: calc(100% - 6px); aspect-ratio: 1/1; left: 3px; bottom: 3px; background-color: black; /* transition: .25s; */ transition: transform 0.25s cubic-bezier(.23,.05,.67,1.32); border-radius: 50%; } input:checked + .slider { background-color: var(--primary-light); } input:checked + .slider:before { transform: translateX(25px); } .absolute-cover { position: absolute; top: 0; left: 0; bottom: 0; right: 0; display: flex; align-items: center; justify-content: center; z-index: 5; background-color: var(--frosted-glass); border-radius: 25px; font-size: 20px; font-weight: bold; transition: opacity 0.25s; }