
/* #### BLOCK AT THE TOP #### */

.block {
  position: fixed;
  background-color: #2bbbd8;
  height: 1.45cm;
/*  position: absolute; */
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  z-index: 9999;
}

.block .links {
  position: absolute;
  top: 50%;
  right: 1cm;
  transform: translateY(-50%);
}

.block .links a {
  color: white;
  transition: transform .3s; /* Animation */
  text-decoration: none;
  transition: all 0.3s ease-in-out;
  font-size: 18px;
}

.block .links a:hover {
  font-size: 20px;
}

/* #### SOCIAL CONTAINER #### */

.table-container {
    height: 100%;
}

.social-table {
    border-collapse: collapse;
    height: 100%;
}

.social-table tr {
  border-left: 1px solid #41c1dc;
  border-right: 1px solid #41c1dc;
}

.social-table td {
  height: 1.4cm;
  width: 30px;
  text-align: center;
  border-left: 1px solid #41c1dc;
}

/* #### TOP IMAGE CONTAINER #### */

.image-container {
  width: 90%;
  margin: 0 auto;
}

/* #### MAIN NAVIGATION BAR #### */

.navbar-container {
  width: 90%;
  margin: 0 auto;
  border-left: 1px solid white;
  border-right: 1px solid white;
}

.navbar-container body {
  font-family: 'Nunito Sans', sans-serif;
}

.navbar {
  overflow: hidden;
  background-color: white; 
  border-top: 1px solid lightgray;
  border-bottom: 1px solid lightgray;
  border-left: 1px solid white;
  border-right: 1px solid white;
  padding-left: 1.5cm;
}

.navbar a {
  float: left;
  font-size: 14px;
  color: black;
  text-align: center;
  padding-left: 1.5cm;
  padding: 14px 16px;
  text-decoration: none;
  border-left: 1px solid white;
  border-right: 1px solid white;
}

.subnav {
  float: left;
  overflow: hidden;
  border-left: 1px solid white;
  border-right: 1px solid white;
}

.subnav .subnavbtn {
  font-size: 14px;  
  border: none;
  outline: none;
  color: black;
  padding: 14px 16px;
  background-color: white;
  font-family: inherit;
  margin: 0;
  border-left: 1px solid white;
  border-right: 1px solid white;
}

.navbar a:hover, .subnav:hover .subnavbtn {
  color: white;
  background-color: #2bbbd8;
  border-left: 1px solid lightgray;
  border-right: 1px solid lightgray;
  transition: transform .2s; /* Animation */
  transition: all 0.25s ease-in-out;
}

.subnav-content {
  font-size: 12px;  
  display: none;
  position: absolute;
  left: relative;
  background-color: white;
  z-index: 999;
  border: 1px solid lightgray;
}

.subnav-content a {
  float: left;
  color: black;
  font-size: 12px;  
  text-decoration: none;
}

.subnav-content a:hover {
  background-color: #f3f4f3;
  color: black;
  font-size: 12px;
}

.subnav:hover .subnav-content {
  display: block;
}

/* #### PORTAL WINDOW FORMATTING #### */

#page-main-window {
    font-family: 'Nunito Sans', sans-serif;
    color: #747474;
/*     font-size: 16px; */
    margin: 0 12%;
    padding-top: 40px;
    padding-bottom: 40px;
}

br {
    display: block;
    margin-bottom: 12pt;
}

table {
    font-family: 'Nunito Sans', sans-serif;
    color: #747474;
/*     font-size: 16px; */
}

h3 {
    font-family: 'Nunito Sans', sans-serif;
    color: #747474;
    font-size: 16px;
}

h4 {
    font-family: 'Nunito Sans', sans-serif;
    color: #262322;
    font-size: 16px;
}

input {
    font-family: 'Nunito Sans', sans-serif;
    color: #747474;
/*     font-size: 16px; */
}

