* {
    box-sizing: border-box;
    margin: 0;
}

main {
    max-width: 1400px;
    width: 90%;
    margin: 50px auto 50px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

h2 {
    text-align: center;
    font-size: 50px;
    background: linear-gradient(to bottom, #4d6799, #31466b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    margin: 0 0 50px 0;
    user-select: none;
}

h3 {
    text-align: left;
    width: 100%;
    font-size: 35px;
    background: linear-gradient(to bottom, #f5daa4, #dec184);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    margin: 0 0 20px 0;
    user-select: none;
}

.link-container{
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 30px ;
    margin-bottom: 50px;
}

.link-container:last-child{
    margin-bottom: 0;
}

.link-container a{
    text-decoration: none;
    width: 100%;
    background-color: #fffbf7;
    border: 2px solid #ddd7d2;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: border-color 0.3s ease, background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    padding: 18px 25px;
    font-size: 25px;
    font-weight: bold;
    color: #3B537F;
    text-align: center;
    height: fit-content;
    margin: auto 0;
}


.link-container a:hover{
    color: #fffbf7;
    background-color: #3B537F;
    border-color: #3B537F;
    transform: translateY(-5px);
}

.erasmus-days-container{
    width: 100%;
    display: flex;
    flex-direction: row;
    margin-bottom: 50px;
    justify-content: center;
    align-items: center;
}

.erasmus-days-container img{
    width: 30%;
    margin-right: 40px;
    border-radius: 20px;
    border: 7px solid #e2cea6;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.p-container{
    background: #fffbf7;
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    padding: 25px;
}

.p-container p{
    font-size: 20px;
    color: #746d68;
    margin: 0 0 20px 0;
    text-align: justify;
}

.p-container p:last-child{
    margin-bottom: 0;
}

.p-container video{
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    height: 300px;
    width: auto;
}

@media screen and (max-width: 1024px) {
    h2{
        font-size: 40px;
    }
    h3{
        font-size: 28px;
    }
    .link-container a, .p-container p{
        font-size: 20px;
    }
    .erasmus-days-container {
        flex-direction: column;
    }
    .erasmus-days-container img {
        width: 70%;
        margin-right: 0;
        margin-bottom: 25px;
    }
    .p-container {
        padding: 20px;
        width: 100%;
    }
    .p-container video{
        height: auto;
        width: 100%;
    }
}

@media screen and (max-width: 768px) {
    .link-container{
        grid-template-columns: repeat(1, 1fr);
        gap: 10px
    }
    .erasmus-days-container img {
        width: 100%;
    }
}

@media screen and (max-width: 480px) {
    h2{
        font-size: 32px;
    }
    h3{
        font-size: 23px;
    }
    .link-container a, .p-container p {
        font-size: 16px;
    }
    .p-container {
        padding: 16px;
    }
    .erasmus-days-container img {
        width: 100%;
        margin-bottom: 20px;
    }
}
