.container, .card-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 1fr);
}

p, h3 {
    color: #000000;
}

.btn {
    background-color: #0ab1fc;
    border-radius: 200px;
    border: none;
    color: white;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
}

.btn-container {
    margin-top: auto;
}

.btn button:hover {
    background-color: #2046c5;
}

body {
    min-height: 150vh;
    /*background: #212534;*/
    background: aliceblue;
    align-items: center;
    /*padding-top: 2rem;*/
    padding-bottom: 2rem;
    box-sizing: border-box;
}


.img {
    width: 35vh;
    height: 35vh;
}


.card-img {
    margin-top: -160px;
    margin-right: -45px;
    padding-right: 135px;
}

.card-back img {
    margin-top: 90px;
}

.card {
    max-width: 300px; /* Adjust the width as needed */
    padding: 20px;
    background-color: #ffffff;
    border: 1px solid #ddd;
    /*display: flex;*/
    /*align-items: center;*/
    /*justify-content: space-between;*/
    text-align: center;
    gap: 10px;
    /*height: 100%;*/
}

.navbar {
    display: flex; /* Use Flexbox for layout */
    align-items: center; /* Vertically center items */
    background-color: #333;
    padding: 0 10px; /* Add padding for better spacing */
}

.navbar a, .navbar h3 {
    font-size: 16px;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    color: white;
}

.navbar a:hover {
    background-color: red;
}

.user {
    margin-left: auto; /* Push the .user section to the right */
    display: flex;
    align-items: center;
    gap: 10px; /* Add space between username and logout link */
}

.user h2 {
    margin: 0;
    font-size: 16px;
    color: white;
}

.user a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    padding: 5px 10px;
    background-color: red; /* Initial background color */
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease; /* Smooth transition for hover effects */
}

.user a:hover {
    background-color: darkred; /* Change background color on hover */
    transform: scale(1.1); /* Slightly enlarge the button */
}

.dropdown {
    float: left;
    overflow: hidden;
}

.dropdown .dropbtn {
    font-size: 16px;
    border: none;
    outline: none;
    color: white;
    padding: 14px 16px;
    background-color: inherit;
    font-family: inherit;
    margin: 0;
}

.navbar a:hover, .dropdown:hover .dropbtn {
    background-color: red;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: rgba(0, 0, 0, 0.7); /* Match navbar color */
    min-width: 200px; /* Adjust width to make it less thin */
    padding: 10px 0; /* Add vertical padding to reduce height */
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.5);
    z-index: 1;
    margin-top: 0; /* Align directly under dropdown button */
    border-radius: 5px; /* Optional: Rounded corners */
}

.dropdown-content a {
    color: white; /* Text color */
    text-decoration: none;
    padding: 12px 16px; /* Increase padding for better click area */
    display: block; /* Ensure links are block-level for easy clicking */
}

.dropdown:hover .dropdown-content {
    display: block;
}

:root {
    --card-height: 60vh;
    --card-width: calc(var(--card-height) / 1.5);
}

#card {
    grid-column: 1/1;
    /*grid-row: 1/1;*/
    max-width: 100%;
    margin: auto;
    height: var(--card-height);
    width: var(--card-width);
    padding: 3px;
    position: relative;
    border-radius: 8px;
    justify-content: center;
    align-items: center;
    text-align: center;
    display: flex;
    align-content: space-evenly;
    font-size: 1.5em;
    color: rgb(88 199 250 / 0%);
    cursor: pointer;
    font-family: math;
    transition: transform 1500ms;
    transform-style: preserve-3d;
}

.product-details {
    width: 100%;
    height: 150px;
    padding: 1vh;
    display: flex;
    flex-direction: column; /* Align content vertically */
    justify-content: flex-start; /* Align content at the top */
    gap: 10px;
    box-sizing: border-box; /* Include padding in width/height */
    overflow-y: auto; /* Enable vertical scrolling for overflowing content */
    scrollbar-width: none; /* hides scrollbar */
    scrollbar-color: #ccc transparent; /* scrollbar color, transparant is not visible */
}

.product-details::-webkit-scrollbar {
    display: none;
}

.product-details:hover {
    background-color: rgba(0, 0, 0, 0.1);
}


