
/* ------------------ CSS RESET ---------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  height: auto;
  max-width: 100%;
}

html,body,p,ol,ul,li,dl,dt,dd,blockquote,figure,fieldset,legend,textarea,pre,iframe,hr,h1,h2,h3,h4,h5,h6 {
  margin: 0;
  padding: 0;
}

h1,h2,h3,h4,h5,h6 {
  font-size: 100%;
  font-weight: normal;
}

input,button,textarea,select {
  font: inherit;
  margin: 0;
}

iframe {
  border: 0;
}

::-moz-selection {
  /* Code for Firefox */
  color: var(--backgroundcolor);
  background: var(--fontcolor);
}

::selection {
  color: var(--backgroundcolor);
  background: var(--fontcolor);
}

html {
  width: 100%; height: 100%;
  scroll-behavior: smooth;
    box-sizing: border-box;
  --spacing:1rem;
  --spacingsmall: 0.5rem ;
  --backgroundcolor: #252525 ;
  --maincolor: #676767;
    --secondcolor: #ff9df4 ; 
    --fontcolor: #ffffff ;
  --backgroundcolordark: hsl(from var(--backgroundcolor) h s calc(l - 10));
}

body{
    background-color: var(--backgroundcolor);
    color: var(--fontcolor);
    font-family: 'Wondertype';
}

section{
    margin: var(--spacing);
}

.laptop{
    display: none;
}

/* --------------------------------------------------------------------------------------------------------------------- */
/* |                                                INDEX PAGE                                                          |
/* --------------------------------------------------------------------------------------------------------------------- */

h1{font-size: 60px;}

h2{font-size: 8vw;}

h3{font-size: 30px;margin:0;}

p{
font-size: 4vw;
max-width: 50ch;
line-break:strict;}

a{
    color: var(--secondcolor);
}

a:hover{
    color: var(--fontcolor);
    transition: 0.2s;
}

#banner{
    background-image: url(img/11.jpg);
    background-size: cover;
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    right: 0;
    height: 10vh;
    object-fit: fill;
}

#header{
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--spacing);
    align-items: end;
}

#links{
    display: flex;
    flex-direction: row;
    gap: var(--spacing);
    justify-content: space-around;
}

#data{
    display: flex;
    flex-direction: column;
    gap: var(--spacing);
    overflow-y: scroll;
    margin-top: var(--spacing);
    width: 100%;
    height: 100%;
}

.artist-photo{
box-shadow: 3px 4px 5px 0px rgba(0,0,0,0.12);
-webkit-box-shadow: 3px 4px 5px 0px rgba(0,0,0,0.12);
-moz-box-shadow: 3px 4px 5px 0px rgba(0,0,0,0.12);
}



/* ----------------- POP UP LINKS ------------------ */

.hidden{
    display: none;
}

path{
    fill: var(--secondcolor);
    width: 20px;
    height: 20px;
}

.link-name{
    display: flex;
    flex-direction: row;
    gap: var(--spacingsmall);
    cursor: pointer;
}

.icon{
    width: 20px;
    height: 20px;
    vertical-align: middle;
    background: var(--secondcolor);
    background-position: center;
    mask-position: center;
    mask-repeat: no-repeat;
}

.link-social{
    margin-bottom: var(--spacing);
}

.link-name:hover > .icon{
   background: var(--fontcolor);
}

#share {
    mask-image: url(img/copy.svg);
}
#socials {
    mask-image: url(img/share.svg);
}
#about {
    mask-image: url(img/about.svg);
}
#tips {
    mask-image: url(img/tips.svg);
}

.popup{
    position: fixed;
    top: 20%;
    bottom: 20%;
    left: 10%;
    right: 10%;
    padding: 2rem;
    z-index: 999;
    background-color: var(--backgroundcolor);
    border: solid 3px var(--secondcolor);
    overflow-y: scroll;
    box-shadow: 3px 4px 5px 0px rgba(0,0,0,0.12);
    -webkit-box-shadow: 3px 4px 5px 0px rgba(0,0,0,0.12);
    -moz-box-shadow: 3px 4px 5px 0px rgba(0,0,0,0.12);
}

.splashscreen{
  position: fixed;
  top: 0%;
  bottom: 0%;
  left: 0%;
  right: 0%;
  opacity: 50%;
  z-index: 998;
  background-color: var(--backgroundcolor);
  cursor:pointer;
}

/* ----------------- RELEASE LIST ------------------ */

.releaselist{
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: calc( var(--spacing)*3);
    margin-bottom: calc( var(--spacing)*3);
}

.releasecover:hover{filter:brightness(130%);transition: 0.25s;}

.releasecover{
box-shadow: 3px 4px 5px 0px rgba(0,0,0,0.12);
-webkit-box-shadow: 3px 4px 5px 0px rgba(0,0,0,0.12);
-moz-box-shadow: 3px 4px 5px 0px rgba(0,0,0,0.12);
}

.release{
    display: flex;
    flex-direction: column;
    gap: var(--spacingsmall);
}

/* ----------------- FRIENDS LIST ------------------ */

.friendlist{
    display: flex;
    flex-direction: column;
    gap: var(--spacing);
    padding-bottom: calc(var(--spacing)*4);
}



@font-face {
    font-family: 'Wondertype';
    src: url(fonts/WonderType-Regular.otf);
}






/* ----------------- MEDIA QUERIES ------------------ */

/* On est mobile first ici donc les media queries sont utilisées pour les laptops */

@media screen and (min-width:600px) {
p{
font-size: 2vw;
}

section{
    margin: calc(var(--spacing) * 2);
}

#links{
    flex-direction: column;
    align-items: flex-end;
}

.laptop{
    display: block;
}

}




@media screen and (min-width:1000px) {

h1{font-size: 50px;}

h2{font-size:40px;}

h3{font-size: 30px;margin:0;}

p{
font-size: 17px;
max-width: 50ch;
line-break:strict;}


/* LAPTOP LAYOUT */

.laptop{
    display: block;
}

#page{
    display: grid;
    grid-template-columns: 1fr 2fr;
    overflow: hidden;
}

#release{
    display: flex;
    flex-direction: column;
    height: 50vh;
}

#header{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: var(--spacing);
}

#data{
    gap: calc(var(--spacing)*2);
    contain: unset;
}

.releasecover{
    max-width: 400px;
}

.artist-photo{
    max-width: 200px;
}

}


@media screen and (min-width:1300px) {

.releaselist{
    grid-template-columns: 1fr 1fr 1fr;
}

}