	:root {
            --dark-mode-bg: black;
            --dark-mode-color: white;
            --dark-mode-hover-color: white;
            --button-hover-bg: #3a5a94;
            --dark-mode-border: 1px solid white;
            --dark-mode-button-bg: #203864;
            --dark-mode-hover-bg: #474747;
            --add-company-bg: #4F2270;
            --refresh-data-bg: darkgreen;
            --refresh-data-hover: #009900;
            --table-header-bg: #262626;
            --return-home-bg: #262626;
            --dark-bg: #121212;
            --dark-text-color: #f1f1f1;
            --dark-mode-divider-purple: #5a3e85;
            --dark-mode-divider-blue: #3a5a8f;
            --dark-mode-divider-red: #8f3a3a;
            --dark-mode-divider-green: var(--overlay-compliment-green);
            --dark-mode-divider-brown: #783f04;
        }

        .market-view header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            width: 100%;
            background-color: #1A4133;
            color: white; 
            /*padding-bottom: 5px;*/
        }
        
        /*.market-view h2, .market-view h3 {*/
        /*    margin: 0;*/
        /*    padding: 0;*/
        /*}*/

        .component header h2,
        .component header h3 {
            margin: 0;
            padding: 0;
        }
        #data {padding-top: 5px}

        .market-view .left-content {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
        }

        .market-view.dark-mode {
            background-color: var(--dark-mode-bg);
            color: var(--dark-mode-color);
        }

        .market-view.dark-mode header.dark-mode-header {
            background-color: var(--dark-mode-bg);
        }

        .market-view.dark-mode thead th {
            background-color: var(--table-header-bg);
            color: var(--dark-mode-color);
        }

        .market-view.dark-mode .return-home.nav-button,
        .market-view.dark-mode .return-home {
            background-color: var(--return-home-bg);
            color: var(--dark-mode-color);
            border: var(--dark-mode-border);
        }

        .market-view.dark-mode .add-to-watchlist,
        .market-view.dark-mode .watchListView.nav-button,
        .market-view.dark-mode .addCompanyBtn {
            background-color: var(--dark-mode-button-bg);
            border: var(--dark-mode-border);
        }

        .market-view.dark-mode .refreshAPIDataBtn {
            background-color: var(--refresh-data-bg);
            border: var(--dark-mode-border);
        }

        .market-view.dark-mode .return-home.nav-button:hover, 
        .market-view.dark-mode .return-home:hover,
        .market-view.dark-mode .add-to-watchlist:hover,
        .market-view.dark-mode .watchListView.nav-button:hover,
        .market-view.dark-mode .addCompanyBtn:hover {
            background-color: var(--button-hover-bg);
            color: var(--dark-mode-hover-color);
        }

        .market-view.dark-mode .refreshAPIDataBtn:hover {
            background-color: var(--refresh-data-hover);
            color: var(--dark-mode-hover-color);
        }
        
        .market-view.dark-mode .addCompanyBtn {
            background-color: #4F2270;
            border: 1px solid white;
        }

        .market-view.dark-mode .addCompanyBtn:hover {
            background-color: #5f307d;
            color: white;
        }
        
        .market-view.dark-mode .return-home.nav-button:hover, 
        .market-view.dark-mode .return-home:hover {
            background-color: #474747;
            border: 1px solid white;
        }
        
        /* Dark Mode Styles */
        .dark-mode .stocks-101,
        .dark-mode .how-to-use,
        .dark-mode .credits {
            background-color: var(--dark-bg);
            color: var(--dark-text-color);
            border-color: var(--dark-border-color);
        }
        
        .dark-mode .how-to-use {
            border-top: 10px solid var(--dark-mode-divider-purple);
        }

        .dark-mode .stocks-101 {
            border-top: 10px solid var(--dark-mode-divider-blue);
        }

        .dark-mode .credits {
            border-top: 10px solid var(--dark-mode-divider-red);
        }
        
        .dark-mode .watch-list {
            border-top: 10px solid var(--dark-mode-divider-green);
        }
        
        .dark-mode .market-view {
            border-top: 10px solid var(--dark-mode-divider-brown);
        }
        
        .dark-mode .stocks-101 h2 {
            color: #add8e6;
        }
        
        .dark-mode .how-to-use h2 {
            color: #CAAFF0;
        }
        
        .dark-mode .creator-profiles-container {
            color: #fff;
        }

        .dark-mode .creator {
            background-color: #444;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
        }

        .dark-mode .creator img {
            border-bottom: 1px solid #555;
        }

        .dark-mode .creator-info h3 {
            color: #ddd;
            border-bottom: 1px solid #555;
        }

        .dark-mode .creator-info p {
            color: #bbb;
        }
        
	table {
            width: 100%;
            table-layout: fixed;
            font-size: 20px;
            color: white;
	}
	
	.graph-container {
            background-color: #111111;
            color: white;
            max-height: 750px;
            max-width: 1300px;
            overflow: auto;
            margin-left: auto;
            margin-right: auto;
        }

	th, td {
		text-align: left;
		padding: 10px;
		word-wrap: break-word
	}

	td:nth-child(3),
	td:nth-child(4),
	td:nth-child(5),
	td:nth-child(6) {
		text-align: center;
	}

	th:nth-child(1),
	td:nth-child(1) {
		width: 5%;
		text-align: left;
	}

	th:nth-child(2),
	td:nth-child(2) {
		width: 25%;
		text-align: left;
	}

	th:nth-child(3),
	td:nth-child(3) {
		width: 10%;
		text-align: left;
	}

	th:nth-child(4),
	td:nth-child(4) {
		width: 10%;
		text-align: left;
		color: white;
	}

	th:nth-child(5),
	td:nth-child(5) {
		width: 7%;
		text-align: left;
	}

	th:nth-child(6),
	td:nth-child(6) {
		width: 2%;
		text-align: center;
	}

	th:nth-child(7),
	td:nth-child(7) {
		width: 8%;
		text-align: center;
	}
        
        th:nth-child(8),
	td:nth-child(8) {
		width: 2%;
		text-align: center;
	}
	
	.toggle-btn.plus {
		background-color: green;
		color: white;
		width: 30px;
		height: 30px;
		text-align: center;
		line-height: 25px;
		border: 1px solid black;
		cursor: pointer;
                border-radius: 6px;
	}

	.toggle-btn.minus {
		background-color: #D21A0D;
		color: white;
		width: 30px;
		height: 30px;
		text-align: center;
		line-height: 25px;
		border: 1px solid black;
		cursor: pointer;
                border-radius: 6px;
	}

	.toggle-btn.plus:hover {
		background-color: silver;
		color: green;
	}

	.toggle-btn.minus:hover {
		background-color: silver;
		color: #D21A0D;
	}
        
        .delete-btn {
            background-color: #A80000;
            color: white;
            border: none;
            padding: 5px 10px;
            font-size: 16px;
            cursor: pointer;
            border-radius: 6px;
        }

        .delete-btn:hover {
            background-color: #D00000;
        }

	.watchListView {
		background-color: blue;
		color: white;
		border: 1px solid black;
		font-size: 18px;
		padding: 10px 20px;
		cursor: pointer;
	}

	.addCompanyBtn {
		background-color: purple;
		color: white;
		border: 1px solid black;
		font-size: 18px;
		padding: 10px 20px;
		cursor: pointer;
                border-radius: 6px;
	}
        
        .refreshAPIDataBtn {
		background-color: green;
		color: white;
		border: 1px solid black;
		font-size: 18px;
		padding: 10px 20px;
		cursor: pointer;
                border-radius: 6px;
	}
        
        #companySymbol {
            background-color: black;
            color: white;
            border: 1px solid white;
            width: 200px;
            font-size: 18px;
            padding: 5px;
            box-sizing: border-box;
        }
        
        .watchListView.nav-button {
            background-color: blue;
            border: 1px solid black;
            border-radius: 6px;
        }
        
        .addCompanyBtn, .watchListView.nav-button,  .return-home.nav-button, .return-home{
            margin-top: 10px;
            border-radius: 6px;
        }
        
        .watchListView.nav-button:hover {
            background-color: silver;
            color: blue;
        }
        
        .addCompanyBtn:hover {
            background-color: silver;
            color: purple;
        }
        
        .refreshAPIDataBtn:hover {
            background-color: silver;
            color: green;
        }
        
        footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .right-aligned-buttons {
            display: flex;
            gap: 10px;
            margin-left: 10px;
        }

	.add-to-watchlist {
		background-color: blue;
		color: white;
		border: 1px solid black;
		width: 100%;
		height: 30px;
		text-align: center;
		line-height: 30px;
		font-size: 16px;
		cursor: pointer;
		margin: 0;
		padding: 0;
		word-wrap: break-word;
                border-radius: 6px;
	}

	.add-to-watchlist:hover {
		background-color: silver;
		color: blue;
	}
	
	.return-home.nav-button, .return-home {
		background-color: dimgray;
		color: white;
		border: 1px solid black;
		font-size: 18px;
		padding: 0px 20px;
		cursor: pointer;
                border-radius: 6px;
	}

	.return-home.nav-button:hover, .return-home:hover {
		background-color: silver;
		color: black;
	}

	td.positive-change {
		color: #44ff00;
	}

	td.negative-change {
		color: #FF3000;
	}

	th, td {
		border: 1px solid white;
	}
        
        .creator-profiles-container {
            display: flex;
            justify-content: space-around;
            flex-wrap: wrap;
            padding: 20px;
        }

        .creator {
            flex-basis: 18%;
            max-width: 18%;
            min-width: 210px;
            border-radius: 10px;
            overflow: hidden;
            background-color: white;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            text-align: center;
            margin-bottom: 20px;
        }

        .creator img {
            width: 100%;
            height: auto;
            border-bottom: 1px solid #ddd;
        }

        .creator-info {
            padding: 15px;
        }

        .creator-info h3 {
            margin: 10px 0;
            border-bottom: 1px solid #ddd;
        }

        .creator-info p {
            padding-top: 10px;
            font-size: 14px;
        }
        
        #addNewCompanyOverlay, #addToWatchListOverlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(50, 50, 50, 0.8);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10;
        }

        .popup {
            background: #333;
            color: white;
            padding: 20px;
            text-align: center;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
            width: 50%;
            max-width: 800px;
            min-height: 500px;
            border: 2px solid white;
            align-self: center;
            position: relative;
        }

        .popup h2 {
            margin: 10px 0 15px;
            font-weight: normal;
        }

        .popup button#continueBtnAddCompany, 
        .popup button#continueBtnAddToWatchList, 
        .close-button {
            background-color: green;
            color: white;
            border: 1px solid white;
            font-size: 18px;
            padding: 10px 20px;
            cursor: pointer;
            border-radius: 6px;
        }

        .popup button#continueBtnAddCompany:hover, 
        .popup button#continueBtnAddToWatchList:hover {
            background-color: limegreen;
            color: black;
        }

        .close-button {
            position: absolute;
            top: 10px;
            right: 10px;
            background-color: #A80000;
            color: white;
            border: none;
            padding: 8px 15px;
            cursor: pointer;
            font-size: 14px;
            border: 1px solid white;
            border-radius: 6px;
        }

        .close-button:hover {
            background-color: #D00000;
        }

        .popup-header {
            font-size: 36px;
            color: white;
            text-align: left;
            padding-left: 8px;
            margin-top: 5px;
            font-weight: bold;
            text-decoration: underline;
        }

        #numberOfShares, #priceOfShares {
            font-size: 18px;
            background-color: black;
            color: white;
            border: 1px solid white;
            padding: 10px;
            width: 200px;
        }

        #error-message, #errorMessageContent, #error-message-watchlist{
            font-size: 20px;
            color: red;
            margin-top: 5px;
            text-align: center;
        }

        #errorOverlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(50, 50, 50, 0.8);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 10;
        }

        #errorOverlay .popup {
            min-height: 300px;
        }

	/*-------------------------------------------------------------------------------*/
	/* Adjust the size and padding of the table depending on the width of the screen */
	@media (max-width: 2000px) {
                th:nth-child(6),
		td:nth-child(6) {
			width: 3%;
		}
                
                th:nth-child(8),
		td:nth-child(8) {
			width: 3%;
		}
                
                .popup {
                    width: 60%;
                }
        }
        
        @media (max-width: 1600px) {
		table {
			font-size: 16px;
		}
		th, td {
			padding: 8px;
		}
		
		.add-to-watchlist {
			font-size: 16px;
		}
                
                .popup {
                    width: 65%;
                }
		
		th:nth-child(1),
		td:nth-child(1) {
			width: 5%;
		}

		th:nth-child(2),
		td:nth-child(2) {
			width: 25%;
		}

		th:nth-child(3),
		td:nth-child(3) {
			width: 9%;
		}

		th:nth-child(5),
		td:nth-child(5) {
			width: 9%;
		}

		th:nth-child(6),
		td:nth-child(6) {
			width: 3%;
		}

		th:nth-child(7),
		td:nth-child(7) {
			width: 12%;
		}
                
                th:nth-child(8),
		td:nth-child(8) {
			width: 3%;
		}
	}
	
	@media (max-width: 1400px) {
		table {
			font-size: 16px;
		}
		th, td {
			padding: 8px;
		}
		
		.add-to-watchlist {
			font-size: 16px;
		}
                
                .popup {
                    width: 70%;
                }
		
		th:nth-child(1),
		td:nth-child(1) {
			width: 7%;
		}

		th:nth-child(2),
		td:nth-child(2) {
			width: 19%;
		}

		th:nth-child(3),
		td:nth-child(3) {
			width: 11%;
		}

		th:nth-child(5),
		td:nth-child(5) {
			width: 9%;
		}

		th:nth-child(6),
		td:nth-child(6) {
			width: 4%;
		}

		th:nth-child(7),
		td:nth-child(7) {
			width: 12%;
		}
                
                th:nth-child(8),
		td:nth-child(8) {
			width: 4%;
		}
	}
	
	@media (max-width: 1200px) {
		table {
			font-size: 16px;
		}
		th, td {
			padding: 8px;
		}
                
                .add-to-watchlist {
			font-size: 13px;
		}
		
		.add-to-watchlist {
                    font-size: 14px;
		}
                
                .popup {
                    width: 75%;
                }
		
		th:nth-child(1),
		td:nth-child(1) {
			width: 8%;
		}

		th:nth-child(2),
		td:nth-child(2) {
			width: 15%;
		}

		th:nth-child(3),
		td:nth-child(3) {
			width: 14%;
		}

		th:nth-child(5),
		td:nth-child(5) {
			width: 11%;
		}

		th:nth-child(6),
		td:nth-child(6) {
			width: 5%;
		}

		th:nth-child(7),
		td:nth-child(7) {
			width: 13%;
		}
                
                th:nth-child(8),
		td:nth-child(8) {
			width: 5%;
		}
	}
	
	@media (max-width: 992px) {
		table {
			font-size: 12px;
		}
		
		th, td {
			padding: 6px;
		}
			
		.add-to-watchlist {
			font-size: 12px;
		}
                
                .popup {
                    width: 80%;
                }
		
		th:nth-child(1),
		td:nth-child(1) {
			width: 10%;
		}

		th:nth-child(2),
		td:nth-child(2) {
			width: 16%;
		}

		th:nth-child(3),
		td:nth-child(3) {
			width: 15%;
		}

		th:nth-child(5),
		td:nth-child(5) {
			width: 11%;
		}

		th:nth-child(6),
		td:nth-child(6) {
			width: 6%;
		}

		th:nth-child(7),
		td:nth-child(7) {
			width: 16%;
		}
                
                th:nth-child(8),
		td:nth-child(8) {
			width: 6%;
		}
	}

	@media (max-width: 850px) {
		table {
			font-size: 10px;
		}
		th, td {
			padding: 4px;
		}
		
		.add-to-watchlist {
			font-size: 9px;
		}
                
                .popup {
                    width: 85%;
                }
                
                .popup-header {
                    font-size: 26px;
                }
		
		th:nth-child(1),
		td:nth-child(1) {
			width: 13%;
		}

		th:nth-child(2),
		td:nth-child(2) {
			width: 13%;
		}
		
		th:nth-child(3),
		td:nth-child(3) {
			width: 14%;
		}
		
		th:nth-child(5),
		td:nth-child(5) {
			width: 15%;
		}
		
		th:nth-child(6),
		td:nth-child(6) {
			width: 7%;
		}

		th:nth-child(7),
		td:nth-child(7) {
			width: 19%;
		}
                
                th:nth-child(8),
		td:nth-child(8) {
			width: 7%;
		}
	}

	@media (max-width: 560px) {
		table {
			font-size: 8px;
		}
		th, td {
			padding: 2px;
		}
		
		.add-to-watchlist {
			font-size: 7px;
		}
                
                .popup {
                    width: 90%;
                }
                
                .popup-header {
                    font-size: 20px;
                }

		
		th:nth-child(1),
		td:nth-child(1) {
			width: 10%;
		}

		th:nth-child(2),
		td:nth-child(2) {
			width: 16%;
		}
		
		th:nth-child(6),
		td:nth-child(6) {
			width: 9%;
		}

		th:nth-child(7),
		td:nth-child(7) {
			width: 20%;
		}
                
                th:nth-child(8),
		td:nth-child(8) {
			width: 9%;
		}
	}
	/*-------------------------------------------------------------------------------*/