/* Reset some default styles */
body, h1, h2, h3, p, ul, li {
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
}
.container {
    max-width: 100%;
    margin: 0;
    padding: 0 20px;
}
.deal-container {
    max-width: 100%;
    margin: 0;
    padding: 0 20px;
    display: flex;
}
#deals {
    flex: 2; /* Take up 2/3 of the container */
}

.sidebar {
    flex: 1; /* Take up 1/3 of the container */
    background-color: #f4f4f4; /* Example background color */
}
.logo {
	width: auto;
	height: 100px;
}
header {
    background-color: #333;
    color: #fff;
    padding: 20px 0;
}
header div p {
	font-size: 14px;
    text-align-last: center;
	
}
header h1 {
	margin: 0;
    font-size: 14px;
}

nav ul {
    list-style: none;
	padding-left: 70px;
}

nav ul li {
    display: inline;
    margin-right: 20px;
	
}

nav ul li:last-child {
    margin-right: 0;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
}

main {
    padding: 20px 0;
}

section {
    margin-bottom: 40px;
}

section h2 {
    margin-bottom: 20px;
}
#deals {
    margin-left: 30px;
}

aside {
    flex: 1;
    max-width: 400px; /* Adjust as needed */
    width: 100%; /* Ensure it takes the full width available */
    margin-right: 50px;
}

aside h2 {
    margin-bottom: 20px;
}

form input[type="text"] {
    width: 70%;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

form button {
    padding: 10px 20px;
    font-size: 1rem;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

form button:hover {
    background-color: #555;
}

#search {
	position: absolute;
	right: 0;
	width: 35%;
}

footer {
    background-color: #333;
    color: #fff;
	position: fixed;
	bottom: 0;
	width: 100%;
    padding: 20px 0;
    text-align: center;
}
/* Styles for the horizontal scrolling bar */
.horizontal-bar {
    background-color: black;
    overflow: hidden;
    width: 100%;
    z-index: 999;
}
.horizontal-bar:hover .scrolling-text {
    animation-play-state: paused;
}
.scrolling-text a {
    text-decoration: none;
    color: white;
}
.scrolling-text {
    white-space: nowrap;
    color: white;
    padding: 10px 0;
    animation: scrollText 20s linear infinite; /* Keep the animation */
}

@keyframes scrollText {
    0% {
        transform: translateX(100vw);
    }
    100% {
        transform: translateX(-50vw);
    }
}
.deal-box {
    width: 160px;
    height: 280px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin: 10px;
    padding: 10px;
    box-sizing: border-box;
    float: left; /* Ensures boxes are arranged horizontally */
    overflow: hidden; /* Hide overflowing content */
    position: relative; /* For absolute positioning of time remaining */
	color: #000;
    text-decoration: none;
}

.deal-box img {
    max-height: 50%;
	max-width: 100%;
    width: 100%;
    display: block;
    margin: 0 0 10px 0; /* Add space below the image */
	left: 0;
	right: 0;
}

.deal-box .name,
.deal-box p,
.deal-box .time-remaining {
    margin:  2px 0; /* Add space above and below each element */
}
.deal-box h3 {
    max-height: 52px; /* Adjust as needed */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Number of lines to show */
    -webkit-box-orient: vertical;
}
.deal-box .time-remaining {
    font-size: 12px;
	max-height: 20px;
}
.deal-box .name {
	font-weight: bold;
	max-height: 52px;
}
.deal-box .name:hover {
	text-decoration: underline;
}
.deal-box p {
	font-size: 14px;
	max-height: 45px;
}
.sidebar-container {
    width: 100%;
    height: 400px; /* Adjust as needed for the desired height */
    border: 1px solid #ccc;
    border-radius: 5px;
    margin: 10px 0;
    padding: 10px;
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
    color: #000;
    text-decoration: none;
    background-color: #f9f9f9; /* Light background color to make it visible */
}