@media all and (max-width: 1385px)
{
	.sidebarbutton
	{
		padding: 10px 7px;
	}
	.sidebarbutton_join
	{
		padding: 6px 14px;
	}
}
@media all and (max-width: 1340px)
{
	.sidebarbutton
	{
		font-size: 13px;
	}
}
@media all and (max-width: 1243px)
{
	#restofpage
	{
		margin-top: 70px;
	}
	.logoontop
	{
		height: 4vw;
		margin-top: 1vw;
		margin-left: -10px;
		position: absolute;
	}
}
@media all and (max-width: 1100px)
{
	.rightpanel
	{
		width: 100%;
	}
	.leftpanel
	{
		width: 100%;
	}
}

@media all and (max-width: 1020px)
{
	#restofpage
	{
		margin-top: 50px;
	}
	.restofpage_mobile
	{
		margin-top: 112px !important;
	}
	#mobilebar
	{
		position: fixed;
		top: 0;
		display: flex;
		justify-content: space-between;
		align-items: center;
		background-color: #444444;
		z-index: 20;
		width: 100%;
		height: 50px;
		box-shadow: 0px 0px 10px 0px #000000;
	}
	#mobilebarlogo
	{
		width: 168px;
		margin-top: 7px;
	}
	#menubuttons
	{
		margin-right: 0px;
	}
	#mobilemenubutton
	{
		width: 50px;
		height: 50px;
		background-color: #ff7e00;
		padding: 10px;
	}
	#mobilemenuloginbutton
	{
		color: white;
		padding: 10px;
		cursor: pointer;
	}
	.dropdownmenu
	{
		padding-right: 0;
		left: 0;
		position: relative;
		box-shadow: none;
	}

	#menu
	{
		position: fixed;
		width: 300px;
		height: 100%;
		overflow-y: auto;
		left: -310px;
		padding: 10px;
	}
	.sidebarbutton
	{
		width: 100%;
		text-align: left;
		font-size: 15px;
		padding: 10px 0px 10px 20px;
		margin: 0;
	}
	#smallermenubuttons
	{
		text-align: center;
	}
	#smallermenubuttons .sidebarbutton
	{
		width: auto;
		padding: 10px 3px;
	}
	.dropdownmenu .sidebarbutton
	{
		font-size: 12px;
		padding-left: 40px;
	}
	.sidebarform
	{
		width: 100%;
		float: none;
	}
	.sidebarform input
	{
		width: 100%;
		height: auto;
		padding-left: 40px;
		margin-top: 4px;
	}
	.sidebarformSearchMagnifyIcon
	{
		margin: 14px;
	}
	.sidebarform_mobile_show
	{
		display: block;
	}
	.logoontopbox
	{
		width: 100%;
		height: auto;
		float: none;
		text-align: center;
		margin-left: 0
	}
	.menu-x-button
	{
		display: block;
	}
	.logoontop
	{
		width: 90%;
		height: 70px;
		position: relative;
		margin-top: 20px;
	}
	.sidebarform
	{
		margin-left: 0px;
		margin-right: 0px;
		height: auto;
	}
	#searchsugg
	{
		width: 260px;
	}

	.search-page-layout
	{
		display: block;
	}
	.search-page-layout > *:first-child, .search-page-layout > *:last-child
	{
		margin-left: inherit;
		margin-right: inherit;
		padding-left: 2rem;
		padding-right: 2rem;
	}
	.filter
	{
		width: 100%;
	}

	.below-filter-ad
	{
		display: none;
	}
}

