* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
@font-face {
    font-family: Baskerville-Regular;
    src: url("./fonts/LibreBaskerville-Regular.ttf");
}

@font-face {
    font-family: Baskerville-Bold;
    src: url("./fonts/LibreBaskerville-Bold.ttf");
}

:root {
    --black: #020202;
    --darkgrey: #363736;
    --white-grey: #EDEEEB;
    --white: #F5F4F7;
    --gold: #AF8B20;
    --light-gold: #E0CB92;
}

#investing-terms-menu, #technical-analysis-menu, #types-of-analysis-menu, #useful-links-menu, #trading-hours-menu, #home-menu {
    text-decoration: none;
    color: var(--gold);
    font-weight: bold;
}

.useful-links-headline, .types-of-analysis-headline, .technical-analysis-headline, .official-trading-hours-main-headline, .investing-terms-headline {
    display: flex;
    color: var(--gold);
    font-weight: bold;
    justify-content: center;
    align-items: center;
    background-color: rgba(2, 2, 2, 0.7);
    background-size: cover;
    height: 15vh;
    max-width: 1960px;
    background-position: center center;
    margin: 0 auto;
}

.links-in-terms {
    text-decoration: none;
    color: var(--gold);
    font-weight: bold;
}

#agbs-tag, #impressum-tag {
    color: var(--white)
}

body {
    background-image: url("/images/background-img.jpg");
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    color: var(--darkgrey);
    font-family: Baskerville-Regular, "Times New Roman", sans-serif;
    margin: 0;
    padding: 0;
}
main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 1960px;
}

.center-main{
    margin: 0 auto;
}

.trading-hours-main {
    margin-left: auto;
    margin-right: auto;
}

.header {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background-image: url("/images/header_img.webp");
    height: 28vh;
    background-size: cover;
    padding-top: 50px;
    margin: auto auto 50px;
    background-position: center center;
    max-width: 1960px;
    box-shadow: 5px 5px 5px var(--white);
    border-bottom-left-radius: 1rem;
    border-bottom-right-radius: 1rem;
}

.nav-bar {
    box-sizing: border-box;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    background-color: rgba(2, 2, 2, 0.7);
    padding: 0.5rem;
    max-width: 1960px;
    margin: 0 auto 1rem;
    border-bottom-right-radius: 1rem;
    border-bottom-left-radius: 1rem;
}

.nav-bar-main-headline {
    box-sizing: border-box;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    background-color: rgba(2, 2, 2, 0.7);
    padding: 10px;
    max-width: 1960px;
    border-bottom-right-radius: 1rem;
    border-bottom-left-radius: 1rem;
}

.welcome-headline {
    display: flex;
    align-self: center;
    font-weight: bolder;
    font-size: 3vw;
    color: var(--black);
    text-shadow: 1px 1px 1px var(--white);
    margin: auto;
    padding: 3%;
}

.welcome-text {
    display: flex;
    width: 800px;
    max-width: 90%;
    flex-direction: column;
    margin: 0 auto 2rem;
    color: #3b2c35;
    text-shadow: 2px 2px 2px #d8dadd;
    padding: 50px;
    background-color: rgba(237, 238, 235, 0.5);
    border-radius: 16px;
}


.footer-background {
    background-color: rgba(2, 2, 2, 0.7);
    background-size: cover;
    height: 15vh;
    margin-top: auto;
    align-self: center;
    width: 100%;
    border: 5px solid var(--gold);
    border-bottom: none;
    box-sizing: border-box;
}

footer {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    font-size: 30px;
    font-weight: bold;
    text-shadow: 6px 6px 20px var(--black);
    width: 100%;
    max-width: 1960px;

}

.footer-text-space {
    margin-bottom: 5vh;
}
/*
------------------------- INVESTING TERMS CSS ----------------------------
 */
.drop-button {
    display: flex;
    align-items: center;
    background-color: unset;
    color: var(--gold);
    padding: 16px;
    font-family: inherit;
    font-weight: bold;
    cursor: pointer;
    border: 2px solid var(--gold);
}
.dropdown {
    position: fixed;
    max-width: 1960px;
    margin: 0 auto 2rem;

}
.dropdown button {
    background-color: rgba(2, 2, 2, 0.5);
    border-radius: 16px;
}
.dropdown-content {
    background-color: rgba(2, 2, 2, 0.5);
}
.dropdown-content div {
    width: 10rem;
    display: flex;
    justify-content: center;
    align-items: center;

}

