:root {
    --judge0-black: #333;
    --judge0-gray: #CED4DA;
    --judge0-red: #FF8787;
    --judge0-pink: #F783AC;
    --judge0-grape: #DA77F2;
    --judge0-violet: #9775FA;
    --judge0-indigo: #748FFC;
    --judge0-blue: #4DABF7;
    --judge0-cyan: #3BC9DB;
    --judge0-teal: #38D9A9;
    --judge0-green: #69DB7C;
    --judge0-lime: #A9E34B;
    --judge0-yellow: #FFD43B;
    --judge0-orange: #FFA94D;
    --judge0-theme: var(--judge0-violet);
}

html, body {
    height: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
}

body {
    background: url(../images/judge0_background.png) no-repeat center center fixed;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

.ui[class*="left action"].input>.dropdown {
    border-radius: 0 .28571429rem .28571429rem 0;
}

.ui.selection.dropdown {
    width: 205px;
}

.lm_header .lm_tab {
    padding-bottom: 3px;
    height: 16px;
    font-family: "Droid Sans Mono", monospace, monospace, "Droid Sans Fallback";
    font-size: 14px;
}

.lm_header .lm_tab.lm_active {
    box-shadow: none;
    padding-bottom: 3px;
}

#site-navigation {
    border-radius: 0;
    margin: 0;
    background: #1e1e1e;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    height: 45px;
}

#navigation-message {
    font-size: 1.2em;
    white-space: nowrap;
    overflow: hidden;
}

@keyframes slide {
    0% { transform: translateX(570px); }
    100% { transform: translateX(-100%); }
}
@-webkit-keyframes slide {
    0% { transform: translateX(570px); }
    100% { transform: translateX(-100%); }
}

.navigation-message-text {
    white-space: nowrap;
    -moz-animation: slide 60s linear infinite;
    -webkit-animation: slide 60s linear infinite;
    animation: slide 60s linear infinite;
}

.navigation-message-text:hover {
    -moz-animation-play-state: paused;
    -webkit-animation-play-state: paused;
    animation-play-state: paused;
}

#navigation-message a {
    color: var(--judge0-theme);
    font-weight: bold;
}

#site-icon {
    width: 30px;
    height: 30px;
    vertical-align: middle;
}

#site-header {
    padding-left: 0;
    padding-top: 0;
    padding-bottom: 0;
    
}

#site-header h2 {
    display: inline;
    vertical-align: middle;
    font-family: 'Exo 2', sans-serif;
}

#site-content {
    height: calc(100% - 45px - 19px);
}

#site-modal .header {
    color: #db2828;
}

#run-btn {
    background-color: var(--judge0-theme);
}

#site-footer, #status-line {
    background-color: var(--judge0-theme);
    bottom: 0;
    font-family: "Droid Sans Mono", monospace, monospace, "Droid Sans Fallback";
    font-size: 13px;
    height: 19px;
    padding-left: 16px;
    padding-right: 16px;
    position: fixed;
}

#site-footer {
    color: white;
    left: 0;
    text-align: left;
    width: 100%;
}

#site-footer a {
    color: white;
    font-weight: bold;
}

#site-footer a:hover {
    color: #333;
}

#status-line {
    color: #fff;
    float: right;
    right: 0;
    text-align: right;
    width: fit-content;
}

.blink {
    animation: blinker 1s linear infinite;
}

@keyframes blinker {
    50% {
        background: #FFD700;
    }
}

.dot {
    background: #0E6EB8;
    position: absolute;
    border-radius: 50px;
    width: 5px;
    height: 5px;
    right: 7.5px;
    top: 7.5px;
}

.no-left-padding {
    padding-left: 0 !important;
}

input[type="text"] {
    width: 205px !important;
}
/* 新增登入彈窗樣式 */
.ui.modal {
    max-width: 450px;
    padding: 20px;
}

.ui.modal .header {
    font-size: 1.5em;
}

.ui.modal .content {
    padding: 20px 0;
}

#login-modal {
    display: none;
}

#user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 6px solid #f3f3f3;
    border-top: 6px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* 彈窗背景 */
/* 彈窗背景 */
.custom-modal {
    display: none;              /* 預設隱藏 */
    position: fixed;            /* 固定於視窗 */
    z-index: 9999;              /* 高 z-index 確保在最上層 */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* 半透明背景 */
    justify-content: center;
    align-items: center;
}

/* 彈窗內容 */
.custom-modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    width: 300px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    position: relative;         /* 確保內部定位正常 */
    z-index: 10000;             /* 內容比背景還高 */
}


/* 關閉按鈕 */
.custom-close {
    position: absolute;
    right: 10px;
    top: 10px;
    cursor: pointer;
}

/* 輸入框 */
#custom-modal-input {
    width: 90%; /* 調整輸入框寬度 */
    margin: 10px auto; /* 上下留白 */
    display: block; /* 將輸入框設置為區塊元素以置中 */
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

/* 按鈕組 */
.custom-button-group {
    display: flex;
    justify-content: space-around; /* 按鈕間距 */
    margin-top: 15px;
}

/* 按鈕樣式 */
.custom-button-group button {
    padding: 8px 12px;
    font-size: 14px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    background-color: #4CAF50;
    color: white;
    transition: background-color 0.3s;
}

.custom-button-group button:hover {
    background-color: #45a049;
}
