*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Roboto', sans-serif;
}
#cartebody {
    font-family: 'Roboto', sans-serif;
	/*display: flex;
	justify-content: center;
	align-items: center;
	gap: 1em;
	*/
	/*min-height: 100vh;*/
	background-image: radial-gradient(circle at 50% 100%, #1b1b35, #121225);
	/*
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', 'Open Sans', system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';
	*/
	/*
	overflow: hidden;
	overflow: clip;
	*/
    color: #fff;
	text-align: center;
}
.button {
  position: relative;
  border: 1px solid transparent;
  border-radius: 6px;
  margin: 10px 0 0 auto;
  padding: 8px 16px;
  min-width: 8em;
  text-align: center;
  color: #fff;
  background-image: 
    linear-gradient(to bottom, #f12828, #a00332, #9f0f31),
    linear-gradient(to bottom, #ae0034, #6f094c);
  background-clip: padding-box, border-box;
  background-origin: padding-box, border-box;
  box-shadow: 
    inset 0 1px rgb(255 255 255 / .25),
    inset 0 -1px rgb(0 0 0 / .1),
    0 2px 4px rgb(0 0 0 / .25);
  transition: .2s;
  will-change: transform;
  
  &:active {
    transform: scale(.92);
    filter: brightness(.8);
  }
}
.button-hat {
  position: absolute;
  top: -15px;
  left: -17px;
  height: 44px;
  filter: drop-shadow(0 2px 1px rgb(0 0 0 / .25));
}
.canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
img {
    max-width: 100%;
}
.container {
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}
.toppage {
    margin-top: 90px;
}
.face {
    width: 250px;
    margin: 0 auto;
}
.face img {
    display: block;
    border-radius: 50%;
}
.toplist {
    margin: 3em auto;
}
.toplistitem {
    list-style: none;
    text-align: center;
    font-size: 2em;
}
.toplistimg img {
    width: 100px;
}
.toplistimg img {
    position: relative;
    opacity: 0.7;
}
.toplistimg:hover img {
    opacity: 1.0;
}
.toplistitem + .toplistitem {
    margin-top: 0.2em;
}
.link {
    text-decoration: none;
    color:#FF8800;
}
.link:hover, .link:focus, .link:hover .tinylink, .link:focus .tinylink {
     color: #ccccaa;
}
.tinylink {
    font-size: 1.5rem;
    line-height: 0.8em;
    color: #FF8800;
    top: 30px;
    left: 115px;
}

/* Navigation bar */

#navbar {
    background-color: #FF8800;
    color: #000;
    padding: 10px 0;
    position: fixed;
    top: 0;
    width: 100%; /* Full width */
    transition: top 0.3s; /* Transition effect when sliding down (and up) */
    z-index: 1;
    height: 90px;
}
.undernavbar {
    /* set padding-top equal to navbar height */
    padding-top: 90px;
}
.nav {
    display: flex;
    align-items: center;
}
.logo {
    width: 70px;
    margin-right: 10px;
}
.logo img {
    display: block;
}
.title {
    font-size: 3rem;
}
.titlesmall {
    font-size: 1.2rem;
}

/* CARTE */

.cartewish {
    font-size: 2.3rem;
    margin-top: 1em;
    color: #80ffff;
    text-align: center;
}
.cartewish .year {
    font-size: 2.0em;
}
.carte {
    /* border: 1px solid grey; */
    box-shadow: 3px 3px 6px 2px #aaa;
    position: relative;
    max-width: 800px;
    max-height: 600px;
    width: min(90vh, 90vw);
    height: min(67.5vh, 67.5vw);
    margin: auto auto;
    cursor: pointer;
	background-color: #fff;
}
.carte:hover {
    box-shadow: 3px 3px 6px 2px #777;
}
.carteint {
    /* background-image: linear-gradient(#fff 40%, #c8ffc6); */
    display: flex;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 10%;
}
.tinyright {
    font-size: 0.6em;
    position: absolute;
    bottom: 10%;
    right: 10%;
    color: black;
}
.carteintoverlay img {
    position: absolute;
    bottom: 0;
    opacity: 1.0;
}
.carte img {
    /* border: 3px solid blue; */
    max-height: 100%;
    margin: auto;
}
.carteext {
    background-color: white;
    border: 2px solid #aaa;
    display: flex;
    position: absolute;
    top: 0;
    bottom: 0;
    transform-origin: top;
    transition-duration: 1s;
    transition-timing-function: linear;
    transform-style: preserve-3d;
}
.carteint img {
    padding: 10%;
}
.carteext img {
    padding: 5%;
}
.folded {
    transform: rotateX(0deg) skewX(0deg);
}
.unfolded {
    transform: rotateX(87deg) skewX(10deg);
}
#cartebtn {
    display: block;
    margin: 1em auto;
    cursor: pointer;
    background-color: #FF8800;
    border-radius: 50%;
    border-width: 0;
    padding: 15px;
    box-shadow: 2px 2px 3px 2px #aaa;
}
#cartebtn img {
    display: block;
    height: 20px;
}
#cartebtn:focus {
    outline: none;
    background-color: #3333aa;
}
#cartebtn:focus img {
    filter: invert(100%);
}
#cartebtn:hover {
    background-color: #3333aa;
}
#cartebtn:hover img {
    filter: invert(100%);
}

