@import url("https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,100..900;1,100..900&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Jost", sans-serif;
  list-style: none;
}
:root {
  --background-color: #bedece;
  --content-background-color: #dedede;
  --sidebar-text-color: #217131;
  --link-color: #100a2d;
  --link-color-hover: #4a3b97;
  --font: "Jost", sans-serif;
  --border: 10px solid #735fd4;
  --round-borders: 6px;
}
#cbox{
  width : 100%;
  height:300px;
  border: none;}
body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  font-size: 1rem;
  font-family: var(--font);
  line-height: 1.2;
  color: #161616;
  background: var(--background-color);
}

.backtohome {
  position: fixed;
  top: 1rem;
  left: 1rem;
  width: 5rem;
  height: 5rem;
  background: #fff;
  clip-path: polygon(50% 0%, 95% 25%, 95% 75%, 50% 100%, 5% 75%, 5% 25%);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease-in-out;
  display: flex;
  align-items: center;
  animation: jump-rotate 5s infinite;
}

.container{
  display: flex;
  flex-direction: row;
  margin:0 10vw; 
  gap:1rem;
}
.content {
  border: #333 solid 2px;
  border-radius: 6px;
  display: flex;
  flex-direction: row;
}
.content > img {
  border-radius: 5px 0 0  5px ;
  width: 12rem;
  height: 12rem;
  object-fit: cover;
  flex-shrink: 0;
}
.content > p {
  padding: 0.6rem;
  flex: 1;
}
p{
  font-size: 1.2rem;
}

.publication-date {
  text-align: right;
  font-size: 10px;
}
.flex {
  display: flex;
  align-items: center;
}
.sidebar-title {
  font-weight: bold;
  font-size: 1.2rem;
  font-family: var(--font);
}

/* HEADER */
header {
  margin: 2rem;
  font-size: 1.5rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}
header img {
  height: 6rem;
  vertical-align: middle;
}

/* MAIN */
main {
  padding: 0.8rem;
  background: var(--content-background-color);
  border: var(--border);
  border-radius: var(--round-borders);
  line-height: 1.5;
  min-height: 80vh;
  max-height: 120vh;
  overflow: scroll;
}
main h1,
main h2,
main h3,
main h4,
main h5,
main h6 {
  font-family: var(--font);
  margin-bottom: 0.5rem;
  line-height: 1.5;
}
main > h1 {
  font-size: 2rem;
  justify-self: center;
}
main h2 {
  font-size: 1.8rem;
}
main h3 {
  font-size: 1.5rem;
}
main h4 {
  font-size: 1.2rem;
}
main h5 {
  font-size: 1rem;
}
main h6 {
  font-size: 0.8rem;
}
main a{
  color: var(--link-color);
  text-decoration-line: none;
}

/* SECTION */
main section {
  background: var(--content-background-color);
  padding: 0.8rem;
  margin-bottom: 1rem;
  transition: box-shadow 0.3s ease-in-out;
}
main section:hover{
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.);
}

/*ASIDE*/
aside {
  min-width: 18rem;
  border: var(--border);
  border-radius: var(--round-borders);
  background: var(--content-background-color);
  padding: 0.6rem;
  color: var(--sidebar-text-color);
  overflow: hidden;
  
}
aside a,
aside a:visited {
  color: var(--link-color);
  text-decoration-line: none;
}
aside a:hover,
aside a:focus {
  background-color: var(--link-color-hover);
  color: antiquewhite;
  text-decoration-line: none;
}

a > img {
  height: 20px;
  vertical-align: middle;
}

aside > section {
  max-width: fit-content;
  margin-bottom: 1rem;
}
aside > section a {
  display: block;
  padding: 5px 10px;
  text-decoration: none;
}

/* NAV */
nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
  font-size:1.2rem;

}
nav a {
  color: var(--link-color);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: var(--round-borders);
  transition: background-color 0.3s ease-in-out;
}
nav a:hover {
  background-color: var(--link-color-hover);
  color: #fff;
}

/* FOOTER */
footer {
  font-size: 1rem;
  padding: 1rem;
  background: #44368a7c;
  display: block;
  text-align: center;
  margin-top: 2rem;
  width: 100%;
}

@media (max-width: 1000px) {
  .container {
    flex-direction: column;
    flex-direction: column-reverse;
    width: 98%;
  }
  aside{
    font-size: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    width: 100%;
  }
  
aside > section {
  padding: 0 2rem;
}
}


@media (min-width:1300px) {
  .container{
    margin: 0 20vw;
    }
  
}
