/* ---------------------------------------------------------------------- */
/*                               GENERAL                                  */
/* ---------------------------------------------------------------------- */

html {
    height: 100%;
}

body {
    margin: 0px;
    padding: 0px;

    background-image: url("../img/pattern.png");
    background-repeat: repeat;

    background-size: 100px 100px;
    background-color: #FCF2E6;

    justify-content: center;

    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex-grow: 1;
    justify-content: center;
    align-items: center;

    /* background: brown;*/
}

/* ---------------------------------------------------------------------- */
/*                               FONTS                                    */
/* ---------------------------------------------------------------------- */

.space-mono-regular {
    font-family: "Space Mono", monospace;
    font-weight: 400;
    font-style: normal;
}

.space-mono-bold {
    font-family: "Space Mono", monospace;
    font-weight: 700;
    font-style: normal;
}

.space-mono-regular-italic {
    font-family: "Space Mono", monospace;
    font-weight: 400;
    font-style: italic;
}

.space-mono-bold-italic {
    font-family: "Space Mono", monospace;
    font-weight: 700;
    font-style: italic;
}

/* ---------------------------------------------------------------------- */
/*                               HEADER                                   */
/* ---------------------------------------------------------------------- */

header {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    height: 71px;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;

    border-top: 2px solid #000;
    border-bottom: 10px solid #000;

    background: #EDC847;
}

header div {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;

    width:100%;

/*background: green;*/
}

.header-button {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 5%;
    max-width: 50%;
    height: 80px;
    padding: 20px 2% 20px 2%;
    gap:0;
    flex-shrink: 0;


    border-bottom: 10px solid #030601;
    border-right: none;
    border-left: none;
    border-top: none;

    background: #EDC847;

    cursor: pointer;
}

