.related-videos {
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px solid #ddd;
}

.related-videos-title {
    margin: 0 0 6px 0;
    font-weight: bold;
}

.related-video-item {
    margin: 3px 0;
    padding: 0;
    line-height: 1.25;
}

.related-video-link {
    display: inline;
    margin: 0;
    padding: 0;
    text-decoration: none;
}

.related-video-link:hover {
    text-decoration: underline;
}

.video-start-time {
    margin-left: 4px;
    color: #666;
    font-size: 0.9em;
    font-style: italic;
}

#footer {
		position: fixed;
		left: 0;
		bottom: 0;
		width: 100%;
		background: #222;
		padding: 12px;
		box-sizing: border-box;
		border-top: 1px solid #555;
		z-index: 1000;
}

.user {
		font-weight: bold;
		margin-top: 15px;
}

.bot {
		margin: -30px 0 5px 5px;
		white-space: pre-wrap;
		background-color: white;
}

button {
		padding: 10px;
		font-size: .75em;
}

#chat {
		overflow-y: auto;
		height: calc(100vh - 240px);
		padding: 15px 15px 160px 15px;
		box-sizing: border-box; 
}

body {
		font-family: Arial, sans-serif;
		font-weight: 500;
		font-size: 1em;
		line-height: 1.25;
		color: black;
		width: calc(100% - 60px);
		max-width: 100%;
		margin: 30px auto;
		max-width: 2700px;
		padding-bottom: 35px;
		box-sizing: border-box; 
}

input {
		width: 69%;
		padding: 10px;
		margin-left: 7px;
		text-align: left;
		font-size: .75em;
}

#topbrand{margin-left:15px;}

@media (min-width: 400px) {
		body {
			
				font-size: 1.25em;
				line-height: 1.2em;
		}
		
		input { width: 65%;}
		
		.bot {
				margin: -30px 0 5px 2px;
				white-space: pre-wrap;
				/* background-color: blue; */
		}
}

@media (min-width: 768px) {
		body {
			
				font-size: 1.25em;
				line-height: 1.2em;
		}
		
		input { width: 76%;}
		
		.bot {
				margin: 0px 0 5px 5px;
				white-space: pre-wrap;
				/* background-color: blue; */
		}
		
		button {
				
		}
		
}

@media (min-width: 1024px) {
		body {
			
			font-size: 1.25em;
		}
		input { width: 82%;}
		
		.bot {
				margin: 0px 0 5px 5px;
				white-space: pre-wrap;
				/* background-color: blue; */
		}
		
}

@media (min-width: 1260px) {
		body {
			
			font-size: 1.5em;
		}
		input { width: 83%;}
}

@media (min-width: 1440px) {
		body {
			
			font-size: 1.75em;
		}
		input { width: 85%;}
		#topbrand{margin-left:55px;}
}

@media (min-width: 1920px) {
		body {
		
			font-size: 2.0em;
		}
		input { width: 86%;}
}

@media (min-width: 2112px) {
		body {
		
			font-size: 2.25em;
		}
		input { width: 87%;}
}


@media (min-width: 2559px) {
		body {
		
			font-size: 2.25em;
		}
		input { width: 87%;}
}

@media (min-height: 3000px) {
		body {
		
			font-size: 2.75em;
		}
		input { width: 90%;}	
	
}

@media (min-height: 100px) {

}

@media (min-height: 1024px) {

}

@media (min-height: 1440px) {

}

@media (min-height: 1920px) {

}



.powered-by {
		margin-top: 14px;
		padding: 25px;
		font-family: Georgia, "Times New Roman", serif;
		font-size: 14px;
		font-style: italic;
		color: #777;
		letter-spacing: 1px;
		text-align: left;
}

#ScreenSize {
		position: fixed;
		top: 10px;
		right: 10px;
		background: rgba(0,0,0,.85);
		color: #00FF00;
		padding: 10px 15px;
		border-radius: 8px;
		border: 1px solid #666;
		font-family: Consolas, monospace;
		font-size: 16px;
		font-weight: bold;
		z-index: 99999;
}

/* ==========================================================
   ASK BOT ELLIS — ELLIS INSTITUTE APPLICATION FRAME
   Presentation only. Existing chatbot behavior is unchanged.
   ========================================================== */
