:root {
    --background-color: darkgrey;
    --hover-color: lime;
    --profile-border: rgb(95, 95, 95);
}

body {
    background-color: var(--background-color);
    padding: 0px;
    margin: 0px;
}



.press-start-2p-regular {
    font-family: "Press Start 2P", system-ui;
    font-weight: 400;
    font-style: normal;
}

.navbar a {
    color: white;
    font-family: Poppins, sans-serif;
    transition-duration: 0.4s;
    transform: scale(1);
    border: 3px solid darkgrey;
    border-radius: 12px;
}

.navbar {
    background-color: black;
    height: 80px;
    position: fixed;
    width: 100%;
    border-bottom-left-radius: 17px;
    border-bottom-right-radius: 17px;
    align-items: center;
    justify-content: center;
    display: flex;
    gap: 40px;
}

.navbar a:hover {
    transform: scale(1.1);
    transition-duration: 0.4s;
}

.title {
    font-family: 'Press Start 2P', cursive;
}

#cardsContainer {
    justify-content: center;
    flex-direction: row;
    flex-wrap: wrap;
    display: flex;
    gap: 30px;
    padding-top: 100px;
    flex-direction: 3(column);
    width: 50%;
    align-self: center;
    margin: 0 auto;
}








.card {
    height: auto;
    min-height: 300px;
    width: auto;
    background-color: rgb(78, 78, 78);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    transition-duration: 0.3s;
    text-align: center;
    border-radius: 17px;
    padding: 15px;
    box-sizing: border-box;
    transition-duration: 0.4s;
    transform: scale(1);
}

.card:hover {
    transition-duration: 0.4s;
    transform: scale(1.05);
}

.carddesc {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 15px;
    text-align: center;
    box-sizing: border-box;
}

.carddesc h2 {
    width: 100%;
    margin: 10px 0;
    font-family: "Press Start 2P", system-ui;
    word-wrap: break-word;
    overflow-wrap: break-word;
    font-size: 1.2em;
    line-height: 1.4;
}

.carddesc p {
    width: 100%;
    margin: 0;
    background-color: darkgrey;
    text-align: left;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    padding: 15px;
    box-sizing: border-box;
    line-height: 1.4;
    border-radius: 8px;
}

.cardhead {
    display: flex;
    left: 5%;
    border-radius: 17px;
    height: 90%;
    width: 90%;
    background-color: black;
}

.cardhead img {
    height: auto;
    width: auto;
}

.card-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.card-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 400px;
    padding: 10px;
}

.card-controls input {
    width: 100%;
    padding: 8px;
    border: 2px solid #333;
    border-radius: 4px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.card-update-button {
    padding: 8px 16px;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.card-update-button:hover {
    background-color: #444;
}

@keyframes loading {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


.loading-wrapper {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}


.loadingscreen {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 6px solid rgba(0, 0, 0, 0.1);
    border-top-color: #333;
    transform-origin: center center;
    animation: loading 2s linear infinite;
}









@media (max-width: 425px) {
    body {
        font-size: 12px;
        width: 100%;
    }

    .card {
        width: 90%;
        height: auto;
        min-height: 200px;
    }

    .card-controls {
        width: 90%;
    }

    .card {
        width: 90%;
        height: 200px;
        background-color: rgb(78, 78, 78);
        display: flex;
        justify-content: center;
        align-items: center;
        transition-duration: 0.3s;
        text-align: center;
        border-radius: 17px;
    }

    .carddesc {
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 8px;
    }

    .carddesc h2 {
        align-self: center;
        margin: 0;
        font-family: "Press Start 2P", system-ui;
    }

    .carddesc p {
        margin: 0;
        background-color: darkgrey;
        width: 95%;
        text-align: center;
    }

    .cardhead {
        display: flex;
        left: 5%;
        border-radius: 17px;
        height: 90%;
        width: 90%;
        background-color: black;
    }
}


@media (max-width: 125px) {
    body {
        font-size: 0px;
        image-resolution: 0px;
        width: 0%;
        height: 0%;
        background-color: white;
        display: none;

    }

}