.header-button a {
    text-decoration: none;

    color: #030601;

    text-align: center;
    font-family: "Space Mono";
    font-size: 15px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

.header-button:hover {
    border-top: 10px solid #030601;
    border-right: 2px solid #030601;
    border-bottom: 2px solid #030601;
    border-left: 2px solid #030601;

    background: #FCF2E6;
}

/* ---------------------------------------------------------------------- */
/*                              PERFIL                                    */
/* ---------------------------------------------------------------------- */

.pfp-profile-materias-group {
    gap:1rem;
    margin-left: auto;
    margin-right: auto;
    margin-top: 3%;
    margin-bottom: 1%;

    display: flex;
    flex-direction: column; 

    justify-content: center;
    align-items: center;
    width: 94%;
    max-width: 1050px;

    /*background: green;*/
}

.perfil {
    gap:1rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    margin: 0;
    width: 100%;
    max-width: 500px; 
    min-width:200px;
    flex-direction: column;
    flex-shrink: 0;
    /*background: greenyellow;*/
}

/*------------*/
/* WIDESCREEN */
/*------------*/

@media (min-width: 768px) {
    .pfp-profile-materias-group {
        flex-direction: row; 
        align-items: flex-start;
        gap:0;
    }

    .perfil {
        width: 50%;
        max-width: 500px;
        margin-bottom: 0;
    }

    .materias {
        width: 50%;
        max-width: 500px;
    }
}

.materias {
    gap:1.1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    width: 100%;
    max-width: 500px; 
    min-width:200px;

    /*background:yellow;*/
}

.year {   
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 90%;
    height: 90%;

    border-radius: 20px;
    border-top: 2px solid #030601;
    border-right: 10px solid #030601;
    border-bottom: 10px solid #030601;
    border-left: 2px solid #030601;

    background: #FFF;
}

.year h2 {
    margin:1%;
    padding:2% 0;
    color: #F46A81;

    text-align: center;
    font-family: "Space Mono";
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

.year p {
    margin:1%;
    padding: 0 0 3% 0%;

    align-items: center;
    text-align: center;

color: #030601;

font-family: "Space Mono";
font-size: 12px;
font-style: normal;
font-weight: 700;
line-height: normal;
}

.pfp {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    min-width:200px;
    max-width:500px;
    flex-shrink: 0;
}

.pfp img {
    aspect-ratio: 1/1;
    width: 90%;
    height: 90%;

    border-radius: 15px;

    border-radius: 20px;
    border-top: 2px solid #030601;
    border-right: 10px solid #030601;
    border-bottom: 10px solid #030601;
    border-left: 2px solid #030601;
}

.perfil article{
    width: 90%;

    border-radius: 19px;
    border-top: 2px solid #030601;
    border-right: 10px solid #030601;
    border-bottom: 10px solid #030601;
    border-left: 2px solid #030601;

    background: #FFF;
}

.nombre {
    margin: 0;
    width: 100%;
}

.nombre h1 {
    display: flex;
    justify-content: center;
    align-items: center;
    margin:0;
    width: 100%;
    height: 3rem;
    border-radius: 16px 10px 0 0;


    background:#F46A81;
    color: #FCF2E6;

    text-align: center;
    font-family: "Space Mono";
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;   
}

.nombre p {
    text-align: center;

    color: #030601;

    font-family: "Space Mono";
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.perfil span{
    color:#F46A81;

    font-family: "Space Mono";
    font-style: bold;
}

.year span {
    color: #9DBFFF;

    text-align: center;
    font-family: "Space Mono";
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

/* ---------------------------------------------------------------------- */
/*                               COMPAS                                   */
/* ---------------------------------------------------------------------- */

.button-group {
    gap:1rem;
    margin: 0% auto;

    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 94%;
    max-width: 1050px;

    /*background: green;*/
}

.primary-button {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;

    width: calc(50% - 0.5rem);
    height: 10rem;

    padding:3%;
    border-radius: 19px;
    border-top: 2px solid #030601;
    border-right: 10px solid #030601;
    border-bottom: 10px solid #030601;
    border-left: 2px solid #030601;

    background: #9DBFFF;

    cursor: pointer;
}

/*------------*/
/* WIDESCREEN */
/*------------*/

@media (min-width: 768px) {
    .primary-button {
        width: calc(25% - 0.75rem);
        max-width: 21.6%;
        max-height: 205px;
    }
}

.primary-button a {
    color: #030601;

    text-align: center;
    font-family: "Space Mono";
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;

    text-decoration: none;
}

.primary-button:hover {
    border-radius: 19px;
    border-top: 10px solid #030601;
    border-right: 2px solid #030601;
    border-bottom: 2px solid #030601;
    border-left: 10px solid #030601;

    background: #F46A81;
}

/* ---------------------------------------------------------------------- */
/*                           FOOTER BUTTON                                */
/* ---------------------------------------------------------------------- */

.wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 0 auto;

    /*background: greenyellow;*/
}

.collapsible {
    margin:6%;
    max-width: 950px;
    font-weight: 500;
    margin-top: 20px;
    margin-bottom: 40px;
    width: 100%; 
}

.collapsible input {
    display: none;
}

.collapsible label {
    position: relative;
    display: block;
    cursor: pointer;
    padding: 12px 50px 12px 12px; 
    z-index: 10;
    
    color: #030601;
    text-align: center;
    font-family: "Space Mono";
    font-size: 15px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;


    border-radius: 14px;
    border-top: 2px solid #030601;
    border-right: 10px solid #030601;
    border-bottom: 10px solid #030601;
    border-left: 2px solid #030601;
    background: #FFF;
    margin-bottom: 0;
}

.collapsible label:after {
    content: "▶";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%); 
    width: 18px;
    height: 18px;
    color: #F46A81; 
    background: transparent; 
    transition: transform 0.3s ease;
}

.collapsible input:checked + label:after {
    transform: translateY(-50%) rotate(90deg);
}

.collapsible-text {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding: 0 15px;

    transition: max-height 0.3s ease, 
                opacity 0.3s ease, 
                padding-top 0.3s ease, 
                padding-bottom 0.3s ease;

    border-radius: 0 0 14px 14px;
    border-top: 0;
    border-right: 10px solid #030601;
    border-bottom: 10px solid #030601;
    border-left: 2px solid #030601;
    background: #FFF;
    margin-top: -10px;
    position: relative;
    z-index: 5;
}

.collapsible input:checked ~ .collapsible-text {
    max-height: 500px;
    padding-top: 25px;
    padding-bottom: 25px;
    opacity: 1;
}

.collapsible-text p {
    color: #030601;
    font-family: "Space Mono";
    font-size: 11px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.collapsible-text span {
    color: #F46A81;
}


/* ---------------------------------------------------------------------- */
/*                                FOOTER                                  */
/* ---------------------------------------------------------------------- */

footer {
    flex-shrink: 0;
    margin: 0;
    display: flex;
    justify-content: center;

    background:#FFF
}