@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');
@font-face {
    font-family: babyschool;
    src: url(/img/BabySchool.woff);
}

html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    margin: 120px 0 0 0;
    font-size: 12px;
    background-color: #dfdfdf;
    top: 0;
    padding: 0;
    font-family: "babyschool";
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 240px); /* Resta el margin-top de 120px del body */
}

header {
    position: fixed;
    background: linear-gradient( 174deg, rgba(23, 33, 199, 1) 0%, rgba(192, 0, 255, 1) 100%);
    height: 100px;
    margin: 0;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 99;
}

header a,
header div {
    z-index: 2;
}

.header_burger {
    height: 60px;
    width: 43px;
    position: absolute;
    cursor: pointer;
    right: 20px;
    top: 36px;
}

.header_burger span {
    position: relative;
    display: block;
    width: 100%;
    height: 5px;
    margin-bottom: 6px;
    background-color: #fff;
    border-radius: 50px;
    box-shadow: 3px 3px 0px 1px #0000001a;
    opacity: 1;
    transform: rotate(0deg) translate(0px, 0px);
    transition: all ease 0.2s;
}

.header_burger_x span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 2px);
}

.header_burger_x span:nth-child(2) {
    transform: rotate(-45deg) translate(5px, 1px);
}

.header_burger_x span:nth-child(3) {
    opacity: 0;
}

#header_menu {
    position: fixed;
    right: 17px;
    top: 70px;
    background-color: #ff3370e6;
    z-index: 999;
    width: 200px;
    height: auto;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    text-align: center;
    box-shadow: 2px 2px 0 2px #0000000a;
    border: 1px solid #780ee7;
    border-radius: 6px;
    display: none;
}

#header_menu a {
    text-decoration: none;
    display: block;
    color: #fff;
    width: 100%;
    text-align: center;
    font-size: 20px;
    margin: 12px 0;
    /*font-weight: bold;*/
}

.body_contains {
    min-width: 100vw;
    min-height: 100vh;
    margin: 0;
    top: 0;
    padding: 0;
    position: relative;
}

footer {
    width: 100%;
    height: 50px;
    background-color: #333;
    margin-top: 20px;
    text-align: center;
    color: #a0a0a0;
    bottom: 0;
    line-height: 50px;
    position: relative;
    z-index: 0;
    margin-top: auto;
}

footer a,
footer span {
    text-decoration: none !important;
    color: #a0a0a0 !important;
    display: inline-block !important;
}

.big_header {
    height: 320px;
    position: relative;
    margin-top: -80px;
    overflow: hidden;
}

header .logo div {
    height: 100px;
    width: 252px;
    background-image: url(/img/head/logo1b.webp);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    position: absolute;
    margin: auto;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
}

.big_header .logo {
    top: 0;
    left: 0;
    width: 100%;
    position: absolute;
}

.big_header .logo div {
    height: 200px;
    width: 100%;
    background-image: url(/img/header_logo.webp);
    background-size: auto 75%;
    background-position: center;
}

#login,
#logged {
    display: none;
}

#logged {
    position: absolute;
    top: 0;
    right: 0;
}

#payments_header {
    margin-left: 12px;
    color: #f04cff;
    font-size: 15px;
    padding: 7px 10px;
    background-color: #fff;
    cursor: pointer;
    display: none;
    transition: all ease 0.2s;
    min-width: 165px;
    text-align: center;
    line-height: normal;
}

#payments_header #payments_header_money {
    /*font-weight: bold;*/
}

#header_options {
    position: absolute;
    top: 26px;
    right: 90px;
    color: #fff;
    font-size: 13px;
    height: 32px;
    line-height: 32px;
}

#header_options.change_lang_left {
    right: 50px;
}

#header_options span {
    cursor: pointer;
}

.selected_lang {
    /*font-weight: bold;*/
}

#login_menu {
    position: absolute;
    display: none;
    background-color: white;
    top: 65px;
    right: 5px;
    padding: 10px;
    box-shadow: 0 0 20px #0000004d;
    transition: all ease 0.2s;
}

#login_menu span {
    display: block;
    font-size: 16px;
    text-align: center;
    /*font-weight: bold;*/
    color: #444;
    padding: 5px;
}

