@import url('https://fonts.googleapis.com');


#wrapper {
    border: 3px solid #4CAF50;
    width: 50%;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 5px 5px 5px #aaaaaa;
}

#span{ 
    color: #36670C;
}

body {
    background-color: #F9F6EE;
    height: 100%;
    display: flex;
    flex-direction: column;
}

header {
    display: flex;
    height: 110px;
    width: 100%;
    z-index: 100;
    padding: 10px 0;
    box-sizing: border-box;
    justify-content: space-between;
}

#navigation_bar {
    display: flex;
    list-style: none;
    margin: 15px;
    padding: 10px;
    justify-content: space-evenly;
    background-color: #4CAF50;
    border-radius: 20px;
}

#navigation_bar li a {
    display: block;
    padding: 10px 10px;

    text-decoration: none;
    color: #2C3E50;
}

#navigation_bar li a:hover {
    background-color: #E5522B;
    color: #4CAF50;
    text-shadow: 1px 1px 1px #36670C;
    border-radius: 10px;
}

header img {

    width: 100px;
    height: 100px;
    border-radius: 30px;
}


#main {
    text-align: center;
    margin: 100px;
    display: flex;
    justify-content: center;

}

#learn {
    font-family: "Open Sans", sans-serif;
}

#eating {
    color: #4CAF50;
    font-family: "Montserrat", sans-serif ;
}

#main_wrap {
    border: 3px solid #FF7043;
    width: 50%;
    border-radius: 10px;
    box-shadow: 5px 5px 5px #aaaaaa;
}

#btn {
    padding: 5px;
    margin: 15px;
    color: #4CAF50;
    border-radius: 10px;
    border: 2px solid #2C3E50;
    transition-duration: 0.2s;
    
}

#btn:hover {
    background-color: #FF7043;
    text-shadow: 1px 1px 1px #36670C;
}

footer {
    background-color: #4CAF50;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20px;

    padding: 10px 10px;
    margin-top: 100px;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

footer a {
    text-decoration: none;
    color: #2C3E50;
}

footer a:hover {
    color: #FF7043;
}

p {
    color: #2C3E50 ;
}

#main_page2 {
    max-width: 700px;
    margin: 40px auto 100px;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.meal-seciton, .swaps-section {
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 24px;
    box-shadow: 2px 2px 6px #aaaaaa;
}

.chart-container {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 32px;
}

.pie-chart {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: conic-gradient(
        #4CAF50 0% 50%,
        #E53935 50% 75%,
        #F9A825 75% 100%
    );
}

.chart-legend {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #2C3E50
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    display: inline-block;
    flex-shrink: 0;
}

.swaps-row {
    display: flex;
    gap: 16px;
}

.swap-box {
    flex: 1;
    border: 1.5px solid #4CAF50;
    border-radius: 8px;
    padding: 12px 14px;
    text-align: center;
}

.swap-box p:first-child {
    color: #888;
    margin: 0 0 6px;
    font-size: 13px;
}

.swap-box p:last-child {
    color: #2C3E50;
    font-weight: bold;
    margin: 0;
    font-size: 13px;
}