@font-face {
  font-family: Hapna;
  src: url(../fonts/hapna.woff2) format("woff2"), url(../fonts/hapna.woff) format("woff"), url(../fonts/hapna.ttf) format("truetype");
  font-style: normal;
  font-weight: 400;
  text-rendering: optimizeLegibility;
}

@font-face {
  font-family: RDRLino;
  src: url(../fonts/RDRLino-Regular.woff2) format("woff2"), url(../fonts/RDRLino-Regular.woff) format("woff"), url(../fonts/RDRLino-Regular.ttf) format("truetype");
  font-style: normal;
  font-weight: 400;
  text-rendering: optimizeLegibility;
}

* {
  margin: 0;
  box-sizing: border-box;
  padding: 0;
}

body {
  font-family: Hapna, serif;
  background-color: #1a1a1a;
  background-image: url(https://s.rsg.sc/sc/images/games/RDR2/bg.jpg);
  font-weight: 700;
  user-select: none;
  display: grid;
  justify-content: center;
  color: white;
}

hr.menu-divider {
  height: 3px;
  width: 100%;
  border: none;
  background-image: url(../images/icons/header_border_divider.png);
  background-repeat: repeat-x;
  background-size: auto;
  margin: 5px auto;
  opacity: .5;
}

hr.small {
  height: 2px;
  width: 100%;
  border: none;
  background-image: url(../images/icons/header_border_divider.png);
  background-repeat: repeat-x;
  background-size: auto;
  margin: 5px 0;
  padding: 0;
  opacity: .5;
}

.rdo-font {
  font-family: RDRLino;
}

.rdo-frame {
  justify-self: center;
  display: flex;
  width: max(380px, calc(40% + 50px));
  justify-items: center;
  align-items: center;
  align-content: center;
}

img {
  max-width: 100%;
  height: auto;
}

.rdo-frame img {
  margin-top: 10px;
}

.rdo-frame .title {
  text-align: center;
  justify-self: center;
  background-image: url(../images/icons/header_bg_center.png);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  padding-top: 25px;
  height: 108px;
  margin: 10px 0 0 0;
  opacity: 1;
  width: 100%;
}

.hidden {
  display: none;
}

.ads,
.dailies {
  display: flex;
  flex-basis: 100%;
  height: 0;
  flex-wrap: wrap;
  justify-content: center;
  overflow-wrap: break-word;
  align-items: center;
  max-width: 1750px;
}

.ads {
  min-width: 100%;
}

.timers,
.nazar,
.weekly,
.jewelry,
.cycles,
.fme,
.daily-container {
  background-image: url(https://s.rsg.sc/sc/images/games/RDR2/roles/panel_bg.png);
  font-size: 18px;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  min-height: 55px;
  display: grid;
  padding: 25px;
  width: min(fit-content, 100%);
  height: fit-content;
  word-wrap: break-word;
  overflow-wrap: break-word;
  margin: 25px;
}


.daily-container {
  max-width: 530px;
}

.rows {
  display: flex;
}

.center-height {
  align-items: center;
}

.daily-goal {
  display: grid;
  text-align: center;
  align-items: center;
  justify-content: center;
  min-width: max-content;
  margin-right: 15px;
  font-size: 25px;
}

.daily-general {
  display: grid;
  align-items: center;
  justify-content: center;
  text-align: left;
}

.in-line {
  display: flex;
  align-items: center;
}

select {
  background-color: rgb(44, 44, 44);
  width: 165px;
  height: 30px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid rgb(59, 59, 59);
  outline: none;
  border-radius: 5px;
  margin: 0 0 3px 5px;
  color: white;
  padding: 0 0 0 5px;
}

.icon {
  width: 35px;
  height: 35px;
  margin: 0 12px 2px 0;
}

.icon-narrow {
  width: 40px;
  height: 40px;
  margin: 0 7px 2px 0;
}

.footer {
  display: flex;
  width: 100%;
  min-height: 150px;
  justify-content: space-around;
  flex-wrap: wrap;
  padding: 40px 0;
}

.footer>div {
  align-self: flex-end;
  text-align: center;
}

a,
a:hover,
a:link,
a:visited,
a:active {
  text-decoration: none;
  color: white;
}

a:hover {
  color: #cc0000;
}

.footer-content {
  line-height: 25px;
}

.donate {
  width: 40px;
}

.settings-container {
  font-size: 1.2rem;
  margin: 20px 50px 40px 50px;
}

#language {
  width: 160px;
  font-size: 16px;
}

.nazar-weekly-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
}

