@import url('https://fonts.googleapis.com/css2?family=Sono:wght@500&display=swap');

/* TOGGLE TOGGLE TOGGLE TOGGLE */

.out-title {
    width: 600px;
    height: 100px;
    background-color: rgb(175, 193, 204);
    margin: 0 auto;

    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 20px;
}

h1, h2, p {
    font-family: "Sono", 'Times New Roman', Times, serif;
}

/* This is the wider section that will hold the switch (and keep it still and centre) */

.out-switch {
    width: 600px;
    height: 40px;
    background-color: rgb(175, 193, 204);
    margin: 0 auto;
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    padding: 20px;
}

/* This segment is in refrence to the switch toggle, which is actually a 'checkbox' input thats
been literally mutilated beyond recongition. it was provided by chatGTP (I made it prettier though */
/* I know there is a Jquery bootstrap for it somewhere but I couldnt find it, so enjoy all this code */

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 200px;
    height: 34px;
}

.toggle-switch input {
    display: none;
}

.slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    cursor: pointer;
    background-color: gold;
    border-radius: 20px;
    border: thin solid darkblue;
    transition: background-color 0.4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 2px;
    bottom: 2px;
    background-color: darkgray;
    border: thin solid black;
    border-radius: 50%;
    transition: transform 0.4s;
}

input:checked + .slider {
    background-color: red;
}

input:checked + .slider:before {
    transform: translateX(165px);
}


/* STUDENT STUDENT STUDENT STUDENT */

#number-vanish {
    display:hideen;
}

/* This is for the student number announcement */
.number-annouce {
    width: 600px;
    height: 80px;
    
    text-align: center;
    font-family: "Sono", 'Times New Roman', Times, serif;
}


/* This is for the student number function */
#number-form {
    width: 600px;
    background-color: rgb(175, 193, 204);
    margin: 0 auto;
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    padding: 20px;
}

.sNo, .sNo1 {
    max-width: 60px;
    height: 60px;

    padding-top: 5px;
    font-size: 25px;
    margin-bottom: 10px;

    text-align: center;
    appearance: none;

    flex: 1;

    border-radius: 3px;
    border: 1px solid gold;

    font-family: "Sono", 'Times New Roman', Times, serif;
}

/* This is for the password segment of the student login form */
.login {
    width: 600px;
    height: 100px;

    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    text-align: center;

    margin: 0 auto;
    padding: 20px;

    background-color: rgb(175, 193, 204);
}

.login label {
    width: 60%;
    height: 40px;

    margin: 0 auto;

    font-size: 16px;
    font-family: "Sono", 'Times New Roman', Times, serif;
}

#pass-login {
    width: 60%;
    height: 40px;
    padding: 0 5px;

    margin: 0 auto;

    border-color: gold;
}


/* ENROL ENROL ENROL ENROL ENROL */
#enrol-vanish {
    /* !!Take note: this is where the enrolment form is blocked from sight!!. */
    /* annoyingly, 'display block' conflicting with 'display flex' */
    display: hidden;
}

#enrol-form {
    
    
    width: 600px;
    height: 950px;

    display: flex; 
    flex-direction: column;
    justify-content: space-evenly;

    margin: 0 auto;
    padding: 20px;

    background-color: rgb(175, 193, 204);
}

.enrol-annouce {
    width: 600px;
    height: 60px;
    
    text-align: center;
    font-family: "Sono", 'Times New Roman', Times, serif;
}


/* This segemnt is in regard to choosing the course you wish to study. */
.out-course{
    position: relative;
    margin: 20px 0;
    padding-top: 15px;

    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: center;

    font-family: "Sono", 'Times New Roman', Times, serif;
}

.out-course select {
    width: 60%;
    padding: 0 5px;
    height: 40px;

    margin: 0 auto;

    font-size: 16px;

    border-color: Gold;
    font-family: "Sono", 'Times New Roman', Times, serif;
}

/* This segment is in regard to all the infomation fields that need to be filled in */
.validation-segment{
    position: relative;
    margin: 20px 0;

    font-family: "Sono", 'Times New Roman', Times, serif;
}

.validation-segment input{
    width: 100%;
    padding: 0 5px;
    height: 40px;
    font-size: 16px;
    border-color: gold;

    font-family: "Sono", 'Times New Roman', Times, serif;
}

/* This is to get the terms and conditions text in right spot */
.terms{
    position: relative;
    text-align: center;
    margin: 10px 0;

    font-size: 12px;
    font-family: "Sono", 'Times New Roman', Times, serif;
}

/* This is to get the checkbox in right spot */
.tick{
    display: flex;
    align-items: center;

    padding-bottom: 10px;

    border-color: gold;
}

.tick input {
    margin: 0 auto;
}

/* This is for placing the button in right spot */
.out-enrol-button {
    display: flex;
    justify-content: center;
}


/* This is so the field goes green when you know its been filled in correctly. */
.fieldGood{
    background-color: green;
    color:aliceblue;
}

.fieldGood::placeholder {
    color: white;
    opacity: 1;
}


/* This is for turning the input field red when it was not filled in correctly */
.fieldError{
    background-color: red;
    color:aliceblue;
}

.fieldError::placeholder {
    color: white;
    opacity: 1;
}

/* This is styling for the span messages for when the user needs to be told what to be filled in */
.error {
    display:none;
    width: 200px;
    margin:5px 0;
    padding:10px;

    position: absolute;
    left:650px;

    border: solid 1px red;
    border-radius: 5px;

    background-image: linear-gradient(rgb(255, 119, 119), rgb(255, 208, 208));
    line-height: 133%;
}

/* BUTTONS BUTTONS BUTTONS BUTTONS BUTTONS */

/* This is for when you have styped in your student number */
#sNoFormButton {
    height: 50px;
    width: 90%;
    background-color: gold;
    border: thin solid darkblue;
    border-radius: 5px;
    padding: 10px;

    font-family: "Sono", 'Times New Roman', Times, serif;
}

#sNoFormButton:hover {
    background-color: rgb(21, 136, 31);
}

#sNoFormButton:disabled {
    height: 50px;
    width: 90%;
    background-color: darkgrey;
    border: thin solid darkblue;
    border-radius: 5px;
    padding: 10px;

    font-family: "Sono", 'Times New Roman', Times, serif;
}


/* This is for when you have finished your enrolment form */
#enrol-button {
    height: 50px;
    width: 90%;

    padding: 10px;

    border: thin solid darkblue;
    border-radius: 5px;

    background-color: gold;

    font-family: "Sono", 'Times New Roman', Times, serif;
}

#enrol-button:hover {
    background-color: rgb(21, 136, 31);
}

#enrol-button:disabled {
    height: 50px;
    width: 90%;

    padding: 10px;

    border: thin solid darkblue;
    border-radius: 5px;

    background-color: darkgrey;

    font-family: "Sono", 'Times New Roman', Times, serif;
}