/* #### FOOTER CONTENT #### */

    /* Set the width of the footer div to 90% of the screen */
    #footer {
      width: 90%;
      margin: 0 5%;
      font-family: 'Nunito Sans', sans-serif;
      background-color: #111111;
      color: #fff;
      padding: 20px;
    }

    /* Set the position of the acknowledgement text to 2cm from the left of the screen and 30% of the width of the footer */
    #acknowledgement {
      padding-left: 1cm;
      width: 300px;
      font-family: 'Nunito Sans', sans-serif;
      font-size: 10pt;
      line-height: 12pt;
    }

    /* Set the position of the horizontal rule */
    #footer hr {
      border-color: darkgrey;
      margin-top: 20px;
      margin-bottom: 20px;
      margin-left: 1cm;
      margin-right: 1cm;
      width: 95%;
    }

    /* Set the position of the copyright and privacy text */
    #copyright {
      float: left;
      font-size: 14px;
      color: #cccccc;
      padding-left: 1cm;
    }

    #copyright a {
      color: #cccccc;
      text-decoration: none;    
    }
    
    #copyright a:hover {
      color: #2bbbd8;
      text-decoration: none;    
      transition: transform .2s; /* Animation */
      transition: all 0.25s ease-in-out;
    }

#privacy {
      float: right;
      font-size: 14px;
      padding-right: 1cm;
    }
    
    #privacy a {
      color: #cccccc;
      text-decoration: none;    
    }

    #privacy a:hover {
  color: #2bbbd8;
  text-decoration: none;    
  transition: transform .2s; /* Animation */
  transition: all 0.25s ease-in-out;
}


/* Cookie Consent Popup */

#cookieConsentPopup {
  position: fixed;
  bottom: 5px;
  right: 5px;
  width: 400px;
  height: 20px;
  background-color: #ffffff;
  border: 1px solid #ccc;
  padding: 10px;
  z-index: 10000;
  transition: height 0.5s;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;}

#cookieConsentPopup:hover {
  height: 200px;
}

#cookieConsentPopup h2 {
  margin: 0;
}

#cookieConsentPopup p {
  margin: 15px 0;
}

#cookieConsentPopup button {
  background-color: lightgrey;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
}

#cookieConsentPopup #accept {
  background-color: #2bbbd8;
}

/* Hide current issue on main page */
.current_issue {
  display: none;
}

.table td, .table th {
  border: none;
}

/* Top journal page */

.journal-info p {
	font-size: 12pt;
    font-family: 'Nunito Sans', sans-serif;
	color: #747474;
}

/* Issue pages */

.obj_issue_toc .section h2 {
	font-size: 14pt;
	font-weight: bold;
    font-family: 'Nunito Sans', sans-serif;
 	color: black;
}

.obj_issue_toc .section h3, a {
	font-size: 12pt;
    font-family: 'Nunito Sans', sans-serif;
	color: black;
}


.obj_issue_toc .galleys h2 {
	font-size: 14pt;
	font-weight: bold;
    font-family: 'Nunito Sans', sans-serif;
	color: black;
}

.obj_issue_toc .galleys h3, a {
	font-size: 12pt;
    font-family: 'Nunito Sans', sans-serif;
	color: black;
}

.pub_id .galleys h3, a {
	font-size: 12pt;
    font-family: 'Nunito Sans', sans-serif;
	color: black;
}



body, html {
    margin: 0; /* Remove default margins */
    padding: 0; /* Remove default padding */
    overflow-x: hidden; /* Prevent horizontal scrolling */
    box-sizing: border-box; /* Standardise box model */
}



        .page-container {
            display: flex;
        }
        .page-main {
            width: 750px;
            min-width: 400px;
            max-width: 750px;
            padding: 15px;
         }
        .page-menu {
            font-family: 'Nunito Sans', sans-serif;
            color: #747474;
            background-color: white;
            font-size: 14px;
            width: 250px;
            min-width: 250px;
            max-width: 250px;
            padding: 20px;
        }

        .page-menu a {
            font-family: 'Nunito Sans', sans-serif;
            color: #747474;
            font-size: 14px;
        }

        .page-menu a:hover {
            font-family: 'Nunito Sans', sans-serif;
            color: #2bbbd8;
            font-size: 14px;
        }

        /* Mobile view: Stack columns */
        @media (max-width:1000px) {
            .page-container {
                flex-direction: column; /* Stack columns vertically */
            }
            .page-main, .page-menu {
                flex: none; /* Ensure columns take full width */
                width: 100%; /* Make each column take up 100% width */
            }
        }
        
