* {
    font-family: 'Open Sans', sans-serif;
    transition: ease-in-out 0.3s all;
    box-sizing: border-box;
    text-decoration: none !important;
    scroll-behavior: smooth;
}

a {
    cursor: pointer;
    color: #01ab51;
}

a:hover {
    color: #222;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Raleway', sans-serif;
}

body {
    margin: 0px;
}

/* Header Section
  Creates header with logo as the background image
  adds the background color and sets the height
  ---------------------------------------------*/

.header {
    width: 100%;
    background-image: url('logos/Logo-Reduced-Green.png');
    background-repeat: no-repeat;
    background-position: 5% center;
    background-size: auto 85%;
    height: 100px;
    background-color: transparent;
    color: #fff;
    position: fixed;
    z-index: 9999;
    transform: translateY(-1px);
}

.header.sticky {
    background-image: url('logos/Logo-Reduced.png');
    background-color: rgba(0, 69, 30, 0.95);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(0);
    height: 75px;
}

.dashboard .header {
    position: relative;
    background: #00451e;
    background-image: url(logos/Logo-Reduced.png);
    background-repeat: no-repeat;
    background-position: 5% center;
    background-size: auto 85%;
}

/* Navigation 
  Styles the navigation to be right of the logo
  Removes the list style and makes them inline,
  giving them a hover animation aswell
  --------------------------------------*/
.navigation {
    position: absolute;
    height: auto;
    margin: 0 auto !important;
    right: 3%;
    top: 50%;
    transform: translateY(-50%);
}

ul.nav {
    padding: 0;
    margin: 0;
}

.nav li {
    padding: 0 5px;
    margin: 0 10px;
    float: left;
    list-style: none;
    position: relative;
}

.nav a {
    color: #01ab51;
    text-decoration: none;
}

.nav a:hover {
    color: #fff;
}

.nav li.current a {
    color: #fff;
}

.nav li a::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 0%;
    border-bottom: 2px solid #fff0;
    transition: ease-in-out 0.3s all;
}

.nav li.current a::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    border-bottom: 2px solid #fff !important;
}

.nav li:hover a::before {
    width: 100%;
    border-bottom: 2px solid #01ab51;
}

.mobile-navigation {
    display: none;
}

/* Banner
Styling for the home banner and internal banners, ensuring each page stands out and can tell the page changes
-----------------------------------------*/
.home-banner {
    position: relative;
    overflow: hidden;
}

.home-banner img {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 1;
}

.home-banner::before {
    content: '';
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    position: absolute;
    background: rgb(0 0 0 / 50%);
    z-index: 2;
}

.home-banner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 120px;
    z-index: 3;
    background: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,49 C150,149 350,-49 600,49 C850,149 1050,-49 1200,49 L1200,120 L0,120 Z' fill='%23ffffff'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-size: 600px 100%;
    opacity: 1;
    animation: waveScroll 25s linear infinite;
}

@keyframes waveScroll {
    from {
        background-position-x: 0;
    }

    to {
        background-position-x: -600px;
    }
}

.banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    z-index: 2;
    text-align: center;
}

.banner-content h1 {
    font-size: 2.5em;
}

.banner-content p {
    font-size: 1.2em;
}

.banner-content a {
    font-size: 2em;
    margin: 20px 0 0 0;
    position: relative;
    color: #01ab51;
    top: 0;
    padding: 2%;
}

.banner-content a:hover {
    top: 5px;
}

.home-banner.internal-banner::before {
    width: 50%;
    background: transparent;
}

.internal-banner .banner-content {
    left: 5%;
    transform: translateY(-50%);
    text-align: left;
    max-width: 45%;
}

/* Body text
  Styles the main body text,
  gives colour to headings, adds padding,
  centre aligns the text,
  Adds font sizes
  --------------------------------------*/

.body {
    overflow: hidden;
    height: auto;
    font-size: 1em;
    line-height: 1.2em;
    text-align: center;
}

.body-text-inner,
.Call-to-Action {
    padding: 0 20%;
}

.body-text-inner h1,
.body-text-inner h2,
.body-text-inner h3,
.body-text-inner h4,
.body-text-inner h5,
.body-text-inner h6,
.body-text-inner li {
    color: #01ab51;
}

