/* Import Inter font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 400;
  src: local('Lato Italic'), local('Lato-Italic'), url(https://fonts.gstatic.com/s/lato/v15/S6u8w4BMUTPHjxsAUi-qNiXg7eU0.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 400;
  src: local('Lato Italic'), local('Lato-Italic'), url(https://fonts.gstatic.com/s/lato/v15/S6u8w4BMUTPHjxsAXC-qNiXg7Q.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 700;
  src: local('Lato Bold Italic'), local('Lato-BoldItalic'), url(https://fonts.gstatic.com/s/lato/v15/S6u_w4BMUTPHjxsI5wq_FQftx9897sxZ.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 700;
  src: local('Lato Bold Italic'), local('Lato-BoldItalic'), url(https://fonts.gstatic.com/s/lato/v15/S6u_w4BMUTPHjxsI5wq_Gwftx9897g.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  src: local('Lato Regular'), local('Lato-Regular'), url(https://fonts.gstatic.com/s/lato/v15/S6uyw4BMUTPHjxAwXiWtFCfQ7A.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  src: local('Lato Regular'), local('Lato-Regular'), url(https://fonts.gstatic.com/s/lato/v15/S6uyw4BMUTPHjx4wXiWtFCc.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  src: local('Lato Bold'), local('Lato-Bold'), url(https://fonts.gstatic.com/s/lato/v15/S6u9w4BMUTPHh6UVSwaPGQ3q5d0N7w.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  src: local('Lato Bold'), local('Lato-Bold'), url(https://fonts.gstatic.com/s/lato/v15/S6u9w4BMUTPHh6UVSwiPGQ3q5d0.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

a {
  color: #1e3a8a;
  text-decoration: none;
}

a:focus,
a:hover {
  color: #3b82f6;
  text-decoration: none;
}

body,
td,
th,
tr,
p,
a {
  font-family: 'Inter', 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 14px;
}

strong {
  font-family: 'Inter', 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 14px;
}

h2 {
  margin: 0;
  font-weight: normal;
  font-family: 'Inter', 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 22px;
}

.papertitle {
  font-family: 'Inter', 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 700;
}

.name {
  padding-top: 20px;
  margin: 0;
  font-family: 'Inter', 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 32px;
}

.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: #dbeafe;
}

.colored-box {
    color: black;
    padding: 20px;
    display: inline-block;
    border-radius: 10px;
}

/* Blog page styles */
h3 {
    margin: 0;
    font-family: 'Inter', 'Lato', Verdana, Helvetica, sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #1e3a8a;
}

h3 a:hover {
    color: #3b82f6;
}

.blog-post {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.blog-post:last-child {
    border-bottom: none;
}

/* Responsive Design - Mobile and Tablet */
@media screen and (max-width: 768px) {
    /* Main container - ensure full width */
    table[style*="max-width:1000px"] {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Header row - make cells stack */
    table[style*="max-width:1000px"] > tbody > tr > td > table > tbody > tr > td {
        display: block !important;
        width: 100% !important;
        padding: 15px 10px !important;
    }
    
    /* Header: SIREN art section */
    td[style*="width:25%"][style*="padding:2.5%"] {
        width: 100% !important;
        padding: 15px 10px !important;
    }
    
    /* Header: Bio section */
    td[style*="width:50%"][style*="padding:2.5%"] {
        width: 100% !important;
        padding: 15px 10px !important;
    }
    
    /* Header: Profile photo */
    td[style*="width:25%"][style*="padding:2.5%"]:last-of-type {
        width: 100% !important;
        padding: 15px 10px !important;
        text-align: center !important;
    }
    
    /* Project rows - make cells stack */
    table[style*="border-spacing:0px 10px"] > tbody > tr > td {
        display: block !important;
        width: 100% !important;
        padding: 15px 10px !important;
    }
    
    /* Project image column */
    table[style*="border-spacing:0px 10px"] > tbody > tr > td[style*="width:20%"] {
        width: 100% !important;
        text-align: center !important;
        padding: 15px 10px !important;
    }
    
    /* Project text column */
    table[style*="border-spacing:0px 10px"] > tbody > tr > td[style*="width:80%"] {
        width: 100% !important;
        text-align: left !important;
        padding: 15px 10px !important;
    }
    
    /* Header adjustments */
    .name {
        font-size: 24px;
        padding-top: 10px;
    }
    
    /* Navigation links - wrap better */
    p[style*="text-align:center"] {
        font-size: 12px;
        line-height: 1.8;
    }
    
    p[style*="text-align:center"] a {
        display: inline-block;
        margin: 2px 4px;
    }
    
    /* Project images/videos - smaller on mobile */
    .one {
        width: 120px;
        height: 120px;
        margin: 0 auto;
    }
    
    .two {
        width: 120px;
        height: 120px;
    }
    
    .one img,
    .two img,
    .one video,
    .two video {
        width: 120px !important;
        height: 120px !important;
    }
    
    /* SIREN art slideshow - adjust for mobile */
    #siren-slideshow img {
        height: 150px !important;
    }
    
    /* Bio text - better spacing on mobile */
    p[style*="text-align: justify"] {
        text-align: left !important;
        font-size: 13px;
        line-height: 1.5;
        margin-bottom: 12px !important;
    }
    
    /* Project titles */
    .papertitle {
        font-size: 13px;
    }
    
    /* Section headers */
    h2 {
        font-size: 20px;
    }
    
    /* Colored boxes */
    .colored-box {
        padding: 15px;
        font-size: 18px;
    }
    
    /* Footer images */
    img[src*="FRoG"],
    img[src*="umich_robo"] {
        height: 30px !important;
        margin: 5px !important;
    }
}

/* Tablet specific adjustments */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    /* Slightly reduce padding on tablets */
    td[style*="padding:2.5%"] {
        padding: 2% !important;
    }
    
    .name {
        font-size: 28px;
    }
    
    p[style*="text-align: justify"] {
        font-size: 13px;
    }
    
    /* Project images - slightly smaller */
    .one {
        width: 140px;
        height: 140px;
    }
    
    .two {
        width: 140px;
        height: 140px;
    }
    
    .one img,
    .two img,
    .one video,
    .two video {
        width: 140px !important;
        height: 140px !important;
    }
}

/* Very small mobile devices */
@media screen and (max-width: 480px) {
    .name {
        font-size: 20px;
    }
    
    h2 {
        font-size: 18px;
    }
    
    .papertitle {
        font-size: 12px;
    }
    
    body, td, th, tr, p, a {
        font-size: 13px;
    }
    
    /* Navigation - stack vertically on very small screens */
    p[style*="text-align:center"] a {
        display: block;
        margin: 5px 0;
    }
    
    /* SIREN art - smaller on very small screens */
    #siren-slideshow img {
        height: 120px !important;
    }
    
    /* Project images - even smaller */
    .one {
        width: 100px;
        height: 100px;
    }
    
    .two {
        width: 100px;
        height: 100px;
    }
    
    .one img,
    .two img,
    .one video,
    .two video {
        width: 100px !important;
        height: 100px !important;
    }
}