@media all and (max-width: 850px)
{
	.header-level2
	{
		font-size: 20px;
	}
	.header-decoration:before, .header-decoration:after
	{
		font-size: 24px;
		display: none;
	}
	.page-header
	{
		padding: 20px 10px 20px 10px;
		text-align: center;
		font-size: 30px;
	}
	.page-header img
	{
		height: 30px;
	}
	.frontpagebox h2
	{
		font-size: 6vw;
	}
	.extra-large-text, .large-text
	{
		font-size: 7vw;
	}

	.front-summary-box h3
	{
		font-size: 20px;
	}
	
	body, p, .textbox, .alert-message, .no-affiliation-message, .rc-checkbox-label_agreement
	{
		font-size: 14px;
	}
	
	.eventname
	{
		font-size: 10px;
	}
	.status-pill
	{
		font-size: 10px;
	}
	.status-pill_filter
	{
		font-size: inherit;
	}
	
	.todayevent
	{
		width: 100%;
	}
	.racingflagcorner
	{
		right: 0px;
	}
	
	.rightpanel
	{
		padding: 20px;
	}
	
	.mapwrapper
	{
		height: 300px;
		overflow: scroll;
	}
	
	.helpanswer
	{
		overflow-y: auto;
	}
	
	.maindatarow
	{
		text-align: center;
		padding: 10px;
		font-size: 15px;
		background: transparent;
	}
	.maindatarow label
	{
		width: 80px;
		margin: 0;
		width: 100%;
		background: transparent;
		color: #ff7e00;
		display: inline;
		font-weight: 700;
		padding: 0;
	}
	.maindatarow label:after,.maindatarow label:before
	{
		content: " | ";
	}
	
	.smallerflag
	{
		width: 21px;
		height: 14px;
	}
	.eventnamecircuit
	{
		font-size: 14px;
	}
	.rc-table-discipline-icon
	{
		height: 18px;
	}
	.rc-table-discipline-icon-td
	{
		width: 18px;
	}
	
	label, input, textarea, select, .settingsbox label, .settingsbox input, .settingsbox textarea, .settingsbox select, .popupbox input:not([name="stars"]), .popupbox label
	{
		width: 100%;
	}
	#searchform label
	{
		width: auto;
		max-width: auto;
	}

	#mainfrontboxSearch
	{
		width: 90%;
	}
	#mainfrontboxSearchInput
	{
		max-width: none;
		font-size: 24px;
		padding: 16px 24px 16px 52px;
	}
	#mainfrontboxSearchInput::placeholder
	{
		font-size: 16px;
	}
	.mainfrontboxSearchMagnifyIcon
	{
		height: 26px;
		margin: 19px;
	}
	.mainfrontboxSearchsugg
	{
		width: 90%;
		max-height: unset;
	}
	.mainfrontboxSearchsugg .searchsugg-item
	{
		font-size: 15px;
		height: 37px;
		padding: 10px;
	}
	.mainfrontboxSearchsugg .searchsugg-item .mapflag
	{
		height: 18px !important;
	}
	
	#yearmenucontainer, #countrymenucontainer, #yearmenuselector, #countrymenuselector
	{
		margin-left: 3%;
	}

	.search-page-layout > *:first-child, .search-page-layout > *:last-child
	{
		margin-left: inherit;
		margin-right: inherit;
		padding-left: 1rem;
		padding-right: 1rem;
	}

	table, .detailed-table
	{
		font-size: 12px;
	}

	.new-to-rc-banner-logo
	{
		display: none;
	}

	#uploadImageForm, #imageUploadWrapper
	{
		flex-direction: column;
	}
	#uploadImageForm .width-50, #imageUploadWrapper .width-50
	{
		width: 100%;
	}

	.page-intro-wrapper
	{
		flex-direction: column;
	}
	.page-intro-wrapper>div
	{
		width: 100%;
	}
	.page-intro-image-wrapper
	{
		background-size: cover;
	}
	.page-intro-description-wrapper
	{
		padding: 24px;
	}
}

@media all and (max-width: 760px)
{
	.settingsbox
	{
		float: none;
		width: 100%;
	}
}

@media all and (max-width: 650px)
{
	.textbox, .rc-table
	{
		width: 100%;
	}
	.frontpagebox
	{
		padding: 10vw;
	}
	.frontpagebox_smaller-padding
	{
		padding: 3vw;
	}

	#cookiebar
	{
		max-width: none;
		bottom: 10px;
		right: 0;
		left: 50%;
		width: 90%;
		margin-left: -45%;
		box-shadow: 5px 5px 10px 10px rgba(0,0,0,0.2);
		font-size: 16px;
	}

	.messageresponse
	{
		max-width: none;
		bottom: 0;
		width: 100%;
		left: 0;
		font-size: 16px;
		border-radius: 0;
	}

	.follow-button 
	{
		font-size: 16px;
		padding: 12px 38px;
	}

	.page-intro-description-button-wrapper
	{
		flex-direction: column;
		align-items: start;
		gap: 24px;
	}
	.page-intro-description-wrapper
	{
		padding: 24px;
	}
	.page-intro-description-title
	{
		font-size: 30px;
	}
	.page-intro-description-subrow
	{
		font-size: 16px;
	}
	.season-title-year
	{
		font-size: 32px;
		padding-right: 4px;
	}
}

@media all and (max-width: 400px)
{
	body, .textbox, p
	{
		font-size: 13px;
	}

	.front-summary-box
	{
		padding: 18px;
	}
	.front-summary-box-shape
	{
		transform: none;
	}
}

@media all and (max-width: 360px)
{
	.ratingtd
	{
		display: none;
	}
}