body { margin: 100px 0px 60px 0px; }
#main { display: flex; max-width: 1200px; margin: 0px auto; padding: 0px 20px; min-width: 350px; }
#welcome {
    display: inline-block; width: 55%; background: white; padding: 16px; border-radius: 8px; box-shadow: 0px 0px 4px rgba(59, 90, 175, 0.15); margin: 11px 0px 20px;
}
#welcome h1 { margin-bottom: 5px; }
#welcome h2 { text-decoration: none; }
#welcome h3 { margin-top: 5px; }
#welcome-spacer { display: none; }
#intro { font-size: 1.2em; line-height: 1.7em; color: white; font-family: 'Mulish'; text-shadow: 0px 0px 10px black; background-color: rgba(0, 0, 0, 0.75); border-radius: 10px; min-height: calc((1.7em * 4) + 40px); overflow: hidden; }
#intro .s-page { padding: 20px; background-size: cover; border-radius: 10px; overflow: hidden; }
#intro .s-page a, #intro .s-page a:visited { color: white; }
#intro-scroll { height: calc((1.7em * 4) + 62px); border-radius: 10px; overflow: scroll; }
#intro-wrap { border-radius: 10px; overflow: hidden; }
#intro-wrap .s-page:first-of-type { background-image: url('../images/intro-splash-1.jpg?ver=0'); }
#intro-wrap .s-page:nth-of-type(2) { background-image: url('../images/intro-splash-2.jpg?ver=0'); }
#intro-wrap .s-page:nth-of-type(3) { background-image: url('../images/intro-splash-3.jpg?ver=0'); }
#intro .s-page p { margin: 0px; padding: 0px; }
#news-feed { margin-left: 20px; padding: 0px; display: inline-block; width: calc(45% - 20px); }
#announcements-bar { background-image: url(../images/announcements.svg); background-size: 44px auto; background-position: left 10px center; padding-left: 64px; margin: 10px 0px; }
#ab-post { float: right; padding: 4px 14px; margin: -3px -6px 0px 0px; }
.post {
    background: white; padding: 16px; border-radius: 16px; box-shadow: 0px 0px 4px rgba(59, 90, 175, 0.15);
    margin: 16px 0px; display: block; overflow: hidden;
}
.post h1, .post h1 a, .post .title { font-family: 'Mulish'; color: #262368; font-weight: 700; font-size: 0.95em; line-height: 1.7em; display: block; text-align: left; }
.post h1 a { display: initial; }
.post p, .post ol li, .post ul li { color: rgba(80, 100, 150, 0.9); font-size: 0.9em; line-height: 1.6em; }
.post h1:first-child { margin-top: 0px; }
.post p:last-of-type { margin-bottom: 0px; }
.post p:only-child, .post p:first-child, .te-preview p:first-child { margin-top: 0px; }
.post h1.green, .post a.green { color: rgb(75, 200, 139); }
.post h1.purple, .post a.purple { color: rgb(85, 84, 214); }
.post h1.red, .post a.red { color: #ed155d; }
.post img { width: auto; height: auto; max-height: 300px; max-width: 100%; display: block; margin: 0px auto; }
.post.collapsed .content-wrap { overflow: hidden; max-height: 480px; mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 420px, rgba(0,0,0,0) 480px); -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 420px, rgba(0,0,0,0) 480px)}
.p-show-more {
    margin: -20px auto 0px; width: 100px; text-align: center; font-size: 0.9em; cursor: pointer; opacity: 0.8; transition: opacity 0.3s;
    background: rgb(85, 84, 214); color: white; border-radius: 20px; padding: 4px; z-index: 1; position: relative; box-shadow: 0px 0px 4px rgba(59, 90, 175, 0.45);
}
.p-show-more:hover { opacity: 1; }
.post:not(.collapsed) .p-show-more { margin-top: 10px; }
.post table th, .post table td {
    border: 1px rgb(231, 234, 240) solid; color: rgba(80, 100, 150, 0.9); text-align: left; padding: 3px 10px; font-size: 0.9em;
}
.post table th{ font-family: Mulish;}
.post table { border-collapse: collapse; margin: auto; width: 100%; }
h1.flag, a.flag { background-size: 24px auto; background-position: left center; padding-left: 30px; }
h1.green.flag, a.green.flag { background-image: url('../images/flag-green.svg'); }
h1.purple.flag, a.purple.flag { background-image: url('../images/flag-purple.svg'); }
h1.red.flag, a.red.flag { background-image: url('../images/flag-red.svg'); }

