:root {
    --colors-background: #f0f0ff;
    --colors-background-semitransparent: #f0f0ffbf;
    --colors-font: black;
    --colors-accent: rgb(221, 221, 221);
    
    --border-radius-s: 5px;
    --border-radius-m: 10px;
    --border-radius-l: 15px;

    --colors-blue: #4158D0;

    --colors-gradient-one: #4158D0;
    --colors-gradient-two: #C850C0;
    --colors-gradient-three: #FFCC70;

    --invert: 0;

    --colors-border: #ddddddcb;

    --wave-color-1: #ffb12a;
    --wave-color-2: #C850C0;
}

[data-theme="dark"] {
    --colors-background: #1c1f20;
    --colors-background-semitransparent: #1c1f20bf;
    --colors-font: #e8e6e3;

    --invert: 1;

    --colors-gradient-one: rgb(38, 57, 155);
    --colors-gradient-two: rgb(144, 45, 137);
    --colors-gradient-three: rgb(137, 88, 0);

    --colors-border: #34383a;

    --wave-color-1: #ffcb70;
    --wave-color-2: #C850C0;
}

[data-theme="gold"]{
    --colors-background:#1c1f20;
    --colors-font:#e8e6e3;
    --colors-border:#34383a;
    
    --invert:1;
    --colors-blue:#efcc03;

    --colors-gradient-one: #FFD700;
    --colors-gradient-two: #D4AF37;
    --colors-gradient-three: #CFB53B;

    --wave-color-1: #ffcb70;
    --wave-color-2: #e0a00b;
}

*{
    font-family:"Raleway",sans-serif;
}

body{
    height:calc(100vh - 1em);
    background-color: var(--colors-blue);
    background-image: linear-gradient(43deg, var(--colors-gradient-one) 0%, var(--colors-gradient-two) 46%, var(--colors-gradient-three) 100%);
}

.loaderContainer{
    position:absolute;
    top:0;
    left:0;
    width:100vw;
    height:100vh;
    background-color:var(--colors-background-semitransparent);
    z-index:999999999;
}

.loader{
    position:absolute;

    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    background-color:var(--colors-background);
    border-radius:var(--border-radius-m);

    width:5rem;
    opacity:1;
    z-index:99999999999999999999;
}

.page{
    width:98vw;
    height:97vh;
    background-color:var(--colors-background);
    position:fixed;
    top:50%;
    left:50%;
    transform:translate(-50%, -50%);
    border-radius:var(--border-radius-s);
}

.header{
    position:relative;
    width:calc(100% - 4rem);
    margin-left:1rem;
    height:6vh;
    padding:1.5rem 1rem 1rem 1rem;
    border-bottom:2px solid var(--colors-border);
}

.adunit{
    background-color:var(--colors-border);
    color:var(--colors-font);
}

.adunit p{
    text-align:center;
    margin-top:0.5rem;
}

.largeText{
    float:left;
    margin:0;
    padding:0;
    font-size:48px;
    line-height:6vh;
    color:var(--colors-font);
    transform:filter 1px ease;
    width:fit-content;
}

.largeText:hover{
    background-image:url("https://easycite.net/img/textbg.jpg");
    color: transparent;
    -moz-background-clip: text;
    -webkit-background-clip: text;
    background-clip:text;
    cursor:pointer;
    animation: 10s linear bgscroll reverse infinite;
}

.nav-item{
    line-height:6vh;
    margin-left:1rem;
    font-size:20px;
    text-decoration:none;
    cursor:pointer;
    color:var(--colors-font);
    font-weight:bold;
    border-radius:var(--border-radius-m);
    padding:7px 12px 6px 12px;
    box-shadow:5px 5px 0px transparent;
    border:2px solid transparent;
}


.nav-item:hover{
    background-color: var(--colors-gradient-one);
    color:white;
    box-shadow:2px 2px 5px var(--colors-gradient-one);
}

.content{
    position:fixed;
    width:calc(100% - 2rem);
    margin-left:1rem;
    height:calc(100% - 6vh - 3rem);
    color:var(--colors-font);
    overflow-x:hidden;
}

iframe{
    position:absolute;
    bottom:0;
    left:50%;
    transform:translateX(-50%);
    z-index:99999999999999999999999999;
}

#js-content{
    width:100%;
    height:calc(100% - 65px);
    background-color:var(--colors-background);
    overflow-y:auto;
    overflow-x:hidden;
}

.ec-button{
    padding:10px 15px 10px 15px;
    background-color:var(--colors-blue);
    border-radius:var(--border-radius-m);
    text-decoration:none;
    color:white;
    font-weight: bold;
    cursor:pointer;
}

.ec-button:hover{
    box-shadow:2px 2px 5px var(--colors-gradient-one);
}

.notify{
    transition:all 0.5s ease;
    display:none;
    background-color:var(--colors-background);
    width:300px;
    height:75px;
    position:absolute;
    right:2rem;
    top:2rem;
    border:2px solid var(--colors-border);
    border-radius:var(--border-radius-m);
    padding:1rem;
    box-shadow: 5px 5px 15px 0px var(--colors-accent);
    color:var(--colors-font);
}