.body-text-inner h1 {
    font-size: 2em;
    line-height: 1em;
}

.body-text-inner .signup-container h1 {
    text-align: left;
}

.body-text-inner h2 {
    font-size: 2em;
    line-height: 1em;
}

.body-text-inner p {
    color: #222;
}

.home-body-content {
    background: linear-gradient(90deg,
            rgba(0, 69, 30, 1) 0%,
            rgba(0, 117, 55, 1) 50%,
            rgba(0, 69, 30, 1) 100%);
    padding: 10% 10%;
    color: #fff;
    overflow: hidden;
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
}

.home-body-content::before,
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 120px;
    z-index: 3;
    background: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,49 C150,149 350,-49 600,49 C850,149 1050,-49 1200,49 L1200,120 L0,120 Z' fill='%23ffffff'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-size: 600px 100%;
    opacity: 1;
    animation: waveScrollReverse 25s linear infinite;
    rotate: 180deg;
}

@keyframes waveScrollReverse {
    from {
        background-position-x: 0;
    }

    to {
        background-position-x: 600px;
    }
}

.home-body-content::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 120px;
    z-index: 3;
    background: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,49 C150,149 350,-49 600,49 C850,149 1050,-49 1200,49 L1200,120 L0,120 Z' fill='%23ffffff'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-size: 600px 100%;
    opacity: 1;
    animation: waveScroll 25s linear infinite;
}

.home-body-content-inner:not(:first-child) {
    width: 31.333%;
    margin: 1%;
    padding: 2%;
    background: linear-gradient(45deg,
            rgba(0, 69, 30, 0.3) 0%,
            rgba(0, 117, 55, 0.3) 50%,
            rgba(0, 69, 30, 0.3) 100%);
    border-radius: 20px;
}

.home-body-content-inner:nth-child(2n) {
    background: linear-gradient(90deg,
            rgba(0, 69, 30, 0.3) 0%,
            rgba(0, 117, 55, 0.3) 50%,
            rgba(0, 69, 30, 0.3) 100%);
}

.signup-container,
.login-container {
    text-align: left;
}

/* Button styling
for the custom buttons, ensuring C2As and buttons stands out
  --------------------------------------*/

button {
    position: relative;
    background: linear-gradient(90deg,
            rgba(0, 69, 30, 1) 0%,
            rgba(0, 117, 55, 1) 50%,
            rgba(0, 69, 30, 1) 100%);
    padding: 2% 3%;
    border: 3px solid rgba(0, 69, 30, 1);
    border-radius: 9999px;
    color: #fff;
    cursor: pointer;
    font-size: 1em;
    margin: 0.5% 0;
}

button .icon {
    display: inline-block;
}

button:hover {
    transform: scale(1.05);
    border-color: #01ab51;
}

button:hover .icon {
    transform: translate(4px);
}

button:hover::before {
    animation: shine 1.5s ease-out;
}

button::before {
    content: '';
    position: absolute;
    width: 100px;
    height: 100%;
    background-image: linear-gradient(120deg,
            rgba(255, 255, 255, 0) 30%,
            rgba(255, 255, 255, 0.8),
            rgba(255, 255, 255, 0) 70%);
    top: 0;
    left: -100px;
    opacity: 0.6;
}

@keyframes shine {
    0% {
        left: -100px;
    }

    60% {
        left: 100%;
    }

    to {
        left: 100%;
    }
}


/* Internal Pages
Styles the home body content and create the button shine to fit
---------------------------------------*/
.home-body-content button {
    position: relative;
    overflow: hidden;
}

.home-body-content button::before {
    left: -50%;
    width: 50%;
}

.home-body-content button:hover::before {
    animation: Innershine 1.2s ease-out forwards;
}

@keyframes Innershine {
    0% {
        left: -50%;
    }

    100% {
        left: 125%;
    }
}

.Call-to-Action#attacker,
.Call-to-Action#common {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    padding: 0 10%;
}

.Call-to-Action-inner {
    width: 48%;
    margin: 1%;
    align-content: center;
}

.Call-to-Action-inner a#img {
    cursor: zoom-in;
}

