/* home */

@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,200;0,300;0,400;0,500;0,600;0,800;1,300;1,400;1,500;1,800&display=swap");

html,
body {
  font-family: "Poppins", sans-serif !important;
  width: auto !important;
  overflow-x: hidden !important;
  font-size: 0.95rem;
} 

a {
    color:#1b3e90;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

.btn-green {
    padding: 10px;
    max-width: 90%;
    font-size: 0.8em;
    min-width: 200px;
    color: white;
    background-color: #1b3e90;
    border: 3px solid #1b3e90;
    font-weight: 500;
}

.btn-green:hover {
    color: #1b3e90;
    background-color: rgba(255, 255, 255, 0);
    font-weight: 500;
}

.btn-brown {
    padding: 10px;
    max-width: 90%;
    font-size: 0.8em;
    min-width: 200px;
    color: white;
    background-color: #363636;
    border: 3px solid #363636;
    font-weight: 500;
}

.btn-brown:hover {
    color: #363636;
    background-color: rgba(255, 255, 255, 0);
    font-weight: 500;
}

.green-text {
    color: #1b3e90;
}

.brown-text {
    color: #363636;
}

.black-text {
    color: black;
}

.blog {
    text-decoration: none;
}

.example-header-block {
    color: white;
    background-color: #363636;
    width: 100%;
    padding-top: 40px;
    padding-bottom: 40px;
    padding-left: 20px;
    padding-right: 20px;
    text-align: center;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    height: 100%;
}

.header-block-icon {
    height: auto;
}

.header-block-text {
    height: auto;
    flex: 1 1 auto;
    display: table;
}
 
.block-text {
    display: table-cell;
    vertical-align: middle;
}

.oai-text-header {
    line-height: 1.4;
    font-size: 24px;
    font-weight: 500;
    color: #363636;
}

.oai-text-content {
    line-height: 2;
    font-size: 14px;
    font-weight: 500;
}

#rmax-trail-background {
    background-image: url('/oai/media/rmax-desert-background_v2.jpg'); 
    background-position-x: 60%; 
    background-position-y: 30%; 
    background-size: cover; 
    background-repeat: no-repeat; 
    width: 100vw; 
    height: 100vh;
}

#rmax-camping-background {
    background-image: url('/oai/media/rmax-camping-background.jpg'); 
    background-position-x: 60%; 
    background-position-y: 25%; 
    background-size: cover; 
    background-repeat: no-repeat; 
    width: 100vw;
    height: 100vh;
}

#oai-about-section {
    background-image: url('/oai/media/rmax-trail-background_v2.jpg'); 
    background-position: 62% 30%; 
    background-size: cover;
    background-repeat: no-repeat;
}

#POR_text {
    max-width: 570px;
    font-weight: 400;
    font-size: .7em;
    margin-left: auto;
    margin-right: auto;
    background-color: white;
}

.smallTitle {
    font-size: 0.7rem;
}

.white {
  color: white;
}

.white:hover {
  color: white;
} 

@-webkit-keyframes ticker {
  0% {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    visibility: visible;
  }

  100% {
    -webkit-transform: translate3d(-100%, 0, 0);
    transform: translate3d(-100%, 0, 0);
  }
}

@keyframes ticker {
  0% {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    visibility: visible;
  }

  100% {
    -webkit-transform: translate3d(-100%, 0, 0);
    transform: translate3d(-100%, 0, 0);
  }
}

.ticker-wrap {
  background-color: #363636;
  bottom: 0;
  width: 100%;
  overflow: hidden;
  height: 2.2rem;
  padding-left: 100%;
  box-sizing: content-box;

  .ticker {
    display: inline-block;
    height: 2.2rem;
    line-height: .2rem;  
    white-space: nowrap;
    padding-right: 100%;
    box-sizing: content-box;

    -webkit-animation-iteration-count: infinite; 
            animation-iteration-count: infinite;
    -webkit-animation-timing-function: linear;
            animation-timing-function: linear;
    -webkit-animation-name: ticker;
           animation-name: ticker;
    -webkit-animation-duration: 30s;
            animation-duration: 30s;

    .ticker__item {
      display: inline-block;
      padding: 0 1rem;
      font-size: .9em;
      color: white;  
    }

    .ticker__item:hover {
        color:#b1b1b1;
    }

  }

}

