/* Look of a nutrition-TV slide; see slide-render.js. Used by the TV and the editor. */
.cv { position: relative; overflow: hidden; border-radius: calc(var(--u, 10px) * 1.3); container-type: normal; }
.cv .el { position: absolute; box-sizing: border-box; }
.cv .el .in { position: relative; width: 100%; height: 100%; box-sizing: border-box; }
.cv .el-text .tx { font-family: 'Montserrat', system-ui, sans-serif; white-space: pre-wrap; overflow-wrap: anywhere; width: 100%; }
.cv .el-text .tx s { text-decoration-thickness: 0.12em; text-decoration-color: #ff3b4e; }
.cv .el-image .in img { width: 100%; height: 100%; display: block; box-sizing: border-box; -webkit-user-drag: none; user-select: none; }
.cv .el-image .in.empty { border: calc(var(--u, 10px) * 0.25) dashed rgba(255,255,255,0.6); border-radius: calc(var(--u, 10px) * 1); display: flex; align-items: center; justify-content: center;
  font: 700 calc(var(--u, 10px) * 1.6) 'Montserrat', system-ui, sans-serif; color: rgba(255,255,255,0.85); background: rgba(255,255,255,0.08); text-align: center; }
.cv .el-shape.sh-rays .in { border-radius: 50%; }

/* pieces that animate in when their slide comes up on the TV */
.cv .el[data-anim] .in { opacity: 0; }
.slide.active .cv:not(.static) .el[data-anim] .in { animation-fill-mode: both; animation-delay: var(--d, 0s); }
.slide.active .cv .el[data-anim="up"] .in    { animation: elUp 0.7s cubic-bezier(.2,1.1,.3,1) var(--d, 0s) both; }
.slide.active .cv .el[data-anim="fade"] .in  { animation: elFade 0.8s ease var(--d, 0s) both; }
.slide.active .cv .el[data-anim="pop"] .in   { animation: elPop 0.6s cubic-bezier(.2,1.4,.3,1) var(--d, 0s) both; }
.slide.active .cv .el[data-anim="slide"] .in { animation: elSlide 0.7s cubic-bezier(.2,.9,.3,1) var(--d, 0s) both; }
.slide.active .cv .el[data-anim="float"] .in { animation: elFade 0.7s ease var(--d, 0s) both, elFloat 4.2s ease-in-out var(--d, 0s) infinite; }
.slide.active .cv .el[data-anim="pulse"] .in { animation: elPop 0.6s cubic-bezier(.2,1.4,.3,1) var(--d, 0s) both, elPulse 1.6s ease-in-out calc(var(--d, 0s) + 0.7s) infinite; }
.slide.active .cv .el[data-anim="spin"] .in  { opacity: 1; animation: elSpin 60s linear infinite; }
@keyframes elUp    { from { opacity: 0; transform: translateY(calc(var(--u, 10px) * 2.6)) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes elFade  { from { opacity: 0; } to { opacity: 1; } }
@keyframes elPop   { from { opacity: 0; transform: scale(0.2); } to { opacity: 1; transform: none; } }
@keyframes elSlide { from { opacity: 0; transform: translateX(calc(var(--u, 10px) * -4)); } to { opacity: 1; transform: none; } }
@keyframes elFloat { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(calc(var(--u, 10px) * -1.6)) scale(1.02); } }
@keyframes elPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.07); } }
@keyframes elSpin  { to { transform: rotate(360deg); } }

/* the editor shows everything, still */
.cv.static .el .in { animation: none !important; }
.cv.static .el[data-anim] .in { opacity: 1; }
