* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    color: #000000;
    background-color: #f5f5f5;
}

a, a:visited {
    color: blue;
    text-decoration: none;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.form-container {
    color: black;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    flex-direction: column;
}

header {
    height: 23%;
}

footer {
    text-align: center;
    font-size: 14px;
    color: #525252;
    width: 100%;
    padding: 0 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    margin: 20px 0;
}

.form {
    margin: 0 auto;
    width: 50%;
    background-color: #fff;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.logo-wrapper {
    width: 100%;
    height: 100%;
    
    display: flex;
    justify-content: center;
    align-items: center;
}

#logo {
    height: 80%;
}

.select-container,
.input-container {
    margin-bottom: 20px;
}

.speciality-label {
    display: block;
    margin-bottom: 5px;
}

.select-container label,
.input-container label {
    display: block;
    margin-bottom: 5px;
}

.coef-label {
    line-height: 20px;
    padding-left: 5px;
    color: rgb(68, 68, 68);
}

select,
input[type="number"] {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

button[type="submit"] {
    display: block;
    padding: 10px 20px;
    font-size: 18px;
    background-color: #38558c;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 40%;
    height: 42px;
}

.result-container {
    margin-top: 40px;
    padding: 0 50px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: start;
}

.mark-results {
    display: flex;
    flex-direction: column;
    width: 40%;
}

.result {
    font-size: 18px;
    font-weight: bold;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
    height: 42px;

    display: flex;
    justify-content: center;
    align-items: center;
}

#third-subject {
    margin-bottom: 10px;
}

#program-placeholder {
    margin-top: 7px;
    font-size: 14px;
    color: rgb(82, 82, 82);
    height: auto;
}

.min-score {
    padding-top: 8px;
}

#score-budget, #score-contract {
    text-align: left;
    margin-top: 5px;
    font-size: 14px;
    color: rgb(82, 82, 82);
    padding-left: 6px;
}

.label-below {
    margin-top: 7px;
}

@media(max-width: 1420px) {
    .form {
        width: 70%;
    }   
}

@media(max-width: 1020px) {
    .form {
        width: 90%;
    }   
}

@media(max-height: 870px) {
    .form-container {
        height: auto;
    }
    
    footer {
        width: 80%;
        margin-bottom: 20px;
    }
}

@media(max-width: 790px) {    
    header {
        height: 15%;
    }

    #logo {
        height: 100%;
    }

    .form {
        margin-top: 30px;
    }
    
    .result-container {
        flex-direction: column;
        align-items: center;
        row-gap: 20px;
    }

    .mark-results, button[type="submit"] {
        width: 70%;
    }

    #score-budget, #score-contract {
        padding-left: 20px;
    }

    .form-container {
        margin-top: 25px;
    }
}

@media(max-width: 560px) {
    .mark-results, button[type="submit"] {
        width: 100%;
    }
    
    footer {
        padding: 0 40px;
    }
}

@media(max-width: 450px) {
    #score-budget, #score-contract {
        padding-left: 0;
    }

    .result-container {
        padding: 0 20px;
    }

    #logo {
        height: 14vh;
    }

    footer {
        padding: 0 20px;
    }
}

@media(max-width: 340px) {
    .result-container {
        padding: 0;
    }

    footer {
        width: 85%;
    }
}
