/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html, body {
  overflow-x: hidden;
}

/* Color Palette:
   Primary Dark:   #27445D
   Secondary Dark: #497D74
   Accent:         #71BBB2
   Light:          #EFE9D5
*/

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #EFE9D5;
  color: #27445D;
  line-height: 1.6;
}

/* Container to constrain content on desktops */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Header Styles */
header {
  background: linear-gradient(90deg, #27445D, #497D74);
  color: #EFE9D5;
  padding: 15px 0;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #EFE9D5;
}

.logo-img {
  width: 50px;
  height: auto;
  margin-right: 10px;
}

.site-name {
  font-size: 1.8rem;
  font-weight: bold;
}

nav ul {
  list-style: none;
  display: flex;
}

nav ul li {
  margin-left: 20px;
}

nav ul li a {
  color: #EFE9D5;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #71BBB2;
}

/* Burger Menu Styles */
.burger {
  display: none;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px;
  background: #EFE9D5;
  transition: all 0.3s ease;
}

/* Hero Block Styles */
.hero {
  background: linear-gradient(90deg, #497D74, #71BBB2);
  color: #EFE9D5;
  text-align: center;
  padding: 60px 20px;
  margin-top: 0; /* Ensures hero is flush with header */
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
}

/* Section Styles */
section {
  margin: 40px 0;
}

/* Paragraph Styling */
p {
  margin-bottom: 20px;
  font-size: 1rem;
}

.intro-paragraph {
  font-size: 1.1rem;
  font-weight: 500;
  color: #27445D;
}

/* Responsive Images */
.responsive-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Custom Unordered List */
/* Custom Bullet List Style Block */
.custom-bullet {
  list-style: none; /* Remove default bullets */
  padding: 0;
  margin: 20px 0;
}

.custom-bullet li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
  font-size: 1.1rem;
  color: #27445D;
}

.custom-bullet li:before {
  content: "\2022"; /* Unicode bullet character */
  position: absolute;
  left: 0;
  top: 0;
  color: #497D74;
  font-size: 1.1rem;
  line-height: 1.2;
}


/* Custom Ordered List */
/* Custom Numbered List Style Block */
.custom-numbered {
  counter-reset: custom-counter; /* Reset counter */
  list-style: none; /* Remove default numbers */
  padding: 0;
  margin: 20px 0;
}

.custom-numbered li {
  counter-increment: custom-counter; /* Increment counter for each li */
  position: relative;
  padding-left: 35px; /* Space for the custom number */
  margin-bottom: 10px;
  font-size: 1.1rem;
  color: #27445D;
}

.custom-numbered li:before {
  content: counter(custom-counter) ".";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1.1rem;
  color: #497D74;
  font-weight: bold;
}


/* Modern Table Style Block */

#review-table {
  width: 100%;
  overflow-x: auto;               /* aktiver horisontal rulling */
  -webkit-overflow-scrolling: touch; /* jevn scroll på iOS */
  margin: 0;                      /* null ekstra marger */
}

.modern-table {
  width: 100%;
  min-width: 640px;               /* tvinger scroll på smale skjermer */
  border-collapse: collapse;
  background: #EFE9D5;
  border: 1px solid #497D74;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  font-size: 1rem;
}

/* 3) Topptekst */
.modern-table thead {
  background: #27445D;
}

.modern-table thead th {
  color: #EFE9D5;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 2px solid #497D74;
  white-space: nowrap;            /* hindrer linjebrudd i overskrifter */
}

/* 4) Rader i innholdet */
.modern-table tbody tr {
  border-bottom: 1px solid #497D74;
}

.modern-table tbody tr:nth-child(even) {
  background: rgba(71, 125, 116, 0.1);
}

.modern-table tbody tr:hover {
  background: rgba(113, 187, 178, 0.3);
}

/* 5) Celler */
.modern-table tbody td {
  padding: 12px 16px;
  border-right: 1px solid #497D74;
}

.modern-table tbody td:last-child {
  border-right: none;
}


/* 6) Mindre skrift og polstring på svært små skjermer */
@media (max-width: 480px) {
  .modern-table {
    font-size: 0.875rem;
  }
  .modern-table thead th,
  .modern-table tbody td {
    padding: 10px 12px;
  }
}

/* Pros and Cons Style Block */
.pros-cons-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 20px 0;
}

.pros,
.cons {
  flex: 1;
  min-width: 280px;
  padding: 20px;
  border-radius: 8px;
  background-color: #EFE9D5;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.pros {
  border: 2px solid #71BBB2;
}

.cons {
  border: 2px solid #D9534F;
}

