@font-face {
    font-family: 'Montserrat';
    src: url('fonts/Montserrat-Bold.ttf') format('truetype'); /* Adjust path as needed */
    font-weight: normal;  /* Use this font weight */
    font-style: normal;   /* Use this font style */
}

body {
    margin: 0px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    background-image: url("img/tree-bg.png");
    background-repeat: repeat;
    background-size: 33px 33px;
    animation: scroll-right-section 15s linear infinite;
}

@keyframes scroll-right-section {
    from {
        background-position: 0 0;
    }
    to {
        background-position: -33px 33px;
    }
}

#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 8vh;
    background-image: url("img/header.png");
    background-repeat: repeat;
    background-size: 14px 400px;
    display: flex;
    align-items: center;
    z-index: 1000;
    animation: scroll-header 2s linear infinite;
}

@keyframes scroll-header {
    from {
        background-position: 0 0;
    }
    to {
        background-position: -14px 0;
    }
}

.logo {
    width: 26vh;
    padding-left: 1vh;
}

.flex-container {
    display: flex;
    height: 100%;
    padding-top: 8vh;
}

.left-section {
    flex: 0.53;
    background-color: transparent;
    box-sizing: border-box;
    border-color: #000;
    align-items: center;
}

.right-section {
    flex: 1;
}

.container {
    transform: translateY(-13px);
    border-radius: 10px;
    margin-bottom: 10px;
    color: white;

    background: #3a3e42;
    border-radius: 16px;
}

.container img {
    max-height: 24px;
}

#gender-container input {
    width: 80px;
}

.container {
    display: none;
}

.zoom-container {
    display: inline-flex;
    align-items: right;
    position: fixed;
    right: 5px;
    bottom: -5px;
    width: auto !important;
    background: rgba(58, 62, 66, 0.7);
}

.zoom-container button {
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    cursor: pointer;
    height: 1% !important;
}

#zoom-in {
    border-top-right-radius: 0px;
    border-bottom-right-radius: 0px;
}

#zoom-out {
    border-top-left-radius: 0px;
    border-bottom-left-radius: 0px;
}

.zoom-container button span {
    font-size: 20px;
}

#zoom-level {
    font-size: 12px;
    padding: 7px;
    width: 30px !important;
    text-align: center;
}

#gender-container, #calculate-container{
    display: block;
}

.table, .center {
    width: 90%;
    border-collapse: collapse;
    margin: 0 auto;
    text-align: center;
    padding: 10px;
}

.table th, .table td {
    border: 1px solid #535a60;
    padding: 8px;
    text-align: center;
}

.table th {
    background-color: #262b2f;
}


.stats-table {
    width: 90%;
    border-collapse: collapse;
    margin: 0 auto;
}

caption {
    font-weight: bold;
    margin: 10px 0px 10px 0px;
}

.braces-table {
    width: 90%;
    border-collapse: collapse;
    margin: 0 auto;
}

.braces-table input {
    width: 30px;
}

.purchase-braces-table th {
    background-color: #5c1a1a;
}

.purchase-braces-table td {
    background-color: #330909;
}

.purchase-braces-table th {
    border: 1px solid #605353;
    padding: 8px;
    text-align: center;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none; /* Disable the default spinner */
    margin: 0;                /* Remove margin */
}

.separator {
    padding-bottom: 15px;
}

.pokemmo-button button {
    font-family: 'Montserrat', sans-serif;
    color: white;
    background: linear-gradient(to bottom, #535a60, #3c4247);
    width: 100%;
    height: 40px;
    border-radius: 10px;
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.5s ease;
    cursor: pointer;
}

.pokemmo-button button:hover {
    background: linear-gradient(to top, #535a60, #3c4247);
    transform: scale(1.03);
    box-shadow: 0px 4px 10px rgba(255, 255, 255, 0.3), 0px 0px 5px rgba(255, 255, 255, 0.5);
}

a {
    text-decoration: none;
}

.star-button {
    position: fixed;
    right: 10px;
}

.star-button button {
    height: 6vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-right: 15px;
    padding-left: 15px;
    gap: 10px;
    cursor: pointer;
}

input {
    text-align: center;
    height: 20px;

    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    color: white;

    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    border: none;
}

input[type=checkbox] {
    cursor: pointer;
    width: 16px;
    height: 16px;
}

.smaller-input {
    width: 50px !important;
}

.larger-input {
    width: 100px !important;
}

/*########################################################################*/

/* Trapezoid Container */
.trapezoid-container {
    display: flex;
    margin-left: 10px;
}

.trapezoid:not(.selected){
    cursor: pointer;
}

/* Trapezoid Styles */
.trapezoid, .selected {
    width: 80px;
    height: 50px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 10px;
}

.trapezoid::before, .selected::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    border-radius: 15px;
    transform: perspective(200px) rotateX(30deg);

    background: linear-gradient(to bottom, #535a60, #3c4247);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 18, 34, 0.5);
}

.selected::before {
    background: #3a3e42;
}

.trapezoid img {
    z-index: 1;
    padding-bottom: 5px;
    max-height: 24px;
    pointer-events: none;
}



/*########################################################################*/

/* Tree */

#tree {
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    position: absolute;
    padding-bottom: 100px;
    transform: scale(1);
    transform-origin: 0px 0px;
}

#tree ul {
    padding-top: 20px;
    position: relative;
    transition: all 0.5s;
    -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
}

