/** 
 ** elements.css
 **  
 ** This file contains base rules of the theme.
 ** Base rules consist of styling for HTML elements only.
 ** Base rules should never include class selectors.
 **
 ** $Revision: 1.0$
 ** $Date: 2023-05-15$
 ** Author: Charles Sun
 ** Copyright: Montage Technology Co., Ltd.
 **/

@import "../variables.css";

body {
  font-family: Arial, Verdana, sans-serif !important;
  color: var(--fontcolor);
 /* background: #292929;*/
}

p {
  line-height: 1.7rem;
}

p a {
  color: #0c09fb;
}

ul li a {
  color: #0c09fb;
}

a,
.link {
  color: var(--primary);
}
a:hover,
a:focus,
.link:hover,
.link:focus {
 /*  color: #018fe2; */
  color: #0d0ad4;
}
a:active,
.link:active {
  color: #23aeff;
}


/* Generic table format */
thead {
  background-color: var(--primary);
}
thead tr th {
  background-color: unset;
}
tbody tr:nth-of-type(even) {
  background-color: rgba(0, 0, 0, 0.1);
}


/* image */
figure img {
  height: auto;
}

/*** h1,h2,h3 ... ***/

/* h1 is for the page title */
h1 {
  font-weight: normal;
  color: var(--accent);
  text-align: center;
}
/* add a line under the page title, use h1:after to replace <hr class="header-hr" */
h1:after {
  content: " ";
  display: block;
  height: 2px;
  width: 100px;
  background: var(--accent);
  margin: 20px auto;
}
/*
.header-hr {
  width: 100px;
  border-color: var(--accent);
  border-width: 2px;
}
*/

/* h2 is for the block headers, ex: feature block in the front page */
h2 {
  font-weight: normal;
  text-align: center;
  color: var(--accent);
  padding-bottom: 3px;
}

/* h3 is for the internal headers of a block */
h3 {
  font-weight: normal;
  text-align: center;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
h3 a {
  color: var(--accent);
}
h3 a:after {
  content: "\f0a9";
  font-family: "Font Awesome 5 Free";
  font-weight: bold;
  margin-left: 0.8rem;
}
h3 a:hover,
h3 a:active {
  text-decoration: none;
}

h3 a:hover,
h3 a:focus,
.link:hover,
.link:focus {
  color: #007bff;
}

/* h4 */
h4 {
  color: var(--primary);
  padding-top: 1.5rem;
  padding-bottom: 0.5rem;
}

h5 {
  color: var(--accent);
}

h5 a:hover,
h5 a:focus,
.link:hover,
.link:focus {
  color: #007bff;
}

h6 a:hover,
h6 a:focus,
.link:hover,
.link:focus {
  color: #007bff;
}

/* Resize in different displays */
h1 { font-size: 1.5rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.3rem; }
h5 { font-size: 1.1rem; }
@media (min-width: var(--breakpoint-lg)) {
  h1 { font-size: 2rem; }
  h2 { font-size: 2rem; }
}

/* bar under h2  */
h2~hr {
  border-color: var(--accent);
  border-width: 2px;
  width: 100px;
}

/* change sup font */
sup {
  font-size: 0.65em;
  top: -0.45em;
}
/* press-release page date css */
.node--type-press-release .field--name-field-date-released{
  margin: 1rem;
  text-align: center;
  color: rgba(0,0,0,0.5);
}
