.draggable { width: 150px; height: 50px; padding: 0px; border: 1px solid; margin: 10px; }
/* If this uses width: max-content, then it's correct narrow but doesn't resize wide for the card. If it's not width:max-content, then it picks max-width for some reason and is always too wide. I feel like max-content is probably right, but how to get it to recognize the width of the children? The secondarycard is already position:relative so it should be considered, but isn't in Firefox or Safari, so I'm missing something.
 * If there's no width:max-content, then it inherits width:100% from bootstrap's 'row', which always sets it to the max-width of 180px.
 *
 * so why don't max-content or auto take in to account the width of the second card?
 *
 * not affected by box-sizing: border-box; nor display: inline-block;
 *
 * display: inline-flex; breaks it good, so that might be a solution :)
 *
 * So I think the answer for now is going to be javascript that changes the width to attr(max-width) if a second card is in the box
 */

.droppable { min-width: 150px; max-width: 180px; min-height: 50px; max-height: 100px; padding: 0em; margin: 10px; border: 1px solid; background-color: #A0A0A0; position: relative; overflow: hidden; width: max-content; }

.hidden { visibility: hidden; }
.nodisplay { display: none; }
.inheritdisplay { display: inherit; }

.center { margin-left: auto; margin-right: auto; } 
.w95 { max-width: 95%; }

.smallcard { width: 50px; height: 50px; left: 0px; top: 0px; position: relative; pointer-events: none; z-index: 2;}

.gamecard { width: 150px; height: 50px; left: 0px; top: 0px; position: relative; pointer-events: none; z-index: 2;}
.phaseWrapper { min-width: 150px; }

.cardbg { background-color: #DFDFDF; }
.cardimg { width: 100%; height: 100%; object-fit: contain; }

.secondarycard {
    z-index: 1;
    margin-top: -30px;
    margin-left: 30px;
    position: relative;
    pointer-events: none;
}


.rotate90 { transform: rotate(90deg); }
.rotate180 { transform: rotate(180deg); }
.rotate270 { transform: rotate(270deg); }
.flipV { transform: scaleY(-1); }
/* Transform at the right is done first */
.flipV90 { transform: rotate(90deg) scaleY(-1) ; }
.flipV180 { transform: rotate(180deg) scaleY(-1) ; }
.flipV270 { transform: rotate(270deg) scaleY(-1) ; }

.basement { }

.transparent { opacity: 0.8; }

.ui-layout-container, .ui-layout-pane {
    -webkit-box-sizing: content-box;
    -moz-box-sizing: content-box;
    box-sizing: content-box;
}

.scroll { overflow: scroll;
          padding-bottom: 50px;
        }

.outline { border: 1px solid; }
.inline { display: inline; }
.block { display: block; }
.dashed {
    border: 2px solid #dadada;
    border-radius: 7px;
    outline-style: dashed;
}
.strongoutline {
    border: 2px solid #dadada;
    border-radius: 7px;
    outline-style: outset;
}
.currentPhase {
    border: 5px solid #008B8B !important;
    border-radius: 7px;
}


.boardscroller {overflow: auto; max-height: 100vh; width:900px; padding:0px;margin-right:10px;}
.boardcontainer { }
.boardrow { margin: 0px; padding: 0px; }

.boardsq { width: 75px; height: 75px; margin: 0px; padding: 0px; }
.staticboardsq { width: 75px; height: 75px; margin: 0px; padding: 0px; }

.tilewrapper { position: relative; }
.edittilewrapper { position: relative; }
.displaytilewrapper { position: relative; }
.tile { width: 100%; height: 100%; object-fit: contain; position: absolute; top: 0; left: 0; pointer-events: none; }
.tilebase { width: 100%; height: 100%; object-fit: contain; position: absolute; top: 0; left: 0; }
.overlay { }

.tablegrid { border: 1px solid; } /* TODO Use the bootstrap styles */
.header { background-color: #A0A0A0; font-weight: bold; }
.highlight {
    background-color: #88FFFF !important;
    color: darkcyan !important;
    font-weight: bold;
}

.highlight td {
    background-color: inherit;
}

th {
    font-family: 'ROBO';
}

robofont {
    font-family: 'ROBO';
}

.robot { z-index: 2;
         -webkit-animation-fill-mode: forwards;
         animation-fill-mode: forwards;
       }

.flag { z-index: 1;
        -webkit-animation-fill-mode: forwards;
        animation-fill-mode: forwards;
      }

.overlayeffect {
    z-index: 100;
    -webkit-animation-fill-mode: forwards;
    animation-fill-mode: forwards;
}

/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 101; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content/Box */
.modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
}

/* The Close Button */
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Add Animation */
@keyframes animatetop {
    from {top: -300px; opacity: 0}
    to {top: 0; opacity: 1}
}

@keyframes rotNE {
    0% {
        transform: rotate(0deg)
    }
    100% {
        transform: rotate(90deg)
    }
}

@keyframes rotNS {
    0% {
        transform: rotate(0deg)
    }
    100% {
        transform: rotate(180deg)
    }
}

@keyframes rotNW {
    0% {
        transform: rotate(0deg)
    }
    100% {
        transform: rotate(-90deg)
    }
}

@keyframes rotEN {
    0% {
        transform: rotate(90deg)
    }
    100% {
        transform: rotate(0deg)
    }
}

@keyframes rotES {
    0% {
        transform: rotate(90deg)
    }
    100% {
        transform: rotate(180deg)
    }
}

@keyframes rotEW {
    0% {
        transform: rotate(90deg)
    }
    100% {
        transform: rotate(270deg)
    }
}

@keyframes rotSW {
    0% {
        transform: rotate(180deg)
    }
    100% {
        transform: rotate(270deg)
    }
}

@keyframes rotSE {
    0% {
        transform: rotate(180deg)
    }
    100% {
        transform: rotate(90deg)
    }
}

@keyframes rotSN {
    0% {
        transform: rotate(180deg)
    }
    100% {
        transform: rotate(0deg)
    }
}

@keyframes rotWS {
    0% {
        transform: rotate(270deg)
    }
    100% {
        transform: rotate(180deg)
    }
}

@keyframes rotWN {
    0% {
        transform: rotate(270deg)
    }
    100% {
        transform: rotate(360deg)
    }
}

@keyframes rotWE {
    0% {
        transform: rotate(270deg)
    }
    100% {
        transform: rotate(90deg)
    }
}

.cardlock {
    font-family: 'ROBO';
    font-weight: normal;
    font-style: normal;
    font-size: 14px;
    position: absolute;
    top: 5px;
    left: 5px;
    width: 24px;
    line-height: 100%;
    text-align: left;
    overflow: hidden;
}

.priority {
    font-family: 'ROBO';
    font-weight: normal;
    font-style: normal;
    font-size: 14px;
    position: absolute;
    top: 5px;
    left: 100px;
    /*z-index: 1; -- disable b/c secondary cards under primary cards...*/
    width: 43px;
    line-height: 100%;
    text-align: right;
    overflow: hidden;
}

.cardname {
    font-family: 'ROBO';
    font-weight: normal;
    font-style: normal;
    position: absolute;
    font-size: 11px;
    color: white;
    top: 30px;
    left: 64px;
    width: 75px;

    overflow: hidden;
    z-index: 1;
    line-height: 100%;
    text-align: end;
    pointer-events: none;
    text-shadow: 1px 1px 3px black;
}

@font-face {
    font-family: ROBO;
    src: url(../fonts/ROBO.woff2);
}

@font-face {
    font-family: 'Source Code Pro';
    font-style: normal;
    font-weight: 400;
    src: url(../fonts/source-code-pro.ttf) format('truetype');
}

.cardturn {object-fit: contain; position: absolute; top: 0px; left: 5px; height: 48px;}

#chatArea {
    height: 9em;
    overflow: auto;
}

#chatArea .error {
    font-weight: var(--bs-danger);
    color: red;
}