.pros h3,
.cons h3 {
  margin-bottom: 15px;
  font-size: 1.5rem;
  text-align: center;
}

.pros ul,
.cons ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pros li,
.cons li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
  font-size: 1rem;
}

.pros li:before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: #71BBB2;
  font-size: 1.2rem;
  line-height: 1;
}

.cons li:before {
  content: "\2717";
  position: absolute;
  left: 0;
  top: 0;
  color: #27445D;
  font-size: 1.2rem;
  line-height: 1;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #27445D;
  color: #EFE9D5;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  font-size: 1.5rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  transition: background 0.3s ease;
  z-index: 1000;
}

.back-to-top:hover {
  background: #497D74;
}

/* Footer Styles */
footer {
  background: #27445D;
  color: #EFE9D5;
  padding: 20px 0;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.footer-links a {
  margin: 0 15px;
  color: #EFE9D5;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #71BBB2;
}

.footer-logos {
  margin: 20px 0;
}

.footer-logos a {
  margin: 0 10px;
  display: inline-block;
}

.footer-logos img {
  width: 80px;
  height: auto;
  border-radius: 4px;
}

.footer-text {
  font-size: 0.9rem;
}

/* Media Queries for Mobile Responsiveness */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    align-items: center;
  }
  
  /* Hide the regular nav list and show burger menu */
  nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
    text-align: center;
  }
  
  /* When nav is active, display as block */
  nav ul.nav-active {
    display: flex;
  }
  
  nav ul li {
    margin: 10px 0;
  }
  
  .burger {
    display: block;
  }
  
  .container {
    padding: 15px;
  }
  
  .modern-table th,
  .modern-table td {
    font-size: 0.9rem;
    padding: 8px;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  /* Hide Back to Top Button on Mobile */
  .back-to-top {
    display: none;
  }
}


/* Container Typography Styles */
.container p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #27445D;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.container h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #27445D;
  border-bottom: 2px solid #497D74;
  padding-bottom: 10px;
  font-family: 'Segoe UI', sans-serif;
  text-transform: uppercase;
}

.container h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #27445D;
  border-bottom: 1px solid #497D74;
  padding-bottom: 8px;
  font-family: 'Segoe UI', sans-serif;
  text-transform: uppercase;
}

.container h3 {
  font-size: 1.75rem;
  margin-bottom: 15px;
  color: #27445D;
  font-family: 'Segoe UI', sans-serif;
}

.container h4 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #27445D;
  font-family: 'Segoe UI', sans-serif;
}

.container h5 {
  font-size: 1.25rem;
  margin-bottom: 15px;
  color: #27445D;
  font-family: 'Segoe UI', sans-serif;
}

.container h6 {
  font-size: 1rem;
  margin-bottom: 15px;
  color: #27445D;
  font-family: 'Segoe UI', sans-serif;
}



/* Casino TOP*/

/* ── 2) Wrapper ───────────────────────────────────────────────────── */
.casino-list {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ── 3) Card ──────────────────────────────────────────────────────── */
.casino-card {
  position: relative;           /* for rank badge */
  display: flex;
  flex-direction: row;
  background: #212936;          /* card background */
  border-radius: 8px;
  overflow: hidden;
  width: 100%;
  border-left: 4px solid #4e80ee; /* accent border */
}

