/* CSS is how you can add style to your website, such as colors, fonts, and positioning of your
   HTML content. To learn how to do something, just try searching Google for questions like
   "how to change link color." */

:root {
  --kaisablack: #000F36; /* var(--kaisablack) */
  --bgcolor: #F5F5F5; /* var(--bgcolor) */
  --lightpink: #FFEAF1; /* var(--lightpink) */
  --bbpink: #FAE1EA; /* var(--bbpink) */
  --pink: #FFB1CF; /* var(--pink) */
  --linkpink: #C90050; /* var(--linkpink) */
  --hoverblue: #000080; /* var(--hoverblue) */
  --gray: #808080
  
  }

/* <weight>: Use a value from 200 to 800 */
/* <uniquifier>: Use a unique and descriptive class name */

body {
  background-color: var(--bgcolor);
  color: var(--kaisablack);
  font-family: "Atkinson Hyperlegible Next", sans-serif;
  font-size: 16px;
  margin: 0;
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 42px;
}

img {
    max-width: 100%;
    height: auto;
}

/* TEKSTID */
h1, h3, h4, h5, h6 {
  font-family: "Host Grotesk", sans-serif;
  margin-top: 0;
  margin-bottom: 4;
}


h1 {
  font-size: 2em; /* 2.5 * 16 = 40px */
  line-height: 1;
}

h2 {
  font-size: 1.5em; /* 1.875 * 16 = 24px */
  margin-top: 0;
  margin-bottom: 8px;
  line-height: 1em;
}

p {
  font-size: 1em; /* 1 * 16 = 16px */
}

p {
 font-size: 1em;
 margin-top: 0;
 margin-bottom: 8;
}

ul {
 margin-top: 0;
 margin-bottom: 8;
}

/* LINGID */
 a {
      color: var(--linkpink);
      font-weight: 400;
      text-decoration: underline;
    }
    
  a:hover {
    color: var(--hoverblue);
    font-weight: 400;
  }
  


/* SEKTSIOONID */
/* roosa header*/
.pinksection {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
    background-color: var(--bbpink);
    padding: 40px;
}

.half {
    width: 50%;
    height: 100%;
    gap: 20px;
}

.pinksection section {
    width: 100%;
    text-align: left;
}

/* projektisektsioon */
.projectsection {
    display: flex;
    justify-content: space-evenly;
    gap: 20px;
    padding: 40px;
    margin-top: 24px;

    color: inherit;
    text-decoration: none;

    transition: background-color 0.5s ease-out;
}

.projectsection:hover {
    background-color: var(--bbpink);
    color: inherit;
    text-decoration: none;
}

.projectsection h2,
.projectsection p,
.projectsection .tag {
    text-decoration: none;
    color: inherit;
}

.read-more {
    color: var(--linkpink);
    font-weight: 400;
    text-decoration: underline;
}

.projectsection:hover .read-more {
    color: var(--hoverblue);
}


/* About you projekti minikaardid/lingid */

.projectlink_section {
margin-top: 78px;
gap: 24px;

}

.projectlink {
  display: flex;
  align-items: center;
  height: 80px;
  border: 0px solid var(--kaisablack);
  background-color: var(--lightpink);
  margin: 10px;
  text-decoration: none;
  transition: background-color 0.5s ease-out
}

.projectlink_text,
.projectlink_arrow {
  transition: color 0.2s ease;
}

.projectlink:hover {
  background-color: var(--pink);
  text-decoration: underline;
}

.projectlink:hover .projectlink_text,
.projectlink:hover .projectlink_arrow {
  color: var(--hoverblue);
}

.projectlink_image {
  height: 100%;
  width: auto;
  display: block;
}

.projectlink_text {
  flex: 1;
  padding: 0 12px;
  margin-bottom: 1px;
  text-align: left;
  color: var(--linkpink);
  font-weight: 400;
}

.projectlink_arrow {
  padding-right: 6px;
}

.projectlink_arrow {
  color: var(--linkpink);
  width: 24px;
  height: 24px;
  margin-right: 6px;
  flex-shrink: 0;
}

.project-content-section p+p {
    margin-top: 0;
}

.tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--bgcolor);
  color: var(--kaisablack);
  border-radius: 9999px;
  border-color: var(--kaisablack);
  border: 0.5px solid var(--kaisablack);
  font-size: 0.8em ;
  font-weight: 500;
  white-space: nowrap;

}