/* Form styling
Internal form styling for login and register page
---------------------------------------*/
.internal-form {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
}

.internal-form-inner {
    width: calc(50% - 10px);
    margin: 5px;
}

.internal-form input {
    width: 100%;
    padding: 12px 24px;
    border-radius: 3px;
    outline: 0;
    border-color: #00451e;
    color: #333;
}

.internal-form label {
    width: 100%;
}

.internal-form label input {
    width: 5%;
}
/* Admin Dashboard forms
Styles the Admin Dashboard forms
-------------------------------------*/
form.add-template {
    display: flex;
    flex-wrap: wrap;
    background: #f3f4f6;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    gap: 12px;
}

.admin table {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    background: #f3f4f6;
    padding: 20px;
    border-radius: 12px;
}

.admin table td {
    padding: 12px;
}

.admin table tr {
    display: flex;
}

.admin table th,
.admin table td {
    flex: 1;
}

.admin tbody {
    width: 100%;
}

.admin .send-phish th,
.admin .send-phish td {
    width: calc(100% / 6);
}

.admin .send-phish td select {
    width: 100%;
}

.admin .email-templates th,
.admin .email-templates td {
    width: calc(100% / 6);
}

.email-templates input {
    width: 100%;
}

.admin table button {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.template-inner {
    flex: 1;
}

.template-inner input,
.template-inner select {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

.template-html {
    width: 100%;
}

.template-html textarea {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    resize: vertical;
}

/* Quiz Styling
Styles the quiz for both the landing and intial baseline
----------------------------------------*/
.options button {
    margin: 1%;
    background: #00451e;
    border-radius: 10px;
}

.options button:hover {
    transform: scale(1);
    border-color: #00451e;
    background: #00451eba;
}

.options button::before {
    content: none;
}

.quiz-progress {
    width: 100%;
    height: 10px;
    background: #e0e0e0;
    border-radius: 999px;
    margin-bottom: 20px;
    overflow: hidden;
}

.quiz-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #01ab51, #007537);
    transition: width 0.4s ease;
}

.quiz-review {
    margin-top: 20px;
    border-top: 2px solid #eee;
    padding-top: 20px;
}

.quiz-review h3 {
    margin-bottom: 15px;
    color: #333;
}

.review-item {
    border-left: 5px solid #ff5252;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.user-answer {
    color: #ff5252;
}

.correct-answer {
    color: #01ab51;
}

.reason-text {
    color: #555;
}

/* Quiz History
Styles the history of the quiz table on the user dashboard
-------------------------------------*/
.history-table {
    width: 100%;
    border-collapse: collapse;
}

.history-table th {
    padding: 12px 10px;
    border-bottom: 2px solid #f0f0f0;
}

.history-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #f9f9f9;
}

.history-table tr:last-child td {
    border-bottom: none;
}

.status-pass {
    color: #00ff78;
}

.status-fail {
    color: #ff5252;
}

/* Failure Page 
Failure page styling for the home body content, ensuring it's readable and fits well on the page
-------------------------------------*/
.failure-body-content .home-body-content-inner:not(:first-child) {
    width: 48%;
}

.failure-body-content .home-body-content-inner ul li {
    display: block;
    margin: 10px 0;
}

.failure-body-content .home-body-content-inner ul {
    padding: 0 20px;
}

/* Cookie Banner
Styling for the cookie banner, aligns, styles and ensure it's infront of  all elements
-------------------------------------*/
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: rgba(0, 69, 30, 0.95);
    color: #ffffff;
    padding: 15px 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    z-index: 9999;
    box-shadow: 0 -2px 5px rgba(0, 69, 30, 0.95);
}

.cookie-consent-banner span {
    flex: 1 1 60%;
    margin-bottom: 10px;
}

.cookie-consent-banner div {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
}

.cookie-consent-banner button {
    overflow: hidden;
    padding: 2% 3%;
    min-width: 120px;
    margin: 10px;
}

.grecaptcha-badge {
    z-index: 9999;
}

/* Footer
  Styles how the footer looks on most pages, includes a before element for the wave
  -------------------------------------*/