#chatArea .warning {
    font-weight: bold;
    color: var (--bs-warning);
}

.overlaytext {
    font-family: 'ROBO';
    font-weight: normal;
    font-style: normal;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    font-size: 0.7cqw;
    color: white;
    overflow: hidden;
    z-index: 1;
    line-height: 100%;
    text-align: center;
    pointer-events: none;
    text-shadow: 1px 1px 3px black;
}

.overlaydelete {
    font-size: 0.7cqw;
    color: black;

    overflow: hidden;
    z-index: 1;
    line-height: 100%;
    text-shadow: 0px 0px 5px white;
    background-color: white;

    padding: 5px 2px 2px;
    text-align: center;
    opacity: 0.8;
    position: absolute;
    top: 2px; right: 2px;
}


.spacer { padding-top: 10px; padding-bottom: 10px; }

/* https://www.w3schools.com/howto/howto_css_overlay.asp */
.overlayMessage {
    position: fixed; /* Sit on top of the page content */
    display: block; /* Hidden by default */
    width: 100%; /* Full width (cover the whole page) */
    height: 100%; /* Full height (cover the whole page) */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5); /* Black background with opacity */
    z-index: 200; /* Specify a stack order in case you're using a different order for other elements */
    cursor: pointer; /* Add a pointer on hover */
}

