@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@300;400;500;600;700&display=swap');

html {
    margin: 0;
    padding: 0;
    min-width: 990px;
    font-size: 24px;
}

body {
    margin: 0;
    padding: 0 0 45px 0 !important;
    color: white;
    text-align: center;
    font-size: 24px;
    box-sizing: border-box;
    min-width: 990px;
    font-family: 'Open Sans', sans-serif;
    scroll-behavior: smooth;
    display: flow-root;
}


/** typgraphy **/
h1{
    font-family: 'Rajdhani', sans-serif;
    font-size: 2.5rem;
    margin: .5em 0;
    color: black;
}

#font1,
.font1 {
    font-size: 1.3rem;
}

#font2,
.font2 {
    font-size: 1.16rem;
}

#font3,
.font3 {
    font-size: 1.08rem;
}

.rajdhani {
    font-family: 'Rajdhani', sans-serif;
}



/** back button */

.back {
    display: block;
    position: absolute;
    top: 15px;
    left: 20px;
    font-size: 1.2rem;
    color: black;
    cursor: pointer;
    transition: color .3s;
}

.back:hover {
    color: #0093e9;
}

#previous {
    color: white;
    text-decoration: none;
    background: linear-gradient(to right, #065143, #32AD51, #6BC055);
    min-width: 120px;
    width: 10%;
    font-size: 24px;
    padding: 10px;
    left: 0;
    right: 0;
    margin: 0 auto;
    display: block;
    position: fixed;
    bottom: 0;
    z-index: 5;
    border-top-right-radius: 20px;
    border-top-left-radius: 20px;
    cursor: pointer;
    border: 3px solid #065143;
    border-bottom: none;
}

#previous::after{
    position: absolute;
    content: 'Wróć <';
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    font-size: 24px;
    padding: 10px;
    background: #6BC055;
    border-top-right-radius: 20px;
    border-top-left-radius: 20px;
    transition: opacity 0.5s ease-out;
    z-index: 5;
    opacity: 0;
}

#previous:hover{
    border-color: #fff;
}

#previous:hover::after {
    opacity: 1;
}



/** logout button */
#log_out {
    background: linear-gradient(to right, #FCAD00, #ff9100);
    position: fixed;
    left: 0;
    bottom: 0;
    border-top: 3px solid #fcad00;
    border-right: 3px solid #fcad00;
    box-sizing: border-box;
    border-top-right-radius: 10px;
    z-index: 5;
}

#log_out::after {
    position: absolute;
    content: '';
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to left, #FCAD00, #ff9100, #ff9100);
    transition: opacity 0.5s ease-out;
    z-index: 6;
    opacity: 0;
}

#log_out:hover::after {
    opacity: 1;
}

#log_out>a {
    display: block;
    width: 100%;
    height: 100%;
    padding: 10px 20px;
    position: relative;
    z-index: 7;
}

/** top bar */
#top_bar {
    background: linear-gradient(to right, #065143, #32AD51, #6BC055);
    border-bottom: 10px solid #6BC055;
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    color: white;
    padding: 10px 20px;
    font-size: 20px;
    z-index: 100;
}

#top_bar p {
    padding: 10px;
    margin: 0;
}

#top_bar.compact {
    padding: 12px 20px;
    border-bottom-width: 5px;
}

#top_bar.compact label{
    display: none;
}

#top_bar.compact p {
    padding: 5px 0;
    font-size: 18px !important;
}

#top_bar.compact #icon_container {
    gap: 10px;
    margin-right: 20px;
    font-size: 28px;
}

#top_bar.compact #icon_container * {
    margin: 0;
}

#points {
    color: #FCAD00;
    font-weight: 600;
}

#top_bar label {
    color: white;
    font-size: 16px;
    font-weight: 300;
    width: 100%;
    text-align: center;
    display: block;
}

.mg20:not(i) {
    margin: 0 20px;
}

#level {
    padding: 0 20px;
    border-left: 3px solid #6BC055;
}

#level:hover {
    cursor: pointer;
}

#icon_container {
    font-size: 36px;
    position: absolute;
    right: 0;
    display: flex;
}

#icon_container > * {
    display: block;
    margin-right: 1rem;
    transition: all .3s;
    cursor: pointer;
}

#icon_container > *:hover {
    color: #FCAD00;
}


#mail > i {
    position: relative;
}

#mail > i::after {
    content: attr(data-count);
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    right: 0;
    height: .9rem;
    width: .9rem;
    background-color: #ba0000;
    border-radius: 100%;
    font-size: .6rem;
    font-family: 'Open Sans', sans-serif;
    color: white !important;
    transform: translate(50%, -25%);
}

#mail > i.hide_circle::after {
    opacity: 0;
}

/** other things */
#background {
    width: 100%;
    height: 100vh;
    background-image: url("http://wiktorgolicz.pl/Aircraft%20Factory/testaf/img/diament.jpg");
    background-repeat: no-repeat;
    position: fixed;
    top: 0;
    z-index: -2;
}

#unlock {
    text-align: left;
}

#title {
    color: rgb(50, 173, 81);
    background-color: #fcad00;
    border-top: 3px solid black;
    border-bottom: 3px solid black;
    padding: 10px 0;
}

#title2 {
    color: #fcad00;
    background-color: rgb(50, 173, 81);
    border-top: 3px solid black;
    border-bottom: 3px solid black;
    padding: 10px 0;
}

.option {
    display: block;
    width: 150px;
    padding: 10px;
    float: left;
}

.option:hover {
    background-color: rgb(50, 173, 81);
}

#alert_container{
    position: fixed;
    right: 0;
    left: 0;
    top: 0;
    width: fit-content;
    margin: 0 auto;
    z-index: 200;
}

button {
    outline: none;
}

svg {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

.hide{
    display: none;
}