.footer {
    background: linear-gradient(90deg,
            rgba(0, 69, 30, 1) 0%,
            rgba(0, 117, 55, 1) 50%,
            rgba(0, 69, 30, 1) 100%);
    overflow: hidden;
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    padding: 7% 0 0;
    color: #fff;
}

.footer::before {
    rotate: 180deg;
}

.footer-copyright {
    width: 100%;
    text-align: center;
    background: linear-gradient(90deg,
            rgba(0, 69, 30, 1) 0%,
            rgba(0, 117, 55, 1) 50%,
            rgba(0, 69, 30, 1) 100%);
    padding: 2% 5%;
}

.footer a {
    position: relative;
    display: inline-block;
    color: #fff;
}

.footer a::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0%;
    height: 2px;
    background-color: #01ab51;
    transition: width 0.3s ease;
}

.footer a:hover::before {
    width: 100%;
}

/* Media Queries - tablet, large phone and small phones
  ----------------------------------------------------*/
@media screen and (max-width: 999px) {
    .header {
        background-size: auto 85%;
        height: 80px;
    }

    .banner-content h1 {
        font-size: 2em;
    }

    .banner-content p {
        font-size: 1em;
    }

    .home-banner img {
        width: 110%;
    }

    .home-body-content {
        padding: 15% 10%;
    }

    .img-wrapper img {
        max-width: 400px !important;
    }

    .failure-body-content .home-body-content-inner:not(:first-child) {
        width: 100%;
    }

    .internal-form-inner {
        width: 100%;
    }

    .internal-form input {
        width: 100%;
        margin: 1px;
    }

    .internal-form label {
        margin: 1px;
    }

    button {
        margin: 1% 0;
    }

    .footer {
        padding: 15% 0 0;
    }
}
@media screen and (max-width: 740px) {
  .nav li {
    margin: 0 1px;
  }
  .banner-content h1 {
    font-size: 1.5em;
  }

  .home-body-content {
    padding: 20% 10%;
  }

  .home-body-content-inner:not(:first-child) {
    width: 100%;
  }

  .Call-to-Action-inner {
    width: 100%;
  }
}

@media screen and (max-width: 630px) {
  .header,
  .header.sticky {
    height: 65px;
  }

  .banner-content {
    width: 85%;
    padding: 30px 0;
  }

  .banner-content h1 {
    font-size: 1.5em;
    margin: 0;
  }

  .banner-content p {
    font-size: 1em;
  }

  .banner-content a {
    display: none;
  }

  .home-banner img {
    width: 250%;
    place-self: anchor-center;
  }

  nav.navigation {
    display: none;
  }

  .mobile-navigation {
    display: block;
    position: relative;
  }

  .hamburger-menu {
    display: block;
    text-align: right;
    padding: 10px;
    position: absolute;
    right: 20px;
    top: 10px;
  }

  .hamburger-menu img {
    width: 40px;
    height: 40px;
    cursor: pointer;
    position: absolute;
    top: 0;
    right: 0;
    transition: opacity 0.3s ease;
  }

  #mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 260px;
    height: 100vh;
    background: #333;
    padding-top: 70px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }

  #mobile-nav.open {
    transform: translateX(0);
  }

  #mobile-nav a {
    display: block;
    color: #fff;
    padding: 15px 20px;
    font-size: 1em;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  #mobile-nav a:hover {
    background: #444;
  }

  .close-btn {
    position: absolute;
    top: 15px;
    right: 10px;
    font-size: 50px;
    color: #fff;
    cursor: pointer;
    line-height: 1;
    font-weight: bold;
  }

  .header.sticky img#sticky {
    opacity: 1;
  }

  .header.sticky img#non-sticky {
    opacity: 0;
  }

  .body-text-inner,
  .Call-to-Action {
    padding: 0 10%;
  }

  .home-body-content {
    padding: 30% 10%;
  }

  .Call-to-Action h2 {
    line-height: 1em;
  }

  .cookie-consent-banner {
    flex-direction: column;
    text-align: center;
    padding: 15px;
  }

  .cookie-buttons {
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
  }

  .cookie-consent-banner span {
    flex: 1 1 100%;
    margin-bottom: 10px;
  }

  .footer {
    padding: 25% 0 0 0;
  }
}
