:root {
    --background: #060206;
    --headline: #fffffe;
    --paragraph: #E5E4E5;
    --button: #ff85fb;
    --button-text: #110B11;

    --stroke: #110B11;
    --main: #E5E4E5;
    --highlight: #fc65f9;
    --secondary: #abd1c6;
    --tertiary: #ff39de;
    --radius: 10px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0px;
    padding: 0px;
    overflow-y: auto;
    overflow-x: hidden;
    line-height: 1;
    font-family: Poppins, sans-serif;
    color: var(--paragraph);
    user-select: none;
    background-color: var(--background);
    transition: .4s ease;
}
div#bg {
    position: fixed;
    opacity: 0.1;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    transition: 1s ease;
    filter:blur(100px);
}

a:link {
    font-weight: 600;
    text-decoration: none;
    color: var(--secondary);
}

a:visited {
    font-weight: 600;
    text-decoration: none;
    color: var(--secondary);
}

a:hover {
    text-decoration: none;
}

a:active {
    text-decoration: none;
}

::-webkit-scrollbar {
    width: 15px;
}

/* Track */
::-webkit-scrollbar-track {
    background-color: var(--background);
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: var(--button);
    transition: ease-in 10s
}

.header {
    overflow: hidden;
    background-color: #0e0e0e;
    filter: drop-shadow(0px 4px 8px #000);
    position: fixed;
    width: 100%;
    z-index: 10;
}

.header a {
    font-weight: 100;
    float: left;
    display: block;
    color:var(--main);
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 17px;
    transition: 1s ease;
    animation: SlideInBottom 1s ease;
}

.header a:not(.logo) {
    float:right;
}

.header a.logo {
    font-weight: 1000;
    animation: SlideInLeft 1s .1s ease;
}

.header a:hover {
    color: var(--button);
}

.header a.active {
    color:var(--button);
}

.header .icon {
    display: none;
}

@media screen and (max-width: 600px) {
    .header a:not(:first-child) {
        transition: 1s ease;
        display: none;
    }

    .header a:not(.logo) {
        transition: 1s ease;
        float:left;
    }

    .header a.icon {
        transition: 1s ease;
        float: right;
        display: block;
    }

    .header.responsive {
        transition: 1s ease;
        position: fixed;
    }

    .header.responsive .icon {
        transition: 1s ease;
        position: absolute;
        right: 0;
        top: 0;
    }

    .header.responsive a {
        transition: 1s ease;
        float: none;
        display: block;
        text-align: left;
    }
}
.header .disappear {
    animation: HeaderDisappear .5s ease 1;
    display: none;
}

@keyframes HeaderDisappear {
    0% {
        transform: translateY(0);
    }

    99% {
        transform: translateY(-100%);
    }

    100% {
        display: none;
    }
}

.sidebar.left {
    position: fixed;
    width: 1000px;
    left: 0px;
    top: 100%;
    padding: 10px;
    transform: rotate(270deg) translateX(0%) translateY(0%);
    transform-origin: 0% 0%;
}

div.center {
    position: relative;
    display: block;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    top: 50%;
    height: auto;
}
div.middle {
    position: relative;
    display: block;
    left: 50%;
    transform: translateX(-50%);
    height: auto;
}

img#bgLogo {
    position: absolute;
    margin-top: -40px;
    height: 400px;
    transform: translateX(-50%) translateY(-50%);
    opacity: 0.4;
    z-index: -1;
    animation: LogoIn 3s ease-in-out;
}
@keyframes LogoIn {
    0% {
        transform: translateX(-50%) translateY(-65%);
        opacity: 0;
    } 100% {
        transform: translateX(-50%) translateY(-50%);
        opacity: 0.4;
    }
}

section {
    height: 100vh;
    text-align: center;
}
section#about div {
    word-wrap: normal;
    word-break: keep-all;
}
section#intro {
    height: auto;
    padding-bottom: 100px;
    padding-top: 400px;
}
@media screen and (max-width: 900px) {
    section#sponsors div div img.doug {
        display: none;
    }
}

