* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #e2e8f0;
    min-height: 100vh;
}

/*Animation*/
@keyframes fadeIn {
    from {opacity:0; transform:translateY(10px);}
    to {opacity:1; transform:translateY(0);}
}

/*Classes*/
.card {
    max-width: 60vw;
    width: 60vw;
    min-height: 86vh;
    margin-top: 3vh;
    margin-bottom: 3vh;

    display: flex;
    flex-direction: column;

    background: rgba(30, 41, 59, 0.85);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    transition: all 0.2s ease;
}

.center-title-card {
    height: calc(8.6vh - 20px);
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 2.15vh;
}

.title-card {
    max-width: 90%;
    width: 90%;
    height: 100%;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    background: rgba(55, 82, 126, 0.85);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    transition: all 0.2s ease;
}

.content-columns {
    width: 100%;
    height: calc(72.25vh - 20px);
    display: flex;
}

.content-rows {
    height: calc(72.25vh - 20px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 50%;
    width: 50%;
}

.labels {
    max-width: 80%;
    width: 80%;
    height: calc((72.25vh - 20px)*10/100);
    margin-top: calc((72.25vh - 20px)*2/100);
    margin-bottom: calc((72.25vh - 20px)*2/100);

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    background: rgba(55, 82, 126, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    transition: all 0.2s ease;
}

.inputs {
    text-align: center;
    width: 100%;
    height: 100%;

    background: rgba(25, 42, 70, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    transition: all 0.2s ease;
}

.card:hover {
    transform: translateY(-3px);
}

.center-class {
    min-height: 92vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.top-bar {
    width: 100%;
    height: 8vh;
    display: flex;
    justify-content: center;
    align-items: center;

    padding: 12px 20px;
    background: rgba(30,41,59,0.9);
    backdrop-filter: blur(10px);

    border-bottom: 1px solid #334155
}

canvas {
    width: 100% !important;
    height: 100% !important;
}

/*Phone Scaling*/
@media (max-width: 768px) {
    .card {
        max-width: 80vw;
        width: 80vw;
        min-height: calc(86vh / 2);
        margin-top: calc(3vh / 2);
        margin-bottom: calc(3vh / 2);

        display: flex;
        flex-direction: column;

        background: rgba(30, 41, 59, 0.85);
        backdrop-filter: blur(10px);
        padding: 20px;
        border-radius: 16px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.4);
        transition: all 0.2s ease;
    }

    .center-title-card {
        height: calc((8.6vh - 20px)/2);
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin-bottom: 2.15vh;
    }

    .title-card {
        max-width: 90%;
        width: 90%;
        height: 100%;

        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;

        background: rgba(55, 82, 126, 0.85);
        backdrop-filter: blur(10px);
        padding: 20px;
        border-radius: 16px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.4);
        transition: all 0.2s ease;
    }

    .content-columns {
        width: 100%;
        height: calc((72.25vh - 20px)/2);
        display: flex;
    }

    .content-rows {
        height: calc((72.25vh - 20px)/2);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        max-width: 50%;
        width: 50%;
    }

    .labels {
        max-width: 80%;
        width: 80%;
        height: calc(((72.25vh - 20px)*10/100)/2);
        margin-top: calc(((72.25vh - 20px)*2/100)/2);
        margin-bottom: calc(((72.25vh - 20px)*2/100)/2);

        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;

        background: rgba(55, 82, 126, 0.85);
        backdrop-filter: blur(10px);
        border-radius: 8px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.4);
        transition: all 0.2s ease;
    }
}