/* v0.2.5 */

/* Heading/Navigation */
header {
    background-color: lightgreen;
    padding: 3vw 2vw 1vw 2vw;
    display: flex;
    flex-direction: column;
}
div#header-top {
    display: flex;
    width: 100%;
}
#toptitle {
    padding: 0vw 0vw 0vw 3vw;
    margin: 0px;
    font-size: 4vw;
    font-weight: 400;
    letter-spacing: 2px;
    font-style: italic;
    color: black;
    display: inline-flex;
}
a#login-link {
    color: black;
    font-size: 2.5vw;
    margin: 0.5vw 2vw 0px 0px;
    justify-content: right;
    margin-left: auto;
    display: flex;
}
a#login-link:hover {
    cursor: pointer;
}
#pfp {
    --cross-size: clamp(40px, 2vw, 100px);
    border-radius: 1000vw;
    width: var(--cross-size);
    height: var(--cross-size);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5vw;
}
#pfp p {
    font-size: clamp(16px, 1.5vw, 32px);
}
a.navbutton {
    border: 0px;
    padding: 0.5vw 1vw;
    margin: 0px 0.4vw;
    font-size: 3vw;
    background-color: #a4ffa4;
    border-radius: 5vw;
    color: black;
    font-family: Arial;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    display: inline;
}
a.navbutton:hover {
    background-color: #a4ffa4;
    cursor: pointer;
}
nav {
    padding: 0px;
    padding-top: 1vw;
    margin: 0px;
    border: 0px;
    text-align: center;
    display: block;
    margin-left: auto;
    font-size: 0px;
    height: fit-content;
}

/* Default for buttons (during testing before actual styles) */
button:hover {
    background-color: darkgreen;
    cursor: pointer;
    border-radius: 100px;
}
button {
    border-radius: 100px;
    background-color: rgb(164, 255, 164);
    border-color: lightgreen;
    margin: 1vw;
    width: fit-content;
}
a {
    text-decoration: none;
}
.contactlink {
    font-weight: bold;
}
#main {
    margin: 2% 5%;
    flex-grow: 1;
}
body {
    margin: 0px;
    padding: 0px;
    border: 0px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
p,
li,
a#goBack {
    font-size: 1.5vw;
    margin: 0.5vw 1.5vw;
}
label,
input,
textarea {
    margin: 0.5vw 1.5vw;
}
ul,
ol {
    padding-left: 1vw;
}
.webview {
    height: 100vh;
    width: 100vw;
    margin: 0px;
    padding: 0px;
    border: 0px;
}
h1 {
    font-size: 2.5vw;
    margin: 1vw;
}
h2 {
    font-size: 2vw;
    margin: 1vw;
}
footer {
    background-color: lightgreen;
    padding: 1vw 0px;
    margin-top: 2vw;
    bottom: 0px;
    width: 100%;
    text-align: center;
    font-size: 0px;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}
.footer,
button.footer {
    display: inline-block;
    color: black;
    margin: 1vw;
    font-size: 1.5vw;
    padding: 0px;
    border: 0px;
}
button.footer:hover {
    background-color: lightgreen;
}
#lightmode {
    display: inline-block;
    font-family: "Times New Roman", Times;
    background-color: lightgreen;
}

/* Cookies Banner */
#cookies {
    background-color: lightgreen;
    position: fixed;
    bottom: 0px;
    color: black;
    padding: 0px;
    display: flex;
    flex-direction: column;
    width: 100vw;
    text-align: center;
    border-top-width: 0.5vw;
    border-color: black;
    border-bottom-width: 0.5vw;
    border-top-style: solid;
    border-bottom-style: solid;
}
.cookieheading {
    position: relative;
    padding: 1vw;
    margin-bottom: 0px;
    font-weight: bold;
}
.cookiebutton {
    position: relative;
    display: inline;
    width: 10vw;
    background-color: rgb(164, 255, 164);
    border: none;
    padding: 1vw 2vw;
    border-radius: 5vw;
    cursor: pointer;
    font-weight: bold;
    margin: 1vw;
    margin-top: 0px;
}
.cookiebutton:hover {
    background-color: darkgreen;
}

/* Counter on test page */
button.counter {
    margin: 0px;
    border-radius: 0px;
    background-color: rgb(164, 255, 164);
    border: lightgreen 4px solid;
    padding: 1vw;
    font-size: 2vw;
    color: black;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}
button.counter:hover {
    background-color: darkgreen;
}
div.counter {
    font-size: 0px;
}

/* Blog */
.blogheader {
    text-align: center;
    background-color: lightgreen;
    font-size: 0px;
    padding: 0px;
    margin: 0px;
    display: flex;
}
a.blogfind {
    font-size: 3vw;
    color: black;
    padding-top: 1vw;
    padding-bottom: 0.5vw;
    margin: 0px;
    margin-top: 0.5vw;
    border-width: 0px 0.2vw;
    border-style: solid;
    border-color: black;
    background-color: rgb(164, 255, 164);
    display: inline;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    flex: 1;
}
a.blogfind:hover {
    background-color: darkgreen;
}
a.blogbutton {
    border: 0px;
    padding: 0.5vw 1.5vw;
    margin: 5px;
    font-size: 2vw;
    background-color: rgb(164, 255, 164);
    border-radius: 100px;
    color: black;
    font-family: Arial;
}

