html, body {margin: 0; height: 100%; overflow: hidden}

html {
        font-family: "Dongle", sans-serif;
        font-weight: 400;
        font-style: normal;
        -webkit-tap-highlight-color:  rgba(255, 255, 255, 0); 
}

button, p, h1, h2, h3, h4, h5, h6 {
        font-family: "Dongle", sans-serif;
        font-weight: 400;
        font-style: normal;
}
.body_background {
    animation-name: background_move;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-duration: 4s;
    background-color: #ffffff;
    background-size: 100px 100px;
    transition: all 1s;
    background-image:
    linear-gradient(to right, rgb(242, 232, 212) 2px, transparent 2px),
    linear-gradient(to bottom, rgb(242, 232, 212) 2px, transparent 2px);
}

.body_background.profile {
    background-color: #fff2f2;
    background-image:
        linear-gradient(to right, rgb(255, 210, 227) 2px, transparent 2px),
        linear-gradient(to bottom, rgb(255, 210, 227) 2px, transparent 2px);
}

.body_background.draw {
    background-color: #f3fff2;
    background-image:
        linear-gradient(to right, rgb(164, 240, 177) 2px, transparent 2px),
        linear-gradient(to bottom, rgb(164, 240, 177) 2px, transparent 2px);
}

.body_background.play {
    background-color: #ffffff;
    background-image:
    linear-gradient(to right, rgb(242, 232, 212) 2px, transparent 2px),
    linear-gradient(to bottom, rgb(242, 232, 212) 2px, transparent 2px);
}

.body_background.deck {
    background-color: #f2feff;
    background-image:
        linear-gradient(to right, rgb(171, 255, 243) 2px, transparent 2px),
        linear-gradient(to bottom, rgb(171, 255, 243) 2px, transparent 2px);
}

.body_background.store {
    background-color: #fffcdc;
    background-image:
        linear-gradient(to right, rgb(252, 221, 135) 2px, transparent 2px),
        linear-gradient(to bottom, rgb(252, 221, 135) 2px, transparent 2px);
}

@keyframes background_move {
    0% {background-position: 0px 0px; }
    100% {background-position: 100px 100px;}
}

@keyframes background_move_landscape {
    0% {background-position: 0px 0px; }
    100% {background-position: 52px 52px;}
}

@media only screen and (orientation: landscape){
    .body_background {
        animation-name: background_move_landscape;
        background-size: 52px 52px;
    }
}

/* FOOTER */

.main_footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 9%;
    background-color: #f1f1f1;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    box-shadow: 0px 0px 16px rgba(0, 0, 0, 0.2) ;
}

@media only screen and (orientation: landscape){
    .main_footer {
        position: fixed;
        bottom: 20px;
        left: 35%;
        width: 30%;
        height: 6%;
        border-radius: 1vh;
        box-shadow: 0px 5px 5px rgba(0, 0, 0, 0.2) ;
    }
}

.footer_content {
    width: 90%;
    height: 100%;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

@media only screen and (orientation: landscape){
    .footer_content {
        width: 100%;
        height: 90%;
        display: flex;
        justify-content: space-evenly;
        align-items: center;
    }
}

.footer_btn {
    border-radius: 25%;
    height: 75%;
    background-color: #b6b6b6;
    border: none;
    display: flex;
    aspect-ratio: 1;
    cursor: pointer;
    align-items: center;
    box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.2);
}

.footer_btn:hover {
    margin-bottom: 12px;
}

.btn_text {
    margin: 0;
}

.footer_btn.profile {
    background-color: #FFC5C5;
}
.footer_btn.draw {
    background-color: #c2ffc2;
}
.footer_btn.play {
    background-color: #BBCBFF;
}
.footer_btn.deck {
    background-color: #D7F5FF;
}
.footer_btn.store {
    background-color: #FFE98A;
}


/* CARD MODEL */


.card_container {
    width: 100%;
    height: 91%;
    display: flex;
    bottom: 9%;
    align-items: center;
    justify-content: center;
    user-select: none;
}

.card_btn {
    display: none;
}