.overlayMessage > div {
    position: absolute;
    top: 50%;
    left: 50%;
    font-size: 50px;
    font-weight: bold;
    font-family: 'ROBO';
    color: cyan;
    text-align: center;
    transform: translate(-50%,-50%);
    -ms-transform: translate(-50%,-50%);
}

.overlaylevel {
    font-family: 'ROBO';
    font-weight: normal;
    font-style: normal;
    position: absolute;
    font-size: 0.7cqw;
    color: white;

    overflow: hidden;
    z-index: 1;
    line-height: 100%;
    text-align: center;
    text-shadow: 1px 1px 3px black;
    -ms-transform: translateY(+48%);
    transform: translateY(+48%);
}

#custom-slider-handle {
    width: 3em;
    height: 1.6em;
    top: 50%;
    margin-top: -.8em;
    text-align: center;
    line-height: 1.6em;
}

/* 95vh so there's space at the bottom for the Playback tab that can't be moved. Would be better to calc this with the height of that, maybe? */
#playerControls { max-height: 95vh; overflow: scroll; }
#tabs { max-height: 99vh; overflow: scroll; }

html,
body {
    margin: 0;
    padding: 0;
    overflow: hidden; 
}

#phaseWrapper,
#programWrapper   { min-width: 170px; }

.zztop { z-index: 1000; }

.hidden-submit {
    border: 0 none;
    height: 0;
    width: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

.chatentry {
    min-height: 24px;
}

.chatentry[placeholder]:empty:before {
    content: attr(placeholder);
    color: #555; 
}

.chatentry[placeholder]:empty:focus:before {
    content: "";
}

.playbox {
    display:inline-block;
    margin: 3px;
}

.headerButton{
    width: 13px;
    height: 13px;
    float: left;
    padding-right: 13px;
    padding-top: 2px;
    cursor: pointer;
    overflow: hidden;
}

.nowrap {
    white-space:nowrap;
}

.fullheight {
    height: 100vh;
}

.json {
    font-family: "Source Code Pro", monospace;
}
.json > .json__item {
    display: block;
}

.json__item {
    display: none;
    margin-top: 10px;
    padding-left: 20px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.json__item--collapsible {
    cursor: pointer;
    overflow: hidden;
    position: relative;
}
.json__item--collapsible::before {
    content: "+";
    position: absolute;
    left: 5px;
}
.json__item--collapsible::after {
    background-color: lightgrey;
    content: "";
    height: 100%;
    left: 9px;
    position: absolute;
    top: 26px;
    width: 1px;
}
.json__item--collapsible:hover > .json__key, .json__item--collapsible:hover > .json__value {
    text-decoration: underline;
}

.json__toggle {
    display: none;
}
.json__toggle:checked ~ .json__item {
    display: block;
}

.json__key {
    color: darkblue;
    display: inline;
}
.json__key::after {
    content: ": ";
}

.json__value {
    display: inline;
}

.json__value--string {
    color: green;
}

.json__value--number {
    color: blue;
}

.json__value--boolean {
    color: red;
}

.modalquestion {
    min-height: 120px;
}

#miniboard {
    position: absolute;
    background-color: black;
    margin: 0px;
    padding: 0px;
    width: 112.5px;
    height: 112.5px;
}

@keyframes arrowE {
    0% {
        transform: translateX(0px) rotate(90deg);
    }
    50% {
        transform: translateX(37.5px) rotate(90deg);
    }
    100% {
        transform: translateX(0px) rotate(90deg);
    }
}
@keyframes arrowW {
    0% {
        transform: translateX(0px) rotate(270deg);
    }
    50% {
        transform: translateX(-37.5px) rotate(270deg);
    }
    100% {
        transform: translateX(0px) rotate(270deg);
    }
}
@keyframes arrowS {
    0% {
        transform: translateY(0px) rotate(180deg);
    }
    50% {
        transform: translateY(37.5px) rotate(180deg);
    }
    100% {
        transform: translateY(0px) rotate(180deg);
    }
}
@keyframes arrowN {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-37.5px) rotate(0deg);
    }
    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