/*** Calendar ***/
#calendar-header, #calendar-header:visited { 
    font-size: 1.3em; font-weight: 700; color: #262368; text-align: center; text-decoration: none;
    margin: 20px auto; width: 200px; display: block; background-image: url('../images/link-arrow.svg');
    background-size: 15px auto; background-position: right center;
}
#cal-section { width: 100%; display: flex; border-radius: 10px; }
#cal-wrap { width: 60%; color: #262368; z-index: 2; }
#calendar { width: 100%; border-radius: 10px; }
#calendar .s-cal-day { height: 50px; }
#calendar .s-cal-selected a { font-weight: 700; }
#calendar .s-cal-events { font-size: 0.8em; }
#calendar .s-cal-header { border-radius: 10px 10px 0px 0px; }
#calendar .s-cal-row:last-of-type .s-cal-day:last-of-type { border-radius: 0px 0px 10px 0px; }
#calendar .s-cal-row:last-of-type .s-cal-day:first-of-type { border-radius: 0px 0px 0px 10px; }
#events-pane {
    display: inline-block; width: 50%; background: rgb(85, 84, 214);
    margin-left: -10px; z-index: 1; border-radius: 8px; padding: 20px 20px 20px 30px;
}
#ep-title { font-family: 'Mulish'; font-weight: 600; color: white; font-size: 1.05em; }
#ep-wrap { overflow: auto; margin-top: 18px; min-height: 120px; }
#ep-wrap a { color: white; display: block; margin: 12px 0px; font-size: 0.9em; cursor: pointer; }
#cal-sign-in, #req-sign-in { display: block; margin: 20px auto; border: none; padding: 12px 33px; font-size: 0.9em; }

/** Requests **/
#request-header {
    font-size: 1.3em; font-weight: 700; color: #262368; text-align: center; text-decoration: none;
    margin: 20px auto; display: block; background-image: url('../images/link-arrow.svg');
    background-size: 15px auto; width: 195px;  background-position: right center;
}
#req-section .er-test {display: inline;}
#requests-widget .unauth-only a{ overflow: auto; margin-top: 18px; height: 90%; color: white; }
#requests-widget .unauth-only { padding-top: 10%; }
#req-show-more { margin-bottom: 15px; }

/** Weather **/
#forecast-header {
    font-size: 1.3em; font-weight: 700; color: #262368; text-align: center; text-decoration: none;
    margin: 20px auto; display: block; background-image: url('../images/link-arrow.svg');
    background-size: 15px auto; width: 237px;  background-position: right center;
}
#weather-forecast {
    width: calc(100%);  display: block; position: relative; border-radius: 10px; margin: auto; 
    background-image: linear-gradient(rgb(166, 193, 245), rgb(166, 174, 237)); min-height: 150px;
}
#weather-header { margin: auto; width: 100%; text-align: center; }
#weather-wrap { height: 100%;  padding: 5px; }
#day-details { height: 100%;  margin: auto; }
.daily-conditions { text-align: center; padding: 5px; cursor: pointer; }
#wd-title { font-size: 1.3em; color: rgb(43, 44, 44); }
#fc-hourly-details { width: 80%; overflow-x: auto; display: flex; height: auto; text-align: center; margin: 10px; }
.s-weather{ display: flex; }
#daily-forecast { padding: 5px; text-align: center; margin: auto; }
.forecast-h, .forecast-d { display: inline-block; padding: 10px; cursor: pointer; min-width: 100px; padding-top: 45px; text-align: center; }
.hour a { font-size: 0.8em; }
#api-linkback { font-size: 0.7em; float: right; margin: 10px 12px -30px 12px; opacity: 0.4; }