/* ── 4) Rank badge ───────────────────────────────────────────────── */
.rank {
  position: absolute;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  background: #4e80ee;          /* primary accent */
  color: #ffffff;
  border-radius: 0 0 8px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

/* ── 5) Image column ─────────────────────────────────────────────── */
/* ── Adaptive logo frame ──────────────────────────────────────────── */
.card-image {
  flex: 0 0 20%;                 /* Take up ~20% of card width */
  max-width: 240px;              /* Don’t exceed your desired desktop size */
  min-width: 120px;              /* Don’t shrink below this on narrow cards */
  aspect-ratio: 1 / 1;           /* Always a perfect square */
  background: #f7f7f7;           /* Neutral frame */
  padding: 1rem;                 /* Space around the logo */
  display: flex;
  align-items: center;
  justify-content: center;       /* Center the logo */
  border-radius: 4px;
}

/* Ensure logos fit inside the frame without distortion */
.card-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* ── Mobile tweak: full-width frame ─────────────────────────────── */
@media (max-width: 768px) {
  .card-image {
    flex: 0 0 auto;
    width: 100%;               /* full width of the card */
    aspect-ratio: 4 / 3;       /* a little shorter than square */
    max-width: none;
    margin: 0 auto 1rem;       /* center and add spacing below */
  }
}

/* ── 6) Main content ─────────────────────────────────────────────── */
.card-content {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 1rem;
  gap: 2rem;
}

/* ── 7) Casino info: title + rating ──────────────────────────────── */
.casino-info {
  display: flex;
  flex-direction: column;
}
.casino-title {
  font-size: 1.25rem;
  font-weight: bold;
  color: #ffffff;               /* white title */
}
.rating {
  margin-top: .25rem;
  display: flex;
}
.rating .star {
  color: #FFD700;               /* secondary accent for stars */
  font-size: 1rem;
  margin-right: 2px;
}

/* ── 8) Offers (bonus + free spins) ─────────────────────────────── */
.offers {
  /* make the whole block a bit wider & taller */
  width: 180px;                  
  padding: 1rem 0;              
  box-sizing: border-box;       

  /* your existing flex stacking */
  display: flex;
  flex-direction: column;
  align-items: center;

  margin-left: auto;            
  margin-right: 1rem;
  background: rgba(140, 172, 229, 0.1);
  border: 1px solid #4e80ee;
  border-radius: 4px;
}

/* wrap each offer in its own little flex-column so they’re independent */
.offers .bonus,
.offers .freespins {
  display: flex;
  flex-direction: column;
  align-items: center;

  /* pin label & extra text to top/bottom */
  justify-content: space-between;

  /* enforce a minimum height so adding extra <small> won’t throw things off */
 
  width: 100%;
}

/* your existing labels, but no need for display:block since we’re spacing via flex */
.offers .bonus::before,
.offers .freespins::before {
  content: attr(data-label);
  font-size: 1.25rem;       /* ↑ label bigger than amount */
  font-weight: bold;
  color: #4e80ee;
  margin-bottom: 0.25rem;   /* ↓ less gap to amount */
}


/* bump the amount up a touch */
.offers .amount {
  font-size: 1rem;          /* ↓ amount smaller than label */
  font-weight: bold;
  color: #ffffff;
  margin: 0;                /* remove any extra spacing */
}

/* and float your extra info at the bottom */


/* ── 9) Actions (buttons + disclaimer) ──────────────────────────── */
.actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .5rem;
}
.btn-primary,
.btn-secondary {
  text-align: center;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
/* Primary button with gradient */
.btn-primary {
  padding: 1rem 1.5rem;
  font-size: 1rem;
  background: linear-gradient(45deg, #4e80ee, #8cace5);
  color: #ffffff;
  animation: earthquake 4s ease-in-out infinite;
}
.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  background: linear-gradient(45deg, #8cace5, #4e80ee);
}
/* Secondary button with dark bg and accent border */
.btn-secondary {
  width: 160px;
  padding: .75rem;
  font-size: .85rem;
  background: #212936;
  color: #8cace5;
  border: 1px solid #8cace5;
}
.btn-secondary:hover {
  transform: scale(1.05);
  background: #212936;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
/* Disclaimer text */
.disclaimer {
  font-size: .75rem;
  color: #ffffff;              /* white disclaimer */
  margin-top: .5rem;
  text-align: center;
}

/* ── 10) Earthquake shake (once every 4s) ────────────────────────── */
@keyframes earthquake {
  0%   { transform: translate(0, 0) rotate(0deg); }
  2%   { transform: translate(-2px, 1px) rotate(-1deg); }
  4%   { transform: translate(-2px, -1px) rotate(1deg); }
  6%   { transform: translate(2px, 1px) rotate(0deg); }
  8%   { transform: translate(2px, -1px) rotate(1deg); }
  10%  { transform: translate(-2px, 1px) rotate(-1deg); }
  11%, 100% { transform: translate(0, 0) rotate(0deg); }
}

/* ── 11) Mobile adaptation ──────────────────────────────────────── */
@media (max-width: 768px) {
  .casino-card {
    flex-direction: column;
  }

  .card-content {
    flex-direction: column;
    gap: 1rem;
  }
  .casino-info {
    align-items: center;
    text-align: center;
  }
 .offers {
    width: 80%;           /* make it span ~80% of the card width */
    margin: 0 auto 1rem;  /* center it and add some bottom spacing */
    max-width: none;      /* override any desktop max-width */
  }
  .actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
  }
  .btn-primary,
  .btn-secondary {
    width: 48%;
  }
  .disclaimer {
    order: 1;
    width: 100%;
    margin-top: .75rem;
  }
}

.section-title {
  font-size: 1.75rem;
  font-weight: bold;
  color: #212936;
  text-align: center;
  margin: 2rem 0 1rem;
}