.collector-fme-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  width: 100%;
}

.timers,
.cycles,
.jewelry {
  width: fit-content;
}

/* .cycle-item {
  display: flex;
  justify-content: space-around;
} */

.jewelry-items {
  height: 52px;
}

.cycle-key {
  margin: 0 10px 10px 0;
}

.cycle-cycle {
  margin: 0 0 10px 10px;
  min-width: 15px;
  text-align: right;
}

.cycle-key {
  width: max(230px, 45%);
  /* justify-content: center;
  align-items: center; */
}

.cycle-cycle {
  text-align: center;
  font-size: 18px;
  margin: -10px 0 0 10px;
}

.fme-time {
  margin: 0 10px;
}

.fme-general,
.fme-role {
  margin: 0 15px;
}

.fme-order {
  display: flex;
  flex-wrap: wrap;
  line-height: 0.9rem;
}

.in-line > span {
  margin: 0 10px;
}

.small-text {
  font-size: 0.95rem;
  text-align: center;
}

.weekly-items {
  display: flex;
  justify-content: space-around;
  margin: 15px 0;
  flex-wrap: wrap;
  align-items: center;
}

.weekly-item {
  width: 225px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#weekly-image {
  height: auto;
  width: auto;
  max-width: 110px;
  max-height: 110px;
  min-height: 100px;
  margin: 15px 0;
}

.fme-highlight {
  color: #cc0000;
}

span[data-timediff], span[data-datetime] {
  color: rgb(180, 180, 180);
  font-size: 0.9rem;
  padding: 0;
  height: 23px;
}

.error {
  color: red !important;
}

.weekly-value {
  margin-left: 8px;
}

@media only screen and (max-width: 600px) {
  .timers,
  .nazar,
  .weekly,
  .jewelry,
  .cycles,
  .fme,
  .daily-container {
    font-size: 16px;
    margin: 0;
    min-width: 100%;
  }

  .daily-goal {
    font-size: 21px;
  }

  select {
    font-size: 18px;
  }
}

.blink {
  animation: blinker 3s linear infinite;
}

@keyframes blinker {
  50% {
    opacity: .75;
  }
}

/* The Modal (background) */
.modal {
  display: none;
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
}

/* Modal Content/Box */
.modal-content {
  text-align: center;
  align-items: center;
  justify-content: center;
  background-color: #1a1a1a;
  margin: 15% auto;
  padding: 5px 20px;
  border: 1px solid rgb(78, 78, 78);
  width: 80%;
}
.modal-content>span {
  display: flex;
  align-self: flex-end;
  justify-self: end;
  cursor: pointer;
}

.important {
  color: #cc0000;
  font-size: 26px;
}

a.blue-link:visited,
a.blue-link {
  text-decoration: underline;
  color: #00a2ff;
  cursor: pointer;
}

/* The Close Button */
.close {
  color: rgb(190, 190, 190);
  display: flex;
  font-size: 36px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: rgb(255, 255, 255);
  text-decoration: none;
  cursor: pointer;
}

@keyframes completed {
  from {
    color: rgb(255, 255, 255);
    text-decoration: none;
  }

  to {
    color: rgb(100, 100, 100);
    text-decoration: line-through;
  }
}

.completed {
  animation-name: completed;
  animation-duration: 0.5s;
  animation-fill-mode: forwards;
}

.rows>.daily-general {
  cursor: pointer;
}

.dailies-difficulty {
  margin-left: 10px;
}

#nazar-image {
  box-shadow: 0 0 10px black, 0 0 15px black;
}

a.popup-link-paypal {
  color: #009be3 !important;
}
a.popup-link-patreon {
  color: #f26351 !important;
}

.link-icon {
  height: auto;
  width: auto;
  max-width: 20px;
  max-height: 20px;
}

.time-descr {
  display: flex;
  width: fit-content;
  margin-top: 5px;
  margin-bottom: 5px;
}

[data-clock="game-time"] {
  text-align: right;
}
[data-clock="moonshine"] {
  text-align: right;
}
[data-clock="sighting"] {
  text-align: right;
}