@media only screen and (orientation: landscape){
    .card_btn {
        user-select: none;
        display: block;
        width: 100px;
        height: 45px;
        font-size: 32px;
        background-color: #FFE98A;
        border-radius: 1.5vh;
        margin: 8px;
        text-align: center;
        line-height: 50px;
        box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
        cursor: pointer;
    }

    .card_btn:hover {
        margin-bottom: 14px;
        border-style: solid;
        border-color: #bea740;
        border-width: 0px 0px 6px 0px;
        transition: all 0.5s;
    }
    .card_btn:active {
        transition: none;
        margin-bottom: 8px;
        border-style: none;
        box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2), 0px 4px 0px rgba(143, 76, 0, 0.2)inset;
    }
}


.card {
    background-color: white;
    min-height: 80%;
    max-height: 80%;
    max-width: 90%;
    box-shadow: 0px 4px 20px rgba(0,0,0,0.3);
    aspect-ratio: 0.6 / 1;
    border-radius: 1.5vh;
    cursor: pointer;
    user-select: none;
}

.content_card {
    position: relative;
    height: 100%;
    width: 100%;
}

.card.back {
    max-width: 90%;
    animation-name: turn;
    animation-duration: 1s;
    animation-timing-function: cubic-bezier(1, 0, 0, 1);
    user-select: none;
}

.card .back .card_img{
    animation: wiggle 2.5s infinite;
}

@keyframes wiggle {
    0% { transform: rotate(0deg); }
   80% { transform: rotate(0deg); }
   85% { transform: rotate(5deg); }
   95% { transform: rotate(-5deg); }
  100% { transform: rotate(0deg); }
}

.card.right {
    animation-name: to_right;
    animation-duration: 1s;
    animation-timing-function: ease;
}

.card.left {
    animation-name: to_left;
    animation-duration: 1s;
    animation-timing-function: ease;
}

@keyframes turn {
    0% {max-width: 90%; transform: scale(1,1);}
    50% {max-width: 90%; transform: scale(0.02,0.6);}
    100% {max-width: 90%; transform: scale(1,1);}
}

@keyframes to_right {
    0% {max-width: 90%;}
    60% {
        transform: translateX(120vw);
    }
    61%{
        transform: scale(0%);
    }
}

@keyframes to_left {
    0% {max-width: 90%;}
    60% {
        transform: translateX(-120vw);
    }
    61%{
        transform: scale(0%);
    }
}

/* CARD BACKGROUNDS */

.card.flower {
    background-size: 200px 200px;
    background-image: url("patterns/pattern.svg");
}



@media only screen and (orientation: landscape){
 
}


/* CARD INSIDE */


.card_header {
    margin: 0px;
    display: block;
    width: 100%;
    text-indent: 3%;
    line-height: 4.5vh;
    background-color: #BBCBFF;
    text-overflow: clip;
    color: white;
    padding-top: 0.7vh;
    font-size: 4.2vh;
    border-radius: 1.5vh 1.5vh 0px 0px;
    text-wrap-mode: nowrap;
}

.header_close{
    position: absolute;
    right: 2vh;
}

.card_header.profile {
    background-color: #fa6990;
}

.card_header.new_card {
    background-color: #7ad36c;
}

.card_header.deck {
    background-color: #4850e5;
}


/* CARD CONTENT */
.card_content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    height: 92%;
    width: 100%;
}

.card_content .txt_front {
    font-size: 4.5vh;
    display: flex;
    height: 30%;
    text-align: center;
    align-items: center;
    justify-content: center;
    white-space: normal;
    line-height: 2.5vh;
}
.card_content .txt_back {
    font-size: 4.5vh;
    display: flex;
    height: 30%;
    text-align: center;
    align-items: center;
    justify-content: center;
    white-space: normal;
    line-height: 2.5vh;
}

.card_img {
    max-width: 76%;
    border: #bac0f7;
    border-radius: 1vh;
    border-width: 0.5vh;
    border-style: solid;
}

.card_content .unit_category {
    width: 15%;
    border-radius: 0.2vh 0.2vh 1.6vh 1.6vh;
    top: -0.5vh;
    right: 2vw;
    aspect-ratio: 1 / 1;
    display: flex;
    position: absolute;
    align-items: center;
    justify-content: center;
}

.card_content .unit_category_img {
    width: 80%;
    height: 80%;
}

/* LOGIN PAGE */


.login_form {
    display: flex;
    position: static;
    height: 90%;
    width: 100%;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}

.login_form img {
    max-width: 86%;
}

.login_form h2 {
    display: block;
    margin: 0;
    padding: 0;
    overflow: hidden;
    white-space: nowrap;
    text-wrap-mode: nowrap;
    text-overflow: hidden;
}

