* {
    box-sizing: border-box;
}
.cards {
    width:100%;
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;

    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-gap: 2vw;
    transition: all 2s ease;
    align-items: start;
}

.card {
    background-color: rgb(192, 165, 133);
    color: rgb(53, 36, 1);
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 15px;
    margin-bottom: 3rem;
    box-shadow: 0 0 10px #5f5e5e;
    position: relative;
    padding-bottom: 7em;
}

.card img {
    width:100%;
}

h2 {
    color: beige;
    font-size: 1.7rem;
    text-align: center;
    margin-bottom: 3px;
    margin-top: 5rem;
    padding-left: 10%;
    padding-right: 10%;
}
.date {
    position: absolute;
    bottom: 0;
    z-index: 1;
    font-weight: bold;
    text-align: right;
    color: whitesmoke;
    background-color: rgb(53, 36, 1);
    padding: .75em 1em;
    width: 100%;
    display: block;
    unicode-bidi: isolate;
    line-height: .6;
}

a:hover {
    color:rgb(239, 247, 251);
}

@media screen and (max-width:700px) {
    .cards {
        grid-template-columns: 1fr;
        width: 100%;
        padding: 1rem;
    }
    .card {
        margin-bottom: 5rem;
   
    }
}

img:hover {
    filter:sepia(1) contrast(.8);
    transition: 1.5s;
}

button {
    display: block;
   
    position: absolute;
    left:50%;
    bottom:2em;
    transform: translateX(-50%);
    padding: .5rem .5rem .7rem;
    background-color: rgb(156, 120, 67);
    color: rgb(246, 223, 194);
    font-weight: 700;
    font-size: 1rem;
    border: none;
    cursor: pointer;
   
    box-shadow: 0 6px 6px 0;
}

.read:hover {
    background-color: rgb(246, 223, 194);
    color: rgb(156, 120, 67);
    transition: .7s ease-in-out;
}

.read:active {
    background-color: whitesmoke;
    color:black;
    box-shadow: 0 3px;
    transition: .3s ease-in-out;
}

.read:focus {
    border: 1vw;
    border-color: blueviolet;
    transition: .7s;
}

/* Exercise 14 -------*/

.icon {
    width: 100px;
    aspect-ratio: 1/1;
    border-radius: 50%;
    background: whitesmoke;
    border: 5px solid rgb(192, 165, 133);
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    transition: all .75s ease;
    z-index: 4;
}

.portrait {
    position: relative;
    z-index: 1;
    margin-bottom: 2em;
}

.al-icon {
    background: #fff url(links/al-gettysburg-icon.svg) no-repeat;
    background-size: 70%;
    background-position: 50% 120%; 
}

.mlk-icon {
    background: #fff url(links/mlk-justice-icon.svg) no-repeat;
    background-size: 70%;
    background-position: 50% 120%; 
}

.egw-icon {
    background: #fff url(links/ew-bible-icon.svg) no-repeat;
    background-size: 70%;
    background-position: 50% 120%; 
}

.icon:hover {
    bottom: -30px;
}

.al-icon:hover {
    background-position: 50% 15px;
}

.mlk-icon:hover {
    background-position: 50% 15px;
}

.egw-icon:hover {
    background-position: 50% 15px;
}

.read::after {
    content:"";
        width:1.25em;
        height:1.25em;
        position: absolute;
        right:-1.25em;
        top:50%;
        transform:translateY(-50%) rotate(180deg);
        background: url(links/arrow.svg);
        background-size:100%;
}


.read.rotate::after {
    transform: translateY(-50%) rotate(0deg); /* Adjust the rotation angle as needed */

}


.card:nth-child(2) {
    background-color: rgb(219, 199, 177);
}

.card:nth-child(2) .icon {
    border: 5px solid rgb(219, 199, 177);
}

blockquote:nth-of-type(2) {
    margin-top: 3rem;
}
.hide {
    opacity:0;
    position: absolute;
}
.show {
    opacity:100%;
    position: relative;
}