.statusicon {
    margin-right: 2px;
    margin-left: 2px;
    width: 15px;
}

.btn-tiny, .btn-group-tiny > .btn {
    --bs-btn-padding-y: 0.1rem;
    --bs-btn-padding-x: 0.1rem;
    --bs-btn-font-size: 0.875rem;
    --bs-btn-border-radius: var(--bs-border-radius-sm);
}

.btn-tiny + .dropdown-toggle-split, .btn-group-tiny > .btn + .dropdown-toggle-split {
    padding-right: 0.1rem;
    padding-left: 0.1rem;
}

.selectedicon {
    width: 83px; height: 83px; margin: 4px; border-radius: 8px; border: 4px solid #000;
}

.roboticon {
    width: 75px;
    height: 75px;
    background-size: 75px;
}

.robot-aventrax { background-image: url('/images/robots/aventrax.png'); }
.robot-px-92 { background-image: url('/images/robots/px-92.png'); }
.robot-ballerbot { background-image: url('/images/robots/ballerbot.png'); }
.robot-bop-3 { background-image: url('/images/robots/bop-3.png'); }
.robot-camerabot { background-image: url('/images/robots/camerabot.png'); }
.robot-centaurbot { background-image: url('/images/robots/centaurbot.png'); }
.robot-chickenbot { background-image: url('/images/robots/chickenbot.png'); }
.robot-crabbot { background-image: url('/images/robots/crabbot.png'); }
.robot-cubebot { background-image: url('/images/robots/cubebot.png'); }
.robot-dreadron { background-image: url('/images/robots/dreadron.png'); }
.robot-nexar { background-image: url('/images/robots/nexar.png'); }
.robot-l33-t { background-image: url('/images/robots/l33-t.png'); }
.robot-dancebot { background-image: url('/images/robots/dancebot.png'); }
.robot-ona { background-image: url('/images/robots/ona.png'); }
.robot-packet { background-image: url('/images/robots/packet.png'); }
.robot-halbot { background-image: url('/images/robots/halbot.png'); }
.robot-boptron { background-image: url('/images/robots/boptron.png'); }
.robot-crunchbot { background-image: url('/images/robots/crunchbot.png'); }
.robot-lugnut { background-image: url('/images/robots/lugnut.png'); }
.robot-hobgobbot { background-image: url('/images/robots/hobgobbot.png'); }
.robot-stubax { background-image: url('/images/robots/stubax.png'); }
.robot-scootle { background-image: url('/images/robots/scootle.png'); }
.robot-k4-no { background-image: url('/images/robots/k4-no.png'); }
.robot-nulljoy { background-image: url('/images/robots/nulljoy.png'); }
.robot-monkeybot { background-image: url('/images/robots/monkeybot.png'); }
.robot-robot { background-image: url('/images/robots/robot.png'); }
.robot-sentrynone { background-image: url('/images/robots/sentrynone.png'); }
.robot-spiderpusbot { background-image: url('/images/robots/spiderpusbot.png'); }
.robot-twizzlebot { background-image: url('/images/robots/twizzlebot.png'); }
.robot-drillbot { background-image: url('/images/robots/drillbot.png'); }
.robot-oblenaut { background-image: url('/images/robots/oblenaut.png'); }
.robot-punchbowl { background-image: url('/images/robots/punchbowl.png'); }
.robot-treadknock { background-image: url('/images/robots/treadknock.png'); }
.robot-mulg { background-image: url('/images/robots/mulg.png'); }
.robot-peeptrax { background-image: url('/images/robots/peeptrax.png'); }
.robot-grabble { background-image: url('/images/robots/grabble.png'); }
.robot-wizzle { background-image: url('/images/robots/wizzle.png'); }
.robot-boppo { background-image: url('/images/robots/boppo.png'); }
.robot-blip { background-image: url('/images/robots/blip.png'); }
.robot-rust-3 { background-image: url('/images/robots/rust-3.png'); }
.robot-wonkybot { background-image: url('/images/robots/wonkybot.png'); }
.robot-rollan { background-image: url('/images/robots/rollan.png'); }
.robot-zippa { background-image: url('/images/robots/zippa.png'); }
.robot-dogbot { background-image: url('/images/robots/dogbot.png'); }
.robot-bucketbot { background-image: url('/images/robots/bucketbot.png'); }
.robot-toasterbot { background-image: url('/images/robots/toasterbot.png'); }
.robot-unibot { background-image: url('/images/robots/unibot.png'); }
.robot-clockbot { background-image: url('/images/robots/clockbot.png'); }
.robot-scorpionbot { background-image: url('/images/robots/scorpionbot.png'); }
.robot-bizarrochickenbot { background-image: url('/images/robots/bizarrochickenbot.png'); }

