/*  ----->> New Blog Layout Stylesheet <<-----  
    Classic blog layout with sidebar on left */

/*  ----->> Allows older browsers to view new elements in block rather than in-line. <<-----  */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
    display: block;
}

/*  ----->>  Style for main elements  <<-----  */

body {
    background-color: black;
    font-family: 'Times New Roman', times, serif;
    font-size: clamp(14px, 2.5vw, 18px);
    color: white;
    margin: 0;
    padding: 0;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: rgba(0, 0, 0, 0.963);
    pointer-events: none;
}

body video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* z-index: 2; */
}

body.lost-page::after {
    content: '';
    position: fixed;
    bottom: -50vw;
    right: -50vw;
    width: 50vw;
    height: 50vh;
    background-image: url('sg_angel_bg.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom right;
    z-index: -1;
    pointer-events: none;
    opacity: 0;
    transform: rotate(-5deg) scale(0.5);
    animation: floatInFromRight 20s ease-out 7s forwards;
}

@keyframes floatInFromRight {
    0% {
        right: -50vw;
        bottom: -50vw;
        opacity: 0;
        transform: rotate(-5deg) scale(0.5);
    }
    100% {
        right: 20vw;
        bottom: 10vh;
        opacity: 0.3;
        transform: rotate(-25deg) scale(2.2);
    }
}

header {
    padding-left: 30px;
    padding-right: 30px;
    overflow: hidden;
    box-sizing: border-box;
    width: 100%;
    position: relative;
    min-height: 250px;
}

.header-left {
    position: absolute;
    left: 30px;
    box-sizing: border-box;
}

.header-right {
    position: absolute;
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    box-sizing: border-box;
    text-align: right;
}

header h1 {
    font-size: 2.5em;
    font-weight: bold;
    color: white;
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    text-align: left;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    overflow: hidden;
    box-sizing: border-box;
}

/*  ----->> Sidebar Styles (Left) <<-----  */

.sidebar {
    float: left;
    width: 25%;
    padding-left: 20px;
    box-sizing: border-box;
}

.about-me {
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.about-me h2 {
    font-size: 1.5em;
    font-weight: bold;
    color: white;
    font-family: Arial, Helvetica, sans-serif;
    margin-top: 0;
}

.logo-image {
    padding: 20px;
    text-align: left;
}

.logo-image img {
    max-width: 150px;
    height: auto;
}

.logo-image {
    position: relative;
    overflow: hidden;
}

#sg-angel-video {
    max-width: 150px;
    height: auto;
    display: block;
    position: relative;
    z-index: -1;
    opacity: 1;
    filter: brightness(100%);
    animation: zoomAndFade 10s ease-in-out forwards;
    transform-origin: center center;
}

.logo-image:has(#sg-angel-video)::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    z-index: 0;
    animation: fadeToBlack 10s ease-in-out forwards;
    pointer-events: none;
}

@keyframes zoomAndFade {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

@keyframes fadeToBlack {
    0% {
        background: rgba(0, 0, 0, 0);
    }
    100% {
        background: rgba(0, 0, 0, 1);
    }
}

.corp-name {
    padding: 20px;
    text-align: left;
}

.about-me p {
    font-size: 0.9em;
    line-height: 1.6;
    color: white;
}

nav {
    padding: 20px;
}

.nav-title {
    font-size: 1.2em;
    font-weight: bold;
    color: darkgray;
    font-family: Arial, sans-serif;
    margin-top: 0;
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-list li {
    margin-bottom: 10px;
}

/*  ----->> Main Content Styles (Right) <<-----  */

.content {
    float: right;
    width: 75%;
    padding-left: 20px;
    box-sizing: border-box;
    font-size: 18pt;
}

.blog-post {
    padding: 20px;
    margin-bottom: 30px;
}

.post-title {
    font-size: 2em;
    font-weight: bold;
    color: white;
    font-family: Arial, Helvetica, sans-serif;
    margin-top: 0;
}

#SGBooNews {
    float: left;
    padding-top: 1.5em;
    padding-right: .5em;
}

#welcome {
    color:  yellow !important;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.5em;
    font-weight:  bold;
    text-align: left;
    padding-bottom:  .5em;
    border-bottom-style: solid;
    border-bottom-width:  1px;
    border-bottom-color:  #007fff;
}

.post-date {
    font-size: 0.9em;
    color: darkgray;
    margin-bottom: 15px;
}

.post-image {
    background-color: #333;
    padding: 20px;
    text-align: center;
    margin-bottom: 15px;
}

.post-image img {
    max-width: 100%;
    height: auto;
}

.post-text {
    font-size: 1em;
    line-height: 1.6;
    color: white;
}

.asideTitle {
    color:  darkgray;
    font-family:  Arial, sans-serif;
    font-size:  small;
    text-align:  left;
}

.shortList {
    text-align:  left;
    font-size: .85em;
    padding-left: 3em;
    width:  10em;
    line-height:  2;
}




/*  ----->> Footer Styles <<-----  */

footer {
    clear: both;
    color: darkgray;
    padding: 30px;
    text-align: center;
    margin-top: 50px;
}

footer p {
    margin: 0;
}

/*  ----->> Styles for anchor links <<----- */

a:link {
    color: yellow;
}

a:visited {
    color: white;
}

a:hover {
    color: red;
}

a.white:link {
    color: white;
}

a.purple:link {
    color: purple;
}

a.fuchsia:link {
    color: fuchsia;
}

a.blue:link {
    color: blue;
}

a.ltblue:link {
    color: #007FFF;
}

a.grayblue:link {
    color: #99CCFF;
}

a.lime:link {
    color: lime;
}

a.ltorange:link {
    color: #FF9900;
}

a.dkgray:link {
    color: darkgray;
}

/*  ----->> Color utility classes <<----- */

.orange {
    color: #FF6600;
}

.ltorange {
    color: #FF9900;
}

.red {
    color: red;
}

.darkred {
    color: #8E2323;
}

.black {
    color: black;
}

.blue {
    color: #3366FF;
}

.dkblue {
    color: blue;
}

.cornflower {
    color: cornflowerblue;
}

.pink {
    color: #FF0066;
}

.ltpink {
    color: #FF99CC;
}

.fuchsia {
    color: fuchsia;
}

.purple {
    color: purple;
}

.lime {
    color: lime;
}

.limegreen {
    color: #99CC00;
}

.yellow {
    color: #FFCC00;
}

.ltyellow {
    color: yellow;
}

/*  ----->> Style for Members Page <<-----  */

#members {
    text-align: left;
    font-size: 1.0em;
    font-family: 'Times New Roman', times, serif;
}

