body {
    color:#ffffff;
    text-shadow: 2px 3px rgba(75, 2, 2, 0.5);
    background-color: black;
    margin-top: 3%;
}
#home-body {
    background-image: url(https://t3.ftcdn.net/jpg/04/29/35/62/360_F_429356296_CVQ5LkC6Pl55kUNLqLisVKgTw9vjyif1.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: bottom;
    display: flex;
    flex-direction: column;
    text-align: center;
    border: 3px solid rgba(255, 0, 0, 0.576);
    border-radius: 15px;
    max-width: 75vw;
    min-height: 60vh;
    margin: 0 auto;
    font-size: larger;
}



#home-body p{
    text-transform: capitalize;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    padding: 10px;
    font-size: larger;
}

#wrk-name,
#ex-name {
    margin: 0 auto;
    width: fit-content;
    display: flex;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    color: #ffffff;
    text-decoration: none;
}



#add-work,
#add-exercise {
    margin-left: 12.5%;
    margin-bottom: 2%;
    text-align: center;
    padding: 5px;
}

#add-work a,
#add-exercise a {
    text-decoration: none;
}

#workouts-body,
#show-body {
    color: white;
    position: relative;
    background-image: url(https://t3.ftcdn.net/jpg/03/03/44/82/360_F_303448274_0N7iYpZ7B8Er3z7iDRa70zhxihGfjpNZ.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    margin: 0 auto;
    margin-bottom: 1%;
    max-height: 80vh;
    max-width: 85vw;
    border-radius: 15px;
    overflow: auto;
    overflow-x: hidden;
    font-size: larger;
   
}

#workouts-body::before,
#show-body::before
 {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 130vh;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 15px;
}

#workouts-body>*,
#show-body>* {
    position: relative;
    z-index: 1;
}

#workouts-body button,
#show-body button {
    background-color: darkred;
    border: none;
    padding: 5px 7.5px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.5s ease;
    display: flex;
    justify-content: center;
}


#workouts-body p,
#show-body p {
    text-align: center;
    border-radius: 15px;
    margin: auto;
    max-width: 30vw;
    /* background-color: rgba(130, 0, 0, 0.341); */
}

#workouts-body::-webkit-scrollbar,
#show-body::-webkit-scrollbar {
    display: none;
}



/* #workouts-body div {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    padding-top: 5px;
    padding-bottom: 10px;
    align-content: center;
} */

.workout-grid,
.show-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin: 0 auto;
    margin-top: 20px;
    max-width: 900px;
    margin-bottom: 15px;
}

.workout-card,
.show-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    padding: 15px;
    border: 3px solid rgba(255, 0, 0, 0.576);
    border-radius: 8px;
    background-color: #490202b0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.4s ease;
}


.workout-card:hover, 
.show-card:hover 
{
    transform: scale(1.05);
}

#notes {
    padding-top: 15px;
    font-size: 14px;
}

#icons {
    display: flex;
    justify-content: space-evenly;
    transition: box-shadow 0.4s ease;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

#icons button {
    font-size: 8px;
    border: none;
    background-color: #6c0101;
    transition: box-shadow 0.4s ease;
}

#icons button:hover {
    box-shadow: 0 4px 12px red;
    background-color: rgb(180, 5, 5);
}


#new {
    text-align: center;
}


#new-body,
#new-ex-body {
    background-color:rgba(99, 2, 2, 0.853);
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(231, 4, 4, 0.632);
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    /* align-items: center; */
}


#new-body input,
#new-body textarea, 
#new-ex-body input,
#new-ex-body textarea {
    margin: 0 auto;
    background-color: rgba(0, 0, 0, 0.75);
    width: 75%;
}

#new-body input:hover,
#new-body textarea:hover,
#new-body input:focus,
#new-body textarea:focus,
#new-ex-body input:hover,
#new-ex-body textarea:hover,
#new-ex-body input:focus,
#new-ex-body textarea:focus {
    box-shadow: 0 4px 12px red;
}

/* #new-body */

.form-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}


#new-btns {
    padding: .5em;
    display: flex;
    justify-content: space-between;
}

#new-btns button {
    transition: box-shadow 0.4s ease;
    background-color: rgba(0, 0, 0, 0.75);
}

#new-btns button:hover {
    box-shadow: 0 4px 12px red;
}

a {
    text-align: center;
    color: white;
    transition: color 0.4s ease;
}


#textarea {
    min-height: 20vh;
    color: white;
}

a:hover {
    color: red;
}

#back {
    border: transparent;
    background-color: transparent;
    transition: color 0.4s ease;
}

#back:hover {
    color: red;
}


button {
    color: #ffffff;
    background-color: darkred;
    border: none;
    padding: 5px 7.5px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.5s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}


button:hover {
    background-color: rgb(180, 5, 5);
}

nav i {
    box-shadow: 0 2px 3px 2px rgba(255, 0, 0, 0.576);
}



#username,
#password,
#confirmPassword {
    width: 40%;
}


input[type="text"],
input[type="number"],
textarea,
input[type="date"],
input[type="password"] {
    color: #ffffff;
    background-color: rgba(231, 4, 4, 0.332);
    width: 90%;
    padding: 5px;
    border: 2px solid #6c0101;
    border-radius: 8px;
    font-size: 16px;
    margin: 5px;
    transition: box-shadow 0.5s ease;
}

