*, ::before, ::after {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
}

html,body {
    height: 100vh;
    height: 100dvh;
}

body{
    font-family: 'Poppins', sans-serif;
    touch-action: manipulation;

    display: grid;
    grid-template-rows: 1fr auto;
}

main{
    max-width: 500px;
    width: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0 auto;
    overflow-y: auto;
}

h1{
    text-align: center;
    font-weight: 500;
    font-size: 20px;
}

label{
    font-size: 15pt;
}
select{
    appearance: none;
    -webkit-appearance: none;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.5);
    padding: 10px;
    font-size: 12pt;
    border-radius: 5pt;
    border: 1px solid rgba(0, 0, 0, 0.25);
    color: #000;
}


.edt-container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    overflow-x: auto;
    margin-top: 10px;
}

.card{
    padding: 10px;
    background-color: var(--color);
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.75);
    border: 2px solid rgba(0, 0, 0, 1);
    margin-bottom: 15px;

    min-height: 150px;
    height: var(--height);

    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: auto auto 1fr;
    grid-row-gap: 5px;
    grid-template-areas:'cours cours'
                        'prof prof'
                        'salle heure';
    overflow: auto;
}
.card h2{
    font-size: 12pt;
    font-weight: 500;
    grid-area: cours;
}
.card p{
    font-size: 11pt;
    font-weight: 500;
}
.card p:nth-of-type(1){
    grid-area: prof;
}
.card p:nth-of-type(2){
    grid-area: salle;
    align-self: end;
}
.card p:nth-of-type(3){
    grid-area: heure;
    justify-self: end;
    align-self: end;
}



.pagination{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
}
.pagination span{
    font-size: 15pt;
}
.pagination button{
    background-color: transparent;
    font-size: 20pt;
    border: none;
    cursor: pointer;
    color: #000;
}
.hidden{
    visibility: hidden;
}


.loader{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-direction: row;
}
.loader .dot{
    width: 20px;
    height: 20px;
    background-color: #333;
    border-radius: 50%;
    animation: bounce 1s linear infinite;
}
.loader .dot:nth-of-type(1){animation-delay: 0s;}
.loader .dot:nth-of-type(2){animation-delay: 0.15s;}
.loader .dot:nth-of-type(3){animation-delay: 0.3s;}

@keyframes bounce {
    0%{transform: translateY(0);}
    12.5%{transform: translateY(-50%);}
    33%{transform: translateY(0);}
}

main > p:last-of-type{
    text-align: right;
}

.useful-links {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 10px;
    padding: 16px;
}
.useful-links a {
    width: 100%;
    text-decoration: none;
    color: currentColor;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border: 1px solid #333;
    border-radius: 5px;
}
.useful-links a svg,
.useful-links a img {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
}