/* CSS FOR THE PAGE TITLE BAR */

        /* Styles for the full-width div */
        .page-div {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            width: 100vw;
            height: 120px;
            position: relative;
            color: white;
            background-color: #262322;
            overflow: hidden; /* Ensure no content spills outside */
        }

        /* Pseudo-element for the semi-transparent background */
        .page-div::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image: url('img/banner-background.jpg');
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            opacity: 0.35; /* Set transparency for the background */
            z-index: 0; /* Place it behind the text */
        }

        /* Styles for the text */
        .page-div span {
            font-family: 'Nunito Sans', sans-serif;
            position: absolute;
            padding-left: 12%;
            bottom: 28px; 
            font-size: 24px;
            z-index: 1; /* Ensure text is above the background */
        }    

        .page-div a {
            font-family: 'Nunito Sans', sans-serif;
            font-size: 24px;
            color: white;
            text-decoration: none;
            z-index: 1; /* Ensure links are above the background */
        }

        .text-input {
            width: 100%;
            box-sizing: border-box;
        }
        .text-area {
            width: 100%;
            box-sizing: border-box;
            resize: vertical;
        }
        
        .themed-hr {
            border: 0;
            height: 5px; 
            background-color: #262322;
        }

.styled-submit {
    background-color: #262322; /* Purple background */
    color: white; /* White text */
    font-size: 18px; /* Larger text size */
    padding: 10px 20px; /* Padding to make the button larger */
    border-radius: 12px; /* Rounded edges */
    border: none; /* Remove default border */
    cursor: pointer; /* Change cursor to pointer on hover */
    transition: background-color 0.3s ease, color 0.3s ease; /* Smooth transition for both colors */
}

.styled-submit:hover {
    background-color: white; /* White background on hover */
    color: #262322; /* Purple text on hover */
}

.banner-color-span {
    color: #262322;
}

.notification {
    font-size: 16px;
    position: relative; /* For proper positioning of the badge */
}

.unread-count {
    display: inline-block;
    background-color: red; /* Circle background color */
    color: white; /* Text color */
    font-size: 12px; /* Size of the text */
    font-weight: bold; /* Bold text */
    width: 20px; /* Diameter of the circle */
    height: 20px; /* Diameter of the circle */
    line-height: 20px; /* Align text vertically */
    text-align: center; /* Align text horizontally */
    border-radius: 50%; /* Makes the span a circle */
    position: absolute; /* Position relative to the parent */
    top: -10px; /* Adjust vertical position */
    right: -10px; /* Adjust horizontal position */
}


/* #### JOURNAL STAGES #### */

span.viewojs {
    background-color:white; 
    color:#2bbbd8; 
    border: 1px solid #2bbbd8;
}

span.viewojs:hover {
    background-color:#2bbbd8; 
    color:white; 
    border: 1px solid #2bbbd8;
}

span.submission {
    background-color:white; 
    color:red; 
    border: 1px solid red;
}

span.submission:hover {
    background-color:red; 
    color:white; 
    border: 1px solid red;
}

span.review {
    background-color:white; 
    color:orange; 
    border: 1px solid orange;
}

span.review:hover {
    background-color:orange; 
    color:white; 
    border: 1px solid orange;
}

span.copyediting {
    background-color:white; 
    color:blue; 
    border: 1px solid blue;
}

span.copyediting:hover {
    background-color:blue; 
    color:white; 
    border: 1px solid blue;
}

span.production {
    background-color:white; 
    color:green; 
    border: 1px solid green;
}

span.production:hover {
    background-color:green; 
    color:white; 
    border: 1px solid green;
}

.notifications {
    max-height: 600px; /* Set maximum height to make it scrollable */
    overflow-y: auto;  /* Enable vertical scrolling */
    overflow-x: hidden; /* Prevent horizontal scrolling */
    border: 1px solid #ccc; /* Optional border for visibility */
    /* padding: 10px; Optional padding for spacing */
}

div.notification_list_top {
    width:98%; 
    padding-left:5px; 
    padding-right:8px; 
    padding-top:5px; 
    padding-bottom:5px; 
    border: 1px solid #ccc; 
    background-color:#f3f4f3;
}

.notification {
    font-size: 16px;
    position: relative; /* For proper positioning of the badge */
}