input[type="text"]:focus,
input[type="number"]:focus,
textarea:focus,
input[type="date"]:focus,
input[type="password"]:focus {
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.576);
    background-color: rgba(231, 4, 4, 0.332);
    margin: 5px;
    /* border-color: #000000; */
    outline: none;
}

textarea {
    min-height: 120px;
}


label {
    text-shadow: 0 2px 6px rgba(0, 0, 0, 1);
    font-size: larger;
    color: #ffffff;
    margin-bottom: 5px;
    font-weight: bold;
    display: block;
    padding: 10px;
}

/* select {
    padding: 10px;
} */

#cat-field {
    justify-content: center;
    display: flex;
    gap: 15%;
}

#cat-field select {
    margin-top: 12.5px;
    border-radius: 15px;
    background-color: rgba(0, 0, 0, 0.75);
    border: 2px solid #6c0101;
    color: white;
    font-weight: bold;
    height: fit-content;
    padding: 2px;
}

input[type="text"]:hover,
input[type="number"]:hover,
textarea:hover,
input[type="date"]:hover,
input[type="password"]:hover {
    /* border-color: #ffffff; */
    box-shadow: 0 4px 12px rgba(250, 0, 0, 0.576);
}


.alert {
    color: red;
    padding: 15px;
    padding-top: 50px;
    border-radius: 5px;
    /* margin-bottom: 20px; */
    font-family: Arial, sans-serif;
    font-size: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
.calendar-header,
.calendar-grid {
    max-width: 90%;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    margin-left: 5%;
}

.calendar-header div {
    background: rgba(231, 4, 4, 0.332);
  font-weight: bold;
  padding: 10px 0;
  border: 1px solid rgba(0, 0, 0, 0.5);
}

.calendar-grid {
  gap: 1px;
  background-color: transparent;
  overflow: visible;
}

.calendar-cell {
  background: rgba(231, 4, 4, 0.432);
  height: 95px;
  padding: 5px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  text-align: left;
  overflow: visible;
  z-index: 0;
}


.calendar-cell.empty {
  background: transparent;
  border: none;
}

.date-number {
  font-size: 12px;
  font-weight: bold;
  position: absolute;
  top: 5px;
  right: 5px;
  color: #ffffff;
}

.workout-entry {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-top: 10px;
    background: #e80303;
    padding: 4px 6px;
    font-size: 13px;
    border-radius: 4px;
    overflow: hidden;
    white-space: normal;
    text-overflow: ellipsis;
    max-height: 40px;
    line-height: 1.2;
    z-index: 1;
    transition: all 0.4s ease;
}

.workout-entry a {
    text-decoration: none;
}

.workout-entry a:hover {
    color: white;
    /* font-weight: bold; */
    /* text-shadow: 2px 3px rgba(246, 244, 244, 0.486); */
}

.workout-entry:hover #icons {
    opacity: 1;
    pointer-events: auto;
}


.calendar-cell.today {
    border: 2px solid rgb(180, 5, 5);
    background-color: #2f0303;
}

.entry-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    transition: all 0.4s ease;
}

.entry-wrapper:hover .workout-entry {
    max-height: none;
    padding: 5px;
    font-size: 14px;
    background-color: #e80303;
    box-shadow: 0 4px 12px rgba(43, 1, 1, 0.6);
    z-index: 2;
    /* font-weight: bold; */
    color: #ffffff;
    transform: scale(1.2);
}


#work-top {
    display: flex;
    justify-content: space-between;
    /* align-items: center; */
}

#work-top button {
    height: fit-content;
    margin-top: 2%;
}

#date-selector {
    margin-right: 7.5%;
    display: flex;
    align-items: center;
}

input[type="date"]::-webkit-inner-spin-button,
input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1); /* makes the calendar icon white */
  cursor: pointer;
}

/* Responsive Design */
@media (max-width: 768px) {
    .show-grid {
        max-width: 500px;
    }
    #new-body {
        max-width: 90vw;
        padding: 15px;
    }

    button {
        padding: 10px 15px;
        font-size: 14px;
    }

    input[type="text"],
    input[type="number"],
    input[type="date"],
    textarea {
        font-size: 14px;
    }

    #icons button {
        font-size: 6px;
    }

}
#info {
    text-align: center;
    text-shadow: 0 4px 10px red;
}

#user-name {
    margin: 0 auto;
    height: 10vh;
    width: 80vw;
    background: linear-gradient(to bottom right, rgb(69, 1, 1) 45%, rgb(190, 6, 15));
    border-radius: 15px;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#users {
    margin: 0 auto;
    width: 80vw;
    height: 35vh;
    border-radius: 15px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-content: center;
    gap: 10px;
}

#users-card {
    position: relative;
    margin: 20px auto;
    height: 20px;
    width: 175px;
    border-collapse: collapse;
    border-radius: 15px;
    overflow: hidden;
    background-color: black;
    color: white;
    box-shadow: none;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    text-align: center;
    font-size: 14px;
    cursor: crosshair;
}

#users-card th {
    background: linear-gradient(to bottom right, rgb(69, 1, 1) 45%, rgb(190, 6, 15));
    /* background-color: #a70303; */
    padding: 5px;
    font-size: 16px;
    font-weight: bold;
    border-bottom: 1px solid #6c0101;
}

#users-card td {
    background-color: #1a1a1a;
    padding: 10px;
}

#users-card:hover {
    box-shadow: 0 0 20px 5px #e80303;
    transform: scale(1.07); 
}