body, html {
    width: 100vw;
}

body {
    font-size: 16px;
    padding: 0;
    margin:0;
    font-family: Arial, sans-serif;
    text-align: center;
}

p, label {
    margin: 6px;
    text-align: center;
}

div.logo-container {
    text-align: center;
    height: 60px;
}

div.header h1 {
    text-align: center;
    font-size: 1.1em;
    color: #ffffff;
    margin: 0;
    padding: 6px 0 6px 0 ;
    background-color: black;
}

div.header img {
    display: inline-block;
    padding: 10px 0 0 0 ;
    width: 200px;
    height: 60px;
}

form input{
    font-size: 1em;
}

input[type="submit"] {
    margin-top: 50px;
    font-size: 20px;
    font-weight: bold;
    padding: 10px;
    width: 250px;
    height: 50px;
    border-radius: 5px;
    border: 1px solid #ccc;
    cursor: pointer;
    background-color:#f3d2a6
}

input[type="number"] {
  font-size: 20px; /* Increases text size */
  width: 150px;    /* Adjusts the width */
  height: 35px;    /* Adjusts the height */
  border-radius: 5px; /* Optional: adds rounded corners */
  border: 1px solid #ccc; /* Optional: defines border style */
  text-align: right;
}

.otsikko {
  width: auto;
  display:inline-block;
  text-align: right;
}

/* Style for a larger select element */
select {
  font-size: 18px; /* Increases text size */
  text-align: center;
  width: 220px;    /* Adjusts the width */
  height: 40px;    /* Adjusts the height */
  border-radius: 5px; /* Optional: adds rounded corners */
  border: 1px solid #ccc; /* Optional: defines border style */
}

.required-file::after {
    content: "*";
    color: red;
}

.custom-upload {
    display: inline-block;
    padding: 15px 0 15px 0;
    cursor: pointer;
    border: 2px dashed #ccc;
    width: min(90%, 660px);
}

input[type="file"] {
    display: none;
}

/* Customize the label (the container) */
.container {
  display: inline-block;
  width: 130px;
  position: relative;
  padding-left: 35px;
  margin-bottom: 12px;
  cursor: pointer;
  font-size: 20px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  text-align:left;
}

/* Hide the browser's default checkbox */
.container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

/* Create a custom checkbox */
.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 25px;
  width: 25px;
  background-color: #eee;
}

/* On mouse-over, add a grey background color */
.container:hover input ~ .checkmark {
  background-color: #ccc;
}

/* When the checkbox is checked, add a blue background */
.container input:checked ~ .checkmark {
  background-color: #2196F3;
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

/* Show the checkmark when checked */
.container input:checked ~ .checkmark:after {
  display: block;
}

/* Style the checkmark/indicator */
.container .checkmark:after {
  left: 9px;
  top: 5px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 3px 3px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

footer.footer {
    margin-top: 20px;
    padding: 5px;
    text-align: center;
    position: relative;
    bottom: 0;
    width: 100%;
    font-size: 14px;
}

@media screen and (min-width: 380px) and (max-width: 699px) {
    body {
        font-size: 18px;
    }

    div.header h1 {
        text-align: center;
        font-size: 1.2em;
        color: #ffffff;
        margin: 0;
        padding: 10px 0 10px 0 ;
        background-color: black;
    }

    div.header img {
        display: inline-block;
        padding: 10px 0 0 0 ;
        width: 220px;
        height: 70px;
        }
    
    div.logo-container {
        text-align: left;
        height: 80px;
        padding: 20px;
    }

    .logo-container img {
        height: 80px;
    }

    .container {
        width: auto;
        font-size: 18px;
    }

    input[type="number"] {
        font-size: 18px; /* Increases text size */
        width: 100px;    /* Adjusts the width */
    }

    .custom-upload {
        padding: 15px 0 15px 0;
    }

    .mobile-break { display: none; }
}

@media screen and (min-width: 700px) {
    body {
        font-size: 20px;
    }

    div.header h1 {
        text-align: center;
        font-size: 1.5em;
        text-wrap: nowrap;
        color: #333;
        padding: 50px 240px 10px 0;
        margin: 0;
        background-color: white;
    }

    div.header img {
        float: left;
        padding: 30px 0 0 0;
        width: 220px;
        height: 70px;
    }
    
    div.logo-container {
        text-align: left;
        height: 80px;
        padding: 20px;
    }

    .logo-container img {
        height: 80px;
    }

    .custom-upload {
        padding: 30px 0 30px 0;
        margin-bottom: 20px;
    }

    .mobile-break { display: none; }

}

.header {
  padding: 0 2rem;
  border-bottom: var(--border);
}

.header__logo {
  display: flex;
  align-items: center;
  height: 4rem;
  color: inherit;
  text-decoration: none;
}

.header__logo:hover {
  color: var(--accent-colour);
}

.logo__icon {
  width: 2.5rem;
  height: 2.5rem;
}

.logo__name {
  margin-left: 0.5rem;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 20px;
}

.nav-container {
  display: flex;
  justify-content: space-between;

  /* limits the width of the navigation area to 1200px and centres it within the header */
  max-width: 75rem;
  margin: 0 auto;
}

.nav {
  display: flex;
}

.nav__link {
  /* Setting display: flex and align-items: center places the links inside the list items
       vertically in the center of the list item */
  display: flex;
  align-items: center;
  padding: 0 0.5rem;

  /* Removes standard underlines from these links. Explicitly inherits text colour from the body */
  text-decoration: none;
  color: inherit;
}

/* Sets the background colour and text colour of our navigation items when the item has 
   the .nav__link--active class, indicating the current page */
.nav__link--active {
  background: var(--accent-colour);
  color: var(--text-light);
}

/* Adds 1 relative unit of padding (determined by font size) to the right margin of all .nav__item
   elements as long as they are not the last element in their parent */
.nav__link:not(:last-child) {
  margin-right: 1rem;
}

/* Adds a bottom border and applies a negative margin to the element, to nudge it over the
   existing header bar border */
.nav__link:hover {
  margin-bottom: -3px;
  border-bottom: var(--border);
}

.nav__item {
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Sets the size of the icon (light/dark theme toggle) to be the same as the font size
    So that it takes up more or less the same amount of space as the links */
.nav__icon {
  width: 1em;
  height: 1em;
}