/* Navbar user profile dropdown items */
.navbar {
    background-color: #f1f1f1;
}

.navbar-nav > li > a{
    text-decoration: none;
    color:black;
}

.nav > li > a {
    text-decoration: none;
    color:black;
}

/* Panel colors */
.panel-green {
    border-color: #65665f;
}

.panel-green > .card-header {
    border-color: #65665f;
    color: #fff;
    background-color: #65665f;
}

.panel-green > a {
    color: #65665f;
}

.panel-green > a:hover {
    color: #3d8b3d;
}

.modal-backdrop {
    display: none;
}

.rtdata {
    color: blue;
    font-weight: bold;
}

/* hack for jQuery/Bootstrap/jQuery-UI conflicts: close button on dialogs */
.ui-dialog-titlebar-close:after { font-family: "Font Awesome 5 Free";
                                  font-weight: 900;
                                  content: "\f00d"; /* fa-close */
                                  display: flex;
                                  align-items: center;
                                  height: 100%;
                                  width: 100%;
                                  justify-content: center;
                                }

.blueteamtable {
    background-color: blue;
    color: white;
}

.redteamtable {
    background-color: red;
    color: white;
}

.list-group {
    min-height: 200px; /* Ensures the list has enough space for dropping */
    background-color: #f8f9fa;
    padding: 10px;
    border: 1px dashed #ccc;
}

#chat-messages {
    height: 150px;
    overflow-y: auto;
    border: 1px solid #ccc;
    padding: 5px;
    background: #f8f9fa;
}

.optionWrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    position: relative;
}


.optionControls {
    display: flex;
    gap: 4px;
    margin-bottom: 4px;
}

.optionExplain,
.optionToggle {
    height: 24px;
    line-height: 20px;
    font-size: 0.8em;
    padding: 0 6px;
    border-radius: 4px;
    border: 1px solid #888;
    background: #eee;
    cursor: pointer;
}

.optionToggle.selected {
    background: #cfc;
    border-color: #393;
}

.hiddenArea {
    display: none;
}

/* PNG-backed boards */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner {
    border: 8px solid #444;
    border-top: 8px solid #fff;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

#board {
  position: relative;
}
.board-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  object-fit: contain;
}

#cellhighlight {
    z-index: 3;
}

/* New death animations */

@keyframes explodeGrow {
    0%   { transform: scale(0.1); opacity: 1; }
    60%  { transform: scale(1.7); opacity: 1; }
    100% { transform: scale(2.5); opacity: 0; }
}