#user_image {
    width: 40px;
    height: 40px;
    border-radius: 100%;
    background-size: cover;
    background-position: center;
    display: inline-block;
    border: 2px solid #fff;
    vertical-align: middle;
    margin: 16px 25px;
    position: relative;
    cursor: pointer;
}

#user_image::after {
    content: '▼';
    position: absolute;
    right: -20px;
    top: 15px;
    font-size: 15px;
    color: #fff;
    cursor: pointer;
}

.move_left,
.move_right {
    font-size: 35px;
    top: 44%;
    height: 120px;
    width: 39px;
    line-height: 120px;
    background: #ffffff;
    border-radius: 11px;
    color: #b3b3b3;
}

.move_right {
    right: -29px;
}

.move_left {
    left: -29px;
}

#alert_close {
    font-size: 14px;
    top: 10px;
    right: 10px;
}

#alert #alert_content {
    height: auto;
    width: auto;
    padding: 25px;
    text-align: left;
    background-color: #fff;
    box-shadow: 0 0 60px #0000001a;
    display: inline-block;
    position: relative;
    margin: 0;
    top: 50%;
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
}

#home_login {
    text-decoration: none;
}

#home_login_button {
    position: absolute;
    width: 400px;
    height: 50px;
    line-height: 50px;
    background-color: #ffffff;
    color: #7454ae;
    display: block;
    text-align: center;
    background-image: url(/img/twitch_glitch_purple.webp);
    background-size: auto 65%;
    background-repeat: no-repeat;
    background-position: 12px center;
    bottom: 50px;
    left: calc(50% - 200px);
    /*font-weight: bold;*/
    transition: all ease 0.2s;
}

.home_login_button_loading {
    width: 50px !important;
    left: calc(50% - 25px) !important;
    background-image: none !important;
    overflow: hidden !important;
    color: transparent !important;
    border-radius: 100% !important;
}

#loading_circle {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    animation: loading_circle_animation 1s ease-in-out infinite;
    display: none;
}

#create {
    font-size: 12px;
    background-color: #00c77d;
    display: table;
    margin: 10px auto;
    padding: 20px 20px 20px 70px;
    border-radius: 100px;
    color: #fffc;
    box-shadow: 0 7px 20px #0000005e;
    position: relative;
    cursor: pointer;
}

#create::after {
    content: '+';
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    background-color: #0009;
    border-radius: 100%;
    height: 35px;
    width: 35px;
    text-align: center;
    line-height: 35px;
    color: #fff;
    opacity: 0.4;
}

#loading_circle:after {
    content: '';
    display: block;
    width: 30px;
    height: 30px;
    margin: 8px;
    border-radius: 50%;
    border: 2px solid #ea00ff;
    border-top-color: rgb(234, 0, 255);
    border-right-color: rgb(234, 0, 255);
    border-bottom-color: rgb(234, 0, 255);
    border-left-color: rgb(234, 0, 255);
    border-color: #ea00ff transparent #ea00ff transparent;
    animation: loading_circle_animation 2s linear infinite;
}

.error_404 {
    font-size: 150px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-90%);
    color: gainsboro;
}

@media only screen and (min-device-width: 320px) and (max-device-width: 480px) and (-webkit-min-device-pixel-ratio: 2),
(max-width: 850px) {
    body {
        margin: 240px 0 0 0;
    }
    header {
        height: 220px;
    }
    header .logo div {
        height: 210px;
        width: 415px;
    }
    footer {
        height: 100px;
        font-size: 24px;
        line-height: 100px;
    }
    .header_burger {
        height: 89px;
        width: 95px;
        top: 76px;
    }
    .header_burger span {
        height: 11px;
        margin-bottom: 16px;
    }
    #header_menu {
        top: 220px;
        border-radius: 0;
        border: none;
        box-shadow: none;
        right: 0;
        width: 100%;
    }
    #header_menu a {
        display: inline-block;
        width: 24%;
        font-size: 50px;
        margin: 40px 0;
    }
    .header_burger_x span:nth-child(1) {
        transform: rotate(45deg) translate(25px, 14px);
    }
    .header_burger_x span:nth-child(2) {
        transform: rotate(-45deg) translate(4px, 4px)
    }
}