/* Custom font */
@font-face {
    font-family: 'Engebrechtre';
    src: url('Engebrechtre Bd.otf') format('opentype');
}

:root {
  --bg:#2b2b2b;
  --panel:#3a3a3a;
  --accent:#ffc600;
  --hover-text:#000000;
  --text:#f0f0f0;
  --muted:#bbbbbb;
  --font:'Engebrechtre', 'Courier New', monospace;
  --heading-font:'Engebrechtre', 'Courier New', monospace;
}

body {
  margin:0;
  background: linear-gradient(#1f1f1f, #2b2b2b);
  color: var(--text);
  font-family: var(--font);
  font-size: 25px; /* <-- change this for desktop */
}


/* Links */
a { color: var(--accent); text-decoration: none; transition:0.2s; }

/* Header/Nav */
.header {
  display:flex;
  justify-content:space-between;
  align-items:center;
  background-color:#1c1c1c;
  padding:10px 20px;
  border-bottom:4px solid var(--accent);
  flex-wrap: wrap;
  position: relative;
}

.logo { 
  font-family: var(--heading-font); 
  font-size:2.5em; 
  color: var(--accent); 
  margin-bottom:5px;
}

/* Hamburger hidden by default (desktop) */
.hamburger {
  display: none;
  font-size: 2em;
  cursor: pointer;
  color: var(--accent);
}

/* Nav */
.nav {
  display: flex;
  flex-direction: row;
}

.nav .nav-link {
  margin-left:15px;
  font-weight:bold;
  color: var(--text);
  padding:4px 8px;
  transition:0.2s;
}

/* Hover effect for all nav links and buttons */
.nav .nav-link:hover,
.button:hover {
  background: repeating-linear-gradient(
    45deg,
    #ffc600,
    #ffc600 15px,
    #2b2b2b 15px,
    #2b2b2b 30px
  );
  color: var(--hover-text);
  border-radius:4px;
}

/* Main content */
.main-content { padding:30px 20px; }

h1 { font-family: var(--heading-font); color: var(--accent); margin-bottom:20px; }

.panel {
  background: linear-gradient(145deg,#3a3a3a,#2e2e2e);
  padding:20px;
  border:2px solid var(--accent);
  border-radius:8px;
  margin-bottom:20px;
  box-shadow:0 0 15px rgba(0,0,0,0.6);
  position:relative;
  overflow:hidden;
}

/* Hazard stripes along panel top */
.panel-striped::before {
  content:'';
  position:absolute;
  top:0; left:0;
  width:100%; height:15px;
  background: repeating-linear-gradient(
    45deg,
    #ffc600,
    #ffc600 15px,
    #000 15px,
    #000 30px
  );
}

/* Buttons */
.button {
  display:inline-block;
  padding:10px 20px;
  background: var(--accent);
  color:#000;
  font-weight:bold;
  border-radius:6px;
  margin-top:15px;
  transition:0.2s;
  text-align: center;
}

/* Hover / Active effect for buttons and nav links */
.button:hover,
.button:active,
.nav .nav-link:hover,
.nav .nav-link:active {
  background: repeating-linear-gradient(
    45deg,
    #ffc600,
    #ffc600 15px,
    #2b2b2b 15px,
    #2b2b2b 30px
  );
  color: var(--hover-text);
  border-radius: 4px;
}

}

/* Footer */
.footer {
  text-align:center;
  padding:15px 0;
  background-color:#1c1c1c;
  border-top:4px solid var(--accent);
  color: var(--muted);
}

/* ===== MOBILE STYLING ===== */
body.mobile {
  font-size: 60px;
  background: #1a1a1a;
}

/* Hamburger visible on mobile only */
body.mobile .hamburger {
  display: block;
  margin-top: 10px;
}

/* Mobile nav hidden by default */
body.mobile .nav {
  display: none;
  flex-direction: column;
  width: 100%;
  text-align: center;
  background: #222;
  border-radius: 6px;
  padding: 10px 0;
}

/* Mobile nav shown when active */
body.mobile .nav.active {
  display: flex;
}

body.mobile .nav .nav-link {
  margin: 5px 0;
  padding: 25px 0;
  font-size: 50px;
  width: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #2b2b2b, #3a3a3a);
}

/* Main content adjustments for mobile */
body.mobile .main-content {
  padding: 20px 10px;
}

body.mobile .panel {
  width: 95%;
  margin: 10px auto;
  padding: 35px;
  border-radius: 6px;
}

body.mobile .panel-striped::before {
  height: 20px;
}

body.mobile h1 { font-size: 35px; }
body.mobile h2 { font-size: 30px; }

body.mobile .button {
  width: 90%;
  padding: 35px;
  margin: 20px auto;
  display: block;
  text-align: center;
  font-size: 35px;
}