.card_input {
    all: unset;
    background-color: #f5f5f5;
    text-indent: 4%;
    border-radius: 1.5vh;
    width: 80%;
    height:8%;
    font-size: 3vh;
    display: flex;
    align-items: center;
}

.card_button {
    all: unset;
    color: white;
    text-indent: 4%;
    border-radius: 1.5vh;
    display: block;
    width: 80%;
    height:8%;
    font-size: 3vh;
}



.card_button.profile {
    background-color: #fa6990;
}

.card_button.new_card {
    background-color: #7ad36c;
}

.card_button.play {
    background-color: #4850e5;
}

.form_new_card {
    display: flex;
    position: static;
    height: 84%;
    width: 100%;
    margin-top: 2vh;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}

.form_new_card img {
    max-width: 76%;
}

.img_new_card {
    border: #7ad36c;
    border-radius: 1vh;
    border-width: 0.5vh;
    border-style: solid;
    aspect-ratio: 1/1;
    width: 78%;
}

select {
    background-image: url(imgs/draw.svg);
}

.category_selector {
    background-color: white;
    width: 100%;
    height: 100%;
    position: absolute;
    display: flex;
    place-items: center;
    align-items: center;
    justify-content: start;
    flex-direction: column;
    border-radius: 1.5vh;
}

.category_selector_container {
    display: flex;
    position: static;
    height: 84%;
    width: 100%;
    margin-top: 2vh;
    flex-direction: column;
    justify-content: start;
    align-items: center;
}

.category_unit {
    color: white;
    margin-top: 1vh;
    width: 80%;
    height: 5.2vh;
    display: flex;
    background-color: #5e5e5e;
    justify-items: center;
    align-items: center;
    border-radius: 1.5vh;
}
.category_unit img {
    height: 75%;
    aspect-ratio: 1/1;
    margin-left: 1vh;
}
.category_unit span {
    font-size: 3vh;
    text-indent: 1vh;
}

.cat_select {
    transition: 0.1s all linear;
    appearance: none;
    margin: 0;
    height: 3vh;
    width: 3vh;
    border: none;
    background-color: white;
    border-radius: 50%;
    position: absolute;
    right: 14%;
}
.cat_select:checked {
  border: 0.6vh solid #000000;
}

.hidden {
    display: none;
}

.card_input_categories {
    all: unset;
    background-color: #f5f5f5;
    text-indent: 4%;
    border-radius: 1.5vh;
    width: 80%;
    height:8%;
    font-size: 3vh;
    display: flex;
    
    align-items: center;
    justify-content: space-between;
}

.card_category {
    width: 80%;
    height: 100%;
    display: flex;
    align-items: center;
    border-radius: 1.5vh 0vh 0vh 1.5vh;
    
}

.card_category img{
    height: 80%;
    margin-left: 1vh;
    display: block;
}
.card_category .input_label{
    display: block;
    width: 80%;
    color: #707070;
}

.small_input_btn {
    color: white;
    text-indent: 0;
    line-height: 5.4vh;
    text-align: center;
    width: 20%;
    height: 100%;
    background-color: #7ad36c;
    border-radius: 0 1.5vh 1.5vh 0;
}

.color_container {
    width: 80%;
    height:8%;
    display: flex;
    border-radius: 1.5vh;
    background-color: #f0f0f0;
    align-items: center;
    justify-content: space-between;
}

.color_pick {
    height: 100%;
    aspect-ratio: 1 / 1;
    background-color: #5e5e5e;
    border-radius: 1.5vh;
}

.color_pick.checked{
    box-sizing: border-box;
    border: 0.5vh solid rgba(255, 255, 255, 0.4);
}

