* {
    margin:0; padding: 0; box-sizing: border-box; border: 0,
}

body {
    background-color: goldenrod;
    font-family: verdana;
    background-image: url(../Images/topograph.jpg);
    min-height: 100vh; /* 100% of the viewport height*/
   background-size: 100%;
}

.box {
    border: 10px outset rgb(26, 26, 126);
    border-radius: 8px 3px;
    background-color: hsl(200 80 90% / .7);
    width: calc(100vw - 1.5in);
    height: calc(100vh - 1.5in);
    margin: .75in auto;/* centers a block */
    border-top: 6px outset rgb(3, 3, 59);
    border-bottom: 0px;
    border-left: 0px;
    box-shadow: 12px 10px 6px rgba(0, 0, 0, 0.3);
    position: relative;
}

div #c2a_buttons {
    padding: 10px;
    position: absolute; top:80px; left:80px;/*takes away the big long box */

}

div #c2a_buttons a {
    border: 2px solid black;
    padding: 12px 20px;
    margin-right: 20px;
}

div #c2a_buttons a:first-child {
    background-color: black;
    color: white;
    text-decoration: none;
}
div #c2a_buttons a:first-child:hover {
    background-color: brown;
    color: #000;
}
div #c2a_buttons a:last-child {
    background-color: white;
    color: black;
    text-decoration: none;
}
div #c2a_buttons a:last-child:hover {
    background-color: brown;
    color: #000;
}

.promo_section { /* parent container */
    
    width: 90%;
    margin: 150px auto 20px auto; /* top right bottom left */
    display: flex; /* makes a flexbox parent */
    flex-flow: row wrap; /* nice for phone display */
    justify-content: flex-start; /* puts space around jk this one puts it at start */
    gap: 12px 80px;

}


figure.product_card {
    flex: 0 0 300px;
    aspect-ratio: 1/1.3;
    border: 4px solid transparent;
    background-image: url(../Images/astronaut.jpg);
    background-size: 100%;
    background-position: center 0%;
    background-repeat: no-repeat; 
    position: relative;
    transition: all 400ms ease-in-out;
}


figure.product_card a {
    display: block;
    width: 100%;
    height: 100%;
}

figure.product_card figcaption {
    background-color: goldenrod;
    color: #222;
    width: 100%; height: 25%;
    position: absolute; bottom: 0px; left: 0px;
    
}



figure.product_card:hover {
    background-size:110%;
    border: 4px solid darkred;
    background-position: center -15%;/* makes it still grow but not moving downward*/
}

@keyframes slideIn {
    0% {
        right: -200px; /* Start position */
    }
    100% {
        right:-18px; /* End position */
    }
}

@keyframes flash {
    0% {
        opacity: 1; /* Fully visible */
    }
    25% {
        opacity: 0; /* Gone*/
    }
    50% {
        opacity: 1; /* visible again */
    }
    75% {
        opacity: 0; /* gone */
    }
    100% {
        opacity: 1; /* Back to fully visible */
    }
}


p.price { /* product price displayed in little red tab */
background-color: darkred;
color: #EEE;
padding: 4px 6px /* first num top-bottom, second is left-right */;
font-weight: bold;
position: absolute; top: 20px; right: -20px;
border-radius: 10px 16px 4px 8px;
right: -100px; /* Start position */
animation: slideIn 2.5s ease forwards, flash 1.5s; /* Apply animation -- have to seperate the two by commas to get them to work together */
box-shadow: 8px 6px 20px #4a4a4a;
/*animation: flash 1s;*/
}

p.price::after {/*tiny triangle -- psuedo element*/
content: ""; display: block;
width: 0px; height: 0px;
border-width: 12px;
border-style: solid;
border-color: transparent darkred transparent transparent;
position:absolute;
right:6px; bottom: -11px;
transform: rotate(45deg);



}
