@import url('https://fonts.googleapis.com/css2?family=Ubuntu+Mono:ital,wght@0,400;0,700;1,400;1,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@200;300;400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;700&display=swap');

:root {
    --pal-primary: #FFA77C;
    --pal-primary-light: #FFF1E2;
    --pal-black: #122930;
    --pal-light-grey: #f4f4f4;
    --pal-grey: #c7c7c7;
    --ros-topic: #859900;
    --ros-action: #cb4b16;
    --ros-service: #268bd2;
    --ros-param: #53497e;
    --ros-node: #7e2433;
    --ros-skill: #a16f00;
    --ros-msg: #2b2f8a
}

/* ===== Theme ====== */

body {
    font-family: 'Inter', sans-serif;
}
h1, h2, h3, h4, h5, h6 {
    font-weight: 600; /* bold */
    font-family: 'Plus Jakarta Sans', sans-serif;
}
h1, h1 code.literal {
    font-size: 40px;
}
h2, h2 code.literal {
    font-size: 32px;
    margin-top: 50px;
    border-radius: 0;
}
h3, h3 code.literal {
    margin-top: 28px;
    font-size: 26px;
}
h4, h4 code.literal {
    font-size: 20px;
}
h5, h5 code.literal {
    font-size: 18px;
}
a {
    text-decoration-color: var(--pal-grey);
}

.toctree-hidden-in-content {
    display: none;
}

.external:not(.image-reference)::before {
    content: "🌐";
    padding-right: 3px;
}

.std-term::before {
    content: "📋";
    padding-right: 2px;
}

.hide-element {
    display: none;
}

.admonition {
    margin: 40px 0;
}
.theme-toggle-container {
	display: none;
}
.sidebar-brand-text {
	display: none;
}
.mobile-header .header-center .brand {
	background-image: url('../PAL-Robotics-logo.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    height: 47px;
    width: 60vw;
    font-size: 0;
}
.sidebar-tree .current-page>.reference {
	color: var(--pal-primary);
}
.sidebar-tree li a {
	letter-spacing: 0.5px;
}
.toctree-l2 {
  font-size: smaller;
}
.highlight span.linenos {
	box-shadow: none;
}

img {
	margin: 20px 0;
}
.related-pages a, .related-pages a:hover {
	color: var(--pal-primary);
}
article a {
	font-weight: 400;
}
.highlight pre, .highlight pre *, code span.pre {
 	font-family: 'Ubuntu Mono', monospace!important;
}
.highlight pre, pre.literal-block {
    font-size: 15px;
}
.sig-inline, code.literal {
	font-size: 14px;
}
#version_chooser {
	color: var(--pal-black);
	padding: 0 14px 5px;
    font-size: 14px;
}
#version_chooser select {
	margin-top: 5px;
	width: 100%;
}
select {
	font-size: 16px;
	font-weight: 400;
	background-color: #fff;
	padding: 5px;
	color: var(--pal-black);
	border-color: var(--pal-black);
}
select:focus-visible {
	outline: none;
  	color: var(--pal-primary);
  	border-color: var(--pal-primary);
}
select:focus-visible option {
  	color: var(--pal-black);
  	cursor: pointer;
  	padding: 3px 0;
}

.robot-list {
    margin: 0px !important;
    padding: 0px !important;
    box-shadow: none !important;
}

.robot-list td {
    border: 0px !important;
}
.robot-list img {
    margin: 0px;
    width: 80px;
}
.robot-list .selected {
    border: 2px solid var(--pal-primary);
    border-radius: 5px;
}

.chip {
    border-radius:7px !important;
    padding: 0px 8px !important;
    height: 16px;
    line-height: 16px;
    font-size: 12px !important;
    display: inline-block;
    color: var(--color-foreground-border);
    font-weight: normal;
    margin-left: 3px;
}

.api-ros1::before {
    content: "ROS1";
}

.api-ros1 {
    background-color: #bfe1f6 !important;
}

.api-ros2::before {
    content: "ROS2";
}

.api-ros2 {
    background-color: #ffe5a0 !important;
}

.unsupported-robot-toaster {
    background: var(--color-admonition-title--warning);
    border-radius: 1rem;
    box-shadow: 0 .2rem .5rem rgba(0,0,0,.05),0 0 1px 0 hsla(220,9%,46%,.502);
    display: none;
    font-size: .8125rem;
    left: 0;
    margin-left: 50%;
    padding: .5rem .75rem .5rem .5rem;
    position: fixed;
    text-decoration: none;
    top: 1rem;
    transform: translateX(-50%);
    z-index: 10;
}

span.caption-text {
    font-style: italic;
    opacity: 0.8;
    font-size: 14px;
}
.ma-0 {
    margin:0px;
}
.guilabel {
    background-color: #ededed;
    border: 1px solid #cfcfcf;
    border-radius: 1px;
    color: #4b4b4b;
    font-size: 14px;
    padding: 1px 5px;
}

/* ===== Homepage =====*/

