:root {
  --bg: #121212;
  --fg: #ffffff;
  --accent: #d4af37;
  --muted: #9d9d9d;
  --pfsize: 1.25rem;
  --pfsize2: 4vw;
  --bft: #035503;
}

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: "inter";
}

/* main page style */

body {
  background-color: var(--bg);
  color: var(--fg);
}

@font-face {
  font-family: cinzel;
  src: url(/assets/cinzel-57cf088d061b9f92fcb32e83cea18402aad201626cf8516d864c45a71b5c9911.ttf);
  font-display: swap;
}

@font-face {
  font-family: "inter";
  src: url(/assets/inter-e71707b5462f6af646e7e14399ca630783ef0df560544b17d64d940d6fc418cf.ttf);
  font-display: swap;
}

main {
  max-width: 100%;
}

.content {
  width: 1000px;
  max-width: 90%;
  box-sizing: border-box;
  padding: 20px;
  margin: 0 auto;
  text-align: justify;
  hyphens: auto;
  display: flex;
  flex-direction: column;
}

.content .pic {
  max-width: 100%;
  width: 800px;
  margin: 20px auto;
}

.content h1, .content h2, .content h3 {
  text-align: center;
}

.content h3 {
  margin-top: 60px;
}

.btn {
  display: flex;
  align-items: center;
  gap: 8px;

  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  font-size: min(var(--pfsize), var(--pfsize2));
  transition: 0.3s ease;

  color: var(--bg);
  background-color: var(--accent);
  border: 1px solid var(--accent);
  width: fit-content;
}

.btn img {
  transition: 0.3s ease;
}

.btn:hover {
  color: var(--accent);
  background-color: var(--bg);
  border: 1px solid var(--fg);
  cursor: pointer;
}

.btn:hover img {
  filter: invert(1);
}

.bft-logo {
  max-width: 100%;
  width: 400px;
  margin: 10px;
  border-radius: 10px;
  margin: 60px auto 0px auto;
}

.bft-btn {
  display: flex;
  align-items: center;
  gap: 8px;

  padding: 0px 15px 0px 0px;
  text-decoration: none;
  border-radius: 50px;
  font-size: min(var(--pfsize), var(--pfsize2));
  transition: 0.3s ease;
  max-width: 100%;
  margin: 0 auto;

  color: var(--bft);
  background-color: var(--fg);
}

.bft-btn:hover {
  color: var(--fg);
  background-color: var(--bft);
  /*
  color: var(--fg);
  background-color: gray;
  cursor: not-allowed;
  */
}

.bft-btn img {
  width: 64px;
}

.content .btn {
  max-width: 100%;
  margin: 0 auto;
}

h1, h2, h3, h4, h5, h6 {
  font-family: cinzel, serif;
  margin: 0;
}

h1 {
  font-size: min(2.5rem, 10vw);
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 2rem;
}

.subtitle {
  display: block;
  font-size: min(2rem, 7vw);
}

.schedule {
  display: grid;
  grid-template-columns: max-content;
  word-wrap: break-word;
  gap: 10px 20px;
  max-width: 100%;
  width: 500px;
  box-sizing: border-box;
  border: 1px solid var(--fg);
  padding: 20px;
  margin: 40px auto;
}

.schedule dd {
  font-weight: bold;
}


/* hero style*/
#hero {
  /*
  text-align: left;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  */

  /*background: linear-gradient(to right, var(--bg) 0%, transparent 70%), url(/assets/stock1.jpg);*/

  /*background-image: url(asset_path('stock3-dark.jpg'));
  background-image: url(/assets/stock3-dark-06fcebb3ded109392045b282c80383d4e135b18cf32e114731259ab1239eb69f.jpg);*/
  /*background-image: url(/assets/IMG-3066-eb00b9037d03ced3d1b5ceb70153eb82fecd89a8393eeb13df65af93281bd770.jpg);*/
  height: 100vh;
  width: 100%;
  z-index: -1;
  position: absolute;
  top: 0;
}

.hero-layer {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  height: 100%;
  transition: opacity 1.5s ease-in-out;
  opacity: 0;
  position: absolute;
  filter: brightness(45%);
}

#layer1 {
  z-index: 1;
}

#layer2 {
  z-index: 2;
}

.hero-container {
  width: 100%;
  height: calc(100vh - 100px);
  box-sizing: border-box;
  position: relative;


  /*
  display: flex;
  gap: 20px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  */

  overflow-y: hidden;
}