.tags {
  display: flex;
  gap: 8px;      /* Space between tags */
  margin-bottom: 16px;
}

/* navigatsioon */
 nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 10px;
  text-align: center;
  z-index: 1000;
  background: var(--bgcolor);
}

    nav a {
      color: var(--kaisablack);
      padding: 10px 10px;
      text-decoration: none;

    }

    nav a:hover {
      color: var(--kaisablack);
      background-color: var(--pink);
      text-decoration: underline;
    }
      
  .current {
      font-weight: 600;
  }
  
  .current:hover {
      font-weight: 600;
  }

.skip {
  position: fixed;
  left: -10000px;
  top: 0;
  width: 1px;
  height: auto;
  overflow: hidden;
  padding: 10px;
  display:inline-block;
  z-index: 9999;
  background: var(--bgcolor);
}

.skip:focus {
  left: 0;
  top: 0;
  position: fixed;
  width: auto;
  height: auto;
  
}

/* PROJEKTILEHT  */
.info-list {
    display: grid !important;
    grid-template-columns: 150px 1fr;
}

.info-list div {
    padding: 4px 0;
}

.info-list div:nth-child(odd) {
    font-weight: 600;
}

.project-content {
    max-width: 820px;
    margin: 0 auto;
    padding: 40px;
}


/* Each content block */
.project-content-section {
    display: flex;
    width: 100%;
    gap: 20px;
    margin-bottom: 20px;
}

.full-width {
    width: 100%;
}

.narrow-width {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
}

figure {
    margin: 0;
    display: block;
    margin-bottom: 20px;
}

figcaption {
    margin-top: 0px;
    margin-bottom: 0px;
    margin-left: 20px;
    font-size: 0.8em;
    color: color-mix(in srgb, var(--kaisablack) 80%, transparent);
}


/* FOOTER */
.footer {
    width: 100%;
    background-color: var(--bbpink);
    margin-top: 100px;
    padding: 80px 40px;
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
}

.footer h2 {
    margin-top: 0;
    margin-bottom: 16px;
}

.footer p {
    margin-bottom: 24px;
    line-height: 1.6;
}



/* MOBIIL */
@media (max-width: 768px) {
    .pinksection {
        flex-direction: column;
        width: 90%;        /* wider on mobile */
        padding: 20px;
        gap: 10px;
    }
    .pinksection .half:first-child {
        order: 2;
    }

    .pinksection .half:last-child {
        order: 1;        
}

    .projectsection {
        flex-direction: column;
        width: 90%;        /* wider on mobile */
        padding: 20px;
        gap: 10px;
    }
    .projectsection .half:first-child {
        order: 2;
    }

    .projectsection .half:last-child {
        order: 1;        
}


    .half {
        width: 100%;
    }
}







/* Goodreads Widget */

.gr_custom_container_1784056749 {
  border: 0;
  border-radius: 10px;
  color: var(--kaisablack);
  margin-top: 32px;
}

/* Widget heading */
.gr_custom_header_1784056749 {
  width: 100%;
  margin: 0 0 1rem 0;
  padding: 0 0 0.4rem 0;
  text-align: left;
  font-size: inherit;
  font-weight: 600;
  border-bottom: 1px solid gray;
}

.gr_custom_header_1784056749 a,
.gr_custom_header_1784056749 a:visited {
  color: var(--kaisablack) !important;
  text-decoration: none;
  font: inherit;
}

/* Books */
.gr_custom_each_container_1784056749 {
  width: 100%;
  clear: both;
  margin-bottom: 10px;
  overflow: auto;
  padding-bottom: 4px;
  border-bottom: 1px solid #aaa;
}

.gr_custom_book_container_1784056749 {
  overflow: hidden;
  height: 60px;
  float: left;
  margin-right: 8px;
  width: 39px;
}

.gr_custom_title_1784056749 {
  font-size: inherit;
}

.gr_custom_author_1784056749 {
  font-size: 10px;
}

.gr_custom_author_1784056749 a,
.gr_custom_author_1784056749 a:visited {
  color: var(--kaisablack) !important;
}

.gr_custom_tags_1784056749 {
  font-size: 10px;
  color: gray;
}

.gr_custom_rating_1784056749 {
  float: right;
}


/* Goodreads logo */
.gr_custom_container_1784056749 center {
  text-align: right;
  margin-top: -20px;
  padding: 0;
  line-height: 0;
}

.gr_custom_container_1784056749 center img {
  width: 140px;
  height: auto;
}
}
