body {
    font-family: 'Inter', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
    text-align: center;
    background-color: #f4f4f9;
    color: #000000;
}
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.days {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    width: 700px;
    text-align: center;
    font-weight: bold;
    margin-bottom: 10px;
    margin-left: 60px;
    color: #555;
}
.schedule {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    position: relative;
}
.time-column {
    position: relative; /* allow absolute-positioned time slots */
    width: 60px;
    height: 576px; /* Match the height of the table */
    padding-right: 10px;
    font-weight: bold;
    color: #555;
    z-index: 1200; /* ensure time column sits above separators */
}
.time-column .time-slot {
    position: absolute;
    left: 0;
    transform: translateY(-1px); /* align to top corner */
    padding-left: 4px;
    height: 1px; /* visual doesn't need height, text will show */
    line-height: 1;
    white-space: nowrap;
    cursor: text;
    z-index: 1250; /* ensure individual time labels render above separators */
}
table {
    border-collapse: collapse;
    width: 700px;
    height: 576px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
td {
    border: 1px solid #ddd;
    width: 20%;
    height: 48px;
    transition: background 0.3s;
}
td:hover {
    background: #f0f0f0;
}
/* separators will be drawn as draggable overlay lines */
.separator {
    position: absolute;
    /* start separators after the time column so they don't cover time labels */
    left: 80px;
    right: 0;
    height: 4px;
    z-index: 700;
    cursor: ns-resize;
}
.separator .handle {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: -8px;
    width: 40px;
    height: 20px;
    background: rgba(255,255,255,0.6);
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.separator.yellow { background: yellow; }
.separator.green { background: rgb(0,197,0); }
.button-container {
    position: fixed;
    right: 20px;
    top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.button-container button {
    padding: 15px 30px;
    font-size: 16px;
    cursor: pointer;
    background-color: #131313;
    background-image: linear-gradient(45deg, #151515 0%, #1e1e1e 55%, #2b2b2b 90%);
    background-position: 100% 0;
    background-size: 200% 200%;
    color: white;
    color: white;
    border: 2px solid #0b0b0b;
    border-radius: 5px;
    transform: translateY(490%);
    position: relative;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 16px 32px 0 rgba(0, 22, 67, 0.35);
    transition: all 0.5s ease;
}

.button-container button:hover {
    box-shadow: 0 0px 0px 0 rgba(0, 15, 44, 0);
    background-position: 0 0;
    border-radius: 30px;
}

/* Normal Button (For Time Format Toggle) */
#toggleTimeFormat {
    position: absolute;
    top: -30px;
    left: 8px;
    height: 25px;
    width: 25px;
    font-size: 25px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    background: none;
    border: none;
}

@keyframes flipAnimation {
    0% { transform: rotateY(0deg); }
    50% { transform: rotateY(90deg); opacity: 0.5; }
    100% { transform: rotateY(0deg); }
}
.flipping {
    animation: flipAnimation 0.6s ease-in-out;
}
#language-selector {
    position: fixed;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 10px;
}
#language-selector button {
    padding: 5px 10px;
    font-size: 14px;
    cursor: pointer;
    background: white;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: 'Inter', sans-serif;
    font-weight: bold;
}
#scan-line {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 2px;
    background-color: green;
    transform: scaleY(0);
    transform-origin: center;
    z-index: 9999;
    border-color: rgb(0, 255, 0);
    box-shadow: 0 0 10px green;
}

.trail-char {
    position: absolute;
    font-family: Arial, sans-serif;
    font-size: 16px;
    color: green;
    pointer-events: none;
    -webkit-user-select: none;
    user-select: none;
    opacity: 1;
}

div.at-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}
.at-item {
    width: 35px; height: 35px; background:url('../images/notice.png') no-repeat center center;
    background-size: contain;
    
    animation-name: shake-center;
    animation-duration: 2.2s;
    animation-timing-function: linear;
    animation-delay: 0s;
    animation-iteration-count: infinite;
    animation-direction: normal;
    animation-fill-mode: none;
        
    /* shorthand
    animation: shake-center 2.2s linear 0s infinite normal none;*/
}
@keyframes shake-center {
        
    0% {
        transform:rotate(0deg);
        transform-origin:50% 50%;
    }
    10% {
        transform:rotate(8deg);
    }
    20% {
        transform:rotate(-10deg);
    }
    30% {
        transform:rotate(10deg);
    }
    40% {
        transform:rotate(-10deg);
    }
    50% {
        transform:rotate(10deg);
    }
    60% {
        transform:rotate(-10deg);
    }
    70% {
        transform:rotate(10deg);
    }
    80% {
        transform:rotate(-8deg);
    }
    90% {
        transform:rotate(8deg);
    }
    100% {
        transform:rotate(0deg);
        transform-origin:50% 50%;
    }
}

.resize-handle {
    opacity: 0;
    transition: opacity 0.3s;
}

.cell:hover .resize-handle {
    opacity: 1;
}

p.effect-shine:hover {
    mask-image: linear-gradient(-75deg, rgba(0,0,0,.6) 30%, #000 50%, rgba(0,0,0,.6) 70%);
    -webkit-mask-image: linear-gradient(-75deg, rgba(0,0,0,.6) 30%, #000 50%, rgba(0,0,0,.6) 70%);
    mask-size: 200%;
    -webkit-mask-size: 200%;
    animation: shine 2s infinite;
  }
  
  @-webkit-keyframes shine {
    from {
      -webkit-mask-position: 150%;
    }
    
    to {
      -webkit-mask-position: -50%;
    }
  }

  @keyframes shine {
    from {
      mask-position: 150%;
    }
    
    to {
      mask-position: -50%;
    }
}
