@font-face {
    font-family: Poppins-light;
    src: url(../fonts/Poppins-Light.ttf);
}

@font-face {
    font-family: Poppins-bold;
    src: url(../fonts/Poppins-Bold.ttf);
}

* {
    border: 0;
    margin: 0;
    padding: 0;
}

body {
    /*background-image: url("images/KORimage_9.jpg");*/
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    background-size: cover;
    image-rendering: -webkit-optimize-contrast;
    font-family: Poppins-light;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    gap: 50px;
    /*height: 100vh;*/
}

#dropdownMediaQuery {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

#dropdownMediaQuery button {
    margin: 10px 10px;
    height: 50px;
    width: 50px;
    border-radius: 20%;
    background-color: rgb(234, 229, 229);
}

#dropdownMediaQuery button:hover {
    background-color: rgb(211, 204, 204);
}


#dropdownMediaQuery #mediaQueryMenu {
    display: none;
    flex-direction: column;
    width: 100%;
}

#mediaQueryMenu .mediaQueryItem {
    background-color: rgb(234, 229, 229);
    display: inline-block;
    padding: 10px 5px;
    text-align: center;
    /*border: 1px solid rgb(179, 179, 179);*/
    border-bottom: 1px solid rgb(179, 179, 179);
    width: 100%;
}

#mediaQueryMenu .mediaQueryItem:hover {
    background-color: rgb(204, 199, 199);
}

#dropdownUL {
    background-color: rgb(234, 229, 229);
    background-position: top;
    margin:0;
    position: static;
    z-index: 500;
    width: 100vw;
    display: flex;
    justify-content: space-evenly;
}

.navbar > ul > a > li {
    list-style-type: none;
    /*display: inline-block;
    /*position: relative;*/
    padding: 20px 30px;
    /*font-size: 18px;*/
    font-size: 1.1vw;
}

.navbar >ul > a > li:hover {
    background-color: rgb(239, 239, 239);
}

a {
    color: black;
    text-decoration: none;
}

/*.dropdown {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}


ul.dropdown {
    position: absolute;
    display: none;
    width: 300px;;
    padding-top: 20px;
    padding-left: 0;
    margin-left: -65px;

}

.navbar li:hover .dropdown { /*When hovering over list elements with dropdown class
    display: block;
}

ul.dropdown li {
    background-color: rgb(239, 239, 239);
    list-style-type: none;
    font-size: 1.1vw;
    padding: 15px 20px;
    position: relative;
    z-index: 999;

}

ul.dropdown li:hover {
    background-color: rgb(224, 222, 222);

}*/

#Title {
    display: flex;
    height: 40vh;
    margin: auto;
    gap: 20px;
    font-size: 25px;
    color: rgb(255, 255, 255);
    justify-content: center;
    align-items: center;
}

#Title > h1 {
    position: relative;
    top: 100px;
    opacity: 0;
    transition: opacity 1s 1s, top 1s 1s;
}

#mainDiv {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 80px;
    
}


#mainDiv > .page {
    background-color: white;
    width: 900px;
    min-width: 60%;
    height: 100%;
    z-index: 0;
    border-radius: 50px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    /*bottom: 120px;*/
}

.page > p:first-child {
    padding: 45px 45px;
}

.page > p {
    padding-left: 45px;
    padding-right: 45px;
    padding-bottom: 30px;
}

.page > h3:first-child {
    padding-left: 45px;
    padding-right: 45px;
    padding-top: 45px;
}

.page > h3 {
    padding: 5px 45px;
}

.page > h5 {
    padding: 5px 45px;
}

.page > h4 {
    padding: 5px 45px;
    color: rgb(114, 114, 114);
}


.page ul {
    padding-left: 65px;
    padding-right: 65px;
    padding-bottom: 30px;
}


.hidden {
    display: none;
}


#pageSelect {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    /*top: 100px;
    /*align-items: center;*/
}

#pageSelect .pageSelectButton {
    background-color: white;
    color: black;
    padding: 20px 20px;
    border-bottom: 2px solid rgb(203, 201, 201);
    font-family: Poppins-light;
}

#pageSelect .pageSelectButton:hover {
    background-color: rgb(230, 229, 229);
    padding: 20px 20px;
    border-bottom: 2px solid rgb(203, 201, 201);
    font-family: Poppins-light;
}

#calculator {
    background-color: rgb(44, 48, 48);
    width: 40%;
    height: 100%;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 40px 40px;
}

#calculator > #calculatorInput {
    border-radius: 5px;
    background-color: lightslategray;
    color: white;
    margin: 30px 20px;
    width: 80%;
    text-align: right;
    padding-right: 20px;
}

#calculator > #calculatorButtonPad {
    display: grid;
    grid-template-columns: 25% 25% 25% 25%;
    justify-content: space-evenly;
}

#calculatorButtonPad > .calculatorButton {
    color: white;
    border-radius: 50%;
    text-align: center;
    font-family: Poppins-light;
    height: 60px;
    width: 60px;
    margin: 10px 10px;
}

#calculatorButtonPad > .numberButton {
    background-color: silver;
}

#calculatorButtonPad > .operatorButton {
    background-color: grey;
}

.timelineDiv {
    display: grid;
    padding: 25px;
    margin: 0 auto;
    grid-template-columns: 1fr 3px 1fr;
}

.timelineDiv .timeline-date {
    margin: 0px 20px 20px 20px;
}

.timelineDiv .timeline-right {
    text-align: right;
}

.timelineDiv .timeline-left {
    text-align: left;
}

.timelineDiv .timeline-component {
    background-color: rgb(226, 226, 226);
    border-radius: 30px;
    padding: 25px 25px;
    margin: 20px 20px 20px 20px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.timelineDiv .timeline-line {
    border-left: 2px solid black;
    height: auto;
    position: relative;
    left: 50%;

}

.timelineDiv .timeline-line .timeline-line-point {
    position: absolute;
    left: 50%;
    transform: translate(-50%);
    top: 0;
    background-color: rgb(0, 0, 0);
    border-radius: 50%;
    height: 15px;
    width: 15px;
}

#footer {
    background-color: rgb(233, 233, 233);
    height: 150px;
    width: 90%;
    border-radius: 30px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
    display: flex;
    flex-wrap: nowrap;
    position: relative;
}



#footer .options {
    width: 25%;
    padding: 20px 50px;
}

.options h4 {
    position: relative;
}

.options h4::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    height: 2px;
    background-color: rgb(70, 70, 70);
    box-sizing: border-box;
    width: 180px;
}

.options select {
    font-family: Poppins-Light;
    width: 180px;
    height: 30px;
    border-radius: 10px;
}

.options select option {
    font-family: Poppins-Light;
}

.colorContainers {
    display: flex;
    gap: 10px;
}

.hidden {
    opacity: 0;
    bottom: -50px;
    transition: opacity 0.5s, bottom 0.5s;
}

.show {
    opacity: 1;
    bottom: 0;
}

@media (max-width: 1000px) { /*Replace navbar with button*/
    #dropdownMediaQuery {
        display: flex;
        position: relative;
        z-index: 300;
    }

    #dropdownUL {
        display: none;
    }
}

@media (max-width: 850px) {
    #mainDiv {
        flex-direction: column;
        gap: 50px;
        height: 100%;
    }

    #mainDiv > .page {
        order: 2;
        width: 100vw;
    }

    #pageSelect {
        order: 1;
    }
}

@media (max-width: 500px) {
    .imgContainer {
        flex-direction: column;
    }
}

@media (max-width: 500px) {
    #Title > h1 {
        font-size: 1em;
    }
}