#boomembers {
    color: yellow;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    text-align: left;
    padding-bottom: 0.5em;
    margin-bottom: 1.5em;
    border-bottom-style: solid;
    border-bottom-width: 2px;
    border-bottom-color: #007fff;
    font-size: 1.0em;
}

figure {
    margin: 2em 0;
    padding: 0;
}

figcaption {
    color: #FF9900;
    font-weight: bold;
    text-align: left;
    font-size: 1.2em;
    font-family: Arial, Helvetica, sans-serif;
    margin-bottom: 0.75em;
    padding-bottom: 0.5em;
    border-bottom: 1px solid #333;
}

.membersTable {
    width: 100%;
    background-color: #1a1a1a;
    border-collapse: collapse;
    border: 2px solid #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    margin-bottom: 1em;
}

.membersThead {
    background: linear-gradient(135deg, #236B8E 0%, #1a4d66 100%);
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#spacing {
    font-size: 1.5em;
}

.membersThead tr {
    border-bottom: 2px solid #007fff;
}

.membersThead td {
    padding: 1em 1.5em;
    text-align: left;
    font-size: 0.8em;
    font-family: Arial, Helvetica, sans-serif;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.membersThead td:last-child {
    border-right: none;
}

.memtr {
    font-size: 0.8em;
    line-height: 1.6;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #333;
}

.memtr:nth-child(even) {
    background-color: #252525;
}

.memtr:nth-child(odd) {
    background-color: #1f1f1f;
}

.memtr:hover {
    background-color: #2d2d2d;
    box-shadow: inset 0 0 10px rgba(255, 153, 0, 0.1);
}

.memtr td {
    padding: 1em 1.5em;
    text-align: left;
    color: white;
    border-right: 1px solid #333;
}

.memtr td:last-child {
    border-right: none;
}

.memtr td.left {
    float: none;
    text-align: left;
}

.memtr a.white {
    color: #FFCC00;
    text-decoration: none;
    transition: color 0.2s ease;
}

.memtr a.white:hover {
    color: #FF9900;
    text-decoration: underline;
}

/*  ----->> Hamburger Menu Styles <<-----  */

.hamburger-menu {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 10px;
    border: 2px solid #007fff;
    border-radius: 5px;
}

.hamburger-menu span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: white;
    margin: 6px 0;
    transition: 0.3s;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-6px, 6px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(45deg) translate(-6px, -6px);
}

@media screen and (max-width: 1300px) {
    .header-right {
        display: none;
    }
}

/*  ----->> Responsive Design - Tablet <<-----  */

@media screen and (max-width: 1024px) {
    header h1 {
        font-size: 2em;
    }

    .content {
        font-size: 16pt;
    }

    .sidebar {
        width: 30%;
    }

    .content {
        width: 70%;
    }

}

/*  ----->> Responsive Design - Mobile <<-----  */

@media screen and (max-width: 768px) {
    /* Show hamburger menu on mobile */
    .hamburger-menu {
        display: block;
    }

    /* Header adjustments */
    header {
        padding: 20px;
        min-height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .header-left {
        position: static;
        left: auto;
        width: 100%;
        margin-bottom: 20px;
    }

    .header-right {
        position: static;
        top: auto;
        right: auto;
        transform: none;
        text-align: center;
        width: 100%;
        display: none;
    }

    header h1 {
        font-size: 1.5em;
        text-align: center;
    }

    .about-me {
        flex-direction: column;
        text-align: center;
        padding: 10px;
    }

    .logo-image img {
        max-width: 100px;
    }

    #smGreenLogo {
        width: 350px;
        max-width: 100%;
    }

    #spacing {
        font-size: 1.2em;
    }

    /* Container adjustments */
    .container {
        max-width: 100%;
        padding: 0;
    }

    /* Sidebar - hidden by default on mobile */
    .sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.98);
        border-right: 2px solid #007fff;
        z-index: 999;
        overflow-y: auto;
        transition: left 0.3s ease-in-out;
        float: none;
        padding: 80px 20px 20px 20px;
    }

    .sidebar.active {
        left: 0;
    }

    /* Content adjustments */
    .content {
        float: none;
        width: 100%;
        padding: 20px;
        font-size: 14pt;
    }

    /* Navigation adjustments */
    nav {
        padding: 10px;
    }

    .shortList {
        padding-left: 1em;
        width: 100%;
    }

    /* Blog post adjustments */
    .blog-post {
        padding: 15px;
        margin-bottom: 20px;
    }

    .post-title {
        font-size: 1.5em;
    }

    #SGBooNews {
        float: none;
        padding: 0 0 1em 0;
        display: block;
    }

    #welcome {
        font-size: 1.2em;
        padding-bottom: 0.5em;
    }

    /* Members table responsive */
    .membersTable {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .membersThead td,
    .memtr td {
        padding: 0.5em;
        font-size: 0.7em;
    }

    figcaption {
        font-size: 1em;
    }

    /* Footer adjustments */
    footer {
        padding: 20px;
        margin-top: 30px;
        font-size: 0.9em;
    }
}

/*  ----->> Responsive Design - Small Mobile <<-----  */

@media screen and (max-width: 480px) {
    header {
        padding: 15px;
    }

    header h1 {
        font-size: 1.2em;
    }

    .logo-image img {
        max-width: 80px;
    }

    #spacing {
        font-size: 1em;
    }

    .content {
        padding: 15px;
        font-size: 12pt;
    }

    .post-title {
        font-size: 1.2em;
    }

    .sidebar {
        width: 90%;
    }

    .membersThead td,
    .memtr td {
        padding: 0.4em;
        font-size: 0.65em;
    }
}

