:root {
    --backgroundColor :#0e0e10;
    --fontColor : #eaeaea;
    --buttonColor : #00bfff;
    --divColor : #272822;
    ---fontColor2: #9ca3af;
    --border: #2c2f33;
    --font-style: "Young Serif", serif;
}

* {
    padding: 0;
    margin: 0;
    scroll-behavior: smooth;
    box-sizing: border-box;
}

body{
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
    font-family: "Young Serif", serif;
    overflow: hidden;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    background-color: var(--backgroundColor);
    background: linear-gradient(260deg, var(--backgroundColor), darkblue);
    color: var(--fontColor);
    flex-direction: column;

    padding: 0.2rem;
}

.inputs{ 
    padding: 2rem;
    display: flex;
    flex-direction: column;
    max-width: 100vw;
    max-height: 95dvh;
    overflow: hidden;
    overflow-y: scroll;
    gap: 3rem;
    
}

.inputs::-webkit-scrollbar{
    display: none;
}

.subContainer{
    /* border: 1px solid var(--border);  */
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem;
    background: #27282263;
    backdrop-filter: blur(100px);
    color: var(---fontColor2);
    opacity: 0;
}

.subContaineranimate {
    animation: subcontain 1.5s ease forwards;
    opacity: 1;
}

@keyframes subcontain {
    0%{opacity: 0; transform: translateY(100px);}
    100%{opacity: 1; transform: translateY(0);}
}

.pageslide{
    opacity: 0;
}

.animatepageslide{
    animation: animatehome 0.5s ease-in forwards 0.5s;
}

@keyframes animatehome {
    0%{opacity: 0.5; transform: scale(0.9);}
    100%{opacity: 1; transform: scale(1);}
}

h1 {
    font-size: 5rem;
    margin: 0;
    margin-bottom: 1rem;
    text-align: center;
    font-family: "Young Serif", serif;
}

h2{
    font-size: 3rem;
}

label { 
    font-size: 1.5rem;
}

input {
    background-color: transparent;
    color: var(--fontColor);
    border: 0;
    border-bottom: 1px solid var(--fontColor);
    padding-left: 1rem;
    width: 70vw;
    transition: 0.3s ease;
    outline: none;
    font-size: 1.5rem;
}

.scoreSubject{
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 80vw;
}

.scoreSubject i{
    font-size: 1.5rem;
}

.inputbtngap{
    display: flex;
    gap: 2%;
}

input:focus {
    /* box-shadow: 0 0 6px rgba(0, 191, 255, 0.2); */
    outline: 1px ;
    border-bottom: 1px solid 0 0 6px rgba(0, 191, 255, 0.2);
}

.add {
    font-size: 2rem;
    padding: 0.2rem 1rem;
    background-color: transparent;
    border: 1px solid var(--buttonColor);
    border-radius: 5px;
    align-self: center;
    width: fit-content;
    color: var(--buttonColor);
    cursor: pointer;
    font-size: 1rem;
}

.add:hover{
    color: var(--buttonColor);
}

#name{
    text-transform: capitalize !important;
}

#subjects, #scores{
    width: 30vw;
    padding: 1rem;
}

.capital{
    text-transform: capitalize;
}

.outputContainer{
    border: 0;
    box-shadow: 0px 0px 4px rgba(0, 191, 255, 0.2);
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    gap: 1rem;
}

.border{
    border-bottom: 1px solid rgba(90, 88, 88, 0.795);
}

.StudentscoreOutput{
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 1rem;
}

.tableData{
    border: 1px solid #0e0e10;
}

.tableUi{
    background: transparent;
    backdrop-filter: blur(40px);
    width: 70dvw;
    height: 70dvh;
    max-height: 100dvh;
    border-radius: 10px;
    flex-wrap: nowrap;
}

.tableUi th{
    height: fit-content;
    border: 1px solid var(---fontColor2); 
    width: 100%;
    justify-content: center;
    display: flex;  
}

.tableUi tr{
    display: flex;
    height: 5%;
}

.tableUi td{
    padding: 1rem;
    width: 100%;
    border: 1px solid var(---fontColor2);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.opacityOfbtn{
    opacity: 0;
    visibility: hidden;
    height: 0;
    width: 0;
    size: 0;
    transition: all 0.5s linear;
}

#popupContainer{
    display: none;
}

#popupContainer.popupContainer{
    background: rgba(0, 0, 0, 0.5);
    z-index: 10;
    height: 100vh;
    overflow: hidden;
    display: flex;
    width: 100vw;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#popup{
    visibility: hidden;
    height: 20dvh;
}