@media screen and (max-width: 400px) {

    #rmax-camping-background p {
        font-size: .75em;
    }

}

@media screen and (max-width: 767px) {

    .oai-text-content {
        max-width: 100%; 
        text-align: center; 
        float: none;
        padding-left: 20px;
        padding-right: 20px;
        font-size: .8em;
    }

    #oai-about-section {
        background-image: url('https://www.yamahamotorsports.com/oai/media/rmax-trail-background_v4.jpg'); 
        background-position: top, center; 
    }

    .section-header {
        text-align: center;
    }

    .ticker-wrap {
        display: none;
    }

}

@media screen and (max-width: 1200px) {

    #POR_text {
        text-align: center;
    }

}

/* nav */

#nav-bar {
    padding-left: 10px; 
    padding-right: 10px; 
    width: 100%; 
    height: 80px; 
    position: fixed; 
    z-index: 10000; 
    top: 0px; 
    display: flex;
    justify-content: center;
}

#nav-container {
    height: 100%; 
    min-width: 200px;
    max-width: 1525px;
    width: 100%;
    display: flex;
    justify-content: space-between;
}

#logo-container {
    float: left; 
    z-index: 15000;
    padding: 5px;
    align-self: center;
}

#nav-tab-container {
    float: right; 
}

#nav-hamburger {
    float: right;
    display: none;
    color: black;
}

#nav-list {
    height: 100%; 
    display: table;
}

.slide-in-nav-tab {
    width: 100%;
    padding: 12px 25px 12px 25px;
    color: #363636;
    font-weight: 600;
    cursor: pointer;
}

.slide-in-nav-tab:hover {
    color: white;
    background-color: #363636d8;
    text-decoration: none;
}

#slide-in-nav-list a {
    width: 100%;
    height: 100%;
    color: #363636;
    text-decoration: none;
}

#slide-in-nav-list a:hover {
    color: #ffffff;
    text-decoration: none;
}

.nav-tab {
    display: table-cell; 
    vertical-align: middle; 
    height: 100%; 
    padding-right: 15px; 
    padding-left: 15px; 
    font-weight: 600;
    color: #363636;
    cursor: pointer;
}

.nav-tab:hover {
    color: #1b3e90;
}

.nav-tab a {
    color: #363636;
    text-decoration: none;
}

.nav-tab a:hover {
    color: #1b3e90;
    text-decoration: none;
}

#slide-in-nav {
    display: none;
}

.nav-open-close {
    cursor: pointer;
    transition: display 5s;
}

#slide-in-nav-list {
    border-top: 1px solid #363636;
    border-bottom: 1px solid #363636;
}

@media screen and (max-width: 700px) {
    #nav-tab-container {
        display: none;
    }

    #nav-hamburger {
        display: table;
        height: 50px; 
    }

    #nav-hamburger i {
        display: table-cell; 
        vertical-align: middle;  
    }

    #slide-in-nav {
        display: block;
        position: absolute;
        width: 0px;
        right: 0px;
        height: 100vh;
        text-align: center;
        background-color: #ffffffda;
        padding-top: 80px;
        z-index: -1;
        transition: width .2s;
        transition-timing-function: linear;
    }

    #slide-in-nav.open {  
        width: 100vw;
        transition: width .2s;
        transition-timing-function: linear;
    }
}

@media screen and (max-width: 300px) {
    #logo-container {
        text-align: center;
        width: 100%;
    }

    #slide-in-nav {
        text-align: center;
        max-width: 100%;
    }

    #nav-hamburger {
        text-align: center;
        width: 100%;
    }

    #slide-in-nav {
        padding-top: 110px;
    }
}

/* blogs */

.blog-img {
    width: 100%;
    height: auto;
    aspect-ratio: 1/.75;
    background-size: cover;
    overflow: hidden;
    background-repeat: no-repeat;
}

.blog-header p {
    font-weight: 500;
    font-size: .8em;
}

.openCloseCircle {
    stroke: #363636;
    stroke-width: 4px;
    fill: #363636;
}

.blog-year {
    height: 35px;
}

.blog-year h6 {
    float: left; 
    height: 100%; 
    vertical-align: middle; 
    line-height: 35px;
    margin-left: 20px;
    margin-bottom: 0px;
}