#tree li {
    float: left;
    list-style-type: none;
    position: relative;
    padding: 20px 5px 0 5px;
    transition: all 0.5s;
    -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
}

/* Drawing the connecting lines */
#tree li::before, #tree li::after {
    content: '';
    position: absolute;
    top: 0;
    right: 50%;
    border-top: 2px solid white;
    width: 50%;
    height: 20px;
}

#tree li::after {
    right: auto;
    left: 50%;
    border-left: 2px solid white;
}

/* Connecting parent to child */
#tree li:only-child::after, #tree li:only-child::before {
    display: none;
}

#tree li:only-child {
    padding-top: 0;
}

#tree li:first-child::before, #tree li:last-child::after {
    border: 0 none;
}

#tree li:last-child::before {
    border-right: 2px solid white;
}

#tree li:first-child::after {
    border-left: 2px solid white;
}

#tree ul ul::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    border-left: 2px solid white;
    width: 0;
    height: 20px;
}

#tree li div {
    border: 3px solid white;
    text-decoration: none;
    color: #000;
    display: inline-block;
    transition: all 0.5s;
}

#tree li div:hover {
    background: #c8e4f8;
    border: 3px solid #94a0b4;
}

/*########################################################################*/

:root {
    --gradient-opacity: 0.8; /* Adjust this value as needed (0 to 1) */
    --percentage: 100%;
}

.branch-box {
    animation: to-greyscale 0.5s ease backwards;
}

.branch-check {
    position: absolute;
    transform: translate(-80%, -70%);
    z-index: 1;
}

.grayscale-filter {
    animation: to-greyscale 0.5s ease forwards;
}

@keyframes to-greyscale {
    from {
        filter: none;
    }
    to {
        filter: grayscale(100%) brightness(30%);
    }
}

.box {
    border: 1px solid #000;
    width: 45px;
    height: 45px;
    box-sizing: border-box;
    line-height: 45px;
    display: inline-block;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    color: white;
}

.box img, .gender img {
    max-width: 24px;
    transform: translateY(5px);
}

.gender {
    background: radial-gradient(circle, transparent 0%, rgba(254, 105, 250, var(--gradient-opacity)) var(--percentage));
}

.gender img {
    transform: translateY(7px);
}

.item {
    background: radial-gradient(circle, transparent 0%, rgba(37, 41, 45, var(--gradient-opacity)) var(--percentage));
}

.ivs {
    background: radial-gradient(circle, transparent 0%, rgb(255, 153, 51, var(--gradient-opacity)) var(--percentage));
}

.nature {
    background: radial-gradient(circle, transparent 0%, rgba(33, 218, 255, var(--gradient-opacity)) var(--percentage));
}

.hp {
    background: radial-gradient(circle, transparent 0%, rgba(0, 176, 80, var(--gradient-opacity)) var(--percentage));
}

.attack {
    background: radial-gradient(circle, transparent 0%, rgba(249, 2, 6, var(--gradient-opacity)) var(--percentage));
}

.defense {
    background: radial-gradient(circle, transparent 0%, rgba(198, 89, 17, var(--gradient-opacity)) var(--percentage));
}

.spatk {
    background: radial-gradient(circle, transparent 0%, rgba(122, 45, 149, var(--gradient-opacity)) var(--percentage));
}

.spdef {
    background: radial-gradient(circle, transparent 0%, rgba(255, 192, 0, var(--gradient-opacity)) var(--percentage));
}

.speed {
    background: radial-gradient(circle, transparent 0%, rgba(0, 112, 192, var(--gradient-opacity)) var(--percentage));
}