/* ATCODEX Cam AI's door on atcodexschool.com: the site's own door, in the program's yellow, with a
   wall of four cameras in its picture. On a wide screen it takes a whole row of the doors, the
   picture beside the words (like the course's door on a tablet); on a phone it stands like the others. */
.door-cam { --door-glow: #fdb81330; --door-accent: #fdb813; border-color: rgba(253, 184, 19, .38); }
.door-cam:hover { border-color: rgba(253, 184, 19, .7); }
.door-cam .door-art { mask-image: none; display: grid; place-items: center; padding: 26px 26px 6px; }
.cam-door-view { position: relative; width: 100%; max-width: 560px; padding: 9px; }
.cam-door-view::before, .cam-door-view::after, .cam-door-view > i::before, .cam-door-view > i::after { content: ""; position: absolute; width: 26px; height: 26px; border: 2.5px solid #fdb813; pointer-events: none; }
.cam-door-view::before { top: 0; left: 0; border-right: 0; border-bottom: 0; border-radius: 12px 0 0 0; }
.cam-door-view::after { top: 0; right: 0; border-left: 0; border-bottom: 0; border-radius: 0 12px 0 0; }
.cam-door-view > i::before { bottom: 0; left: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 12px; }
.cam-door-view > i::after { bottom: 0; right: 0; border-left: 0; border-top: 0; border-radius: 0 0 12px 0; }
.cam-door-wall { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; padding: 7px; border-radius: 16px; background: rgba(6, 18, 38, .85); border: 1px solid rgba(111, 162, 224, .3); box-shadow: 0 30px 60px rgba(0, 0, 0, .55); direction: ltr; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.door-cam:hover .cam-door-wall { transform: translateY(-6px); }
.cam-door-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cam-door-logo { flex: none; width: 46px; height: 46px; filter: drop-shadow(0 8px 18px rgba(253, 184, 19, .22)); }
.cam-door-logo svg { display: block; width: 100%; height: 100%; }
.door-cam .cam { border-radius: 9px; }
.door-cam .cam-top { top: 5px; inset-inline: 5px; gap: 4px; font-size: 9px; }
.door-cam .cam-top b, .door-cam .cam-top .rec { font-size: 7.5px; padding: 2px 4px; border-radius: 4px; }
.door-cam .cam-top .rec::before { width: 5px; height: 5px; }
.door-cam .cam-time { font-size: 7.5px; padding: 2px 4px; bottom: 5px; inset-inline-start: 5px; }
@media (min-width: 821px) {
  .door-cam { grid-column: 1 / -1; flex-direction: row; }
  .door-cam .door-art { flex: 1.15; height: auto; min-height: 330px; padding: 28px; }
  .door-cam .door-body { flex: 1; justify-content: center; padding: 30px 34px; }
  .door-cam .door-cta { margin-top: 22px; }
}

/* the camera windows (shared with the program's page) */
.cam{position:relative;margin:0;overflow:hidden;border-radius:14px;background:#0b1220;border:1px solid rgba(140,179,235,.22);aspect-ratio:16/9}
.cam video,.cam img{display:block;width:100%;height:100%;object-fit:cover}
.cam::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(rgba(3,11,27,.45),transparent 22%,transparent 78%,rgba(3,11,27,.4))}
.cam-top{position:absolute;inset-inline:10px;top:8px;z-index:2;display:flex;align-items:center;gap:8px;font-size:12px;font-weight:700;color:#fff;text-shadow:0 1px 3px #000}
.cam-top b{font:700 11px/1 ui-monospace,Consolas,monospace;letter-spacing:1px;padding:4px 7px;border-radius:6px;background:rgba(3,11,27,.62)}
.cam-top .rec{margin-inline-start:auto;display:inline-flex;align-items:center;gap:5px;font:700 10px/1 Arial,sans-serif;letter-spacing:1px;font-style:normal;padding:4px 7px;border-radius:6px;background:rgba(3,11,27,.62)}
.cam-top .rec::before{content:"";width:7px;height:7px;border-radius:50%;background:#ff3b4e;animation:blink 1.6s steps(2,start) infinite}
.cam-time{position:absolute;inset-inline-start:10px;bottom:8px;z-index:2;font:600 11px/1 ui-monospace,Consolas,monospace;color:#e8eef6;padding:4px 7px;border-radius:6px;background:rgba(3,11,27,.55)}
.cam-alarm{border-color:#ff3b4e;box-shadow:0 0 0 2px rgba(255,59,78,.55);animation:alarm 2.4s ease-in-out infinite}
@keyframes alarm{50%{box-shadow:0 0 0 5px rgba(255,59,78,.18)}}
@keyframes blink{to{visibility:hidden}}
.cam-top b{white-space:nowrap;flex:none}.cam-top>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media (max-width:600px){.wall .cam-top .rec,.mini-wall .cam-top .rec,.door-cam .cam-top .rec{font-size:0;gap:0;padding:4px}.wall .cam-top .rec::before,.mini-wall .cam-top .rec::before{width:6px;height:6px}}
@media (prefers-reduced-motion:reduce){.cam,.cam *{animation:none!important}}

/* the homepage runs no clock: the cards' cameras show no time */
.door-cam .cam-time{display:none}
