body {
    display: flex;
    flex-flow: column;
    width: 100%;
    margin: 0;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

h1 {
    text-align: center;
    font-size: 2.5em;
    margin: 0 0 10px 0;
    color: rgb(50, 50, 50);
}

h6 {
    text-align: center;
    font-size: 0.6em;
    color: rgb(197, 197, 197);
    margin: 40px 0 0 0;
}

h4 {
    font-size: 1.4em;
    font-weight: normal;
    padding: 0 60px 30px 60px;
    box-sizing: border-box;
    color: #8a8989
}

#inputhandler {
    width: 85%;
    margin: 0 auto;
}

input {
    width: 85%;
    height: 50px;
    border: none;
    border-radius: 10px;
    padding: 0 20px;
    font-size: 1.2em;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    margin: 0 auto;
}

button {
    width: 10%;
    height: 50px;
    border: none;
    border-radius: 10px;
    background-color: rgb(50, 150, 250);
    color: white;
    font-size: 1.2em;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin: 0 auto;
    margin-bottom: 20px;
}
#charts {
    width: 100%;
    height: auto;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}
#market, #portfolio {
    width: 40vw;
    height: 40vw;
    position: relative;
    overflow: hidden;
    background-color: rgb(207, 207, 207);
    margin: 0 5vw;
    background-size: contain;
}

#market {
    background-image: url('img1.png');
}

#portfolio {
    background-image: url('img2.png');
}

#cards{
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.card {
    position: relative;
    width: calc( 100% / 4 - 100px );
    height: auto;
    background-color: rgb(255, 255, 255);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 30px;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    margin: 10px;
}


.full {
    width: calc( 100% - 40px );
    height: 408px;
    margin: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.card h3 {
    font-size: 1.5em;
    width: 100%;
    text-align: center;
}

.card *{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    width: 100%;
    position: relative;
}

.card h2 {
    margin-bottom: 15px;
}

.card p {
    font-size: 1.1em;
    height: 40px;
    margin-bottom: 10px;
}

.card p>span {
    width: 25%;
    height: 100%;
    position: absolute;
    top: 0;
    right: 0;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.blue {
    background: rgb(137, 137, 253);
}

.green {
    background: rgb(102, 236, 102);
}

.red {
    background: rgb(236, 102, 102);
}

.yellow {
    background: rgb(236, 236, 102);
}

#investment {
    width: 100%;
    height: 100%;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#explanation {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 1.2em;
    padding: 30px;
    box-sizing: border-box;
}

#explanation p {
    font-size: 1.4em;
}

#explanation li {
    margin: 10px auto;
    list-style-type: none;
    padding: 20px;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    background-color: rgb(240, 240, 240);
    width: 80%;
}

#explanation2, #explanation3 {
    width: 100%;
    height: 100%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 1.4em;
    padding: 30px;
    box-sizing: border-box;
}


.investment_input {
    width: 85%;
    height: auto;
    border: none;
    border-radius: 10px;
    padding: 0 20px;
    font-size: 1.2em;
    margin-bottom: 20px;
}

.investment_input button {
    width: 10%;
    height: 50px;
    border: none;
    border-radius: 10px;
    background-color: rgb(50, 250, 207);
    color: white;
    font-size: 1.2em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.investedDollars {
    width: 50%;
    height: 70px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2em;
    margin: 10px auto;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
    box-sizing: border-box;
    border-radius: 10px;
    background-color: rgb(240, 240, 240);
}

#footer {
    width: 100%;
    display: none;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    color: black;
    font-size: 1.2em;
    padding: 40px;
    box-sizing: border-box;
}

#rights {
    padding: 20px;
    box-sizing: border-box;
    background: #444;
    color: white;
}