/*@import url('fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&display=swap');*/

/* Reset and force important styles for GitHub Pages compatibility */
* {
  box-sizing: border-box;
}

/* Ensure consistent link behavior */
a {
  color: #0099cc !important; /*#0099cc; */ /*#14A098;*/ /*#0099cc;*/
  text-decoration: none !important;
}

a:focus,
a:hover {
  color: #f18800 !important; /* #f18800; */
  text-decoration: none !important;
}

/* Button overrides - must come after general a styles */
a.button,
a.button-paper,
a.button-video,
a.button-code,
a.button-website,
a.button-blog,
a.button-talk,
a.button-profile {
  color: white !important;
  text-decoration: none !important;
}

a.button-paper {
  background-color: #0099cc !important;
  color: white !important;
}

a.button-paper:hover {
  background-color: #f18800 !important;
  color: white !important;
  text-decoration: none !important;
}

body,
td,
th,
tr,
p,
a {
  /*font-family: 'Libre Baskerville', serif;*/
  /*font-family: 'Poppins', sans-serif; */
  /*font-family: 'Open Sans', sans-serif;*/
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
  /*font-family: 'Lora', serif;*/
  font-size: 15px;
  line-height: 1.5;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Main content container */
.main-content {
  flex: 1;
  min-height: calc(100vh - 200px);
}

strong {
  /*font-family: 'Libre Baskerville', serif;*/
  /*font-family: 'Poppins', sans-serif;*/
  /*font-family: 'Open Sans', sans-serif;*/
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
  /*font-family: 'Lora', serif;*/
  font-size: 15px;
}

heading {
  /*font-family: 'Libre Baskerville', serif;*/
  /*font-family: 'Poppins', sans-serif; */
  /*font-family: 'Open Sans', sans-serif;*/
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
  /*font-family: 'Lora', serif;*/
  font-size: 24px;
}

papertitle {
  /*font-family: 'Libre Baskerville', serif;*/
  /*font-family: 'Poppins', sans-serif; */
  /*font-family: 'Open Sans', sans-serif;*/
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
  /*font-family: 'Lora', serif;*/
  font-size: 15px;
  font-weight: 700
}

profile-name {
  /*font-family: 'Libre Baskerville', serif;*/
  /*font-family: 'Poppins', sans-serif; */
  /*font-family: 'Open Sans', sans-serif;*/
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
  /*font-family: 'Lora', serif;*/
  font-size: 19px;
  font-weight: 700
}

.column {
  float: left;
  width: 50%;
  padding: 0px;
}

/* Clearfix (clear floats) */
.row::after {
  content: "";
  clear: both;
  display: table;
}

name {
  /*font-family: 'Libre Baskerville', serif;*/
  /*font-family: 'Poppins', sans-serif; */
  /*font-family: 'Open Sans', sans-serif;*/
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
  /*font-family: 'Lora', serif;*/
  font-size: 34px;
}

.one {
  width: 160px;
  height: 160px;
  position: relative;
}

.two {
  width: 160px;
  height: 160px;
  position: absolute;
  transition: opacity .2s ease-in-out;
  -moz-transition: opacity .2s ease-in-out;
  -webkit-transition: opacity .2s ease-in-out;
}

.fade {
  transition: opacity .2s ease-in-out;
  -moz-transition: opacity .2s ease-in-out;
  -webkit-transition: opacity .2s ease-in-out;
}

span.highlight {
  background-color: #ffffd0;
}

.header {
  overflow: hidden;
  background-color: white;
  padding: 10px 10px;
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Style the header links */
.header a {
  float: left;
  color: black !important;
  text-align: center;
  padding: 12px;
  text-decoration: none;
  font-size: 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
  margin: 2px;
  box-sizing: border-box;
}

/* Style the logo link */
.header a.logo {
  font-size: 27px;
  font-weight: bold;
  color: black !important;
}

/* Change the background color on mouse-over - Light mode */
.header a:hover {
  background-color: #f5f5f5 !important;
  color: #0099cc !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

/* Style the active/current link*/
.header a.active {
  background-color: #e0e0e0 !important;
  color: #0099cc !important;
  font-weight: 500;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

/* Float the link section to the right */
.header-right {
  float: right;
  display: flex;
  align-items: center;
  gap: 5px;
}


a.button {
    -webkit-appearance: button;
    -moz-appearance: button;
    appearance: button;

    text-decoration: none;
    border: none;
    background-color: #0099cc;
    color: white;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    /*font-family:'Poppins',sans-serif;*/
    /*font-family: 'Open Sans', sans-serif;*/
    font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
    /*font-family: 'Lora', serif;*/
    /*border-padding:10px;*/
    padding-left: 5px;
    padding-right: 5px;
    padding-top:1px;
    padding-bottom:1px;
    border-radius: 8%/16%;
    margin: 0.3em;
}


a.button-paper {
    -webkit-appearance: button !important;
    -moz-appearance: button !important;
    appearance: button !important;
    text-decoration: none !important;
    border: none !important;
    background-color: #0099cc !important;
    color: white !important;
    text-align: center !important;
    display: inline-block !important;
    cursor: pointer !important;
    font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
    padding-top: 4px !important;
    padding-bottom: 4px !important;
    border-radius: 8%/16% !important;
    margin: 0.3em !important;
    font-size: 16px !important;
    vertical-align: top !important;
    margin-top: -5px !important;
}

a.button-paper:hover,
a.button-paper:focus {
    background-color: #f18800 !important;
    color: white !important;
    text-decoration: none !important;
}

a.button-video {
    -webkit-appearance: button;
    -moz-appearance: button;
    appearance: button;

    text-decoration: none;
    border: none;
    background-color: grey;
    color: white;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    /*font-family:'Poppins',sans-serif;*/
    /*font-family: 'Open Sans', sans-serif;*/
    font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
    /*font-family: 'Lora', serif;*/
    /*border-padding:10px;*/
    padding-left: 5px;
    padding-right: 5px;
    padding-top:1px;
    padding-bottom:1px;
    border-radius: 8%/16%;
    margin: 0.3em;
}

a.button-code {
    -webkit-appearance: button;
    -moz-appearance: button;
    appearance: button;

    text-decoration: none;
    border: none;
    background-color: #383838;
    color: white;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    /*font-family:'Poppins',sans-serif;*/
    /*font-family: 'Open Sans', sans-serif;*/
    font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
    /*font-family: 'Lora', serif;*/
    /*border-padding:10px;*/
    padding-left: 5px;
    padding-right: 5px;
    padding-top:1px;
    padding-bottom:1px;
    border-radius: 8%/16%;
    margin: 0.3em;
}

a.button-website {
    -webkit-appearance: button;
    -moz-appearance: button;
    appearance: button;

    text-decoration: none;
    border: none;
    background-color: #8064A2;
    color: white;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    /*font-family:'Poppins',sans-serif;*/
    /*font-family: 'Open Sans', sans-serif;*/
    font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
    /*font-family: 'Lora', serif;*/
    /*border-padding:10px;*/
    padding-left: 5px;
    padding-right: 5px;
    padding-top:1px;
    padding-bottom:1px;
    border-radius: 8%/16%;
    margin: 0.3em;
}

a.button-blog {
    -webkit-appearance: button;
    -moz-appearance: button;
    appearance: button;

    text-decoration: none;
    border: none;
    background-color: #ed8e00;
    color: white;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    /*font-family:'Poppins',sans-serif;*/
    /*font-family: 'Open Sans', sans-serif;*/
    font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
    /*font-family: 'Lora', serif;*/
    /*border-padding:10px;*/
    padding-left: 5px;
    padding-right: 5px;
    padding-top:1px;
    padding-bottom:1px;
    border-radius: 8%/16%;
    margin: 0.3em;
}

a.button-talk {
    -webkit-appearance: button;
    -moz-appearance: button;
    appearance: button;

    text-decoration: none;
    border: none;
    background-color: #9BBB59;
    color: white;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    /*font-family:'Poppins',sans-serif;*/
    /*font-family: 'Open Sans', sans-serif;*/
    font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
    /*font-family: 'Lora', serif;*/
    /*border-padding:10px;*/
    padding-left: 5px;
    padding-right: 5px;
    padding-top:1px;
    padding-bottom:1px;
    border-radius: 8%/16%;
    margin: 0.3em;
}


a.button-profile {
    -webkit-appearance: button !important;
    -moz-appearance: button !important;
    appearance: button !important;
    text-decoration: none !important;
    border: none !important;
    background-color: black !important;
    color: white !important;
    text-align: center !important;
    display: inline-block !important;
    cursor: pointer !important;
    font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
    padding-top: 4px !important;
    padding-bottom: 4px !important;
    border-radius: 18%/18% !important;
    margin: 0.3em !important;
    font-size: 18px !important;
}

a.button-profile:hover,
a.button-profile:focus {
    background-color: #333333 !important;
    color: white !important;
    text-decoration: none !important;
}



button.button1{
  background-color:#FFFFFF;
  border:none;
  color: #0099cc;
  text-decoration:none;
  /*font-family:'Poppins',sans-serif;*/
  /*font-family: 'Open Sans', sans-serif;*/
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
  /*font-family: 'Lora', serif;*/
  /*padding-left:2px;*/
  /*padding-left:0.2em 0.35em;*/
  margin: 0 0.3em 0.3em 0;
}
button.button1:hover{
  color: #f18800;
  /*background-color:#0099cc;  */
  /*padding:0.2em 0.35em;*/
  margin: 0 0.3em 0.3em 0;
  border-radius: 0.5em;
  cursor: pointer; 
}/* Features */

.features {
  display: -moz-flex;
  display: -webkit-flex;
  display: -ms-flex;
  display: flex;
  -moz-flex-wrap: wrap;
  -webkit-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin: 0 0 2em -3em;
  width: calc(100% + 3em);
}

.features article {
  -moz-align-items: center;
  -webkit-align-items: center;
  -ms-align-items: center;
  align-items: center;
  display: -moz-flex;
  display: -webkit-flex;
  display: -ms-flex;
  display: flex;
  margin: 0 0 3em 3em;
  position: relative;
  width: calc(50% - 3em);
}

.features article:nth-child(2n - 1) {
  margin-right: 1.5em;
}

.features article:nth-child(2n) {
  margin-left: 1.5em;
}

.features article:nth-last-child(1), .features article:nth-last-child(2) {
  margin-bottom: 0;
}

.features article .icon {
/*  -moz-flex-grow: 0;
  -webkit-flex-grow: 0;
  -ms-flex-grow: 0;
  flex-grow: 0;
  -moz-flex-shrink: 0;
  -webkit-flex-shrink: 0;
  -ms-flex-shrink: 0;
  flex-shrink: 0;*/
  display: block;
  height: 10em;
  line-height: 10em;
  margin: 0 2em 0 0;
  text-align: center;
  width: 10em;
}

.features article .icon:before {
  color: black;
  font-size: 2.75rem;
  position: relative;
  top: 0.05em;
}

/*.features article .icon:after {
  -moz-transform: rotate(45deg);
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
  border-radius: 0.25rem;
  border: solid 2px rgba(210, 215, 217, 0.75);
  content: '';
  display: block;
  height: 7em;
  left: 50%;
  margin: -3.5em 0 0 -3.5em;
  position: absolute;
  top: 50%;
  width: 7em;
}
*/
.features article .content {
  -moz-flex-grow: 1;
  -webkit-flex-grow: 1;
  -ms-flex-grow: 1;
  flex-grow: 1;
  -moz-flex-shrink: 1;
  -webkit-flex-shrink: 1;
  -ms-flex-shrink: 1;
  flex-shrink: 1;
  width: 100%;
}

.features article .content > :last-child {
  margin-bottom: 0;
}

/*@media screen and (max-width: 980px) {

  .features {
    margin: 0 0 2em 0;
    width: 100%;
  }

    .features article {
      margin: 0 0 3em 0;
      width: 100%;
    }

      .features article:nth-child(2n - 1) {
        margin-right: 0;
      }

      .features article:nth-child(2n) {
        margin-left: 0;
      }

      .features article:nth-last-child(1), .features article:nth-last-child(2) {
        margin-bottom: 3em;
      }

      .features article:last-child {
        margin-bottom: 0;
      }

      .features article .icon {
        height: 8em;
        line-height: 8em;
        width: 8em;
      }

        .features article .icon:before {
          font-size: 2.25rem;
        }

        .features article .icon:after {
          height: 6em;
          margin: -3em 0 0 -3em;
          width: 6em;
        }

}*/

/*@media screen and (max-width: 480px) {

  .features article {
    -moz-flex-direction: column;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    -moz-align-items: -moz-flex-start;
    -webkit-align-items: -webkit-flex-start;
    -ms-align-items: -ms-flex-start;
    align-items: flex-start;
  }

    .features article .icon {
      height: 6em;
      line-height: 6em;
      margin: 0 0 1.5em 0;
      width: 6em;
    }

      .features article .icon:before {
        font-size: 1.5rem;
      }

      .features article .icon:after {
        height: 4em;
        margin: -2em 0 0 -2em;
        width: 4em;
      }

}*/


/* Add media queries for responsiveness - when the screen is 500px wide or less, stack the links on top of each other */
@media screen and (max-width: 500px) {
  .header a {
    float: none;
    display: block;
    text-align: left;
  }
  .header-right {
    float: none;
  }
  .features article .icon:before {
    font-size: 1.25rem;
  }
  
  /* Adjust positioning for mobile */
  .theme-toggle-btn {
    right: 50px !important;
  }
  
  .github-icon {
    right: 10px !important;
  }
}

/* Additional styles to ensure GitHub Pages compatibility */
.header * {
  box-sizing: border-box;
}

/* Force correct positioning regardless of other styles */
.theme-toggle-btn,
.github-icon {
  position: absolute !important;
}

/* Ensure proper z-index layering */
.header {
  z-index: 100;
}

.theme-toggle-btn {
  z-index: 1000 !important;
}

.github-icon {
  z-index: 999 !important;
}

/* Lightbox Styles */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  cursor: pointer;
}

.lightbox-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 85vw;
  max-height: 85vh;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.lightbox-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: 15px;
  right: 25px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.lightbox-close:hover {
  color: #f18800;
}

/* Make images clickable with hover effect */
.clickable-image {
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.clickable-image:hover {
  opacity: 0.8;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.3s ease;
  color: black !important;
  position: absolute;
  top: 15px;
  right: 70px;
  z-index: 1000;
  box-sizing: border-box;
}

.theme-toggle-btn:hover {
  background-color: rgba(0, 0, 0, 0.1) !important;
  transform: scale(1.1);
}

/* GitHub icon positioning */
.github-icon {
  position: absolute !important;
  top: 20px;
  right: 15px;
  z-index: 999;
  box-sizing: border-box;
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
}

.github-icon i {
  color: black !important;
  transition: color 0.3s ease;
}

.github-icon:hover i {
  color: #0099cc !important;
}

/* Dark Mode Styles */
[data-theme="dark"] {
  background-color: #1a1a1a !important;
  color: #e0e0e0 !important;
}

[data-theme="dark"] body {
  background-color: #1a1a1a !important;
  color: #e0e0e0 !important;
}

[data-theme="dark"] .header {
  background-color: #1a1a1a !important;
}

[data-theme="dark"] .header a {
  color: #e0e0e0 !important;
}

[data-theme="dark"] .header a:hover {
  background-color: #2a2a2a !important;
  color: #74c0fc !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] .header a.active {
  background-color: #1f3a57 !important;
  color: #64b5f6 !important;
  font-weight: 500;
  box-shadow: 0 1px 3px rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] .logo {
  color: #e0e0e0 !important;
}

[data-theme="dark"] .theme-toggle-btn {
  color: #e0e0e0 !important;
}

[data-theme="dark"] .theme-toggle-btn:hover {
  background-color: rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] .github-icon i {
  color: #e0e0e0 !important;
}

[data-theme="dark"] .github-icon:hover i {
  color: #74c0fc !important;
}

[data-theme="dark"] table {
  background-color: #1a1a1a;
}

[data-theme="dark"] td {
  color: #e0e0e0;
}

[data-theme="dark"] p {
  color: #e0e0e0;
}

[data-theme="dark"] heading,
[data-theme="dark"] profile-name,
[data-theme="dark"] b {
  color: #ffffff;
}

[data-theme="dark"] a {
  color: #4dabf7;
}

[data-theme="dark"] a:hover {
  color: #74c0fc;
}

[data-theme="dark"] a.button-profile {
  background-color: #404040 !important;
  color: #e0e0e0 !important;
}

[data-theme="dark"] a.button-profile:hover,
[data-theme="dark"] a.button-profile:focus {
  background-color: #505050 !important;
  color: #e0e0e0 !important;
  text-decoration: none !important;
}

[data-theme="dark"] a.button-paper {
  background-color: #4dabf7 !important;
  color: white !important;
}

[data-theme="dark"] a.button-paper:hover,
[data-theme="dark"] a.button-paper:focus {
  background-color: #74c0fc !important;
  color: white !important;
  text-decoration: none !important;
}

/* Dark mode for lightbox */
[data-theme="dark"] .lightbox {
  background-color: rgba(0, 0, 0, 0.9);
}

[data-theme="dark"] .lightbox-content {
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.1);
}