.unread-count {
    display: inline-block;
    background-color: red; /* Circle background color */
    color: white; /* Text color */
    font-size: 12px; /* Size of the text */
    font-weight: bold; /* Bold text */
    width: 20px; /* Diameter of the circle */
    height: 20px; /* Diameter of the circle */
    line-height: 20px; /* Align text vertically */
    text-align: center; /* Align text horizontally */
    border-radius: 50%; /* Makes the span a circle */
    position: absolute; /* Position relative to the parent */
    top: -10px; /* Adjust vertical position */
    right: -10px; /* Adjust horizontal position */
}

.goldstar {
  color: #fea500; /* Icon color */
}

div.notification_list_no {
    width:98%; 
    padding-left:30px; 
    padding-top:5px; 
    padding-right:5px; 
    padding-bottom:5px; 
    border-bottom: 1px solid #ccc; 
    background-color:white;
}

div.notification_list_no:hover {
    background-color:#ffe7e9; 
}

div.notification_list_yes {
    width:98%; 
    padding-left: 30px; 
    padding-top:5px; 
    padding-right:5px; 
    padding-bottom:5px; 
    border-bottom: 1px solid #ccc; 
    background-color:#E9E9E9;
}

div.notification_list_yes:hover {
    background-color:#ffe7e9; 
}

div.notification_list_end {
    width:98%; 
    padding-left: 30px; 
    padding-top:5px; 
    padding-right:5px; 
    padding-bottom:5px; 
    border-top: 1px solid #ccc; 
    background-color:white;
}

span.journalname {
    display: inline-block; 
    text-align: left; 
    width: 90px; 
}

span.notificationcontent {
    display: inline-block; 
    text-align: left; 
    width: 400px; 
}

.fa-read-button {
    background-color: #f3f4f3; /* Button background color */
    color: gray; /* Icon color */
    border: none; /* Remove border */
    border-radius: 5px; /* Optional: Rounded corners */
    padding: 10px 15px; /* Padding for clickable area */
    cursor: pointer; /* Show pointer on hover */
    font-size: 18px; /* Icon size */
    display: inline-flex; /* Aligns content in the center */
    align-items: center;
     justify-content: center;
}

