/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Black+Ops+One&family=Roboto:wght@300;400;500;700&display=swap');

.object-details {
    margin: 4rem auto;
    max-width: 90%;
}

/* Both the info and stat blocks */
.info-stats-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

/* Object name and detail headers */
.object-title {
    font-family: "Black Ops One", sans-serif;
    font-size: 2rem;
    color: crimson;
    /* background-color: #1b1b1b; */
    border: 2px inset #1b1b1b;
    position: relative;
    overflow: hidden;
    padding: 1rem;
    border-radius: 10px;
    transition: color 0.4s ease-in-out;
}

.object-title::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: crimson;
    z-index: -1;
    transition: transform 0.4s ease-in-out;
}

.object-title:hover::before {
    transform: translateX(100%);
}

.object-title:hover {
   /*  background-color: crimson; */
    color: silver;
}

/* Info and Stat blocks */
.info-container, .stats-container {
    background: #1b1b1b;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    flex: 1 1 300px;
}

.info-container h3, .stats-container h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #ffd700;
    font-family: "Black Ops One", sans-serif;
}

.info-container ul, .stats-container ul {
    list-style: none;
    padding: 0;
    margin: 0;
    color: orange;
}

.info-container li, .stats-container li {
    margin-bottom: 0.5rem;
}

/* Object's lenghty dossier description */
.lore-container {
    background: #1b1b1b;
    color: #ccc;
    border: 1px solid #333;
    padding: 2rem;
    margin: 2rem auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    font-style: italic;
}

/* Cards list for child objects */
.card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem auto;
    padding: 0;
}

/* Inidivdual cards */
.card {
    background: #1b1b1b;
    border: 1px solid #333;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    padding: 1rem;
    width: 250px;
    transition: transform 0.4s, box-shadow 0.4s, background 0.4s ease-in-out;
    text-align: center;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.8);
    background: darkmagenta;
    color: silver;
}

.card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #ffd700;
}

.card p {
    color: #ccc;
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

/* Add/Remove */

/* Edit and Delete buttons */

.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: transform 0.4s, background 0.4s ease-in-out;
    background: crimson;
}

.btn:hover {
    transform: scale(1.05);
    background: #ffd700;
    color: #000;
}

.card-actions {
    display: flex;
    justify-content: space-around;
    margin-top: 1rem;
}

.card-actions a img {
    max-height: 5vh;
    max-width: 5vw;
}

/* Mobile */
@media screen and (max-width: 800px) {
    .info-stats-container {
        flex-direction: column;
        gap: 1.5rem;
    }

    .card {
        width: 90%;
    }
}