.year-section {
    border: 1px solid black;
}

.blogs {
    overflow: hidden;
}

.blogs.closed {
    display: none;
}

.blog-child.closed {
    display: none;
}

/* application form */

.form-control {
    width: 100%;
    height: 38px;
    border: 1px solid #B0B0B0;
    box-shadow: none;
    padding: 10px 10px;
    border-radius: 0%;
}

.form-group {
    padding: 5px;
    margin-bottom: 5px;
    width: 100%;
    border: none;
}

.form-control:focus {
    border: 2px solid #1b3e90;
    border-radius: 0px;
    box-shadow: none;
    outline: none;
}

input[type="file"] {
    padding: 3px !important;
}

.form-group textarea {
    width: 100%;
    height: 185px;
    border: 0.5px solid #B0B0B0;
    resize: none;
    box-shadow: none;
    padding: 10px 10px;
    border-radius: 0px;
    outline: none;
    box-sizing: border-box;
}

.form-group textarea:focus {
    border: 3px solid #1b3e90;
    border-radius: 0px;
    box-shadow: none;
    outline: none;
}

.form_nav_tab {
    text-align: center;
    padding: 10px;
    background-color: white;
    color: #363636;
}

.form_nav_tab.done {
    background-color: #3f0000;
    color: white;
}

.red-text {
    color: red;
}

/* application */

.vert-align-container {
    height: auto;
    flex: 1 1 auto;
    display: table;
}
 
.vert-align-block {
    display: table-cell;
    vertical-align: middle;
}

.application-text {
    font-size: 16px;
    height: 1000px;
}

/* blog page */

.newBlogs::-webkit-scrollbar {
    display: none;
  }
  
#page_img {
    max-width: 100%;
}
  
@media screen and (max-width: 350px) {
  #moreArticles {
      display: none;
  }
}

/* contact */

.contact-form-field {
    width: 100%;
    height: 38px;
    border: 1px solid #B0B0B0;
    box-shadow: none;
    padding: 10px 10px;
    border-radius: 0%;
}

.contact-form-text-field {
    width: 100%;
    height: 185px;
    border: 0.5px solid #B0B0B0;
    resize: none;
    box-shadow: none;
    padding: 10px 10px;
    border-radius: 0px;
    outline: none;
    box-sizing: border-box;
}

.contact-form-field:focus {
    border: 2px solid #1b3e90;
    border-radius: 0px;
    outline: none;
}

.contact-form-text-field:focus {
    border: 3px solid #1b3e90;
    border-radius: 0px;
    outline: none;
}

.form-field-label {
    margin-bottom: 1px;
}

.contact-header {
    color: #363636;
    font-weight: 600;
}

.contact-content {
    font-weight: 400;
}

/* grants */

.bold {
    font-weight: 500;
}

.grant_example {
    width: 100%;
    background-color: #EFEFEF;
    margin-bottom: 20px;
}

.grant_example_img {
    height: 175px;
    width: 100%;
    background-position: 50%;
    background-size: cover;
    background-repeat: none;
    display: inline-block;
}

.grant_example_info {
    height: 100%;
    flex: 1 1 auto;
    display: table !important;
    padding: 20px 40px 20px 40px;   
}

.grant_example_content {
    display: table-cell;
    vertical-align: middle;
}

.grant_example_content .header {
    margin: 0px;
}

.grant_example_content .date {
    margin: 0px;
    color: #1b3e90;
}

.grant_example_content .classification {
    margin: 0px;
}

.grant-img {
    width: 100%;
    height: auto;
    aspect-ratio: 1/.5;
    background-size: cover;
    overflow: hidden;
    background-repeat: no-repeat;
}

@media screen and (max-width: 760px) {
    .grant_example_info {
        padding: 20px;   
    }

    .grant_example_content .header {
        font-size: calc(14px + (28 - 14) * ((100vw - 300px) / (1600 - 300)))
    }

    .grant_example_content .date {
        font-size: calc(8px + (16 - 8) * ((100vw - 300px) / (1600 - 300)))
    }

    .grant_example_content .classification {
        font-size: calc(10px + (20 - 10) * ((100vw - 300px) / (1600 - 300)))
    }
}

/* grant */

#grant-main-img {
    width: 100%;
    height: auto;
}
