/*--- Global Styles ---*/
body,
html {
    margin: 5px;
    align-items: center;
    justify-content: center;
    background-color: black;
    color: #808080;
    font-family: courier, monospace;
    font-weight: bold;
    font-size: 20px;
}

a {
    text-decoration: none;
    color: #FC5454;
}

a:hover {
    text-decoration: none;
    color: #A70000;
}

/*--- Classes ---*/
.blink {
    animation: blinker 1s linear infinite;
}

@keyframes blinker {
    50% {
        opacity: 0;
    }
}

.left-text {
    float: left;
    margin-right: 10px;
}

.right-text {
    float: right;
    margin-left: 10px;
}

.site-forum {
    display: block;
}

.site-forum-off {
    display: none;
}

.about-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.about-container img {
    flex: 1;
    margin: 10px;
    max-width: 135px;
    height: auto;
    box-shadow: 0 0 10px white;
    cursor: pointer;
}

.about-modal {
    display: none;
    position: fixed;
    z-index: 1;
    margin-left: 25px;
    margin-right: auto;
    top: 90px;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
}

.about-modal-content {
    margin: auto;
    display: block;
    width: 1000px;
    height: 600px;
    padding-top: 30px;
}

.about-container img:hover {
    box-shadow: 2px 2px 10px #f00;
}

.about-close {
    color: white;
    position: absolute;
    top: 0px;
    right: 5px;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
}

.about-close:hover,
.about-close:focus {
    color: #999;
    text-decoration: none;
    cursor: pointer;
}

.about-modal-content {
    border: 2px solid #323232;
    border-radius: 10px;
}

/* Updated selector to match the HTML: .news.pagination-container */
.news.pagination-container a,
.news.pagination-container span {
    display: inline-block;
    margin: 0 5px;
    padding: 8px 15px;
    text-decoration: none;
    color: #f0f0f0;
    background-color: #111;
    border-radius: 8px;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    min-width: 30px;
    box-sizing: border-box;
    border: none;
    text-align: center;
}

/* Updated selector */
.news.pagination-container span.current-page {
    background-color: #444;
    color: #fff;
    cursor: default;
    font-weight: bold;
}

/* Updated selector */
.news.pagination-container a:hover {
    background-color: #222;
    color: #fff;
}

/* Updated selector */
.news.pagination-container .ellipsis {
    background-color: transparent;
    padding: 8px 0;
    color: #aaa;
    cursor: default;
    min-width: auto;
    margin: 0 5px;
}

.news-date-line {
    margin: 0px;
}

.news-content {
    margin: 0px;
}

/*--- IDs ---*/
#timer {
    color: #ffa500;
}

#updates {
    color: #454545;
    font-size: .85em;
    text-align: center;
    width: 100%;
}

#sitewide {
    position: relative;
    z-index: 10;
}

#enlarge {
    font-size: 1.125em;
}

#enlarge-corp {
    font-size: 1.25em;
}

#enlarge-rank {
    font-size: 1.20em;
}

#td-background {
    background: rgba(0, 0, 0, .70);
    border-radius: 10px;
    max-width: 1100px;
    border: 2px solid #323232;
}

#td-container {
    vertical-align: top;
    padding-left: 0px;
    padding-right: 0px;
    z-index: 1;
    font-size: 20px;
    width: 1080px
}

#td-container-padded {
    vertical-align: top;
    padding-left: 30px;
    padding-right: 30px;
    z-index: 1;
    font-size: 20px;
    width: 1100px
}

#td-container-padded-ranks {
    vertical-align: top;
    padding-left: 30px;
    padding-right: 30px;
    z-index: 1;
    font-size: 20px;
    width: 1100px
}

#td-container-padded-stats {
    vertical-align: top;
    padding-left: 30px;
    padding-right: 30px;
    z-index: 1;
    font-size: 20px;
    width: 1100px
}

#td-container-padded-whois {
    vertical-align: top;
    padding-left: 30px;
    padding-right: 30px;
    z-index: 1;
    font-size: 20px;
    width: 1100px
}

#logo {
    font-size: 20px;
}

#stars {
    position: fixed;
    z-index: 0;
    background-color: transparent;
}

#planets {
    position: absolute;
    z-index: 1;
}

#starports {
    position: absolute;
    z-index: 1;
}

#spaceship {
    position: absolute;
    top: -100px;
    left: -100px;
    transform: rotate(110deg);
    transition: transform 1s linear, top 5s linear, left 5s linear;
    z-index: 2;
}

#catchphrase {
    background-color: #323232;
    font-weight: bold;
    border-radius: 10px;
    min-width: 550px;
    max-width: 1100px;
    height: auto;
    padding: 0px 0px 0px 0px;
    font-size: 22px;
    margin-top: 15px;
    color: #ffa500;
    border: 3px solid #212121;
}

#footer {
    background-color: #323232;
    font-weight: bold;
    border-radius: 10px;
    min-width: 550px;
    max-width: 1100px;
    height: auto;
    padding: 0px 0px 0px 0px;
    font-size: 22px;
    margin-top: 15px;
    color: #ffa500;
    margin-bottom: 25px;
    padding-top: 2px;
    border: 3px solid #212121;
    overflow: hidden;
}

#fTelnetCon {
    display: block;
    max-width: 100%;
}

#fTelnetCon-off {
    display: none;
}

/* Discord CSS changes */
/* Set the iFrame width to 100% */
iframe {
    width: 100%; /* Keep existing iframe width, general rule */
    border: none;
    margin-top: 0px;
    margin-bottom: 0px;
    margin-left: -20px;
    margin-right: 0px;
}
/* CSS for Div Layout */
.container {
    display: flex;
    flex-direction: column; /* Stack columns vertically */
    align-items: center; /* Center content horizontally */
}
.column {
    flex: 1;
    width: 95%; /* Maintain existing column width */
    border: none;
    margin-top: 30px;
    margin-left: 5px;
    margin-right: 20px;
    text-align: justify;
}

/* Specific styling for the Discord iframe to make it shorter and wider */
.discord-iframe-wrapper { /* Add a new wrapper for the Discord iframe */
    width: 100%; /* Make the wrapper take full width */
    margin-left: auto; /* Center the wrapper */
    margin-right: auto; /* Center the wrapper */
    margin-bottom: 20px; /* Add some space below the widget */
}

.discord-iframe {
    width: 100%; /* Make the iframe fill its wrapper's width */
    height: 350px; /* Shorter height for the widget */
    border: none; /* Ensure no border */
    display: block; /* Helps with layout */
    margin: 0 auto; /* Center the iframe within its wrapper if needed */
}

/* Order of columns */
.text-column {
    order: 1; /* Text column appears first */
}
.discord-column {
    order: 2; /* Discord column appears second */
    /* Override any margin-left/right that might push it too far */
    margin-left: 0;
    margin-right: 0;
}