html { background:#06172b; }

body{
    background:
      radial-gradient(circle at 82% 8%, rgba(215,166,59,.10), transparent 25%),
      linear-gradient(180deg,#06172b 0,#0a2948 180px,#e9e5dc 180px,#f4f2ed 100%);
    width:100%;
    max-width:none;
    margin:0;
    padding:0 26px 170px;
    min-height:100vh;
}

.institute-shell{
    width:min(1900px,100%);
    margin:0 auto;
    padding-top:18px;
}

.institute-bar{
    min-height:82px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:25px;
    padding:0 8px 15px;
    color:#fff;
}

.back-institute{
    display:flex;
    align-items:center;
    gap:11px;
    color:#fff;
    text-decoration:none;
    border:1px solid rgba(240,201,103,.65);
    background:rgba(2,10,19,.42);
    border-radius:999px;
    padding:9px 15px;
    box-shadow:0 6px 18px rgba(0,0,0,.16);
}
.back-institute>span:first-child{
    color:#f0c967;
    font-size:22px;
}
.back-institute span:last-child{
    display:flex;
    flex-direction:column;
    line-height:1.05;
}
.back-institute small{
    color:#aebdcb;
    font-size:9px;
    letter-spacing:1.2px;
    font-weight:800;
}
.back-institute strong{
    color:#f0c967;
    font-size:12px;
    letter-spacing:.5px;
    margin-top:3px;
}
.back-institute:hover{background:#0b345c;border-color:#f0c967}

.institute-id{text-align:right;line-height:1.1}
.institute-id small{
    display:block;
    color:#f0c967;
    font-family:Georgia,"Times New Roman",serif;
    font-size:16px;
    font-weight:bold;
    letter-spacing:1.1px;
}
.institute-id strong{
    display:block;
    color:#c5d0db;
    font-family:Georgia,"Times New Roman",serif;
    font-size:12px;
    margin-top:5px;
    font-weight:normal;
}

.app-frame{
    border:2px solid #b7862d;
    outline:1px solid rgba(255,255,255,.55);
    border-radius:15px;
    overflow:hidden;
    background:#071b33;
    box-shadow:0 18px 50px rgba(2,12,24,.30);
}

.app-titlebar{
    min-height:78px;
    padding:14px 22px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    background:
      linear-gradient(90deg,rgba(215,166,59,.08),transparent 35%),
      linear-gradient(#0b3158,#061b34);
    border-bottom:1px solid #a67a2b;
    color:#fff;
}
.app-titlebar>div:first-child{
    display:grid;
    grid-template-columns:auto auto;
    column-gap:14px;
    align-items:end;
}
.app-titlebar small{
    grid-column:1/-1;
    color:#d4aa50;
    font-size:9px;
    font-weight:900;
    letter-spacing:1.7px;
    margin-bottom:3px;
}
.app-titlebar strong{
    color:#fff;
    font:700 25px Georgia,"Times New Roman",serif;
    letter-spacing:.5px;
}
.app-titlebar span{
    color:#b8c6d4;
    font:italic 12px Georgia,"Times New Roman",serif;
    padding-bottom:3px;
}
.app-status{
    color:#bfcbd6;
    font-size:10px;
    font-weight:900;
    letter-spacing:1px;
}
.app-status i{
    display:inline-block;
    width:8px;height:8px;
    border-radius:50%;
    background:#f0c967;
    margin-right:6px;
    box-shadow:0 0 0 3px rgba(240,201,103,.13);
}

.app-workspace{
    background:#fff;
    margin:10px;
    border:1px solid #8f9dac;
    border-radius:9px;
    overflow:hidden;
    min-height:calc(100vh - 245px);
    box-shadow:inset 0 0 0 1px #fff;
}

/* Preserve the original application layout inside the new frame. */
#container{background:#fff}
#header{
    background:linear-gradient(180deg,#fbfaf7,#f1eee7);
    border-bottom:1px solid #d7d0c4;
    padding:8px 0;
}
#topbrand{margin-left:18px}
#topbrand img{
    max-width:min(501px,85vw);
    height:auto !important;
}
#chat{
    background:#fff;
    height:calc(100vh - 360px);
    min-height:360px;
}
#footer{
    left:50%;
    transform:translateX(-50%);
    width:min(1878px,calc(100% - 72px));
    bottom:12px;
    background:linear-gradient(#0b3158,#061b34);
    border:1px solid #b7862d;
    border-radius:10px;
    box-shadow:0 8px 25px rgba(0,0,0,.28);
}
#footer input{
    border:1px solid #aab4bd;
    border-radius:6px;
    outline:none;
}
#footer input:focus{
    border-color:#d7a63b;
    box-shadow:0 0 0 2px rgba(215,166,59,.18);
}
#footer button{
    border:1px solid #b98b35;
    border-radius:6px;
    background:linear-gradient(#efc35a,#c68a1d);
    color:#07172b;
    font-weight:800;
    cursor:pointer;
}
#footer .footer-buttons button{
    background:#f3f1ec;
    border-color:#b9b2a7;
    color:#17324d;
}
#footer button:hover{filter:brightness(1.04)}

#ScreenSize{
    top:auto;
    right:38px;
    bottom:104px;
    background:rgba(2,10,19,.92);
    color:#f0c967;
    border:1px solid #b7862d;
    box-shadow:0 5px 16px rgba(0,0,0,.25);
}

@media(max-width:768px){
    body{padding-left:10px;padding-right:10px}
    .institute-bar{align-items:flex-start}
    .institute-id{display:none}
    .app-titlebar span{display:none}
    .app-titlebar>div:first-child{display:block}
    .app-workspace{margin:6px}
    #footer{width:calc(100% - 24px);bottom:7px}
    #ScreenSize{right:16px;bottom:118px;font-size:12px}
}