.popup{
    position: absolute;
    z-index: 8;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 10rem;
    margin: 1rem;
    display: flex;
    justify-content: center;
    flex-direction: column;
    animation: scale 1s ease;
    background-color: #000000;
    border-radius: 5px;
}

@keyframes scale {
    0%{transform: scale(0.1) translate(-300%);}
    100%{transform: scale(1) translate(-50%,-50%);}
}


.popremove{
    text-align: right;
    position: absolute;
    right: 0%;
    top: 0%;
    color: white;
    background-color: transparent;    
    height: fit-content;
    font-size: 2rem;
    width: fit-content;
    padding: 0.2rem 0.5rem;
    border: 0;
    transition: 1s ease;
    font-weight: 100;
    cursor: pointer;
}

.popremove:hover{
    background-color: rgb(255, 0, 0);
    color: var(--backgroundColor);
}

.popupcontent{
    width: 10vw;
    border: none;
    background-color: transparent;
    outline: none;
    border-radius: 5px;
    border-bottom: 1px solid var(--buttonColor);
}

.popupcontent:hover{
    outline: none;
    border: none;
    border-bottom: 1px solid var(--divColor);
}


#editsubsco{
    visibility: hidden;
    display: flex;
    height: 40vh;
    width: 70vw;
    justify-content: center;
    flex-direction: column;
    padding: 1rem;
}

#editsubsco input{
    width: 50vw;
}

.slideininfo{
    opacity: 0;
    padding: 1rem;
    font-size: 1rem;
    border-radius: 10px;
    position: fixed;
    right: 5%;
    bottom: 5%;
    z-index: 5;
    display: flex;
    background-color: var(--border);
}

.popslide{
    animation: popslide 1.5s ease forwards;
    opacity: 1;
    display: block;
}

@keyframes popslide {
    0%{opacity: 0; transform: translate(100px);}
    100%{opacity: 1; transform: translate(0); display: block;}
}

.popslideout {
    animation: slideout 2s ease forwards;
    opacity: 0;
}

@keyframes slideout {
    0%{opacity: 1; transform: translate(0);}
    100%{opacity: 0; transform: translate(100px);}
}

footer{
    color: var(--buttonColor);
}

footer small{
    letter-spacing: 5px;
}

@media (max-width : 768px) {
    body{
        padding: 0.5rem ;
        width: 100dvw;
    }

    h1{
        font-size: 1.5rem;
        margin: 0;
        padding: 0;
    }

    h2{
        font-size: 1rem;
    }

    .inputs{
        margin-left: 1rem;
        margin-right: 1rem;
        padding: 2rem 0.5rem;
        gap: 1rem;
        width: fit-content;
        height: 95dvh;
    }

    label{
        font-size: 0.7rem;
    }

    input{
        font-size: 0.7rem;
        padding: 0.5rem;  
        height: fit-content;
    }

    .subContainer{
        padding: 1rem;
    }

    .add{
        font-size: 1rem;
    }

    .tableUi{
        width: 80vw;
    }

    .scoreSubject{
        flex-direction: column;
        gap: 1rem;

    }

    .scoreSubject > .subContainer{
        max-width: 100vw;
    }

    .section{
        max-width: 50vw;
    }

    .scoreSubject i{
        font-size: 0.5rem;
    }

    #subjects, #scores{
        padding: 0.5rem;
        max-width: 80vw;
    }

    .outputContainer{
        margin-top: 2rem;
        padding: 1rem;
    }

    .slideininfo{
        font-size: 0.7rem;
    }
    
    .popup{
        border-radius: 10px;
        width: 50dvw;
        padding: 1rem;
    }

    .enterpop{
        font-size: 0.7rem;
    }
}

@media print{
    @page {
        size: A4;
        margin: 20mm;
    }

    body *{
        display: none;
    }

    footer{
        display: block;
    }

    .noprint{
        display: none;
    }

    .outputContainer{
        border: none;
        box-shadow: none;
        font-weight: 500;
    }

    .outputContainer , .outputContainer *{
        display: block;
        background-color: white;
        color: black;
        margin: 0;
        height: fit-content;
    }

    .tableUi{
        border-collapse: collapse;
        width: 100%;
    }

    .tableUi th, .tableUi td{
        border: 1px solid black;
        text-align: left;
    }

    .tableUi th {
        background: gray;
    }

    .tableUi tr{
        page-break-inside: avoid;
    }

    .add {
        display: none;
        visibility: none;
    }
}