:root {
    --primary-color: #D33E2F;
    --secondary-color: #082058;
    --border-color: #EEE8EC;
    --button-color: #DD3D47;
}

* {
    margin-left: 10px;
    margin-right: 10px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

header h1 {
    font-size: 35px;
    padding: 3px;
}

h3 { font-size: x-large; }

p {
    font-size: 14.5px;
    line-height: 25px;
}

a {
    text-decoration: none;
    color: inherit;
}

a:hover {
    color: var(--button-color);
}

a.active {
    background: linear-gradient(90deg, #EE5252 0%, #EE8952 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}


body {
    margin: 0;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

main {
    margin-top: 50px;
    margin-left: 0;
    margin-right: 0;
    display: flex;
}

/* nav and nav content */

nav {
    margin-top: 0;
    display: flex;
    flex-direction: column;
    width: 20%;
    min-width: 200px;
    flex-grow: 1;
}

#nav-contents {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#nav-contents h3 {
    margin-bottom: 0;
    margin-top: 0;
    font-size: x-large;
}

#nav-contents a {
    margin-top: 0;
    font-size: 12px;
}

/* nav form */

.form {
    text-align: center;
    border: solid 2px var(--border-color);
    border-radius: 10%;
    margin: 10px;
    margin-top: 20px;
    padding: 5%;
    width: 95%;
}

.form h3 { margin: 0; }

.form ol {
    text-align:left;
    margin: 5px;
    padding: 0;
    line-height: 25px;
    font-size: 16px;
}

.form button { 
    margin: 0;
    background: var(--button-color);
    width: 100%;
    height: 50px;
    border: 0;
    border-radius: 50px;
    color: white;
}

.content {
    flex-grow: 3;
    width: 70%;
    max-width: 100%;
}

#about-content { 
    margin: 0;
}

#about-content img {
    float: right;
    margin-left: 15px;
    margin-bottom: 10px;
    max-width: 260px;
    height: auto;
}

/* participate section */

#participate-list {
    font-size: 14px;
    line-height: 25px;;
    margin-right: 20px;
    margin-left: 0;
}

/* about centre section */

#about-centre-red {
    background-color: var(--primary-color);
    padding: 20px;
    border-radius: 10px;
    height: 80px;
    width: 250px;
    max-width: 100%;
}

.about-centre-txt h3 {
    text-decoration: underline;
    font-size: 14.5px;
}

#about-centre-blue {
    background-color: var(--secondary-color);
    padding: 20px;
    border-radius: 10px;
    height: 80px;
    width: 250px;
    max-width: 100%;
}

#about-centre-ftr {
    font-weight: bold;
    text-align: center;
    padding: 10px;
}

/* study location */

#map { 
    margin: 0;
}

#map iframe {
    max-width: 100%;
}

/* Responsive Design */

/* Tablet */
@media screen and (max-width: 1024px) {
    header h1 {
        font-size: 28px;
    }
    
    nav {
        width: 25%;
        min-width: 180px;
    }
    
    .content {
        width: 75%;
    }
    
    .form {
        width: 90%;
        padding: 3%;
    }
}

/* Mobile */
@media screen and (max-width: 768px) {
    * {
        margin-left: 5px;
        margin-right: 5px;
    }
    
    header h1 {
        font-size: 24px;
        padding: 10px;
    }
    
    main {
        flex-direction: column;
        margin-top: 20px;
    }
    
    nav {
        width: 100%;
        min-width: unset;
        margin-bottom: 20px;
    }
    
    .content {
        width: 100%;
    }
    
    .form {
        width: calc(100% - 40px);
        margin: 10px auto;
        padding: 15px;
        border-radius: 15px;
    }
    
    #about-content img {
        float: none;
        display: block;
        margin: 10px auto;
        width: 100%;
        max-width: 260px;
    }
    
    #about-centre-red,
    #about-centre-blue {
        width: calc(100% - 40px);
    }
}

/* Small Mobile */
@media screen and (max-width: 480px) {
    header h1 {
        font-size: 20px;
    }
    
    h3 {
        font-size: large;
    }
    
    p {
        font-size: 13px;
        line-height: 22px;
    }
    
    #nav-contents a {
        font-size: 11px;
    }
    
    .form ol {
        font-size: 14px;
        line-height: 22px;
    }
}