#all-terms {
    display: none;
    cursor: pointer;
}

.dropdown-content div a {
    display: flex;
    text-decoration: none;
    color: var(--gold);
    font-weight: bold;
    text-align: center;
    padding: 10px;
}
.dropdown-content div a:hover {
    background-color: var(--black);
    border-radius: 10px;
}
.dropdown:hover .dropdown-content div {
    display: flex;
}
.dropdown:hover .drop-button {
    background-color: var(--black);
    padding: 10px;
    border-radius: 10px;
}

.burger-bg {
    width: 100%;
    background-color: white;
}

.links-in-terms {
    margin: 0.6rem auto;
}

.all-term-links {
    flex-wrap: wrap;
    justify-content: space-around;
    padding-left: 1rem;
    padding-right: 1rem;
}
.term-headlines {
    font-size: 18px;
}
.term-sections {
    background-color: rgba(237, 238, 235, 0.5);
    padding: 16px;
    border-radius: 16px;
    margin: 0 1% 2%;
}

#myBtn {
    display: block; /* Hidden by default */
    position: fixed; /* Fixed/sticky position */
    bottom: 20px; /* Place the button at the bottom of the page */
    right: 30px; /* Place the button 30px from the right */
    z-index: 99; /* Make sure it does not overlap */
    border: none; /* Remove borders */
    outline: none; /* Remove outline */
    background-color: var(--black); /* Set a background color */
    color: var(--white); /* Text color */
    cursor: pointer; /* Add a mouse pointer on hover */
    padding: 15px; /* Some padding */
    border-radius: 10px; /* Rounded corners */
    font-size: 20px; /* Increase font size */
}

#myBtn:hover {
    background-color: #555; /* Add a dark-grey background on hover */
}
*:target {
    border: 2px solid var(--white-grey);
    background-color: var(--darkgrey);
    color: white;
    padding: 10px;
    font-size: 20px;
}

/*
------------------------- USEFUL LINKS PAGE ------------------------------
 */
.main-table-class {
    display: flex;
    flex-wrap: wrap;
    max-width: 1960px;
    background-color: rgba(237, 238, 235, 0.5);
    border-radius: 1rem;
    margin: 10px auto;
    padding: 5%;
    row-gap: 10px;
}

.main-table-class ul {
    list-style-type: none;
}

.main-table-class ul li {
    margin-bottom: 0.4rem;
}

.main-table-class  div {
    width: 50%;
}
.all-tables{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem;
}

.headlines-of-links{
    font-size: 24px;
    font-weight: bolder;
    padding: 10px;
    background-color: rgba(237, 238, 235, 0.5);
    border-radius: 0.2rem;
}
.external-links {
    text-decoration: underline;
    color: var(--black);
    font-weight: bold;
    font-size: 18px;
}
/*
------------------------- Types of Analysis ------------------------------
 */
.intermarket-pic {
    grid-area: a;
   }

.fundamental-pic {
    grid-area: d;
}

.technical-pic{
    grid-area: e;
}
.intermarket-text{
    grid-area: b;
}
.fundamental-text{
    grid-area: c;
}
.technical-text{
    grid-area: f;
}
.content-container {
    display: grid;
    max-width: 1720px;

    grid-template-areas: "a  b"
                        "c  d"
                        "e  f";
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(1, 1fr);
    width: 90%;
    margin: 2rem auto;
    justify-items: center;
}
.types-of-analysis-mother-of-gods {
    margin: 3rem auto 5rem;
}

.types-of-analysis-texts{
    background-color: rgba(237, 238, 235, 0.5);
    border-radius: 1rem;
    padding: 1rem 2rem;
}

/*
------------------------- TECHNICAL ANALYSIS -----------------------------
 */

main {
    display: flex;
    flex-direction: column;
    max-width: 1960px;

}