.news {
    margin: 2em auto;
}
.news h2 {
    color: #80ffff;
    text-align: center;
}
.newslist {
    display: flex;
    justify-content: center;
}
.newslink {
    list-style: none;
    text-align: center;
    font-size: 2em;
}
.newslink img {
    opacity: 1.0;
}
.newslink:hover img {
    opacity: 0.7;
}

/* Print your own card */

.printyourown {
    margin: 2em auto;
    text-align: center;
}
.printyourown h2 {
    color: #80ffff;
}
.printyourown h3 {
    margin-top: 1em;
}
.instructlist {
    /* text-align: center; */
    margin: auto;
}
.instructlist ol {
    display: inline-block;
    margin: auto;
    text-align: left;
}
.formats {
    text-align: center;
}
.formats table {
    display: inline-block;
}

/* ORIGAMI */

.row {
    display: flex;
    gap: 1em;
    flex-wrap: wrap;
}
.section {
    flex: 1;
    padding: 20px 0;
    text-align: center;
}
.section h2 {
    font-size: 2rem;
    line-height: 2rem;
    margin-bottom: 1rem;
}
.listitem {
    margin-top: 0.5em;
    list-style: none;
    font-size: 1.5rem;
    line-height: 1.5rem;
    text-align: center;
}

/* PHOTOS */

.albumpage {
    background-color: #f0f0f0;
    font-family: 'Zilla Slab', serif;
}
.albumlink {
    display: block;
    text-decoration: none;
    background-color: #ffffff;
    background-size: cover;
    margin-bottom: 1rem;
    box-shadow: 3px 3px 2px #cccccc;
    padding: 1rem;
    padding-bottom: 2.5rem;
    font-size: 1rem;
    line-height: 1.5rem;
    /* If you want text inside of it */
    position: relative;
}

@media (hover: hover) {
    .albumlink:hover {
        cursor: pointer;
    }
    .albumlink img {
        filter: brightness(80%);
        transition: 0.3s;
    }
    .albumlink:hover img {
        filter: brightness(100%);
    }
}

.albumdate {
    color: #aaaaaa;
    font-style: italic;
    text-align: right;
    line-height: 1em;
    position: absolute;
    bottom: 0.5rem;
    right: 1rem;
}
.albumtitle {
    color: #000;
    font-size: 1.3rem;

    font-weight: bold;
    margin: 0.8rem 0;
}
.albumlink hr {
    border: none;
    background: #bbbbbb;
    height: 2px;
    margin: 0.8rem 0;
}
.albumlink p {
    display: inline;
    text-align: left;
    font-size: 1.1rem;
    font-style: italic;
    color: #222222;
}

@media (min-width: 500px), (max-height: 500px) {
    .toppage {
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .face {
        margin: 0 3rem 0 0;
    }
    .toplist {
        margin: 0;
    }
    .albumlist {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    .albumlink {
        width: 200px;
        flex-grow: 1;
        margin: 0 10px 20px 10px;
        min-height: 7rem;
    }
}
@media (min-width: 1100px) {
    .albumlink {
        width: 250px;
    }
}
@media (max-height: 500px) {
    #navbar {
        padding: 0;
        height: 40px;
    }
    .toppage {
        margin-top: 30px;
    }
    .undernavbar {
        padding-top: 40px;
    }
    .logo {
        width: 30px;
    }
    .title {
        font-size: 2rem;
    }
}