.hero-container div {
  margin-bottom: min(20px, 3vw);
}

.about-link {
  position: absolute;
  transform: translateX(-50%);
  left: 50%;
  bottom: 0;
}

.about-link img {
  width: 32px;
  filter: invert(1);
  opacity: 60%;
  margin-bottom: 22px;
}

.about-link img:hover {
  opacity: 100%;
}

.hero-title {
  display: flex;
  text-align: center;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 0;
}

.hero-title h1 {
  font-size: min(4rem, 14vw);
}

.hero-title img {
  max-width: 100%;
  width: 400px;
}

.hero-logo {
  max-width: 100%;
  width: 400px;
}

.tagline {
  font-size: min(var(--pfsize), var(--pfsize2));
  text-align: center;
  margin-bottom: 20px;
  padding: 0;
}

.btn-container {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.info-line {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  gap: 8px;
  color: var(--fg);
  font-size: min(var(--pfsize), var(--pfsize2));
}

.info-line a {
  color: var(--fg);
}

.info-line img {
  filter: invert(1);
}

.hidden {
  position: absolute;
  display: none;
}

/* navbar style */

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  width: 100%;
  box-sizing: border-box;
}

nav a {
  color: var(--fg);
  text-decoration: none;
}

.navbar-right {
  display: flex;
  align-items: center;
}

.logo {
  height: 100px;
  width: auto;
}

.profile {
  display: flex;
  align-items: center;
}

.profile-icon {
  width: 24px;
  height: 24px;
  margin-right: 8px;
  filter: invert(1);
}


/* Account Page */

.admin-option {
  color: var(--fg);
}

.account {
  text-align: center;
}

.logout {
  margin: 50px auto;
  max-width: 100%;
}

.subscription-box {
  background-color: var(--fg);
  color: var(--bg);
  width: 500px;
  max-width: 100%;
  border-radius: 20px;
  padding: 30px;
  margin: 0 auto;
  box-sizing: border-box;
}

.sub-price {
  font-size: 3rem;
}

.sub-time {
  font-size: 1.5rem;
  font-weight: bold;
}

.subscription-box p {
  font-size: 1rem;
  margin: 0;
}

.subscription-box ul {
  list-style: none;
  padding: 0;
}

.subscription-box ul li {
  padding-left: 25px;
  background: url(/assets/svg/check-062fae18a685083422bae530805f5eba65b492d52b2d656a5d2cb2ba1e316d24.svg) no-repeat left center;
  background-size: 16px 16px;
  margin-bottom: 15px;
}

.subscription-box .btn {
  margin: 0 auto;
}

.new_user input[type="submit"], .sub-button {
  width: 100%;

  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  outline: none;
  border: none;
  font-size: 1rem;
  transition: 0.3s ease;

  color: var(--bg);
  background-color: var(--accent);
}

.new_user input[type="submit"]:hover, .sub-button:hover {
  color: var(--accent);
  background-color: var(--bg);
  cursor: pointer;
}

/* Login Style */

.devise-login {
  width: 400px;
  max-width: 100%;
  padding: 40px;
  margin: 0 auto;
  background-color: var(--fg);
  color: var(--bg);
  border-radius: 20px;
  box-sizing: border-box;
}

.devise-login h2 {
  margin-bottom: 20px;
}

.new_user {
  margin-top: 20px;
}

/* Input Fields */
.new_user input[type="email"],
.new_user input[type="password"],
.form-name {
  width: 100%;
  padding: 10px;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  box-sizing: border-box;
}

.new_user input[type="submit"] {
  margin: 20px 0;
}

.devise-login a {
  color: var(--bg)
}

/* notices/alerts */

.flash-message {
  padding: 15px;
  margin: 10px 0;
  border-radius: 5px;
  font-size: 16px;
  font-family: Arial, sans-serif;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.flash-message.notice {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.flash-message.alert {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.flash-message button {
  background: transparent;
  border: none;
  color: inherit;
  font-size: 20px;
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
}

.flash-message {
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

#loading-spinner {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  border-radius: 5px;
  font-size: 18px;
  font-family: Arial, sans-serif;
  display: none;
  z-index: 1000;
}

#loading-spinner:before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 10px;
  border: 3px solid transparent;
  border-top: 3px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

footer {
  text-align: center;
  color: gray;
  margin-bottom: 15px;
}

footer a {
  color: gray;
}


.admin-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}