.homepage-top-info {
	display: flex;
    background: var(--pal-light-grey);
    padding: 20px;
    justify-content: space-between;
    margin: 20px 0 40px;
    border-radius: 0px;
    flex-wrap: wrap;
}
.homepage-top-info-column {
	display: flex;
    justify-content: flex-end;
    flex-direction: column;
}
.homepage-top-info code.docutils.literal.notranslate {
	background-color: var(--pal-primary);
    border: 0;
    color: #fff;
    margin-left: 10px;
    padding: 4px 10px;
    border-radius: 0px;
}
.homepage-top-info p a {
	color: var(--pal-black);
	font-weight: 400;
}
.homepage-top-info p a:hover {
	color: var(--pal-primary);
}
img.robots-welcoming {
	height: 195px;
	padding-right: 20px;
}
table.get-started-cards, table.doc-sections-cards {
	box-shadow: none;
	font-size: var(--font-size--normal);
}
.get-started-cards tbody {
	display: flex;
	flex-wrap: wrap;
}
.get-started-cards tr {
	display: flex;
    width: 50%;
    flex-direction: column;
    flex-wrap: wrap;
}
.get-started-cards td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 150px;
    width: 93%;
    min-width: 300px;
    background-color: var(--pal-light-grey);
    margin-bottom: 20px;
}
.get-started-cards td:hover {
	filter: brightness(0.98);
}
.get-started-cards td:first-child {
	margin-right: 20px;
}
.get-started-cards td a, .doc-sections-cards td a {
	text-decoration: none;
}
.get-started-cards td p {
    order: 1;
    display: flex;
    padding: 5px 10px 5px 20px;
    justify-content: flex-start;
}
.get-started-cards td p a {
    text-align: left;
    color: var(--pal-black);
    font-weight: 400;
    width: 100%;
    display: flex;
    align-items: center;
    cursor: pointer;
}
.get-started-cards td .image-reference {
	order: 2;
	width: 30%;
    padding-right: 20px;
}
.get-started-cards td, .doc-sections-cards td {
	border: none!important;
    border-radius: 0px;
}

.tutorial-cards td {
    height: auto;
}

.tutorial-cards img {
    width: 30%;
}


.tutorial-description {
    flex-direction: column;
    display:flex;
}

.tutorial-cards td p:nth-child(2) {
    font-size: 12px;
    text-align: left;
}

table .doc-section-image {
	background-color: var(--pal-primary-light);
    height: 140px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 0px;
    z-index: 1;
    position: relative;
}
.doc-section-image:hover {
	background-color: #fbe8d4;
}
.doc-section-image a {
	width: 100%;
}
.doc-sections-cards tbody {
	display: flex;
    flex-wrap: wrap;
    width: 100%;
}
.doc-sections-cards tr {
	display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 100%;
}
.doc-sections-cards td {
	width: 30%;
}
.doc-sections-cards p a {
    font-size: var(--font-size--small);
    line-height: 107%;
    display: block;
    padding: 5px 10px;
    text-align: left;
    color: var(--pal-black);
    font-weight: 400;
}
.doc-sections-cards p {
	background-color: var(--pal-light-grey);
    padding: 40px 0 20px 0;
    margin: -20px 0 15px 0!important;
    border-radius: 0 0 0px 0px;
}
#empty-section-slot {
	display: none;
}

.ros-interface {
    font-family: 'Ubuntu Mono', monospace;
}

.ros-interface::before {
    border-radius: 2px 2px 2px 2px;
    display: inline-block;
    font-size: 11px;
    font-weight: bold;
    padding: 1px 4px;
    text-decoration: none;
    margin-right: 5px;
    vertical-align: 2px;
}

.ros-topic::before {
    content: 'topic';
    background-color: var(--ros-topic);
    color: #fff;
}

.ros-action::before {
    content: 'action';
    background-color: var(--ros-action);
    color: #fff;
}

.ros-service::before {
    content: 'service';
    background-color: var(--ros-service);
    color: #fff;
}

.ros-param::before {
    content: 'param';
    background-color: var(--ros-param);
    color: #fff;
}

.ros-node::before {
    content: 'node';
    background-color: var(--ros-node);
    color: #fff;
}
.ros-msg::before {
    content: 'msg';
    background-color: var(--ros-msg);
    color: #fff;
}
.ros-skill::before {
    content: 'skill';
    background-color: var(--ros-skill);
    color: #fff;
}

#web-user-interface img, #visual-programming img {
    border-radius: 16px
}

/* ===== Responsive =====*/

@media only screen and (max-width: 800px) {
	.doc-sections-cards p a {
		font-size: 14px;
	}
}
@media only screen and (max-width: 650px) {
	.get-started-cards tr {
	    width: 100%;
	}
	.get-started-cards td {
    	height: 120px;
	}
	.get-started-cards .image-reference img {
		width: 75%;
		max-width: 90px;
	}
}
@media only screen and (max-width: 520px) {
	.doc-sections-cards td {
	    width: 100%;
	}
	.doc-sections-cards p a {
		font-size: 14px;
	}
	.homepage-top-info h1 {
		font-size: 32px;
	}
	.doc-section-image a {
	    width: 50%;
	}
}
@media only screen and (max-width: 380px) {
	.doc-section-image a {
	    width: 85%;
	}
}
