/*
 * Author: Divya Mohan
 * Project: Binary Battles
 * Templated from: dmj.one
 * (c) 2023, Divya Mohan for dmj.one. All Rights Reserved.
 */

@import "/css/edu_su_normalize.css";
/** Texts **/
@import url('https://fonts.googleapis.com/css?family=Cinzel|Gruppo|Lato|Lato:100|Roboto|Quicksand|Maven+Pro|Baloo+2|Bebas+Neue|Tangerine|Syne+Mono|Rubik+80s+Fade|Neonderthaw&display=swap&effect=neon');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');
@import url('https://cdnjs.cloudflare.com/ajax/libs/bootstrap-icons/1.9.1/font/bootstrap-icons.min.css');
/** FrameWorks **/
@import url('https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.2.2/css/bootstrap.min.css');
@import url('https://cdnjs.cloudflare.com/ajax/libs/hack-font/3.3.0/web/hack.min.css');
@import url('https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/vs.min.css');
@import url('https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.16.3/katex.min.css');


html {
    color: #222;
    font-size: 1em;
    line-height: 1.5;
    scroll-behavior: smooth;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/* hr {
  height: 7px;
  border: none;
  margin: 0px;
  color: black;
  background-color: black;
} */

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.sr-only {
    border: 0;
    clip: rect(0, 0, 0, 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
    /* 1 */
}

/*
 * Extends the .sr-only class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.sr-only.focusable:active,
.sr-only.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    white-space: inherit;
    width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
    content: " ";
    display: table;
}

.clearfix::after {
    clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media print,
(-webkit-min-device-pixel-ratio: 1.25),
(min-resolution: 1.25dppx),
(min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {

    *,
    *::before,
    *::after {
        background: #fff !important;
        color: #000 !important;
        /* Black prints faster */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: none !important;
    }

    a[href]::after {
        content: " (" attr(href) ")";
    }

    abbr[title]::after {
        content: " (" attr(title) ")";
    }

    /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
    a[href^="#"]::after,
    a[href^="javascript:"]::after {
        content: "";
    }

    pre {
        white-space: pre-wrap !important;
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    /*
   * Printing Tables:
   * https://web.archive.org/web/20180815150934/http://css-discuss.incutio.com/wiki/Printing_Tables
   */
    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}



/* Custom CSS - From Scratch */

.py-10 {
    padding-top: 6rem !important;
    padding-bottom: 6rem !important;
}

.pb-10 {
    padding-bottom: 6rem !important;
}

.pt-10 {
    padding-top: 6rem !important;
}

body {
    display: grid;
    height: auto;
    grid-template-rows: auto 1fr auto;
    text-rendering: optimizeLegibility;
    font-family: 'Maven Pro', 'Lato', Roboto, Verdana, system-ui, sans-serif;
    /* -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none; */
    word-break: break-word;
    transition: all .5s ease;
    transition-timing-function: ease-in;
}

body .allow-select {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    user-select: text !important;
}

body:not(.allow-select) {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    user-select: none !important;
}

p {
    text-align: justify;
    font-family: 'Maven Pro', verdana;
    font-weight: normal;
}

h1 {
    font-family: Lato, sans-serif;
}

/* Special Code to shift right by 2% for showing syntax of programs */
pre,
code {
    font-family: Hack, monospace;
}

.codefs {
    font-family: Hack, monospace;
}

/* .syntax pre,
.syntax code {
  padding-left: 2%;
} */

.syntax {
    background: white !important;
}

pre code {
    font-weight: normal;
}

code {
    font-weight: bold;
}

/** Header **/
header {
    /* background: #1e6c93; */
    /* padding: 2rem; */
    color: white;
}

header p {
    color: white;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: white;
}


/** Main Content **/
main article:first-child h2 {
    font-family: 'Maven Pro', Verdana, Geneva, Tahoma, sans-serif;
    font-size: xx-large;
    text-shadow: #999;
}

main article:first-child p {
    font-family: 'Maven Pro', Verdana, Geneva, Tahoma, sans-serif;
    line-height: 1.5;
}

main article:nth-child(odd) {
    background: white;
    place-items: center;
    text-align: justify;
    padding: 2rem;
}

/* Exception for auto generated menu id #agenmenu */
#agenmenu article {
    background-color: #f2f2f2;
}

main article:nth-child(even) {
    background: #f2f2f2;
    place-items: center;
    text-align: justify;
    padding: 2rem;
}

main li:nth-child(odd) {
    background: white;
    place-items: center;
    text-align: justify;
    padding: 30px;
}

main li:nth-child(even) {
    background: #f2f2f2;
    place-items: center;
    text-align: justify;
    padding: 30px;
}

main h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Maven Pro', Verdana, Geneva, Tahoma, sans-serif;
    /* color: #226e93; */
}