.sort-controls {
    text-align: center;
    margin-bottom: 30px;
}

.sort-controls button {
    font-size: 16px;
    padding: 10px 25px;
    border-radius: 5px;
    border: none;
    background-color: var(--button);
    color: var(--button-text);
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.sort-controls button:hover {
    background-color: var(--button-text);
    color: var(--button);
    border: 1px solid var(--button);
}

#sortBtn {
    font-size: 16px;
    padding: 10px 25px;
    border-radius: 5px;
    border: none;
    background-color: var(--button);
    color: var(--button-text);
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s ease;
    margin-bottom: 30px;
}

#sortBtn:hover {
    background-color: var(--button-text);
    color: var(--button);
    border: 1px solid var(--button);
}

.news-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    padding: 20px;
    animation: FadeIn 1s ease;
}

.news-card {
    width: 45%;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    transition: 0.3s ease-in-out;
    cursor: pointer;
    display: block; /* Ensures the card expands alone */
    align-self: flex-start;
}

.news-card:hover {
    transform: scale(1.01);
    border-color: var(--button);
    box-shadow: 0 0 20px var(--button);
}

.news-bg {
    background-size: cover;
    background-position: center;
    height: 200px;
    width: 100%;
    filter: brightness(0.6);
}

.news-content {
    padding: 20px;
    color: white;
    text-align: left;
}

.news-content h2 {
    color: var(--button);
    margin: 0;
}

.news-date {
    color: var(--secondary);
    font-size: 14px;
    margin-top: 5px;
}

.news-more {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    background-color: rgba(255, 255, 255, 0.03);
    transition: max-height 0.5s ease, padding 0.3s ease;
    border-top: 1px solid transparent;
    text-align: left;
}

.news-more p {
    text-align: left;
    margin: 8px 0;
    line-height: 1.6;
}

.news-more h1,
.news-more h2,
.news-more h3,
.news-more h4,
.news-more h5,
.news-more h6 {
    margin-top: 0px;
    margin-bottom: 0px;
    line-height: 1;
}

.news-card.expanded .news-more {
    max-height: 1000px;
    padding-top: 20px;
    padding-bottom: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media screen and (max-width: 900px) {
    .news-card {
        width: 90%;
    }
}

footer.site-footer {
    position: relative;
    height: 80px;
    margin-top: -100px;
    clear: both;
    z-index: 5;
    padding: 30px 0;
    background: rgba(0,0,0,0.9);
    text-align: center;
    color: #fff;
    z-index: 5;
}

.typing-ip {
  font-family: monospace;
  font-size: 18px;
  margin-bottom: 12px;
}

.footer-links {
  margin-top: 12px;
}

.footer-links a {
  margin: 0 12px;
  color: var(--secondary);
  text-decoration: none;
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--button);
  transition: .3s ease;
}

button {
    background-color: var(--button-text);
    color: var(--button);
    font-weight: 600;
    cursor: pointer;
    padding: 10px 20px;
    border-radius: 30px;
    border: 0.2vw solid var(--button);
    transition: .3s ease;
}

button:hover {
    background-color: var(--button);
    color: var(--button-text);
    border-color: var(--button-text);
    transition: .3s ease;
}

h1 {
    color: var(--headline);
    font-size: xx-large;
}

hr {
    border-top: 5px solid var(--paragraph);
    display: inline-block;
    vertical-align: middle;
    border-radius: var(--radius);
}

div ._ip {
    display: inline-block;
    cursor: pointer;
}
div ._ip .clicked {
    background-color: var(--button);
}

.bg-first {
    background-image: url(./assets/images/prac.png);
}
.bg-two {
    background-image: url(./assets/images/survival.png);
}
.bg-three {
    background-image: url(./assets/images/event.png);
}
.bg-four {
    background-image: url(./assets/images/code.png);
}

@keyframes SlideInBottom {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes SlideInRight {
    0% {
        transform: translateX(10%);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes SlideInLeft {
    0% {
        transform: translateX(-10%);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes SlideInTop {
    0% {
        transform: translateY(100%);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes FadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}