@keyframes warpInN {
    0%   { transform: scale(2.5) rotate(0deg); opacity: 0; }
    40%  { transform: scale(1.7) rotate(0deg); opacity: 1; }
    100% { transform: scale(1.0) rotate(0deg); opacity: 1; }
}

@keyframes warpInS {
    0%   { transform: scale(2.5) rotate(180deg); opacity: 0; }
    40%  { transform: scale(1.7) rotate(180deg); opacity: 1; }
    100% { transform: scale(1.0) rotate(180deg); opacity: 1; }
}

@keyframes warpInE {
    0%   { transform: scale(2.5) rotate(90deg); opacity: 0; }
    40%  { transform: scale(1.7) rotate(90deg); opacity: 1; }
    100% { transform: scale(1.0) rotate(90deg); opacity: 1; }
}

@keyframes warpInW {
    0%   { transform: scale(2.5) rotate(270deg); opacity: 0; }
    40%  { transform: scale(1.7) rotate(270deg); opacity: 1; }
    100% { transform: scale(1.0) rotate(270deg); opacity: 1; }
}

@keyframes warpOutN {
    0%   { transform: scale(1.0) rotate(0deg); opacity: 1; }
    60%  { transform: scale(1.7) rotate(0deg); opacity: 1; }
    100% { transform: scale(2.5) rotate(0deg); opacity: 0; }
}

@keyframes warpOutS {
    0%   { transform: scale(1.0) rotate(180deg); opacity: 1; }
    60%  { transform: scale(1.7) rotate(180deg); opacity: 1; }
    100% { transform: scale(2.5) rotate(180deg); opacity: 0; }
}

@keyframes warpOutE {
    0%   { transform: scale(1.0) rotate(90deg); opacity: 1; }
    60%  { transform: scale(1.7) rotate(90deg); opacity: 1; }
    100% { transform: scale(2.5) rotate(90deg); opacity: 0; }
}

@keyframes warpOutW {
    0%   { transform: scale(1.0) rotate(270deg); opacity: 1; }
    60%  { transform: scale(1.7) rotate(270deg); opacity: 1; }
    100% { transform: scale(2.5) rotate(270deg); opacity: 0; }
}

@keyframes fall {
    0%   { transform: scale(1.0); opacity: 1; }
    60%  { transform: scale(0.4); opacity: 1; }
    100% { transform: scale(0.1); opacity: 0; }
}

@keyframes spinLoopN {
    from { transform: rotate(0deg) scale(1.0); }
    to   { transform: rotate(1080deg) scale(0.1); }
}
@keyframes spinLoopE {
    from { transform: rotate(90deg) scale(1.0); }
    to   { transform: rotate(1170deg) scale(0.1); }
}
@keyframes spinLoopS {
    from { transform: rotate(180deg) scale(1.0); }
    to { transform: rotate(1260deg) scale(0.1); }
}
@keyframes spinLoopW {
    from { transform: rotate(270deg) scale(1.0); }
    to { transform: rotate(1350deg) scale(0.1); }
}

/* Code editor */
#editor { width: 100%; height: 400px; border: 1px solid #ccc; }
#results { white-space: pre-wrap; border: 1px solid #ddd; padding: 10px; margin-top: 10px; }
.editorbutton { margin-top: 10px; }
    
/* Savepoint highlight: the square where you'll resurrect */
#savepointhighlight {
    position: absolute;
    box-sizing: border-box;
    border-radius: 12px;
    border: 5px solid rgba(255, 255, 0, 0.9);
    box-shadow: 0 0 15px rgba(255, 255, 0, 0.75);
    pointer-events: none;
    z-index: 1; /* under robots (.robot has z-index: 2) */
    animation: savepointPulse 2s ease-in-out infinite;
    transform-origin: center center;
}

@keyframes savepointPulse {
    0% {
        transform: scale(1);
        opacity: 0.1;
    }
    50% {
        transform: scale(1.08);
        opacity: 0.4;
    }
    100% {
        transform: scale(1);
        opacity: 0.1;
    }
}

