/* =========================================================
   SHAKESPEARE CARD STYLING
   ========================================================= */


/* Main Shakespeare card */
.char-details {
    background-color: #fff;
    color: #5e3163;

    width: 100%;
    height: 100%;

    border: 4px solid white;
    border-radius: 5px;

    box-shadow: 5px 5px 15px #000;

    text-align: left;

    box-sizing: border-box;

    /* Makes the card contents form a vertical layout */
    display: flex;
    flex-direction: column;
}


/* Character name */
.character-name {
    font-size: 20px;

    text-align: center;

    padding: 18px 10px;

    background-color: var(--med-orange);
    color: #fff;

    flex-shrink: 0;
}


/* Play title */
.play-title {
    display: flex;

    align-items: center;
    justify-content: center;

    padding: 10px 20px;

    gap: 10px;

    flex-shrink: 0;
}


/* Category icon inside play title */
.play-title .category {
    display: flex;

    align-items: center;
    justify-content: center;
}


/* Category image */
.play-title .category img {
    width: 45px;
    height: 45px;

    object-fit: contain;
}


/* Play link */
.play-title .play {
    color: #5e3163;

    text-decoration: none;

    font-size: 18px;
    font-weight: bold;
}


/* Play link hover */
.play-title .play:hover {
    color: var(--med-orange);
}


/* Character icon row */
.char-details .icon-row {
    display: flex;

    padding: 15px 20px;

    align-items: center;
    justify-content: center;

    gap: 10px;

    flex-shrink: 0;
}


/* Character icon links */
.char-details .icon-row a {
    width: 55px;
    height: 55px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: 1px solid #5E3163;
    border-radius: 5px;

    background-color: #fff;

    box-sizing: border-box;
}


/* Character icon images */
.char-details .icon-row a img {
    width: 100%;
    height: 100%;

    padding: 5px;

    object-fit: contain;

    border: none;
    border-radius: 5px;

    box-sizing: border-box;
}


/* Character icon hover */
.char-details .icon-row a:hover {
    background-color: var(--light-orange-2);
}


/* Description */
.char-details .description {
    padding: 5px 25px 10px;

    color: #555;

    font-size: 16px;

    line-height: 1.25;

    /* Uses remaining space */
    flex: 1;

    /* Stops a long description pushing
       the tools out of the card */
    overflow: hidden;
}


/* Character trait tags */
.trait-tags {
    display: flex;

    margin: 0;
    padding: 0 25px 8px;

    gap: 15px;

    flex-shrink: 0;
}


/* Individual trait buttons */
.trait-tags a {
    flex: 1;

    padding: 8px;
    margin: 0;

    background-color: var(--med-orange);

    border: 2px solid #5E3163;
    border-radius: 5px;

    color: var(--white);

    text-decoration: none;

    font-size: 105%;

    text-align: center;
}


/* Trait hover */
.trait-tags a:hover {
    background-color: var(--light-orange-2);

    color: #fff;

    font-weight: bold;
}


/* Tools at the bottom of the Shakespeare card */
.char-details .tools {
    margin-top: auto;

    flex-shrink: 0;
}