@import url('./aesthetics/landing.css');
@import url('./aesthetics/story.css');
@import url('./aesthetics/talon.css');
@import url('./aesthetics/kharza.css');

/* ========== ALL ========== */
body {
    overflow-x: hidden;
    margin: 0;
    text-align: center;
    margin: 0;
    padding: 0;
    background-color: #000000;
    color: white;
    font-family: 'Lexend', 'Segoe UI', sans-serif;
}

h1, h2, h3, p {
    margin: 0;
}

.background {
    position: fixed;
    inset: 0;
    background-color: #1d1d1d;
    z-index: -2;
}


@media (min-width: 768px) {
    body > *:not(#header) {
        padding: 0 10vw;
    }
}

/* ========== FONTS ========== */

@font-face {
    font-family: "Lexend";
    src: url("./fonts/Lexend-VariableFont_wght.ttf") format('truetype');
    font-weight: 100-900;
    font-style: normal;
}

/* ========== Header ========== */


.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5vw;
    background-color: #1D1D1D;
}

.header-left,
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    width: 60px;
}

.CTFName {
    font-size: 1.4rem;
    font-weight: 500;
    color: #fce4e4;
    text-decoration: none;
}

.nav-link {
    color: #fce4e4;
    text-decoration: none;
    font-size: 1rem;
}

.nav-link:hover {
    text-decoration: underline;
}

.profile-circle {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background-color: #333;
  cursor: pointer;
  display: inline-block;
}

.profile-container {
    position: relative;
}

.profile-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);

    background-color: #3f3f3f;
    border-radius: 5px;
    display: none;
}


/* ========== Dashboard & Buttons ========== */
.btn {
    margin: 10px;
    border: 0;
    cursor: pointer;
    padding: 5px 20px;
    border-radius: 3px;
    color: inherit;
    text-decoration: none;
    color: white;
    background-color: black;
    font-family: 'Lexend', 'Segoe UI', sans-serif;
}

.dropdown-btn {
    all: unset;
    margin: 10px;
    border: 0;
    cursor: pointer;
    padding: 5px 20px;
    border-radius: 3px;
    color: inherit;
    color: white;
}

/* ========== Pop-up ========== */
#popup-body {
    display: flex;
    flex-direction: column;
    gap: 1vh;
}


.popup {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-content {

    min-width: 30vw;
    background: #1D1D1D;
    padding: 30px;
    border-radius: 8px;
    width: 100%;
    position: relative;
    font-size: clamp(10px, 1vw, 16px);
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    cursor: pointer;
}

/* ========== IDE ========== */

.terminal {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

textarea {
    grid-row: 1;
    grid-column: 1 / 2;
    background-color: #1D1D1D;
    color: white;
    width: 95%;
    height: 50vh;
    font-family: monospace;
    font-size: clamp(10px, 1vw, 16px);
    border-radius: 5px;
    border: 1px solid #ccc;
}
pre {
    margin: 0;
    grid-row: 1;
    grid-column: 2 / 3;
    font-size: clamp(6px, 1vw, 10px);
    background-color: #1D1D1D;
    color: white;
    text-align: start;
    border: 1px solid #ccc;
    white-space: pre-wrap;
    border-radius: 5px;
}

/* ========== FOOTER ========== */
#footer {
  background-color: #2c2c2c;
  color: #eaeaea;
  padding: 0 !important;
  margin-top: 15vh;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 4rem;
  padding: 4rem 6rem;
  max-width: 1200px;
  margin: 0 auto;
}

#footer h1 {
  font-size: 1.6rem;
  margin: 0.5rem 0;
}

#footer h2 {
  font-size: 1rem;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  color: #bbbbbb;
}

#footer p {
  font-size: 0.9rem;
  color: #cccccc;
}

#footer a {
  display: block;
  color: #eaeaea;
  text-decoration: none;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

#footer a:hover {
  color: #7dd3fc;
}

.footer-brand img {
  width: 80px;
}

.footer-brand p {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #aaaaaa;
}

.footer-bottom {
  border-top: 1px solid #333;
  text-align: center;
  padding: 1.2rem;
  background-color: #161616;
  font-size: 0.8rem;
  color: #999;
}

/* Responsive */
@media (max-width: 768px) {
  .footer-top {
    flex-direction: column;
    text-align: center;
    padding: 3rem 2rem;
  }

  #footer a {
    align-items: center;
  }
}