html,
body {
    margin: 0;
    padding: 0;
    width: 100vw;
    min-height: 100vh;
    font-family: "Roboto", sans-serif;
    /* Default colors */
    background: #1e1e1e;
    color: #efefef;
}

header {
    text-align: center;
    padding-top: 2rem;
}

/* TODO: Adjust for multiple screen sizes */
header #logo {
    width: 50dvw;
}

nav {
    display: flex;
    gap: .5rem;
    width: min-content;
    margin: 2rem auto;
    border-radius: 100px;
    padding: 3px;
    background: #353535;
}

nav a {
    padding: .5rem 1.5rem;
    border-radius: 100px;
    color: #efefef;
    text-decoration: none;
}

nav a:hover {
    background: #3f3f3f;
}

nav a.active {
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: #4a4a4a;
}

article.card {
    border-radius: 12px;
    background: #2c2c2c;
    color: #efefef;
    padding: 1.5rem;
}

article.card h3 {
    margin: 0;
    font-size: 2rem;
    font-weight: normal;
}

footer {
    text-align: center;
    margin-top: 2rem;
    padding: 2rem 0;
    background: rgba(255, 255, 255, 0.2);
    border-top: 1px solid #efefef;
    color: #1e1e1e;
    backdrop-filter: blur(10px);
}

a.link {
    color: #4a98c9;
}

.soft-max {
    margin-left: 2rem;
    margin-right: 2rem;
}

.space-top {
    margin-top: 2rem;
}

.text-center {
    text-align: center;
}

.external-link-icon {
    width: 18px;
    height: 18px;
}

.main-split {
    display: flex;
    gap: 2rem;
}

.main-split article {
    flex-grow: 1;
}

.equal-split {
    display: flex;
    gap: 2rem;
    width: 100%;
    position: relative;
}

.equal-split article {
    width: calc(50% - 2rem);
}

.rainback {
    padding: 2rem 0 0 0;
    background-image: url("../media/diagonal.svg");
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: 100% 100%;
}

.sm-visible {
    display: none;
}

/* Mobile nav style */
.nav-btn-wrap {
    display: flex;
    justify-content: center;
    fill: #efefef;
    padding-bottom: 1rem;
}

.nav-btn-wrap #navBtn {
    cursor: pointer;
}

::backdrop {
    background-color: rgba(100, 100, 100, 0.1);
    backdrop-filter: blur(5px);
}

#mobile-nav {
    height: 100dvh;
    width: 60%;
    margin: 0;
    background: #2c2c2c;
    color: #efefef;
    border: none;
    border-right: 1px solid rgba(255, 255, 255, 0.3);
}

.dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 1rem;
}

.close-btn {
    background: none;
    border: none;
    outline: none;
    cursor: pointer;
    fill: #efefef;
}

.menu-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.menu-links a {
    color: #efefef;
    text-decoration: none;
    font-size: 1.15rem;
}

.menu-links a:hover {
    text-decoration: underline;
}

.warning-container {
    border: 1px solid #F57C00;
    margin-top: 1rem;
    padding: 0 1rem;
    border-radius: 12px;
}

.warning-container h4 {
    color: #F57C00;
}

.badge-preview {
    max-width:50%;
    margin: 0 auto;
}

.people-item {
    display: flex;
    gap: .5rem;
    align-items:center;

}

.people-item a {
    display: flex;
}

.sponsor-content {
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
}

.sponsor-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

.sponsor-item .sponsor-logo {
    max-height: 300px;
    max-width: 300px;
    min-height: 200px;
    min-width: 200px;
}

.sponsor-item h4 {
    display: flex;
    gap: .5rem;
    align-items: center;
}

.sponsor-item a {
    display: flex;
}

.spooxe-logo {
    min-height: auto !important;
}

.mullvad-logo {
    max-height: 300px;
    max-width: 300px;
    min-width: 200px;
}

.htb-logo {
    max-width: 300px;
    min-width: 200px;
    min-height: 100px;
}

.tillitis-logo {
    max-width: 220px;
    min-width: 200px;
    min-height: 100px;
}

@media screen and (max-width: 800px) {
    header #logo {
        width: 80dvw;
    }

    .sm-visible {
        display: block;
    }

    .sm-hidden {
        display: none;
    }

    .console-wrap {
        display: none;
    }

    .main-split {
        flex-direction: column;
        gap: 0;
    }
}

/*
*   Highlight register button
*/

@property --bg-angle {
    inherits: false;
    initial-value: 0deg;
    syntax: "<angle>";
}

/**
* To animate the gradient, we set the custom property to 1 full
* rotation. The animation starts at the default value of `0deg`.
*/
@keyframes spin {
    to {
    --bg-angle: 360deg;
    }
}

#highlight-btn {
    animation: spin 3.5s infinite linear running;
    background:
        linear-gradient(to bottom, #353535, #353535) padding-box,
        conic-gradient(from var(--bg-angle) in oklch longer hue, oklch(0.85 0.37 0) 0 0) border-box;
    border: 1px solid transparent;

    /* unpause the animation on hover */
    &:hover {
        background:
            linear-gradient(to bottom, #3f3f3f, #3f3f3f) padding-box,
            conic-gradient(from var(--bg-angle) in oklch longer hue, oklch(0.85 0.37 0) 0 0) border-box;
    }
  }