.color_pick.profile{    background-color: #fa6990;}
.color_pick.draw{    background-color: #7ad36c;}
.color_pick.play{    background-color: #01c6b1;}
.color_pick.deck{    background-color: #4850e5;}
.color_pick.store{    background-color: #ffae00;}

.icon_container {
    width: 80%;
    height:16%;
    display: flex;
    gap: 2%;
    border-radius: 1.5vh;
    background-color: #f0f0f0;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.icon_pick {
    height: 46%;
    aspect-ratio: 1 / 1;
    background-color: #5e5e5e;
    border-radius: 1.5vh;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border: 0.5vh solid rgba(255, 255, 255, 0); 
}

.icon_pick img{
    height: 90%;
    min-width: 90%;
}

.icon_pick.checked {
    box-sizing: border-box;
    border: 0.5vh solid rgba(255, 255, 255, 0.5); 
}


.count {
    position: fixed;
    top: 10px;
}

.icon_pick.profile{    background-color: #fa6990;}
.icon_pick.draw{    background-color: #7ad36c;}
.icon_pick.play{    background-color: #01c6b1;}
.icon_pick.deck{    background-color: #4850e5;}
.icon_pick.store{    background-color: #ffae00;}
.icon_pick.dark{    background-color: #3b3b3b;}



.art_mode {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    flex-direction: column;
}

.art_mode canvas {
    background-color: white;
    border: none;
    box-shadow: rgba(0, 0, 0, 0.7) 0px 5px 15px;
    margin-bottom: 1vh;
}

.art_mode .tools_container {
    display: flex;
    width: 100%;
    height: 7vh;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

@media only screen and (orientation: landscape){
 .art_mode .tools_container {
    width: 50vh;
}
}

.yellow{
    background-color: #ffe400 !important;
}
.cyan{
    background-color: #01c6b1 !important;
}
.black{
    background-color: #000000 !important;
}
.save {
    background-color: #7ad36c !important;
}
.art_mode .tool {
    box-shadow: rgba(0, 0, 0, 0.7) 0px 2px 8px;
    display: inline-block;
    margin: 0 0.5vh;
    height: 90%;
    max-width: 16%;
    aspect-ratio: 1 / 1;
    background-color: #f0f0f0;
    border-radius: 1.2vh;
}

.selected_tool {
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    border-style: solid;
    border-color: rgba(250, 105, 144, 0.8);
    border-width: 0.4vh;
}
.selected_color {
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    border-style: solid;
    border-color: rgba(250, 105, 144, 0.8);
    border-width: 0.4vh;
}

.discard_drawing {
    width: 15%;
    height: 100%;
    background-color: #fa6990;
}

.mode_container {
    width: 100%;
    display: flex;
    justify-items: center;
    flex-direction: column;
    align-items: center;
}

.mode_btn_container {
    width: 80%;
    display: flex;
    justify-content: space-between;
    margin-bottom: 2vh;
}

.mode_button {
    all: unset;
    color: white;
    text-indent: 4%;
    border-radius: 1.5vh;
    display: block;
    width: 80%;
    height:5vh;
    font-size: 3vh;
}
.mode_button.play{
    background-color: #4850e5;
}

.mode_btn {
    text-align: center;
    background-color: #d4d4d4;
    height: 5vh;
    width: 31%;
    display: inline-block;
    border-radius: 1.5vh;
    font-size: 3vh;
    line-height: 5vh;
}
.mode_btn.active {
    box-shadow:inset 0px 0px 0px 0.4vh #4850e5;
}

.range_container {
    width: 80%;
    display: flex;
    justify-content: center;
    margin-bottom: 0.2vh;
    flex-wrap: wrap;
}
.range_container span {
    display: block;
}
.mode_range {
  -webkit-appearance: none;  /* Override default CSS styles */
  appearance: none;
  width: 100%; /* Full-width */
  height: 3vh; /* Specified height */
  border-radius: 1.5vh;
  background: #d4d4d4; /* Grey background */
  outline: none; /* Remove outline */
  -webkit-transition: .2s; /* 0.2 seconds transition on hover */
  transition: opacity .2s;
}
.mode_range::-webkit-slider-thumb {
  -webkit-appearance: none; /* Override default look */
  appearance: none;
  width: 3vh; /* Set a specific slider handle width */
  height: 4vh; /* Slider handle height */
  background: #4850e5; /* Green background */
  border-radius: 1vh;
  cursor: pointer; /* Cursor on hover */
}

.notification {
    height: 6vh;
    aspect-ratio: 0.62 / 0.1;
    background-color: #e6e6e6;
    box-shadow: 0px 0px 12px rgba(0, 0, 0, 0.6);
    position: fixed;
    top: 0px;
    z-index: 4;
    border-radius: 0vh 0vh 2.5vh 2.5vh;
    animation-name: in-out;
    animation-duration: 4s;
    animation-fill-mode: forwards;
    animation-timing-function: ease-in-out;
}
@keyframes in-out {
  0% {transform: translate(0vh,-6vh);}
  12% {transform: translate(0vh,0vh);}
  88% {transform: translate(0vh,0vh);}
  100% {transform: translate(0vh,-8vh);}
}