.fa-read-button:hover {
    color: #2bbbd8; /* Darken background on hover */
}

        .dashboard-icon-container {
            display: flex;
            gap: 20px; /* Space between icons */
            justify-content: center;
            align-items: center;
            margin-top: 20px;
        }

        .dashboard-icon-link {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            width: 2cm;
            height: 2cm;
            border: 2px solid #333;
            border-radius: 10px;
            text-decoration: none;
            color: #333;
            font-size: 1.8rem;
            transition: background 0.3s, color 0.3s;
        }

        .dashboard-icon-link:hover {
            background: #2bbbd8;
            color: white;
        }

        .dashboard-icon-label {
            font-size: 0.8rem;
            margin-top: 5px;
        }

        
        .dashboard-container {
            display: flex;
            flex-direction: column;
            gap: 15px;
            width: max-content; /* Makes sure the container fits the content */
            margin: 0 auto; /* Centers it horizontally */
        }

        .dashboard-tile {
            width: 500px;
            height: 45px;
            padding: 20px;
            background-color: #2bbbd8;
            color: white;
            text-align: center;
            font-size: 18px;
            font-weight: bold;
            border-radius: 10px;
            transition: background 0.3s, transform 0.2s;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .dashboard-tile:hover {
            background-color: #239bb0;
            transform: scale(1.05);
        }
        
        .book-list {
    display: flex;
    flex-direction: column;
    gap: 20px; /* Spacing between books */
    max-width: 800px;
    margin: 0 auto;
}

.book-display-container {
    display: flex;
    align-items: flex-start;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 15px;
    transition: transform 0.3s ease-in-out;
}

.book-display-container:hover {
    background-color: #fff9e6; /* Very soft yellow */
}

.book-display-cover {
    flex: 0 0 120px; /* Fixed width for the cover */
    height: 180px;
    overflow: hidden;
    border-radius: 8px;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.book-display-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

.book-display-item {
    flex: 1;
    padding-left: 15px;
}

.book-title {
    font-size: 1.4em;
    font-weight: bold;
    color: #333;
    margin: 0 0 5px;
}

.book-author, .book-publication-date {
    font-size: 0.9em;
    color: #666;
    margin: 0;
}

.book-description {
    font-size: 0.95em;
    color: #444;
    margin-top: 8px;
}

.status-published {
    background-color: darkred;
    color: white;
    padding: 2px 12px;
    border-radius: 4px;
    font-weight: bold;
    display: inline-block;
}

.book-page-links {
    background-color: #2bbbd8;
    color: white;
    padding: 2px 12px;
    border-radius: 4px;
    font-weight: bold;
    display: inline-block;
}

/* CSS styling for the royalty statement */
    
    #royalty-statement {
      width: 100%;
      margin: 0 auto;
      font-family: 'Nunito Sans', sans-serif;
      color: black;
    }

  .royalty-table {
      width: 100%;
      border-collapse: collapse;
      border: 2px solid #007bff;
      /* Example: Add a border */
    }

  .royalty-table th {
      background-color: #f2f2f2;
      font-weight: bold;
      padding: 8px;
      text-align: left;
      font-size: 10pt;
      font-family: 'Courier New', Courier, monospace;
      color: darkblue;
      border-bottom: 1px solid darkblue;
    }
    
  .royalty-table td {
      border: 1px solid #ddd;
      padding: 8px;
      text-align: left;
      font-size: 10pt;
      font-family: 'Courier New', Courier, monospace;
      color: black;
    }

  .royalty-table th {
      background-color: #f2f2f2;
      font-weight: bold;
      /* Example: Make header bold */
    }

  .royalty-table tr:nth-child(even) {
      background-color: #f9f9f9;
      /* Example: Stripe alternate rows */
    }
    
  .royalty-table tfoot td {
      border-top: 1px solid #darkblue;
      /* Dark blue top border for totals row */
      font-weight: bold;
    }
    
        .payment-advice-container {
            max-width: 600px;
            margin: auto;
            background: #fff;
            padding: 20px;
            border-radius: 10px;
            box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
        }
        .payment-advice-title {
            text-align: center;
            color: #333;
        }
        .payment-advice-table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 10px;
        }
        .payment-advice-table, .payment-advice-th, .payment-advice-td {
            border: 1px solid #ddd;
        }
        .payment-advice-th, .payment-advice-td {
            font-size: 12px;
            color: black;
            padding: 12px;
            text-align: left;
            font-family: 'Courier New', Courier, monospace;
        }
        .payment-advice-th {
            background: #0073e6;
            color: white;
        }
        .payment-advice-total {
            font-size: 12px;
            font-weight: bold;
            text-align: right;
            padding: 10px;
            background: #0073e6;
            color: white;
            border-radius: 5px;
            margin-top: 10px;
            font-family: 'Courier New', Courier, monospace;
        }
        .payment-advice-info {
            margin-top: 15px;
            font-size: 12px;
            padding: 10px;
            font-family: 'Courier New', Courier, monospace;
            background: #eef5ff;
            border-left: 4px solid #0073e6;
        }
        .payment-advice-footer {
            text-align: center;
            font-size: 14px;
            margin-top: 20px;
            color: #555;
        }
        .payment-advice-link {
            text-decoration: none;
            font-size: 12px;
            color: black;
            text-align: left;
            font-family: 'Courier New', Courier, monospace;
        }

        .payment-advice-link:hover {
            color: #0073e6;
        }
        
/* New CSS for mobile hamburger and vertical menu */
@media screen and (max-width: 890px) {
  /* Display the hamburger icon on small screens */
  .hamburger {
    display: block;
    float: left;
    cursor: pointer;
    padding: 14px 16px;
  }
  
  /* Create three black bars for the hamburger icon */
  .hamburger .bar {
    width: 25px;
    height: 3px;
    margin: 4px 0;
    background-color: black; /* Black bars */
  }
  
  /* Hide the default navbar on small screens */
  .navbar {
    display: none;
    width: 100%;
    background-color: white; /* Vertical menu background white */
    float: none;
  }
  
  /* When toggled, display the navbar vertically */
  .navbar.active {
    display: block;
  }
  
  /* Stack navigation links vertically, remove floats, and adjust padding */
  .navbar a {
    float: none;
    display: block;
    text-align: left;
    padding: 14px;
    border-left: none;
    border-right: none;
  }
}