/* General Reset */
html, body {
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background-color: #333;
    color: #fff;
}

/* Banner */
#banner {
    background-image: url('../images/Home/server.png');
    background-size: cover;
    background-position: center;
    padding: 20px;
}

/* Header & Logos */
#header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-left: 20px;
}

#header img {
    height: 120px;
    width: auto;
    transition: transform 0.3s ease;
}
#header img:hover {
    transform: scale(1.1);
}

/* Layout Wrapper */
.content-wrap {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    padding: 20px;
    gap: 30px;
}

/* Left column (KP + Propagation + Server Status) */
.left-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
    max-width: 800px;
}

/* Right column (POTA) */
.right-pota {
    flex: 0 0 auto;
    margin-top: 20px;
}

/* KP Box */
.kp-box {
  max-height: 400px;
  overflow: hidden;
}

.kp-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#kpRange {
    padding: 6px 10px;
    font-size: 1em;
    background-color: #444;
    color: #fff;
    border: 1px solid #666;
    border-radius: 4px;
    width: fit-content;
}

.kp-section canvas {
  width: 100% !important;
  height: 300px !important;
  display: block;
}


/* Propagation */
#Propagation {
    text-align: center;
}
#Propagation img {
    max-width: 100%;
    height: auto;
    transform: scale(1.1);
    transform-origin: center;
    display: block;
    margin: 0 auto;
}

/* Server Status */
/* Make links inside server status appear like normal white text */
#server-status a {
    color: #fff;
    text-decoration: none;
}

#server-status a:hover {
    text-decoration: none;
    color: #fff; /* Keep color consistent on hover */
}


.server-status-section {
    background-color: #444;
    border-radius: 8px;
    padding: 20px;
}
.card-container {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    overflow-x: auto;
}
.hovOut {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    width: 200px;
    height: 200px;
    padding: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.hovOut.online {
    background-color: #003366;
}
.hovOut.offline {
    background-color: black;
}
.hovOut:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}
.hovOut img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 10px;
}
.hovOut h3 {
    font-size: 1.2em;
    margin: 5px 0;
}
.hovOut p {
    color: #ddd;
    font-size: 0.9em;
    margin: 0;
}

/* POTA Iframe */
.pota-iframe-wrapper {
    overflow: hidden;
    padding: 10px;
    max-width: 100%;
    height: 1120px;
}
.pota-frame-box {
    transform: scale(0.8);
    transform-origin: top left;
    width: 1250px;
    height: 1750px;
}
.pota-frame-box iframe {
    width: 1000px;
    height: 1400px;
    border: none;
    display: block;
}

/* Footer */
#footer {
    background-color: #222;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 60px;
}

/* Discord Button */
#discord-link {
    display: block;
    text-align: center;
    background-color: #7289da;
    color: white;
    padding: 12px 20px;
    font-size: 1.2em;
    border-radius: 5px;
    text-decoration: none;
    width: fit-content;
    margin: 20px auto;
    transition: background-color 0.3s ease;
}
#discord-link:hover {
    background-color: #99aab5;
}

/* Back Button */
.back-button {
    background-color: #7289da;
    color: white;
    padding: 10px 16px;
    font-size: 1em;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.back-button:hover {
    background-color: #99aab5;
}

/* Audio Streams */
.audio-section {
    margin-top: 40px;
}
.audio-stream {
    padding-left: 50px;
    margin-bottom: 20px;
}
.audio-stream p {
    color: lightgray;
    margin-bottom: 8px;
}
.audio-stream audio {
    display: block;
    width: 300px;
}

/* Responsive Layout */
@media (max-width: 1024px) {
    .content-wrap {
        flex-direction: column;
    }

    .left-stack,
    .right-pota {
        max-width: 100%;
        flex: 1 1 100%;
    }

    .pota-frame-box {
        transform: scale(0.65);
        width: 1538px;
        height: 1876px;
    }

    .pota-iframe-wrapper {
        height: 810px;
    }
}

@media (max-width: 768px) {
    #banner {
        padding: 10px 20px;
    }
    #header img {
        height: 80px;
    }
    .hovOut {
        width: 150px;
        height: 150px;
        padding: 8px;
    }
    .hovOut img {
        width: 60px;
        height: 60px;
    }
    .hovOut h3 {
        font-size: 1em;
    }
    .hovOut p {
        font-size: 0.8em;
    }
    .back-button {
        font-size: 0.9em;
        padding: 8px 12px;
    }
    .card-container {
        flex-wrap: wrap;
    }
    #Propagation img {
        transform: scale(0.9);
        margin-top: 20px;
    }
    .pota-frame-box {
        transform: scale(0.55);
        width: 1818px;
        height: 2218px;
    }
    .pota-iframe-wrapper {
        height: 690px;
    }
}

@media (max-width: 480px) {
    .pota-frame-box {
        transform: scale(0.45);
        width: 2222px;
        height: 2711px;
    }
    .pota-iframe-wrapper {
        height: 650px;
    }
}
.btn-back {
  display: inline-block;
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.4rem 0.8rem;
  background-color: #007bff;
  color: white;
  border-radius: 4px;
  margin-right: 1rem;
  transition: background-color 0.2s;
}
.ham-btn {
  display: inline-block;
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.4rem 0.8rem;
  background-color: #007bff;
  color: white;
  border-radius: 4px;
  margin-right: 1rem;
  transition: background-color 0.2s;
}