/* Contact form */
textarea {
    width: 50vw;
    height: 15vw;
}
button.form {
    margin: 0.5vw 1.5vw;
}

/* Custom Alert */
#customAlert {
    position: fixed;
    top: 40vh;
    left: 30vw;
    right: 30vw;
    padding: 20px 30px;
    border-radius: 8px;
    text-align: center;
    background-color: lightgreen;
}
#customAlert button {
    margin-top: 10px;
    margin-bottom: 0px;
    padding: 5px 12px;
    background-color: rgb(164, 255, 164);
    color: black;
    border-width: 0px;
    border-radius: 4px;
}
#customAlert button:hover {
    background-color: darkgreen;
}

/* Posts (Admin page / chat) */
div.posts {
    border-radius: 1vw;
    padding: 1vw;
    margin: 1vw 0px;
    background-color: lightgray;
    overflow-wrap: break-word;
}

/* The modifications of the webpage for different screen sizes (Increase in size for smaller screen widthes) */
/* To be turned into clamp sizes in css recode */
@media (max-width: 450px) {
    nav {
        flex-direction: column;
    }
    a.navbutton {
        padding: 1vw 3vw;
        font-size: 8vw;
        margin: 0vw;
    }
    a.blogbutton {
        padding: 1vw 3vw;
        font-size: 8vw;
    }
    a.blogfind {
        font-size: 8vw;
    }
    #toptitle {
        font-size: 10vw;
    }
    p,
    li {
        font-size: 5vw;
    }
    h1 {
        font-size: 8vw;
    }
    h2 {
        font-size: 6vw;
    }
    .footer,
    button.footer {
        font-size: 5vw;
    }
    .cookiebutton {
        display: inline;
        padding: 1vw 35vw 1vw 5vw;
    }
    button.counter {
        font-size: 8vw;
    }
    a#login-link {
        font-size: 8vw;
    }
    #customAlert {
        top: 30vh;
        left: 10vw;
        right: 10vw;
    }
}
@media (min-width: 451px) and (max-width: 700px) {
    nav {
        flex-direction: column;
    }
    a.navbutton {
        padding: 0.5vw 2vw;
        font-size: 6vw;
    }
    a.blogbutton,
    a.blogfind {
        font-size: 6vw;
    }
    #toptitle {
        font-size: 9vw;
    }
    p,
    li {
        font-size: 4vw;
    }
    h1 {
        font-size: 6vw;
    }
    h2 {
        font-size: 5vw;
    }
    .cookiebutton {
        padding: 1vw 22vw 1vw 3vw;
    }
    .footer,
    button.footer {
        font-size: 4vw;
    }
    a#login-link {
        font-size: 6vw;
    }
    #customAlert {
        top: 35vh;
        left: 20vw;
        right: 20vw;
    }
}
@media (min-width: 701px) and (max-width: 950px) {
    nav {
        flex-direction: row;
    }
    a.navbutton {
        padding: 0.5vw 2vw;
        font-size: 5vw;
    }
    a.blogbutton,
    a.blogfind {
        font-size: 5vw;
    }
    #toptitle {
        font-size: 6.5vw;
    }
    p,
    li {
        font-size: 3vw;
    }
    h1 {
        font-size: 5vw;
    }
    h2 {
        font-size: 4vw;
    }
    .footer,
    button.footer {
        font-size: 3vw;
    }
    .cookiebutton {
        font-size: 3vw;
        padding: 1vw 12vw 1vw 2vw;
    }
    a#login-link {
        font-size: 5vw;
    }
    #customAlert {
        top: 35vh;
        left: 20vw;
        right: 20vw;
    }
}
@media (min-width: 1400px) and (max-width: 1700px) {
    nav {
        flex-direction: row;
    }
    a.navbutton {
        padding: 0.25vw 1vw;
        font-size: 2.5vw;
    }
    a.blogbutton,
    a.blogfind {
        font-size: 2.5vw;
    }
    #toptitle {
        font-size: 4vw;
    }
    p,
    li {
        font-size: 1.5vw;
    }
    h1 {
        font-size: 3vw;
    }
    h2 {
        font-size: 2vw;
    }
    .cookiebutton {
        font-size: 1.5vw;
    }
    a#login-link {
        font-size: 2.5vw;
    }
}
@media (min-width: 1701px) {
    nav {
        flex-direction: row;
    }
    a.navbutton {
        padding: 6px 18px;
        font-size: 2vw;
    }
    a.blogbutton,
    a.blogfind {
        font-size: 2vw;
    }
    #toptitle {
        font-size: 50px;
    }
    p,
    li {
        font-size: 20px;
        margin: 0.5vw;
    }
    h1 {
        font-size: 30px;
        margin: 0.5vw;
    }
    h2 {
        font-size: 25px;
        margin: 0.5vw;
    }
    .footer,
    button.footer {
        font-size: 1.2vw;
        margin: 0vw 1vw;
    }
    .cookiebutton {
        font-size: 1vw;
        padding: 1vw 0vw;
    }
    button {
        margin: 0px;
    }
    button.counter {
        font-size: 1vw;
        padding: 0.5vw;
    }
    a#login-link {
        font-size: 2vw;
    }
}
