/* ---- font import ---- */

@import url('https://fonts.googleapis.com/css2?family=Red+Hat+Display:ital,wght@0,300..900;1,300..900&display=swap');

/* ---- reset amd def settings ---- */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #f3f4fb;

    font-family: 'Red Hat Display', sans-serif;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;

    min-height: 100vh;
    padding: 5rem 0;
}

/* ---- start the content ---- */

main {
    background: #FAFAFA;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    width: 90%;
    max-width: 62.5rem;

    padding: 5rem 1.5rem;
    margin: 0 auto;

    border: 2px solid rgba(24, 23, 23, 0.7);
    border-radius: 1.2rem;

    box-shadow: 
    rgba(0, 0, 0, 0.25) 0px 54px 55px, 
    rgba(0, 0, 0, 0.12) 0px -12px 30px, 
    rgba(0, 0, 0, 0.12) 0px 4px 6px, 
    rgba(0, 0, 0, 0.17) 0px 12px 13px, 
    rgba(0, 0, 0, 0.09) 0px -3px 5px;
}

/* ---- def settings for some elements ---- */

form {
    width: 100%;
}

input {
    border: none;
    outline: none;
    width: 100%;
}

h1 {
    font-size: 1.5rem;
}
  
h2 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
}
  
p {
    font-size: .875rem;
    font-weight: 600;
}

/* ---- search bar stylization ---- */

.search h1 {
    text-align: center;
}

.search-container {
    display: flex;
    align-items: center;
    gap: .625rem;

    width: 100%;
    max-width: 31.25rem;
    width: 500px;

    padding: .8rem;
    margin: 1.5rem auto 3rem auto;

    border: 2px solid #dcdcdc;
    border-radius: .4375rem;
}

.search-container > img {
    cursor: pointer;
}

/* ---- 2nd sec statistics container style ---- */

.statistics-container {
    width: 100%;
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14.375rem, 1fr));
    column-gap: 1rem;
    row-gap: 2rem;
    justify-items: center;
}

.statistics {
    border-radius: 0.5rem;
    transition: 0.3s;
}

.statistics,
.info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    padding: 2rem 1.5rem;
    width: 100%;
}

.statistics p,
.info p {
  margin-bottom: 1.5rem;
}

.statistics:first-child {
    background: #e4e7f6;
}

.statistics:first-child:hover {
    box-shadow: 0 0.5rem 1rem #e5e9ff;
    transform: scale(1.02);
}

.statistics:nth-child(2) {
    background: #f6e4f5;
}
  
  .statistics:nth-child(2):hover {
    box-shadow: 0 0.5rem 1rem #ffe3fe;
    transform: scale(1.02);
}

.statistics:nth-child(3) {
    background: #f9e5e5;
}
  
  .statistics:nth-child(3):hover {
    box-shadow: 0 0.5rem 1rem #ffdcdc;
    transform: scale(1.02);
}

/* ---- 2nd sec button style ---- */

button {
    background: transparent;

    display: flex;
    align-items: center;

    width: max-content;
    padding: 0.25rem 0.5rem;

    border-radius: 2rem;
    border: 1.5px solid #c2bfbf92;
    cursor: pointer;

    font-weight: 600;
    font-size: 11.2px;
}

button:hover {
    background: #f3f4fb;
    color: #9B8DE4;
}

/* ---- 2nd sec link style ---- */

a {
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
}

a:hover {
    transition: 0.2s;
    color: #9B8DE4;
    text-decoration: underline;
}