/** Welcome **/
#w-code { width: 225px; max-width: calc(100% - 20px); margin-bottom: 25px; transition: 0.3s; }
#w-code.error { margin-bottom: 60px; }
#code-error {
    transition: 0.3s; font-size: 0.8em; width: 300px; margin: 0px auto 25px; max-width: calc(100% - 20px);
    transform: translateY(-50px); z-index: -1; position: absolute; left: 0px; right: 0px; opacity: 0;
}
#code-error.open { opacity: 1; }

/*** Posts / Newsfeed { ***/
#post-wrap { transition: 0.3s; }
#post-wrap.loading { opacity: 0.3; }
#create-post { transition: 0.5s; transition-timing-function: ease-in-out; }
#create-post:not(.open) { display: none; }

.post-actions { border-top: 1px rgba(195, 203, 228, 0.5) solid; padding-top: 5px; margin: 8px 0px -10px; display: flex; }
.post-actions div {
    display: inline-block; width: auto; height: 28px; opacity: 0.5; cursor: pointer; transition: opacity 0.3s, color 0.3s; color: #262368;
    background-size: 16px auto; background-position: left 4px center; padding: 0px 15px 0px 28px; line-height: 28px;
}
.post-actions div:hover { opacity: 1; }
.post-actions .pin { background-image: url('../images/pin-black.svg?ver=0'); }
.post-actions .pin:hover, .post-actions .pin.pinned { background-image: url('../images/pin.svg?ver=2'); color: #3bb379; opacity: 1; }
.post-actions .edit { background-image: url('../images/edit-black.svg?ver=1'); }
.post-actions .edit:hover { background-image: url('../images/edit.svg?ver=1'); color: #5554d6 }
.post-actions .delete { background-image: url('../images/delete-black.svg?ver=1'); }
.post-actions .delete:hover { background-image: url('../images/delete.svg?ver=1'); color: #ed155d; }

#welcome .widget {
    min-height: 226px; border-radius: 10px; background-color: var(--accent-1); text-align: center;
}
#welcome .widget > input { margin: 0px 0px 16px 0px; }
.widget-flex { display: flex; flex-wrap: wrap; column-gap: 16px; row-gap: 16px; padding: 16px; width: 100%; }
.widget-flex > div {
    border-radius: 10px; padding: 8px 10px; background-color: rgba(255, 255, 255, 0.2); width: calc(50% - 8px); font-size: 0.9em; color: white;
    box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.1); transition: background-color 0.3s; cursor: pointer; text-align: left;
}
.widget-flex > div:hover {
    background-color: rgba(255, 255, 255, 0.3);
}
.widget-flex > div > label {
    font-weight: 700; font-family: 'Mulish'; font-weight: 700; margin: 0px 0px 2px 0px; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; display: block; cursor: pointer;
}
.widget-flex > div > p { font-size: 0.95em; margin: 0px; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; color: rgba(255, 255, 255, 0.75); cursor: pointer; }

/*** } ***/

#login-modal input[type=password], input[type=text] { background: rgba(195, 203, 228, 0.5); }

@media (min-width: 901px) {
    .lock-welcome #welcome-spacer { display: inline-block; width: 55%; }
    .lock-welcome #welcome { position: fixed; bottom: 0px; max-width: calc((1200px * 0.55) - 22px); width: calc(55% - 22px); }
    #welcome { /* min-height: 1020px; */ height: calc(100vh - 130px); }
}
@media (max-width: 900px) {
    #main, #welcome, #news-feed { display: block; }
    #main, #welcome, #news-feed { width: 100%; margin: 20px 0px; min-width: 280px }
}
@media (max-width: 600px) {
    #cal-section { display: grid; margin: 0px }
    #events-pane { width: 100%; margin-left: 0px; margin-top: -10px; padding: 30px 20px 20px 20px; }
    #cal-wrap { width: 100%; }
    #ep-wrap { max-height: 150px; }
    #intro { font-size: 1em; }
}
@media (max-width: 510px) {
    #welcome h1 { font-size: 1em; }
    #welcome h3 { font-size: 0.9em; }
    body { margin-top: 65px; }
    #profile { margin-top: 20px; }
    #main { padding: 0px; }
    #news-feed { padding: 0px 20px 0px 20px; }
}