/* Defining color variables which are used throughout the design of the web page */
:root {
    --light-purple: rgba(232, 102, 236, 0.6);
    --dark-purple: rgba(232, 102, 236, 0.3);
}

/* Common traits throughout the page */
body {
    background-color: #21201E;
    color: var(--light-purple);
    font-size: 16px;
}

/* Centering the text in the header */
header {
    text-align: center;
}

/* Making the page responsive and adding margin */
main {
    display: flex;
    flex-wrap: wrap;
    margin: 5% 2% 2%;
    flex-direction: row;
}

/* styling the borders of the card and applying flex properties */
.card {
    border: dashed white 2px;
    min-width: 400px;
    flex-basis: 400px;
    flex-grow: 1;
    flex-shrink: 1;
    margin: 25px 12px;
}
/* Moving the title up and making it appear above the border */
.card-title {
    background-color: #21201E;
    bottom: 19px;
    border: solid white 3px;
    border-radius: 5px;
    font-size: 175%;
    margin: auto;
    position: relative;
    text-align: center ;
    width: 80%;
    z-index: 1;
}
/* Styling the text explaining the code */
.card-text{
    line-height: 1.5;
    padding: 2% 0 2% 40px;
}
/* styling the background of the code box */
.card-code {
    background: linear-gradient(var(--dark-purple) 0%, var(--light-purple) 100%);
    border-radius: 5px;
    color: white;
    margin-top: 0;
    margin-right: 16px;
    margin-left: 16px;
    margin-bottom: 16px;
    transition: all 0.5s ease-in-out;
    user-select: all;  /* allows user to copy/paste as they want to */
}
/* Adding functionality to hovering over the code/titles of the cards */
.card-code:hover, .card-title:hover {
    box-shadow: 0px 0px 10px 8px var(--dark-purple), inset 0px 0px 2px 2px white;

}

footer {
    font-size: 110%;
    text-align: center;
}