.notify img{
    float:left;
    height:calc(100% - 1.5rem);
    margin-top:0.75rem;
    margin-right:0.75rem;
    filter:invert(var(--invert));
}

.notify p{
    text-align:center;
    line-height:75px;
    position:absolute;
    left:calc(75px + 0.75rem);
    top:0;
}

.start-center{
    font-size:14px;
    text-align:center;
    margin:0.5rem;
    padding:0;
    padding-top:0.5rem;
}

.header-right{
    position:absolute;
    width:fit-content;
    height:fit-content;
    top:calc(50% - 0.25rem);
    transform:translateY(-50%);
    right:0.5rem;
}

/*========== Options sliders ==========*/

.switch {
    position: relative;
    display: inline-block;
    width: 58px;
    height: 32px;
    margin-top:0.75rem;
    margin-left:1rem;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
    
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #CCCCCC;
    -webkit-transition: .3s;
    transition: .3s ease-out;
}
    
.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 3px;
    bottom: 3px;
    background-color: #FFFFFF;
    -webkit-transition: .3s;
    transition: .3s ease-out;
}
    
input:checked + .slider {
    background-color: var(--colors-blue);
}
    
input:checked + .slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}
    
.slider {
    border-radius: 32px;
}
    
.slider:before {
    border-radius: 50%;
}

.slider-spacer{
    position:relative;
    transform:translateY(calc(17px));
    margin:0.25rem;
    width:24px;
    height:24px;
    filter:invert(var(--invert));
}

.darkmodeSlider:before{
    background-image:url('https://easycite.net/img/moon.svg');
    background-size:20px 20px;
    background-repeat:no-repeat;
    background-position:center;
}

.minimalizeSlider:before{
    background-image:url('https://easycite.net/img/minimal.svg');
    background-size:20px 20px;
    background-repeat:no-repeat;
    background-position:center;
}

.pinger{
    width:15px;
    height:15px;
    border-radius:8px;
    background-color:rgb(225, 0, 0);
    position:absolute;
    top:0;
    right:0;
    z-index:999;
}

/*Animation*/
@keyframes pulse-animation {
    0% {
      box-shadow: 0 0 0 0px rgba(0, 0, 0, 0.2);
    }
    100% {
      box-shadow: 0 0 0 20px rgba(0, 0, 0, 0);
    }
}

@keyframes bgscroll{
    0%{background-position:0px 0px;}
    100%{background-position:1447px 0px;}
}

/*Dropdown Information Elements*/
dfn {
    font-style: normal;
    position: relative;
  }

  dfn::after {
    content: attr(data-info);
    display: inline;
    position: absolute;
    top: 22px; left: 0;
    opacity: 0;
    width: 230px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5em;
    padding: 0.5em 0.8em;
    background: rgba(0,0,0,0.8);
    color: #fff;
    pointer-events: none; /* This prevents the box from apearing when hovered. */
    transition: opacity 250ms, top 250ms;
    border-radius:3px;
  }
  dfn::before {
    content: '';
    display: block;
    position: absolute;
    top: 12px; left: 20px;
    opacity: 0;
    width: 0; height: 0;
    border: solid transparent 5px;
    border-bottom-color: rgba(0,0,0,0.8);
    transition: opacity 250ms, top 250ms;
  }
  dfn:hover {z-index: 2;} /* Keeps the info boxes on top of other elements */
  dfn:hover::after,
  dfn:hover::before {opacity: 1;}
  dfn:hover::after {top: 30px;}
  dfn:hover::before {top: 20px;}

    /* width */
::-webkit-scrollbar {
    width: 10px;
  }
  
  /* Track */
  ::-webkit-scrollbar-track {
    background: var(--colors-background);
  }
  
  /* Handle */
  ::-webkit-scrollbar-thumb {
    background: var(--colors-accent);
  }
  
  /* Handle on hover */
  ::-webkit-scrollbar-thumb:hover {
    background: #555;
  }

  /*Anything under 750px*/
@media screen and (max-width: 600px) {
    .page{
        position:relative;
        height:100vh;
        width:100vw;
    }

    .largeText{
        font-size:40px;
        display:block;
        width:100%;
        text-align:center;
        background-image:url("https://easycite.net/img/textbg.jpg");
        color: transparent;
        -moz-background-clip: text;
        -webkit-background-clip: text;
        background-clip:text;
        text-transform: uppercase;
        font-weight:bold;
        filter:brightness(0.9);
        animation: 20s linear bgscroll reverse infinite;
    }

    .notify{
        width: calc(100vw - 4rem);
        top:auto;
        bottom:1rem;
        right:1rem;
        border-radius:0;
        box-shadow: 5px 5px 5px 0px var(--colors-accent);
    }

    #js-content{
        overflow-x:hidden;
        overflow-y:auto;
    }

    .header-right{
        display:none;
    }

    .headerContents{
        display:none;
    }
}