/* Define global variables here */
:root {
  /* Font */
  --main-font-sans: Arial, Helvetica, Avantgarde, TeX Gyre Adventor, URW Gothic L, Noto Sans, sans-serif;
  --main-font-serif: Palatino, URW Palladio L, Times, Times New Roman, serif;
  --main-font-mono: DejaVu Sans Mono, Courier, monospace;
  /* Color: Green theme*/
  --main-bg-color: #f4f4f4;
  --main-color: #333;
  --header-font-color: white;
  --grid-bg-color: #ebfaf2;
  --big-url-grid-bg-color:#6c9;
  /* Layout */
  --main-line-height: 1.5;  /* Enhances readability */
  /* Table */
  --table-border-color: #c6c7c8;
}



/*************************************/
/*              Basic Reset          */
/*************************************/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--main-font-sans);
  line-height: var(--main-line-height);
  background-color: var(--main-bg-color);
  color: var(--main-color);
}

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

p {
  margin-top: 0;
  margin-bottom: 1rem;
}


sub,
sup {
  position: relative;
  font-size: 0.75em;
  line-height: 0;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}


img,
svg {
  vertical-align: middle;
}


h6, .h6, h5, .h5, h4, .h4, h3, .h3, h2, .h2, h1, .h1 {
  margin-top: 0.5rem;
  margin-bottom: 0rem;
}



ol,
ul {
  padding-left: 2rem;
}

ol,
ul,
dl {
  margin-top: 0;
  margin-bottom: 1rem;
}

ol ol,
ul ul,
ol ul,
ul ol {
  margin-bottom: 0;
}




/*************************************/
/*              Images               */
/*************************************/


.imgcenter {
  display: flex;
  justify-content: center;
}



/*************************************/
/*              Header               */
/*************************************/
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #194d33; /*#092e20; #80c197; #132*/
  color: white;
  padding: 20px;
}

header h1 {
  margin: 0px;
}

header .logo {
  height:0.8in;
}


nav {
  display: flex;
}

nav a {
  color: white;
  padding: 10px 15px;
  text-decoration: none;
  font-size:0.875em;
  /*font-weight: bold;*/
}

nav a.active {
  color: #8c9; /*6e9*/
}



nav a:hover {
  background-color: #063; /*#064527;*/
}

/*Banner - like article title, not the same as page title*/
.page-banner *{
  background: #39ac73; /*#80c197; #6e9*/
  color:#132;
  padding: 20px;
  /*font-weight: bold;*/
  font-size: 2rem;
  text-align: left;
  margin:0px;
}




/*************************************/
/*              Main Content         */
/*************************************/

main {
  margin: 2rem auto;
  max-width: 1200px;
  padding: 1rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}


/* Grid */

.grid-container {
  display: grid;
  grid-template-columns: repeat(1, 1fr); /* Default: 1 equal columns */
  gap: 20px;
  max-width: 1200px;
  width:80%;
  margin: 20px auto;
  padding: 20px;
  background-color: white;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.grid-item {
  background-color: var(--grid-bg-color);
  /*color: #092e20;*/
  padding: 20px;
  /*text-align: center;*/
  border-radius: 5px;
}


/* Grid (big url buttons) */

.big-url-grid-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* Default: 4 equal columns */
  gap: 20px;
  max-width: 1200px;
  width:80%;
  margin: 20px auto;
  padding: 20px;
  background-color: white;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.big-url-grid-item {
  background-color: var(--big-url-grid-bg-color);
  /*color: #092e20;*/
  padding: 20px;
  /*text-align: center;*/
  border-radius: 5px;
  /*height:300px;*/
  width:100%;
  height:100%;
  padding:20px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
}


.big-url {
  display:inline-block;
  /*width:300px;*/
  height:200px;
}

.big-url-img {
  width:60px;
  color:white;
}





/* Small url, button-like, coding style */

.small-url {
  display:inline-block;
}

.small-url-div {
  background-color: var(--big-url-grid-bg-color);
  text-align: center;
  border-radius: 5px;
  padding: 0px 5px;  
}





/*************************************/
/*              Tables               */
/*************************************/

/* Base Table */
table {
  caption-side: bottom;
  border-collapse: collapse;
}

caption {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  text-align: left;
}


thead,
tbody,
tfoot,
tr,
td,
th {
  border-color: var(--table-border-color);
  border-style: solid;
  border-width: 1px;
  padding:1px 5px;
  text-align:center;
}


.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.text-center {
  text-align: center !important;
}



.table {

  width: 100%;
  margin-bottom: 1rem;
  vertical-align: top;
  border-color: var(--bs-table-border-color);
}


.left-align-col{
    text-align: left;

}




/*************************************/
/*              Form                 */
/*************************************/

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

input,
textarea {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
}

/* Accessible Buttons */
.button-div {
  text-align:center;
  margin-top: 50px;
  
}

button {
  background-color: #063;
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  
}

button:hover,
button:focus {
  background-color: #032;
}


/** Form --- for testing */

.form-container {
    max-width: 1200px;
    margin: 50px auto;
    padding: 20px;
    background: white;
    /*box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);*/
    /*border-radius: 8px;*/
}

.form-group {
	display: grid;
    grid-template-columns: 150px 1fr 2fr;
    gap: 20px;
    margin-bottom: 15px; /* Space between form elements */
    padding: 5px 10px; /* Add padding to the group for spacing */
    background-color: #f9f9f9; /* Light background for separation */
    border-radius: 5px; /* Rounded corners */
    border: 1px solid #ddd; /* Subtle border for definition */
    align-items: center; /* Align items vertically */
}


.help-text {
    font-size: 0.85rem;
    color: #6c757d; /* Subtle gray color for help text */
}



/*The following are classes set in forms.py.*/

.form-field {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.form-field:focus {
    border-color: #032;
    outline: none;
    box-shadow: 0 0 3px rgba(0, 123, 255, 0.5);
}







/*************************************/
/*              Footer               */
/*************************************/
footer {
  background-color: #132; /*#092e20;*/
  color: white;
  text-align: center;
  padding: 10px;
  margin-top: 20px;
}

footer a {
  color: #6e9; /*#80c197;*/
  text-decoration: none;
}


footer .logo {
  width: 2in;
}




/*************************************/
/*              Media Queries for    */
/*              Responsiveness       */
/*************************************/
 /*  */
@media (max-width: 768px) {
  body {
    font-size: 0.9rem;
  }
  h1 {
    font-size: 2rem;
  }
}   


@media (max-width: 600px) {
  .big-url-grid-container {
        grid-template-columns: 1fr; /* Switch to 1 column */
      }
    }