.all-indicators div {
    display: flex;
    flex-direction: column;
    float: left;
    width: 50%;
    padding: 10px;
    height: auto;
}
.indicator {
    height: 160px;
    padding: 16px;
}
.indicator-headlines {
    font-size: 18px;
}
.indicator-top-headline {
    font-size: 32px;
    padding: 1rem;
    margin-top: 5%;
    width: fit-content;
    border-radius: 1rem;
    background-color: rgba(237, 238, 235, 0.5);
}
.all-indicators{
    background-color: rgba(237, 238, 235, 0.5);
    border-radius: 1rem;
}
.trendlines-and-divergences {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 1280px;
    margin: 8% auto 50px;
    background-color: rgba(237, 238, 235, 0.5);
    padding: 16px;
    border-radius: 12px;
}

#candle-stick{
    margin: 2rem;
    max-width: 90%;
}

#chart-patterns-main-headline {
    font-size: 32px;
    padding: 1rem;
    border-radius: 1rem;
    margin-top: 5rem;
    background-color: rgba(237, 238, 235, 0.5);
    width: fit-content;

}
.chart-pattern-headlines {
    font-size: 18px;
    padding-bottom: 10px;
}
.chart-pattern-cheat-sheet{
    display: flex;

}
.chart-pattern-cheat-sheet{
    display: flex;
    flex-direction: column;
    align-items: center;
}
#cheat-sheet-headline {
    text-align: center;
    margin-top: 5rem;
    font-size: 32px;
    background-color: rgba(237, 238, 235, 0.5);
    border-radius: 1rem;
    padding: 1rem;
    width: fit-content;
}
#chart-pattern-cheat-sheet-img {
    margin: 5rem auto;
    width: 80%;
}
.chart-pattern {
    max-width: 1280px;
    display: block;
    text-align: center;
    padding: 10px 16px;
    margin: 24px auto;
    background-color: rgba(237, 238, 235, 0.5);
    border-radius: 12px;
}
.all-chart-patterns {
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
/*
------------------------- Trading Hours --------------------------------
 */

.trading-hours-headlines {
    font-size: 20px;
    margin: 4rem 0 2rem;
    background-color: rgba(237, 238, 235, 0.5);
    padding: 0.5rem;
    border-radius: 1rem;
    width: fit-content;
}
.table, th, td {
    border: 1px solid black;
    white-space: nowrap;
}

.tables{
    background-color: rgba(237, 238, 235, 0.8);
    padding: 2rem;
    border-collapse: collapse;
    width: 100%;
}

.table-responsive {
    overflow-x: auto;
    width: 100%;
}

.footer-t-hours{
    margin-top: 5rem;
}

/*
------------------------- SYMBOL SETTINGS --------------------------------
 */

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0,
    'wght' 400,
    'GRAD' 0,
    'opsz' 48
}

@media screen and (max-width: 1400px) {
    .trendlines-and-divergences {
        margin: auto 3%;
    }

    .trading-hours-main {
        margin-left: 0;
        margin-right: 0;
    }
}

@media screen and (max-width: 900px) {
    .nav-bar {
        display: flex;
        flex-direction: column;
        row-gap: 1rem;
    }
    .nav-bar-main-headline{
        display: flex;
        flex-direction: column;
        row-gap: 1rem;
    }

    .welcome-headline {
        font-size: max(1em, 22px);
    }
    .drop-button{
        display: flex;
        align-self: center;
    }
    .nav-bar a:hover, .nav-bar-main-headline a:hover{
        background-color: rgba(121, 125, 134, 0.38);
        width: 100%;
        text-align: center;
        border-radius: 0.5rem;
    }
    #agbs-tag, #impressum-tag{
        font-size: 3.5vw;
    }
    .types-of-analysis-mother-of-gods div {
        display: flex;
        flex-direction: column;
    }
    .space-between-text-and-img {
        width: 80%;
        align-self: center;
        padding-bottom: 1rem;
    }
    .all-indicators div{
        display: flex;
        flex-direction: column;
        row-gap: 1rem;
        width: 90%;
    }
    .trendlines-and-divergences {
        margin-top: 2rem;
    }
    .chart-pattern{
        max-width: 95%;
    }


    .table-responsive{
        width: 100%;
        overflow-x: auto;
    }
    .table-responsive table {
        max-width: 100%;

    }

    @media screen and (max-width: 980px) {
        .main-table-class div{
            width:100%;
        }
    }
}