.no-color h1,
.no-color h2,
.no-color h3,
.no-color h4,
.no-color h5,
.no-color h6 {
    color: inherit;
    /* This will use the color of the parent element */
}


main article p,
main article ol,
main article li {
    font-family: 'Maven Pro', Verdana, Geneva, Tahoma, sans-serif;
    line-height: 1.5;
    color: #363b42;
    line-break: loose;
}

.syntax pre,
.syntax code {
    font-family: Hack, monospace;
}

main article p .output {
    font-family: Hack, monospace;
    color: auto;
}

.codeoutput {
    font-family: Hack, monospace;
    color: var(--bs-code-color);
}

.showquote {
    font-family: 'Gruppo', Verdana, sans-serif;
    font-weight: bold;
}

/** Footer **/
footer {
    /* background: rgba(192, 192, 192, 0.637); */
    padding: 1rem;
    text-align: center;
}

.btn-register:hover {
    transform: scale(1.05);
}

.nav-transparent {
    background-color: transparent !important;
    color: black !important;
    transition: all 0.4s ease;
}

.nav-transparent a {
    /* color: black !important; */
}

.nav-transparent .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' fill='black' viewBox='0 0 30 30'%3e%3cpath stroke-linecap='round' stroke='black' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.window-scrolled {
    background-color: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    /* color: black !important; */
}

.dropdown-menu {
    background-color: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
}

.window-scrolled a {
    /* color: black !important; */
}

.window-scrolled .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' fill='lightgray' viewBox='0 0 30 30'%3e%3cpath stroke-linecap='round' stroke='lightgray' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.dropdown-submenu {
    position: relative;
}

.dropdown-submenu .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -1px;
}

.animated-button {
    transition: transform 0.3s ease-in-out;
}

.animated-button:hover {
    transform: translateY(-3px);
    transition: all 0.2s;
}

/* Continuous gradient for the entire page */
body,
html {
    height: 100%;
    margin: 0;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: -1;
    background-image:
        linear-gradient(160deg, rgba(0, 51, 102, 0.55) 0%, rgba(205, 249, 230, 0.55), rgba(255, 249, 230, 0.70) 50%, rgba(205, 249, 230, 0.55), rgba(0, 51, 102, 0.55) 100%),
        linear-gradient(-160deg, rgba(0, 51, 102, 0.55) 0%, rgba(205, 249, 230, 0.55), rgba(255, 249, 230, 0.70) 50%, rgba(205, 249, 230, 0.55), rgba(0, 51, 102, 0.55) 100%);
    background-size: 200% 200%;
    background-attachment: fixed;
    animation: moveGradient 20s linear infinite alternate;
}

/* Keyframes for gradient background movement */
@keyframes moveGradient {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 100% 50%;
    }
}

/* General styles for content */
.section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

a,
a:visited {
    text-decoration: none !important;
}
.blur-text {
    filter: blur(7px);
    cursor: pointer;
}

.blur-text:hover::after {
    position: absolute;
    background-color: #000;
    color: #fff;
    padding: 5px;
    border-radius: 5px;
}


/* Custom Styles for the Popover */
.popover {
    border: 2px solid #ffdd57;
    /* Gold border */
    background-color: #1a1a1a;
    /* Dark background */
    color: #fff;
    /* White text color */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    /* Box shadow for a 3D effect */
}

.popover-header {
    background-color: #ffdd57;
    /* Gold background for header */
    color: #000;
    /* Black text color */
    font-weight: bold;
    border-bottom: 1px solid #eaeaea;
    /* Light border for the header bottom */
}

.popover-body {
    font-size: 14px;
    color: #fff;
    /* Adjust font size as necessary */
}

/* Custom Arrow color (match with popover background) */
.bs-popover-top > .arrow::after,
.bs-popover-auto[x-placement^="top"] > .arrow::after {
    border-top-color: #1a1a1a;
}

/* Adjustments for other arrow positions if needed */
/* .bs-popover-bottom, .bs-popover-left, .bs-popover-right */

/* .accordion-collapse {
    transition: max-height 0.5s ease;
    overflow: hidden;
}

.accordion-collapse.collapsing {
    height: auto;
    max-height: 0;    
} */

btn {
    animation: shiner 2s ease-in-out !important;
}

@keyframes shiner {
    0% {
        color: gold;
        opacity: 1;
    }

    50% {
        color: gold;
        text-shadow: 0 0 10px #fafafa, 0 0 20px #fafafa, 0 0 30px #fafafa, 0 0 40px #fafafa, 0 0 50px #fafafa, 0 0 60px #fafafa, 0 0 70px #fafafa;
        opacity: 1;
    }

    100% {
        color: #fafafa;
        opacity: 1;
    }
}