@import url("https://fonts.googleapis.com/css2?family=Baloo+Paaji+2:wght@400;500&display=swap");
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css");
@keyframes pulse-animation {
  0% {
    box-shadow: 0 0 0 0px rgba(0, 0, 0, 0.3);
  }
  100% {
    box-shadow: 0 0 0 10px rgba(0, 0, 0, 0);
  }
}
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.pulse-element {
  background-color: #3498db;
  border-radius: 10px;
  padding: 10px;
  color: white;
  animation: pulse 2s infinite;
}
body {
    font-family: 'Segoe UI', sans-serif;
    color: #333;
    margin: 0;
    padding: 20px;
    background-color: rgba(221,221,221,0.5);
}

h1 {
    text-align: center;
    color: #000;
    margin-bottom: 30px;
    font-size: 4rem;
    width:100%;
}
i{
    font-size: 32px;
    position:relative;
    float:right;
    margin-top:0.9em;
    cursor: cursor;
    color: rgba(46,37,133);
}

.pulse {
  animation: pulse-animation 2s infinite;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 100px;
    max-width: 800px;
    margin: auto;
    align-self: center;
    justify-self: center;
}

.item {
    background: #fff;
    border: 2px solid rgba(000,114,178);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s;
    box-shadow: 0 2px 5px rgba(46, 37, 133, 0.05);
}

.item:hover {
    transform: scale(1.05);
    border-color: rgba(46,37,133);
}

.item img,
.item .icon {
    font-size: 40px;
    margin-bottom: 5px;
    width: 256px;
    vertical-align: center;
}

.details {
    display: none;
    background: #ffffff;
    border: 3px solid rgba(000,114,178);;
    border-radius: 12px;
    padding: 25px;
    margin-top: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.details.active {
    display: block;
    opacity: 1;
    transform: scale(1);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 22px;
    color: #d32f2f;
    cursor: pointer;
}

h2 {
    margin-top: 0;
    font-size: 0.8rem;
}

ul {
    padding-left: 20px;
    font-size: 0.8rem;
}

.extra-info {
    margin-top: 15px;
    background-color: #EAF5FF;
    padding: 10px 15px;
    border-left: 5px solid rgba(000,114,178);
    border-radius: 5px;
}

.label {
    font-weight: bold;
}

.cta-fixed {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #2e7d32;
    color: white;
    text-align: center;
    padding: 15px 10px;
    box-shadow: 0 -3px 8px rgba(0, 0, 0, 0.2);
    z-index: 999;
}

.cta-fixed p {
    margin: 0 0 8px 0;
    font-size: 1rem;
    font-weight: 500;
}

.cta-fixed a {
    display: inline-block;
    background: #ffffff;
    color: #2e7d32;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 8px;
    transition: background 0.3s, color 0.3s;
}

.cta-fixed a:hover {
    background: #1b5e20;
    color: #fff;
}

.grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 10px;
    font-size: 1.0em;
}

.grid-child-label {
    text-align: left;
}

.grid-child-value {
    text-align: right;
}

.compare {
    transform: scale(2.0);
}

.container {
    display: grid;
    grid-template-columns: 250px 250px 250px;
    grid-gap: 30px;
    justify-content: center;
    align-items: top;
    min-height:76vh; 
    height:76vh; 
    max-height:76vh;
    font-family: 'Baloo Paaji 2', cursive;
}

.card {
    height: 10rem;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card_name {
    margin-top: 20px;
    font-size: 1.5em;
    text-align: center;
}

.card_image {
    height: 128px;
    width: 128px;
    border-radius: 50%;
    border: 5px solid rgba(000,114,178);
    margin-top: 15px;
    box-shadow: 0 10px 50px rgba(150, 204, 251, 1);
}

.draw-border {
    box-shadow: inset 0 0 0 2px #AAD7FF;
    color: rgba(000,114,178);
    -webkit-transition: color 0.25s 0.0833333333s;
    transition: color 0.25s 0.0833333333s;
    position: relative;
}

.draw-border::before,
.draw-border::after {
    border: 0 solid transparent;
    box-sizing: border-box;
    content: '';
    pointer-events: none;
    position: absolute;
    width: 0rem;
    height: 0;
    bottom: 0;
    right: 0;
}

.draw-border::before {
    border-bottom-width: 2px;
    border-left-width: 2px;
}

.draw-border::after {
    border-top-width: 2px;
    border-right-width: 2px;
}

.draw-border:hover {
    color: rgba(46,37,133);
}

.draw-border:hover::before,
.draw-border:hover::after {
    border-color: rgba(000,114,178);
    -webkit-transition: border-color 0s, width 0.25s, height 0.25s;
    transition: border-color 0s, width 0.25s, height 0.25s;
    width: 100%;
    height: 100%;
}

.draw-border:hover::before {
    -webkit-transition-delay: 0s, 0s, 0.25s;
    transition-delay: 0s, 0s, 0.25s;
}

.draw-border:hover::after {
    -webkit-transition-delay: 0s, 0.25s, 0s;
    transition-delay: 0s, 0.25s, 0s;
}

.btn {
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1.0;
    font: 200 1.2rem 'Roboto Slab', sans-serif;
    padding: 0.75em 1em;
    letter-spacing: 0.05rem;
    margin: 1em;
    width: 10rem;
}

.btn:focus {
    outline: 2px dotted #AAD7FF;
}

.purchase_details {
    position: relative; 
    float:right;
    padding-right:40px;
}

.rate {
    color: orange;
}